/* ==========================================================
   Megah Armada (M) Constructions — styles
   ========================================================== */

:root {
  --navy: #2d4150;
  --navy-900: #22323f;
  --navy-800: #2a3c4a;
  --cyan: #35c3e0;
  --cyan-600: #1fa8c9;
  --teal-700: #1a8fa8;
  --cyan-100: #dcf3fa;
  --cyan-50: #eef9fc;
  --ink: #1f2d38;
  --text: #56646f;
  --muted: #7f8b95;
  --line: #e4e9ed;
  --bg-soft: #f4f6f8;
  --white: #ffffff;

  /* Brand gradient — light cyan → deep teal (from the "GET IN TOUCH" artwork) */
  /* Button gradient — cyan → ice blue (from the brand artwork); shifts on hover */
  --btn-gradient: linear-gradient(90deg, #1a8fa8 0%, #1fa8c9 25%, #35c3e0 50%, #1fa8c9 75%, #1a8fa8 100%);
  --brand-gradient: linear-gradient(90deg, #6fd6ea 0%, #1a8fa8 100%);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 10px;
  --shadow: 0 8px 28px rgba(34, 50, 63, 0.07);
  --shadow-lg: 0 18px 44px rgba(34, 50, 63, 0.13);

  --container: 1280px;
  --gutter: 40px;
  /* distance from viewport edge to the container's content edge */
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Lock on <html>: Lenis sets overflow:clip there, which would stop a body-level lock reaching the viewport
   and turn <body> into its own box (sticky header + fixed menu then jump or vanish on mobile) */
html:has(body.no-scroll) { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.2; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; margin-top: 48px; }
.text-accent {
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1;
  border: 1.5px solid transparent; border-radius: 4px;
  transition: background-position .45s ease, background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer; white-space: nowrap;
}
.btn--primary {
  background: var(--btn-gradient); background-size: 200% 100%; background-position: 100% 0;
  color: var(--white);
}
.btn--primary:hover { background-position: 0 0; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(26, 143, 168, .28); }
.btn--outline { border-color: var(--cyan-600); color: var(--teal-700); background: var(--white); }
.btn--outline:hover { background: var(--cyan-600); color: var(--white); transform: translateY(-2px); }
.btn--sm { padding: 12px 22px; font-size: 14px; }

/* ---------- Tag / eyebrow (slanted gradient label) ---------- */
.tag {
  display: inline-block;
  padding: 6px 24px 6px 14px;
  background: var(--brand-gradient); color: var(--white);
  font-family: var(--font-head); font-size: 11.5px; font-weight: 600; letter-spacing: .12em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  margin-bottom: 16px;
}
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .14em;
  color: var(--teal-700); margin-bottom: 22px;
}
.eyebrow__line { width: 44px; height: 2px; background: var(--brand-gradient); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.section__title { font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.section__title--light { color: var(--white); }
.section__sub { font-size: 17px; color: var(--text); max-width: 620px; margin-bottom: 48px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
/* Blur lives on a pseudo layer: backdrop-filter on .header itself would trap
   position:fixed children (mobile nav, page dim) inside the header box */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
}
/* Page dim behind the open mega menu */
.header::after {
  content: ""; position: fixed; inset: var(--header-h) 0 0; z-index: -2;
  background: rgba(22, 33, 42, .28);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.header.mega-open::after { opacity: 1; visibility: visible; }
.header.is-scrolled { box-shadow: 0 4px 24px rgba(34, 50, 63, .08); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { height: 42px; width: auto; }
.logo--light img { filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: 40px; }
.nav__link {
  position: relative; font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 6px 0; transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand-gradient); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__link:hover, .nav__link.is-active { color: var(--teal-700); }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 4px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero: text aligned to container, art bleeds to the right edge ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 1000px);
  padding-left: var(--edge);
  background: var(--white); /* matches the white fade on the hero artwork */
  overflow: hidden;
}
.hero__content { position: relative; z-index: 2; padding: 90px 48px 90px 0; max-width: 640px; }
.hero__title { font-size: clamp(38px, 4.4vw, 62px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 26px; }
.hero__text { font-size: 18px; max-width: 540px; margin-bottom: 40px; }
.hero__content > .hero__text { margin-bottom: 0; }
.hero__more .hero__text { margin: 14px 0 0; }
.hero__more .hero__tagline { font-weight: 600; color: var(--teal-700); }
.hero__toggle { margin: 14px 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__stats {
  list-style: none; padding: 32px 0 0; margin: 48px 0 0;
  display: flex; gap: 48px; border-top: 1px solid var(--line);
}
.hero__stats strong { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.hero__stats span { font-size: 13.5px; color: var(--muted); }

/* the photo bleeds left under the copy; its own white fade sits behind the text */
.hero__visual { position: relative; align-self: stretch; min-height: 520px; margin-left: -12vw; }
.hero__photo { position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 30%, #dfe6ec 0%, #eef1f4 70%); }
.has-photo .hero__photo { background: none; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: right bottom; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 18%);
}
.hero__shapes { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The real artwork already includes the triangles — hide the drawn fallback */
.has-photo .hero__shapes, .has-photo .contact__shapes { display: none; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: start; margin-top: 16px; }
.about__media { position: relative; }
.img-slot {
  position: relative; aspect-ratio: 7 / 5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #cfd8df 0%, #9fb0bd 100%);
  box-shadow: var(--shadow-lg);
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; right: -24px; bottom: -28px;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 26px; background: var(--navy); color: rgba(255, 255, 255, .8);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  font-size: 13px; line-height: 1.4;
}
.about__badge strong { font-family: var(--font-head); font-size: 34px; color: var(--cyan); line-height: 1; }
/* hover: lifts, a cyan fill sweeps across, "24h" turns white; the dot pulses like an on-call light */
.about__badge {
  overflow: hidden; isolation: isolate; cursor: default;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}
.about__badge::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brand-gradient);
  clip-path: inset(0 100% 0 0); transition: clip-path .55s cubic-bezier(.7, 0, .2, 1);
}
.about__badge::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: onCall 2s ease-out infinite;
}
@keyframes onCall { 70%, 100% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } }
.about__badge strong, .about__badge span { transition: color .35s ease .1s, transform .45s cubic-bezier(.2, .7, .2, 1); }
.about__badge strong { display: inline-block; }
.about__media:hover .about__badge, .about__badge:hover {
  transform: translateY(-8px); box-shadow: 0 26px 50px rgba(34, 50, 63, .3), 0 0 0 4px rgba(53, 195, 224, .18);
}
.about__media:hover .about__badge::before, .about__badge:hover::before { clip-path: inset(0 0 0 0); }
.about__media:hover .about__badge strong, .about__badge:hover strong { color: var(--white); transform: scale(1.08); }
.about__media:hover .about__badge span, .about__badge:hover span { color: var(--white); transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .about__badge::after { animation: none; }
}
.about__heading { font-size: 22px; font-weight: 600; margin-bottom: 16px; }
.about__body p { font-size: 16.5px; }
.about__lead { margin-bottom: 0; }
.about__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2, .7, .2, 1); }
.about__more-inner { overflow: hidden; min-height: 0; opacity: 0; transition: opacity .4s ease; }
.about__more.is-open { grid-template-rows: 1fr; }
.about__more.is-open .about__more-inner { opacity: 1; transition-delay: .1s; }
.about__more-inner p { padding-top: 14px; }
.about__toggle {
  display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 28px; padding: 0;
  background: none; border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; color: var(--cyan-600);
}
.about__toggle svg { transition: transform .35s ease; }
.about__toggle:hover { color: var(--teal-700); }
.about__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.about__toggle:focus-visible { outline: 2px solid var(--cyan-600); outline-offset: 4px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .about__more, .about__more-inner, .about__toggle svg { transition: none; } }
.chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.chip {
  position: relative; padding: 14px 16px 14px 42px;
  background: var(--cyan-50); border: 1px solid #d3eef6; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--ink);
}
/* one SVG tick, drawn centred in a 16x16 box, over the gradient circle */
.chip::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.2l2.3 2.3 4.5-4.8' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    var(--brand-gradient);
}

/* ---------- Philosophy ---------- */
.philosophy { background: var(--cyan-100); }
.steps { counter-reset: step; }
.step {
  position: relative; overflow: hidden; isolation: isolate; counter-increment: step;
  background: var(--white); border-radius: var(--radius); padding: 34px 32px 36px;
  box-shadow: var(--shadow);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}
/* cards sit navy by default; on hover the navy drops away to reveal the white card */
.step::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 100%), rgba(53, 195, 224, .28), transparent 70%),
    linear-gradient(160deg, #1e2e3a 0%, #22323f 55%, #2a4150 100%);
  clip-path: inset(0 0 0 0 round var(--radius));
  transition: clip-path .55s cubic-bezier(.7, 0, .2, 1);
}
/* oversized outlined step number, bottom-right */
.step::after {
  content: counter(step, decimal-leading-zero);
  position: absolute; right: 14px; bottom: -34px; z-index: -1;
  font-family: var(--font-head); font-size: 96px; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(53, 195, 224, .22);
  transition: opacity .45s ease .1s, transform .55s cubic-bezier(.2, .7, .2, 1) .1s;
}
.step__num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-gradient); color: var(--white);
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  transform: scale(1.08) rotate(-8deg);
  box-shadow: 0 0 0 9px rgba(53, 195, 224, .18), 0 0 26px rgba(53, 195, 224, .55);
  margin-bottom: 24px;
  transition: box-shadow .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--white); transition: color .35s ease .1s; }
.step p { font-size: 15px; color: rgba(255, 255, 255, .7); transition: color .35s ease .1s; }

/* .steps prefix outranks .reveal.is-visible, which would otherwise cancel the lift */
.steps .step { transition: opacity .7s ease, transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s; }
.steps .step:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(34, 50, 63, .22); }
.step:hover::before { clip-path: inset(100% 0 0 0 round var(--radius)); }
.step:hover::after { opacity: 0; transform: translateY(24px); }
.step:hover .step__num { transform: none; box-shadow: 0 0 0 7px rgba(53, 195, 224, .16); }
.step:hover h3 { color: var(--ink); }
.step:hover p { color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .step, .step::before, .step::after, .step__num { transition-duration: .01s; }
}

/* ---------- Services ---------- */
.service {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; min-height: 240px; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--brand-gradient); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.service:hover {
  transform: translateY(-5px); border-color: var(--cyan);
  box-shadow: 0 20px 40px rgba(53, 195, 224, .22), 0 6px 14px rgba(34, 50, 63, .06);
}
.service:hover::before { transform: scaleX(1); }
.service__num { font-family: var(--font-head); font-size: 30px; font-weight: 600; color: var(--cyan-600); margin-bottom: 14px; line-height: 1; }
.service h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.service p { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.service__link {
  margin-top: auto; font-size: 14px; font-weight: 600; color: var(--teal-700);
  display: inline-flex; gap: 6px; transition: gap .2s;
}
.service__link:hover { gap: 10px; }

/* ---------- Suppliers ---------- */
.suppliers { padding: 90px 0; background: var(--white); }
.suppliers__title { text-align: center; font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 52px; }
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee__track {
  list-style: none; margin: 0; padding: 6px 0;
  display: flex; gap: 20px; width: max-content;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
.logo-tile {
  flex: 0 0 auto; width: 190px; height: 110px;
  display: flex; justify-content: center; align-items: center; padding: 18px;
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.logo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-tile img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- Gallery: staggered three-column wall (old projects grid in backups/projects-v1) ---------- */
.gallery { background: var(--white); overflow: hidden; }
.gallery__head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.gallery__head .section__title { margin-bottom: 0; }
.gallery__grid {
  display: grid; grid-template-columns: 1fr 1.34fr 1fr; gap: 20px;
  align-items: start; margin: 56px 0 64px;
}
.gallery__col { display: flex; flex-direction: column; gap: 20px; will-change: transform; }
.gallery__col:nth-child(1) { margin-top: 110px; }
.gallery__col:nth-child(3) { margin-top: 155px; }

.gtile {
  position: relative; display: block; overflow: hidden; border-radius: 14px;
  aspect-ratio: var(--ar, 1); background: var(--navy-900); color: var(--white);
  box-shadow: 0 10px 30px rgba(34, 50, 63, .10);
  isolation: isolate;
}
.gtile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.gtile::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(23, 35, 45, 0) 40%, rgba(23, 35, 45, .85) 100%);
}
.gtile:hover img { transform: scale(1.05); }

/* Placeholder until a photo exists */
.gtile__ph {
  position: absolute; inset: 0; display: none;
  background:
    linear-gradient(rgba(53, 195, 224, .07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(53, 195, 224, .07) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(120% 90% at 85% 10%, #2f4a5c 0%, #22323f 55%, #17232d 100%);
}
.gtile__ph img {
  position: absolute; right: -12%; bottom: -18%; left: auto; top: auto; width: 70%; height: auto;
  opacity: .06; filter: grayscale(1) brightness(3); transform: rotate(-6deg);
}
.gtile.is-empty > img { display: none; }
.gtile.is-empty .gtile__ph { display: block; }
.gtile.is-empty { cursor: default; }

.gtile__cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; }
.gtile__num {
  display: block; font: 500 12px/1 var(--font-body); letter-spacing: .12em;
  color: rgba(255, 255, 255, .8); margin-bottom: 8px;
}
.gtile__title {
  display: block; font: 500 21px/1.2 var(--font-head); letter-spacing: -.01em;
  transition: transform .35s ease;
}
.gtile__cap::after {
  content: ""; display: block; height: 2px; width: 0; margin-top: 12px;
  background: var(--brand-gradient); transition: width .45s ease;
}
.gtile:hover .gtile__cap::after { width: 56px; }
.gtile:not(.is-empty):hover .gtile__title { transform: translateX(4px); }

@media (max-width: 860px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 14px; margin: 36px 0 44px; }
  .gallery__col { display: contents; }
  .gtile { aspect-ratio: 4 / 5; border-radius: 12px; }
  .gtile--lead { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .gtile { order: var(--i); } /* back to service order 01 → 12 when columns are flattened */
  .gtile__title { font-size: 17px; }
}
@media (max-width: 520px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gtile, .gtile--lead { aspect-ratio: 4 / 3; }
}

/* ---------- Certifications v2: registry + preview stage (v1 in backups/certifications-v1) ---------- */
.certs {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(53, 195, 224, .10), transparent 60%),
    linear-gradient(180deg, #1c2a35 0%, var(--navy-900) 100%);
}
.certs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 56px; }
.certs__head .section__title { margin-bottom: 0; }
.certs__intro { max-width: 380px; font-size: 15px; color: rgba(255, 255, 255, .6); }

.registry { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }

/* --- rows --- */
.registry__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.reg { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .1); transition: background .3s; }
.reg::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, #6fd6ea, #1a8fa8); transform: scaleY(0); transform-origin: top; transition: transform .35s ease;
}
.reg.is-active { background: linear-gradient(90deg, rgba(53, 195, 224, .09), rgba(53, 195, 224, 0) 85%); }
.reg.is-active::before { transform: scaleY(1); }

.reg__head {
  width: 100%; display: flex; align-items: center; gap: 20px;
  padding: 22px 20px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.reg__head:focus-visible { outline: 1px solid var(--cyan); outline-offset: -1px; }
.reg__idx { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: rgba(255, 255, 255, .35); width: 20px; }
.reg__mono {
  flex: 0 0 auto; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03);
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .8);
  transition: background .3s, border-color .3s, color .3s;
}
.reg.is-active .reg__mono { background: linear-gradient(135deg, #6fd6ea, #1a8fa8); border-color: transparent; color: var(--white); }
.reg__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.reg__title { font-family: var(--font-body); font-size: 18px; font-weight: 500; color: var(--white); line-height: 1.3; }
.reg__issuer { font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.reg__status {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
.reg__status i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #3ee08f; }
.reg__status i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3ee08f; animation: regPulse 2s ease-out infinite; }
@keyframes regPulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }

/* expanding details (grid-rows trick for smooth height) */
.reg__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.reg.is-active .reg__body { grid-template-rows: 1fr; }
.reg__body-inner { overflow: hidden; padding: 0 20px 0 118px; }
.reg.is-active .reg__body-inner { padding-bottom: 24px; }
.reg__details { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.reg__details div {
  padding: 8px 12px; border-radius: 4px; border: 1px dashed rgba(111, 214, 234, .3); background: rgba(11, 20, 27, .35);
}
.reg__details dt { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.reg__details dd { margin: 2px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #bfeaf4; }
.reg__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.reg__validity { font-size: 13px; color: rgba(255, 255, 255, .6); }
.reg__view { display: none; font-size: 13.5px; font-weight: 600; color: var(--cyan); }
.reg__view.is-empty { opacity: .4; cursor: default; }

/* --- preview stage --- */
.stage {
  position: sticky; top: calc(var(--header-h) + 24px);
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(160deg, #22323f 0%, #1a2731 100%);
  padding: 48px 40px 28px; min-height: 560px;
  display: flex; flex-direction: column; align-items: center;
}
/* blueprint grid */
.stage__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(111, 214, 234, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 214, 234, .07) 1px, transparent 1px),
    linear-gradient(rgba(111, 214, 234, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 214, 234, .035) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.stage__seal {
  position: absolute; right: 22px; top: 22px; width: 104px; height: 104px; color: var(--cyan);
  opacity: .75; animation: sealSpin 24s linear infinite; z-index: 3;
}
.stage__seal path { animation: sealSpin 24s linear infinite reverse; transform-origin: 60px 60px; }
@keyframes sealSpin { to { transform: rotate(360deg); } }

.stage__doc { position: relative; display: block; width: 300px; aspect-ratio: 1 / 1.414; margin: 8px 0 28px; z-index: 2; }
.stage__sheet, .stage__paper { position: absolute; inset: 0; border-radius: 3px; }
/* stacked certificates behind the active one: solid paper with a printed frame, title bar and text lines */
.stage__sheet {
  background:
    linear-gradient(#dfe5ea, #dfe5ea) center 30px / 38% 6px no-repeat,
    linear-gradient(#e8ecef, #e8ecef) center 44px / 24% 4px no-repeat,
    repeating-linear-gradient(#edf0f3 0 3px, transparent 3px 13px) center 76px / 72% 34% no-repeat,
    linear-gradient(#e8ecef, #e8ecef) 22% 88% / 22% 2px no-repeat,
    linear-gradient(#e8ecef, #e8ecef) 78% 88% / 22% 2px no-repeat,
    #fff;
  box-shadow:
    inset 0 0 0 9px #fff, inset 0 0 0 10px #d3dbe1,
    0 16px 34px rgba(0, 0, 0, .32), 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.stage__sheet--back { transform: rotate(8deg) translate(38px, -4px); background-color: #f1f4f6; box-shadow: inset 0 0 0 9px #f1f4f6, inset 0 0 0 10px #d3dbe1, 0 16px 34px rgba(0, 0, 0, .32), 0 1px 3px rgba(0, 0, 0, .18); }
.stage__sheet--mid { transform: rotate(-6deg) translate(-34px, 8px); }
.stage__doc:hover .stage__sheet--back { transform: rotate(10deg) translate(46px, -6px); }
.stage__doc:hover .stage__sheet--mid { transform: rotate(-8deg) translate(-42px, 8px); }
.stage__paper {
  background: #fff; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .2), -10px 0 24px rgba(0, 0, 0, .12);
  transform: rotate(-1.5deg);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .25s;
}
.stage__doc:hover .stage__paper { transform: rotate(0) translateY(-6px) scale(1.02); }
.stage__doc.is-swapping .stage__paper { transform: rotate(-6deg) translate(-24px, 10px) scale(.96); opacity: 0; transition-duration: .22s; }
.stage__paper img { width: 100%; height: 100%; object-fit: cover; }
.stage__doc.is-empty { cursor: default; }
.stage__doc.is-empty img { display: none; }

/* drawn placeholder document until real scans are added */
.stage__placeholder {
  position: absolute; inset: 14px; display: none; flex-direction: column; align-items: center;
  padding: 34px 22px 20px; border: 1px solid #dfe5ea; text-align: center;
}
.stage__doc.is-empty .stage__placeholder { display: flex; }
.stage__ph-code {
  font-family: var(--font-head); font-size: 30px; font-weight: 700; letter-spacing: .04em;
  background: linear-gradient(90deg, #1a8fa8, #35c3e0); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stage__ph-title { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.stage__ph-lines { display: flex; flex-direction: column; gap: 9px; width: 100%; margin-top: 26px; }
.stage__ph-lines i { display: block; height: 6px; border-radius: 3px; background: #edf1f4; }
.stage__ph-lines i:nth-child(2) { width: 86%; margin: 0 auto; }
.stage__ph-lines i:nth-child(3) { width: 92%; margin: 0 auto; }
.stage__ph-lines i:nth-child(4) { width: 60%; margin: 0 auto; }
.stage__ph-note { margin-top: auto; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #9aa6b0; }

.stage__zoom {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 8px); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 14px; border-radius: 4px; background: rgba(28, 42, 53, .92); color: var(--white);
  font-size: 12.5px; font-weight: 600; opacity: 0; transition: opacity .25s, transform .25s;
}
.stage__zoom svg { width: 14px; height: 14px; }
.stage__doc:hover .stage__zoom { opacity: 1; transform: translate(-50%, 0); }
.stage__doc.is-empty .stage__zoom { display: none; }

.stage__caption { position: relative; z-index: 2; margin-top: auto; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stage__issuer { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.stage__title { font-size: 16px; font-weight: 500; color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .stage__seal, .stage__seal path, .reg__status i::after { animation: none; }
}

/* ---------- Contact: text aligned to container, photo bleeds right ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.contact__left { display: flex; align-items: center; padding: 100px 64px 100px var(--edge); }
.contact__content { width: 100%; max-width: 560px; }
.contact .section__title { margin-bottom: 32px; }
.contact__list { margin: 0 0 36px; }
.contact__row {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 16px;
}
.contact__row dt { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--teal-700); padding-top: 3px; }
.contact__row dd { margin: 0; color: var(--ink); }
.contact__row a {
  text-decoration: underline; text-decoration-color: rgba(31, 168, 201, .45);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
.contact__row a:hover { color: var(--teal-700); text-decoration-color: currentColor; }

.contact__right { position: relative; overflow: hidden; background: var(--navy); }
.contact__photo { position: absolute; inset: 0; background: linear-gradient(160deg, #8fa3b3 0%, #3f5566 60%, #2d4150 100%); }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% bottom; }
.contact__shapes { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .6); padding: 44px 0 0; }
.footer__top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; gap: 56px;
  padding-bottom: 36px;
}
.footer .logo img { height: 44px; }
.footer__tagline { margin: 14px 0 0; font-size: 13.5px; line-height: 1.6; max-width: 300px; }
.footer__label {
  margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cyan);
}
.footer__badges, .footer__socials { display: flex; align-items: center; gap: 10px; min-height: 50px; margin: 0; padding: 0; list-style: none; }
/* each heading sits centred over its own row of items */
.footer__group { text-align: center; }
.footer__group .footer__badges, .footer__group .footer__socials { justify-content: center; }
/* the badge artwork has white backgrounds, so each sits on a white tile of equal height */
.footer__badge {
  display: grid; place-items: center; height: 50px; padding: 6px 9px; border-radius: 8px; background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.footer__badge img { height: 38px; width: auto; max-width: 72px; object-fit: contain; transform: scale(1.15); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.footer__badge { overflow: hidden; }
.footer__badge:hover img { transform: scale(1.22); }
.footer__badge:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 0, 0, .28), 0 0 0 3px rgba(53, 195, 224, .35); }
.footer__social {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); color: var(--white);
  transition: background .3s, border-color .3s, color .3s, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.footer__social svg { width: 18px; height: 18px; }
.footer__social:hover, .footer__social:focus-visible {
  background: var(--brand-gradient); border-color: transparent; outline: none; transform: translateY(-3px);
}
.footer__bottom {
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  padding: 18px 0 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px;
}
.footer__bottom p { margin: 0; }
.footer__bottom a { color: rgba(255, 255, 255, .85); }
.footer__bottom a:hover { color: var(--cyan); }
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__badges, .footer__socials { min-height: 0; }
  .footer__badge { height: 48px; padding: 6px 8px; }
  .footer__badge img { height: 36px; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Service FAQ — numbered cards, gradient accent when open ---------- */
.sfaq { padding: 90px 0; background: var(--white); }
.sfaq__head { margin-bottom: 40px; }
.sfaq__list { counter-reset: faq; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.faq {
  position: relative; overflow: hidden; counter-increment: faq;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow .4s, border-color .4s, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.faq::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand-gradient);
  transform: scaleY(0); transform-origin: top; transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.faq:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.faq[open] { border-color: rgba(53, 195, 224, .4); box-shadow: var(--shadow-lg); }
.faq[open]::before { transform: scaleY(1); }
.faq summary {
  display: flex; align-items: center; gap: 18px; padding: 24px 26px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: 16.5px; font-weight: 600; line-height: 1.35; color: var(--ink);
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: counter(faq, decimal-leading-zero); flex: 0 0 auto;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--cyan-600);
}
.faq summary::after {
  content: "+"; margin-left: auto; flex: 0 0 auto; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--cyan-100); color: var(--teal-700);
  font-size: 20px; line-height: 1; font-weight: 400;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), background .3s, color .3s;
}
.faq summary:hover { color: var(--teal-700); }
.faq summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; border-radius: var(--radius); }
.faq[open] summary::after { transform: rotate(45deg); background: var(--brand-gradient); color: var(--white); }
.faq p {
  margin: 0; padding: 0 26px 26px 66px; font-size: 15px; line-height: 1.7; color: var(--muted);
}
.faq[open] p { animation: faqIn .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .sfaq__list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sfaq { padding: 64px 0; }
  .faq summary { padding: 20px; font-size: 15.5px; gap: 14px; }
  .faq p { padding: 0 20px 22px 49px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq, .faq::before, .faq summary::after { transition: none; }
  .faq[open] p { animation: none; }
}

/* ---------- Related services — white cards, outlined numbers ---------- */
.related { padding: 90px 0; background: var(--white); }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.related__card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 260px; padding: 28px 30px 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s, border-color .45s;
}
/* outlined number above the title, same treatment as the HOW WE WORK steps */
.related__head { display: block; }
.related__num {
  display: block; font-family: var(--font-head); font-size: 44px; font-weight: 700; line-height: 1; margin-bottom: 4px;
  color: transparent; -webkit-text-stroke: 1.2px rgba(53, 195, 224, .6);
  /* gradient fill that sweeps in from the left on hover */
  background: var(--brand-gradient) no-repeat left / 0% 100%; -webkit-background-clip: text; background-clip: text;
  transition: background-size .55s cubic-bezier(.7, 0, .2, 1), -webkit-text-stroke-color .45s, transform .5s cubic-bezier(.2, .7, .2, 1);
}
.related__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding-top: 6px; }
.related__name { font-family: var(--font-head); font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.related__desc { font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.related__go {
  margin-top: auto; padding: 18px 0 22px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--teal-700);
}
.related__go span {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--cyan-100); color: var(--teal-700); font-size: 15px; line-height: 1;
  transition: background .35s, color .35s, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.related__card:hover, .related__card:focus-visible {
  transform: translateY(-6px); box-shadow: 0 26px 50px rgba(34, 50, 63, .14); border-color: rgba(53, 195, 224, .45); outline: none;
}
.related__card:hover .related__num, .related__card:focus-visible .related__num { background-size: 100% 100%; -webkit-text-stroke-color: transparent; transform: translateX(4px); }
.related__card:hover .related__go span, .related__card:focus-visible .related__go span {
  background: var(--brand-gradient); color: var(--white); transform: translateX(4px);
}
@media (max-width: 860px) { .related__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .related { padding: 64px 0; }
  .related__card { min-height: 0; padding: 24px 22px 0; }
  .related__num { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) { .related__card, .related__num, .related__go span { transition: none; } }

.scope__heading { font-family: var(--font-head); font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 40px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px;
  background: rgba(20, 30, 38, .9); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; text-align: center; max-width: 100%; }
.lightbox img { max-height: 82vh; max-width: 100%; width: auto; height: auto; margin: 0 auto; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #fff; font-size: 14px; margin-top: 12px; }
.lightbox__close {
  position: absolute; top: 18px; right: 24px; border: 0; background: none;
  color: #fff; font-size: 40px; line-height: 1; cursor: pointer;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation-duration: 120s; }
}

/* ==========================================================
   Services mega menu
   ========================================================== */
.nav__link--mega { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav__caret { width: 12px; height: 12px; transition: transform .25s; }
.has-mega.is-open .nav__caret { transform: rotate(180deg); }
.has-mega.is-open .nav__link--mega { color: var(--teal-700); }
.has-mega.is-open .nav__link--mega::after { transform: scaleX(1); }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 1;
  width: min(1180px, calc(100vw - 2 * var(--gutter)));
  overflow: hidden;
  color: rgba(255, 255, 255, .62);
  background:
    radial-gradient(800px 420px at 100% 100%, rgba(53, 195, 224, .22), transparent 65%),
    linear-gradient(160deg, #17232d 0%, #1e2e3a 50%, #2a4150 100%);
  border: 0;
  border-radius: 6px;
  box-shadow:
    0 40px 80px rgba(10, 18, 24, .38),
    0 0 48px rgba(53, 195, 224, .12);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---- Border: static hairline + a cyan light sweeping around the edge ---- */
@property --mega-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.mega::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background:
    conic-gradient(from var(--mega-angle),
      transparent 0deg, rgba(111, 214, 234, .0) 20deg,
      #6fd6ea 60deg, #35c3e0 80deg, rgba(53, 195, 224, 0) 120deg,
      transparent 180deg, rgba(111, 214, 234, 0) 200deg,
      #1fa8c9 240deg, #6fd6ea 255deg, rgba(53, 195, 224, 0) 300deg, transparent 360deg),
    linear-gradient(160deg, rgba(111, 214, 234, .45), rgba(255, 255, 255, .08) 35%, rgba(255, 255, 255, .06) 65%, rgba(53, 195, 224, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: megaBorder 7s linear infinite paused;
}
.has-mega.is-open .mega::after { animation-play-state: running; }
@keyframes megaBorder { to { --mega-angle: 360deg; } }

/* ---- Oversized brand mark watermark, bottom-right ---- */
.mega__mark {
  position: absolute; right: -150px; bottom: -190px; width: 500px; max-width: none;
  opacity: .035; filter: grayscale(1) brightness(3); transform: rotate(-6deg);
  pointer-events: none; user-select: none;
}

.mega__inner { position: relative; }
/* invisible bridge so the pointer can travel from the link to the panel */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }

.mega__inner {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px;
  padding: 44px 44px 48px;
}

.mega__eyebrow, .mega__label {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 500; letter-spacing: .2em;
  color: rgba(255, 255, 255, .55); margin: 0 0 22px;
}
.mega__label span { color: var(--cyan); margin-left: 6px; }

.mega__intro { display: flex; flex-direction: column; }
.mega__title {
  font-family: var(--font-body); color: var(--white);
  font-size: 27px; font-weight: 400; line-height: 1.25; letter-spacing: -.015em; margin-bottom: 22px;
}
.mega__text { font-size: 14.5px; line-height: 1.75; color: rgba(255, 255, 255, .6); margin-bottom: 32px; }
.mega__cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 22px;
  padding: 5px 5px 5px 20px; border-radius: 4px;
  background: linear-gradient(90deg, #1a8fa8, #28b3d3);
  border: 1px solid rgba(255, 255, 255, .55);
  color: var(--white); font-size: 14.5px; font-weight: 500;
  transition: border-color .25s, box-shadow .25s;
}
.mega__cta:hover { border-color: var(--white); box-shadow: 0 10px 28px rgba(31, 168, 201, .35); }
.mega__cta-icon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 3px;
  background: var(--white); color: var(--navy-900);
}
.mega__cta-icon svg { width: 14px; height: 14px; transition: transform .25s; }
.mega__cta:hover .mega__cta-icon svg { transform: translate(2px, -2px); }

/* service list — two independent columns, dashed rules; a row opens on hover to show its one-liner */
.mega__list {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; align-items: start;
}
.mega__col { list-style: none; margin: 0; padding: 0; border-bottom: 1px dashed rgba(255, 255, 255, .16); }
.mega__col li {
  border-top: 1px dashed rgba(255, 255, 255, .16);
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
  transition-delay: calc(var(--i) * 22ms + 80ms);
}
.has-mega.is-open .mega__col li { opacity: 1; transform: none; }

.mega__link { display: block; padding: 17px 12px; transition: background .3s; }
.mega__row { display: flex; align-items: center; gap: 16px; }
.mega__bullet {
  flex: 0 0 auto; width: 7px; height: 7px; transform: rotate(45deg);
  border: 1.2px solid rgba(255, 255, 255, .6);
  transition: background .25s, border-color .25s, transform .3s;
}
.mega__name {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--font-body); font-size: 17px; font-weight: 400; letter-spacing: -.005em;
  color: var(--white); line-height: 1.3; transition: transform .3s ease, color .25s;
}
.mega__tag {
  flex: 0 0 auto; font-family: var(--font-body); font-size: 10.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .42);
  transition: color .25s;
}
/* one-liner: collapses to zero height, opens with a grid-rows transition */
.mega__desc {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .35s ease, opacity .25s ease, margin-top .35s ease;
}
.mega__desc > span {
  overflow: hidden; min-height: 0; padding-left: 23px;
  font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .6);
}
.mega__link:hover, .mega__link:focus-visible {
  background: linear-gradient(90deg, rgba(53, 195, 224, .10), rgba(53, 195, 224, 0) 80%); outline: none;
}
.mega__link:hover .mega__bullet, .mega__link:focus-visible .mega__bullet {
  background: var(--cyan); border-color: var(--cyan); transform: rotate(225deg);
}
.mega__link:hover .mega__name, .mega__link:focus-visible .mega__name { transform: translateX(4px); }
.mega__link:hover .mega__tag, .mega__link:focus-visible .mega__tag { color: var(--cyan); }
.mega__link:hover .mega__desc, .mega__link:focus-visible .mega__desc {
  grid-template-rows: 1fr; opacity: 1; margin-top: 8px; transition-delay: .06s;
}
/* service card highlight when reached from the menu */
.service.is-target { animation: serviceFlash 1.6s ease; }
@keyframes serviceFlash {
  0%, 30% { box-shadow: 0 0 0 3px rgba(53, 195, 224, .55), var(--shadow-lg); border-color: transparent; }
  100% { box-shadow: 0 0 0 0 rgba(53, 195, 224, 0); }
}

/* Short desktop screens: tighten the panel so all twelve services fit without scrolling */
@media (min-width: 861px) and (max-height: 820px) {
  .mega__inner { padding: 30px 40px 32px; gap: 48px; }
  .mega__link { padding: 12px 10px; }
  .mega__name { font-size: 16px; }
  .mega__eyebrow, .mega__label { margin-bottom: 14px; }
  .mega__title { font-size: 24px; margin-bottom: 14px; }
  .mega__text { font-size: 14px; line-height: 1.65; margin-bottom: 22px; }
}
@media (max-width: 1180px) and (min-width: 861px) {
  .mega__inner { grid-template-columns: 1fr; padding: 36px 36px 40px; }
  .mega__intro { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mega::after { animation: none; }
  .mega__list li, .mega__desc { transition: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .nav { gap: 28px; }
  .about__grid { gap: 48px; }
}

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sslide { flex: 0 0 50%; width: 50%; }
  .hero { grid-template-columns: 1fr; padding-left: 0; min-height: 0; }
  .hero__content { padding: 72px var(--gutter) 40px; max-width: 720px; }
  .hero__visual { min-height: 420px; margin-left: 0; }
  .hero__photo::after { display: none; }
  .about__grid { grid-template-columns: 1fr; gap: 56px; }
  .about__badge { right: 16px; }
  .certs__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .registry { grid-template-columns: 1fr; }
  .stage { display: none; }
  .reg__view { display: inline; }
  .contact { grid-template-columns: 1fr; }
  .contact__left { padding: 80px var(--gutter); }
  .contact__content { max-width: none; }
  .contact__right { min-height: 380px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 24px var(--gutter); background: var(--white);
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); bottom: auto;
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  /* no live blur on phones: it re-composites on every scroll frame and flickers under a fixed menu */
  .header::before { backdrop-filter: none; background: #fff; }
  .header::after { display: none; }
  .nav { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .nav__link { font-size: 18px; padding: 12px 0; }
  .nav__cta { margin: 16px 0 0; }

  /* Mega menu becomes an accordion inside the mobile menu */
  .nav__item { width: 100%; }
  .nav__link--mega { width: 100%; justify-content: space-between; }
  .nav__link--mega::after { display: none; }
  .mega {
    position: static; display: none; width: auto; opacity: 1; visibility: visible; transform: none;
    max-height: none; border-radius: var(--radius); box-shadow: none; margin: 4px 0 8px;
  }
  .mega::before, .mega::after { display: none; }
  .mega { box-shadow: none; border: 1px solid rgba(111, 214, 234, .2); }
  .has-mega.is-open .mega { display: block; transform: none; }
  .mega__inner { grid-template-columns: 1fr; gap: 20px; padding: 14px 12px 16px; }
  .mega__intro, .mega__mark { display: none; }
  /* flatten the two columns back into 01 → 12 order */
  .mega__list { display: flex; flex-direction: column; align-items: stretch; }
  .mega__list li:last-child { border-bottom: 1px dashed rgba(255, 255, 255, .16); }
  .mega__col { display: contents; }
  .mega__list li { opacity: 1; transform: none; order: var(--i); }
  .mega__desc, .mega__tag { display: none; }
  .mega__link { padding: 14px 6px; }
  .mega__name { font-size: 16px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 72px; }
  .section { padding: 80px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr; }
  .hero__text { font-size: 16.5px; }
  .hero__stats { gap: 28px; }
  .hero__stats strong { font-size: 24px; }
  .hero__visual { min-height: 300px; }
  .logo img { height: 34px; }
  .btn { padding: 14px 22px; font-size: 14.5px; }
  .logo-tile { width: 150px; height: 90px; padding: 14px; }
  .cert__doc { max-width: none; }
  .contact__row { grid-template-columns: 1fr; gap: 4px; }
  .reg__head { gap: 14px; padding: 18px 12px; }
  .reg__idx, .reg__status { display: none; }
  .reg__mono { width: 48px; height: 48px; font-size: 11px; }
  .reg__title { font-size: 16px; }
  .reg__body-inner { padding: 0 12px; }
  .reg__foot { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   SERVICE DETAIL PAGES (services/*.html)
   ========================================================== */
.mega__link.is-current .mega__name { color: var(--cyan); }
.mega__link.is-current .mega__bullet { background: var(--cyan); border-color: var(--cyan); }

/* ---- Hero ---- */
.shero {
  position: relative; color: var(--white); padding: 56px 0 64px;
  background: #1f3446 url("../assets/images/service-hero-bg.jpg") right center / cover no-repeat;
}
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px;
  font-size: 13px; letter-spacing: .02em; color: rgba(255, 255, 255, .5);
}
.crumbs a { color: rgba(255, 255, 255, .7); transition: color .2s; }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current] { color: var(--cyan); }
.shero__title {
  color: var(--white); font-size: clamp(30px, 3.6vw, 46px); font-weight: 700;
  letter-spacing: -.015em; line-height: 1.15; max-width: 1000px; margin-bottom: 18px;
}
.shero__text { max-width: 940px; font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, .78); margin: 0 0 40px; }
/* chips run as one continuously moving row (duplicate set added by js/service.js) */
/* strip sits on a hairline divider with a small label, anchoring it to the hero */
.chips-band { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; }
.chips-label {
  margin: 0 0 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cyan);
}
.chips-marquee {
  overflow: hidden; padding-block: 4px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.chips-nav {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 12px; width: max-content;
  animation: chipsRun var(--chip-duration, 36s) linear infinite;
}
.chips-marquee:hover .chips-nav, .chips-nav:focus-within, .chips-nav.is-paused { animation-play-state: paused; }
@keyframes chipsRun { to { transform: translateX(calc(-100% / var(--chip-sets, 2) - 6px)); } }
.chip-link {
  display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px; white-space: nowrap;
  background: var(--white); color: var(--ink); font-size: 13.5px; font-weight: 500;
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.chip-link:hover, .chip-link:focus-visible {
  background: rgba(255, 255, 255, .08); color: var(--white); border-color: var(--cyan);
  transform: translateY(-2px); outline: none;
}

/* ---- Photo slider ---- */
.sslider {
  padding: 40px 0 34px;
  background: #f3f3f3 url("../assets/images/service-slider-bg.jpg") center / cover no-repeat;
}
.sslider__frame { position: relative; }
.sslider__track {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; border-radius: 6px; background: var(--navy-900);
  box-shadow: 0 30px 60px rgba(34, 50, 63, .18);
}
.sslider__track::-webkit-scrollbar { display: none; }
/* exactly three photos in view at once on desktop; the carousel moves one at a time */
.sslide {
  position: relative; flex: 0 0 33.3334%; width: 33.3334%; scroll-snap-align: start;
  height: clamp(260px, 30vw, 420px);
  overflow: hidden;
}
.sslide img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); user-select: none; }
.sslide:hover img { transform: scale(1.04); }
.sslide__cap {
  position: absolute; left: 16px; bottom: 14px; padding: 6px 12px; border-radius: 4px;
  background: rgba(23, 35, 45, .72); backdrop-filter: blur(6px);
  color: var(--white); font-size: 12.5px; font-weight: 500; letter-spacing: .02em;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.sslide:hover .sslide__cap, .sslide:focus-visible .sslide__cap { opacity: 1; transform: none; }
.sslider__arrow {
  position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: 0 10px 24px rgba(34, 50, 63, .2);
  opacity: 0; transition: opacity .3s, transform .3s, background .2s, color .2s;
}
.sslider__arrow svg { width: 16px; height: 16px; }
.sslider__arrow--prev { left: 16px; transform: translateX(-6px); }
.sslider__arrow--next { right: 16px; transform: translateX(6px); }
.sslider__frame:hover .sslider__arrow, .sslider__arrow:focus-visible { opacity: 1; transform: none; }
.sslider__arrow:hover { background: var(--cyan); color: var(--white); }
.sslider__dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.sslider__dot {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: #cfd6db; transition: width .35s ease, background .35s ease;
}
.sslider__dot.is-active { width: 30px; background: var(--brand-gradient); }
/* everything fits: no arrows or dots needed */
.sslider.is-static .sslider__arrow, .sslider.is-static .sslider__dots { display: none; }

/* ---- Scope cards ---- */
.scope { background: var(--cyan-100); padding: 72px 0 90px; }
.scope__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.scope__card {
  position: relative; overflow: hidden; background: var(--white); border-radius: var(--radius);
  padding: 30px 30px 32px; box-shadow: var(--shadow);
  transition: opacity .7s ease, transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}
.scope__card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--brand-gradient); transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.scope__grid .scope__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.scope__card:hover::before { transform: scaleX(1); }
.scope__num {
  position: absolute; top: 24px; right: 26px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .08em; color: #b9c6ce;
  transition: color .3s;
}
.scope__card:hover .scope__num { color: var(--cyan-600); }
.scope__title { font-size: 21px; font-weight: 700; line-height: 1.25; margin: 0 40px 18px 0; }
.scope__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.scope__list li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.5; color: #5d6b76; }
.scope__list li::before {
  content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan-600); box-shadow: 0 0 0 3px rgba(53, 195, 224, .15);
}
.scope__card.is-target { animation: serviceFlash 1.6s ease; }

/* commitment card — dark, with ticks */
.scope__card--commit {
  color: var(--white);
  background:
    radial-gradient(420px 260px at 100% 100%, rgba(53, 195, 224, .25), transparent 70%),
    linear-gradient(160deg, #1e2e3a 0%, #22323f 55%, #2a4150 100%);
}
.scope__card--commit .scope__title { color: var(--white); margin-right: 64px; }
.scope__card--commit .scope__list li { color: rgba(255, 255, 255, .78); padding-left: 26px; }
.scope__card--commit .scope__list li::before {
  top: .3em; left: 0; width: 15px; height: 15px; border-radius: 50%; box-shadow: none;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%2322323f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.scope__card--commit .scope__list li:first-child { color: var(--cyan); font-weight: 600; }
.scope__badge {
  position: absolute; top: 22px; right: 24px; padding: 5px 10px; border-radius: 4px;
  background: var(--brand-gradient); color: var(--white);
  font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .06em;
}

/* ---- CTA band ---- */
.scta { background: var(--navy-900); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.scta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 260px at 50% 120%, rgba(53, 195, 224, .22), transparent 70%);
}
.scta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.scta__title { color: var(--white); font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; margin-bottom: 14px; }
.scta__text { max-width: 540px; color: rgba(255, 255, 255, .7); font-size: 15.5px; line-height: 1.7; margin: 0 0 30px; }

@media (max-width: 1024px) {
  .scope__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shero { padding: 40px 0 48px; background-position: 70% center; }
  .shero__text { font-size: 15px; margin-bottom: 28px; }
  .chips-band { padding-top: 18px; }
  /* chips become one continuously moving row */
  .chips-marquee { margin-inline: calc(-1 * var(--gutter)); }
  .chips-nav { gap: 8px; }
  .chip-link { padding: 9px 16px; font-size: 13px; }
  .chip-link:hover { transform: none; }
  @keyframes chipsRun { to { transform: translateX(calc(-100% / var(--chip-sets, 2) - 4px)); } }
  .sslider { padding: 24px 0; }
  .sslide { height: 300px; flex: 0 0 100%; width: 100%; }
  .sslider__arrow { display: none; }
  .scope { padding: 48px 0 64px; }
  .scope__grid { grid-template-columns: 1fr; gap: 16px; }
  /* badge sits above the title instead of in the corner, so it can't collide on narrow phones */
  .scope__badge { position: static; display: inline-block; margin-bottom: 14px; }
  .scope__card--commit .scope__title { margin-right: 0; }
  .scta { padding: 60px 0; }
}

/* ---- Touch targets: give small links and dots a finger-sized hit area on touch screens ---- */
@media (pointer: coarse), (max-width: 860px) {
  .contact__row a, .crumbs a, .service__link, .reg__view { display: inline-block; padding-block: 8px; margin-block: -8px; }
  .sslider__dot { position: relative; }
  .sslider__dot::after { content: ""; position: absolute; inset: -12px -5px; }
  .contact__row dt { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .chips-nav { animation: none; }
  .chips-marquee { overflow-x: auto; scrollbar-width: none; }
  .chip-clone { display: none; }
}

/* ==========================================================
   MOTION — smooth scroll (Lenis), page intro, parallax frames
   ========================================================== */
/* Lenis required rules (from lenis.css) + hand native smooth-scroll over to Lenis */
html.lenis, html.lenis body { height: auto; }
html.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* parallax images drift inside a clipped frame */
.hero__photo { overflow: hidden; }
[data-parallax] { will-change: transform; transform: scale(1.12); }
.hero__photo img[data-parallax] { transform: scale(1.06); }

/* ---- Page intro: html.intro is set in <head> and removed by js/motion.js ---- */
@keyframes introUp { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes introDown { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes introWipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes introZoom { from { transform: scale(1.18); } to { transform: none; } }
@keyframes introFade { from { opacity: 0; } to { opacity: 1; } }

.intro .header { animation: introDown .9s cubic-bezier(.2, .7, .2, 1) both; }

/* home hero: copy rises line by line, photo wipes in from the right */
.intro .hero__content > * { animation: introUp 1s cubic-bezier(.2, .7, .2, 1) both; }
.intro .hero__content > :nth-child(1) { animation-delay: .25s; }
.intro .hero__content > :nth-child(2) { animation-delay: .38s; }
.intro .hero__content > :nth-child(3) { animation-delay: .52s; }
.intro .hero__content > :nth-child(4) { animation-delay: .64s; }
.intro .hero__content > :nth-child(5) { animation-delay: .76s; }
.intro .hero__visual { animation: introWipe 1.3s cubic-bezier(.77, 0, .18, 1) .15s both; }
.intro .hero__photo { animation: introZoom 2s cubic-bezier(.2, .7, .2, 1) .15s both; }
.intro .hero__shapes { animation: introFade 1s ease .9s both; }

/* service hero */
.intro .shero .container > * { animation: introUp 1s cubic-bezier(.2, .7, .2, 1) both; }
.intro .shero .container > :nth-child(1) { animation-delay: .2s; }
.intro .shero .container > :nth-child(2) { animation-delay: .32s; }
.intro .shero .container > :nth-child(3) { animation-delay: .46s; }
.intro .shero .container > :nth-child(4) { animation-delay: .6s; }
.intro .sslider__frame { animation: introUp 1.1s cubic-bezier(.2, .7, .2, 1) .7s both; }
.intro .sslider__dots { animation: introFade .8s ease 1.2s both; }

@media (prefers-reduced-motion: reduce) {
  [data-parallax] { transform: none !important; }
}

/* ==========================================================
   Back-to-top button — progress ring fills with scroll depth
   ========================================================== */
.to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 60;
  display: grid; place-items: center; width: 56px; height: 56px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--white); color: var(--navy);
  box-shadow: 0 14px 34px rgba(34, 50, 63, .18);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.85);
  transition: opacity .4s ease, visibility .4s, transform .5s cubic-bezier(.2, .7, .2, 1), background .3s, color .3s, box-shadow .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top > svg { grid-area: 1 / 1; }
.to-top__ring { width: 56px; height: 56px; transform: rotate(-90deg); }
.to-top__track { fill: none; stroke: var(--cyan-100); stroke-width: 2.5; transition: stroke .3s; }
.to-top__bar {
  fill: none; stroke: url(#toTopGrad); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .12s linear;
}
.to-top__arrow { width: 18px; height: 18px; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.to-top:hover, .to-top:focus-visible {
  background: var(--navy-900); color: var(--white); outline: none;
  box-shadow: 0 18px 40px rgba(34, 50, 63, .32), 0 0 0 4px rgba(53, 195, 224, .18);
}
.to-top:hover .to-top__track, .to-top:focus-visible .to-top__track { stroke: rgba(255, 255, 255, .12); }
.to-top:hover .to-top__arrow { animation: toTopNudge .9s cubic-bezier(.2, .7, .2, 1) infinite; }
@keyframes toTopNudge {
  0% { transform: translateY(0); }
  45% { transform: translateY(-5px); opacity: 0; }
  46% { transform: translateY(6px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@media (max-width: 600px) {
  .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .to-top__ring { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top, .to-top__bar { transition: opacity .2s, visibility .2s; transform: none; }
  .to-top:hover .to-top__arrow { animation: none; }
}
