/* ==========================================================================
   Braylliant IT Solutions — global stylesheet
   Mobile-first. Edit the tokens in :root to re-theme the whole site.
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-950: #071122;
  --navy-900: #0a1628;
  --navy-800: #0f2240;
  --navy-700: #183462;
  --blue-600: #1d5bff;   /* electric blue: primary accent */
  --blue-500: #3b74ff;
  --blue-100: #dce6ff;
  --blue-50:  #eef3ff;
  --teal-400: #2dd4bf;   /* secondary accent (use on dark backgrounds) */
  --teal-600: #0d9488;
  --teal-700: #0f766e;   /* teal that passes contrast on white */
  --teal-50:  #e6faf7;

  /* Neutrals */
  --ink: #0f1b2d;
  --body: #44546c;
  --muted: #6b7a90;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;

  /* Type */
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape & depth */
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06), 0 1px 3px rgba(15, 27, 45, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(15, 34, 64, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(10, 22, 40, 0.35);

  /* Layout */
  --container: 1280px;
  --gutter: 20px;
  --header-h: 72px;
  --section-y: 72px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 96px; }
}
@media (min-width: 1200px) {
  :root { --section-y: 112px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

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

/* ---------- Accessibility helpers ---------- */
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--navy-900); color: #fff; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; text-decoration: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Icons (inline SVG, Lucide style) ---------- */
.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 18px; height: 18px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-900); color: #c3cee0; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-head); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-600);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section--dark .eyebrow { color: var(--teal-400); }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
.section-lead { margin-top: 16px; font-size: 1.0625rem; color: var(--body); }
.section--dark .section-lead { color: #c3cee0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.9875rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .icon { width: 18px; height: 18px; transition: transform 0.2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 91, 255, 0.6); }
.btn--primary:hover { background: #154ae6; }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn--white { background: #fff; color: var(--navy-900); }
.btn--white:hover { background: var(--blue-50); }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 0.9375rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.9375rem; color: var(--blue-600);
}
.text-link .icon { width: 16px; height: 16px; transition: transform 0.2s; }
.text-link:hover { text-decoration: none; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.brand__sub { margin-top: 4px; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: none;
  padding: 12px var(--gutter) 24px;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.site-nav.is-open { display: block; }
.nav-list { display: flex; flex-direction: column; }
.nav-list a {
  display: block; padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; color: var(--ink);
}
.nav-list a:hover { color: var(--blue-600); text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--blue-600); }
.nav-cta { margin-top: 20px; width: 100%; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; align-items: center; gap: 32px;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav-list { flex-direction: row; gap: 4px; }
  .nav-list a {
    position: relative; padding: 8px 14px; border: 0;
    font-size: 0.9625rem; color: var(--body);
  }
  .nav-list a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
    border-radius: 2px; background: var(--blue-600);
    transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
  }
  .nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-list a[aria-current="page"] { color: var(--ink); }
  .nav-cta { margin-top: 0; width: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: 64px 80px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(29, 91, 255, 0.35), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(20, 184, 166, 0.22), transparent 60%),
    var(--navy-900);
  color: #c3cee0;
}
/* subtle data-grid pattern */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero__grid { position: relative; display: grid; gap: 48px; align-items: center; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero__tags li {
  padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8125rem; font-weight: 500; color: #dbe4f3;
}
.hero__tags li:nth-child(odd) { border-color: rgba(45, 212, 191, 0.35); }
.hero h1 {
  font-size: clamp(2.125rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; color: #fff;
  letter-spacing: -0.03em;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #6f9bff, var(--teal-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 24px; font-size: 1.125rem; color: #dbe4f3; max-width: 620px; }
.hero__text { margin-top: 14px; max-width: 620px; }
.hero .btn-row { margin-top: 32px; }
.hero__audience {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9375rem; max-width: 620px;
}
.hero__audience .icon { color: var(--teal-400); margin-top: 2px; }

@media (min-width: 1024px) {
  .hero { padding-block: 88px 104px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; }
  .hero h1 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); }
}

/* ---------- Image placeholder slots ----------
   Replace each .img-slot with a real <img> when assets are ready.
   The label + meta show the intended file name and size. */
.img-slot {
  position: relative; display: grid; place-items: center;
  width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); overflow: hidden;
  background:
    linear-gradient(rgba(29, 91, 255, 0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(29, 91, 255, 0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--blue-50);
  border: 1px solid var(--blue-100);
}
.img-slot__box {
  position: absolute; inset: 18% 16% 24%;
  border: 2px dashed var(--teal-600); border-radius: 6px;
}
.img-slot__tag {
  position: absolute; left: -2px; top: -30px;
  padding: 4px 10px; border-radius: 6px 6px 6px 0;
  background: var(--teal-600); color: #fff;
  font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
}
.img-slot__meta {
  position: absolute; left: 0; right: 0; bottom: 14px;
  padding-inline: 16px; text-align: center;
  font-size: 0.75rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* ---------- Intro (split) ---------- */
.split { display: grid; gap: 48px; align-items: center; }
.split > .img-slot { order: 2; } /* text first on mobile */
.split__body > p + p { margin-top: 16px; }
.split__body .section-title { margin-bottom: 24px; }
.split__highlight {
  margin-top: 24px; padding: 18px 20px;
  border-left: 3px solid var(--blue-600); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--blue-50);
  font-family: var(--font-head); font-weight: 600; color: var(--ink);
}
@media (min-width: 960px) {
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
  .split > .img-slot { order: 0; }
}

/* ---------- Capability cards ---------- */
.card-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.cap-card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.cap-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--blue-600), var(--teal-400));
  opacity: 0; transition: opacity 0.25s;
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.cap-card:hover::before { opacity: 1; }
.cap-card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 22px; border-radius: 12px;
  background: var(--blue-50); color: var(--blue-600);
}
.cap-card:nth-child(even) .cap-card__icon { background: var(--teal-50); color: var(--teal-700); }
.cap-card h3 { font-size: 1.1875rem; font-weight: 700; margin-bottom: 12px; }
.cap-card p { font-size: 0.9375rem; flex: 1; }
.cap-card .text-link { margin-top: 20px; }

/* ---------- Feature list (why choose) ---------- */
.feature-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature {
  display: flex; gap: 16px;
  padding: 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
}
.feature__icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--navy-900); color: var(--teal-400);
}
.feature h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: 0.9375rem; }

/* ---------- Stats strip ----------
   Add the `hidden` attribute to <section class="stats"> to hide it. */
.stats { position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 400px at 100% 0%, rgba(29, 91, 255, 0.25), transparent 60%);
}
.stats .container { position: relative; }
.stats__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-lg); overflow: hidden;
}
.stat { padding: 28px 22px; border-right: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.stat dd { margin: 0; }
.stat:nth-child(2n) { border-right: 0; }
.stat:last-child { grid-column: 1 / -1; border-bottom: 0; }
.stat__value {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.75rem, 2.4vw, 2.25rem); line-height: 1.1; letter-spacing: -0.02em;
  color: #fff; white-space: nowrap;
}
.stat__value { font-variant-numeric: tabular-nums; }
.stat__suffix { color: var(--teal-400); }
.stat__label { display: block; margin-top: 8px; font-size: 0.875rem; color: #a9b7cc; }
@media (min-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(5, 1fr); }
  .stat { border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 1px solid rgba(255, 255, 255, 0.1); }
  .stat:last-child { grid-column: auto; border-right: 0; }
}
.stats__note {
  display: flex; gap: 10px; margin-top: 20px;
  font-size: 0.8125rem; color: #8fa1bd; max-width: 860px;
}
.stats__note .icon { width: 16px; height: 16px; margin-top: 2px; color: #8fa1bd; }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1150px) { .industry-grid { grid-template-columns: repeat(5, 1fr); } }
.industry {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; color: var(--ink); line-height: 1.35;
  transition: border-color 0.2s, background-color 0.2s;
}
.industry:hover { border-color: var(--blue-100); background: var(--blue-50); }
.industry .icon { width: 22px; height: 22px; color: var(--blue-600); }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step {
  position: relative; padding: 28px 24px 26px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 16px;
  font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.step h3:last-child { margin-bottom: 0; }
@media (min-width: 1024px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.steps--4 .step { padding: 22px 22px 20px; }
.steps--4 .step::before { font-size: 1.5rem; margin-bottom: 10px; }
.step p { font-size: 0.9375rem; }

/* ---------- Closing CTA ---------- */
.cta-band {
  position: relative; overflow: hidden;
  padding: 48px 28px; border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 100%, rgba(45, 212, 191, 0.35), transparent 60%),
    linear-gradient(120deg, var(--navy-800), var(--blue-600));
  color: #dbe4f3; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }
.cta-band p { max-width: 640px; margin: 16px auto 0; font-size: 1.0625rem; }
.cta-band .btn-row { justify-content: center; margin-top: 32px; }
@media (min-width: 768px) { .cta-band { padding: 72px 48px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #a9b7cc; font-size: 0.9375rem; }
.footer-main { display: grid; gap: 40px; padding-block: 64px 48px; }
@media (min-width: 640px) { .footer-main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-main { grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr; gap: 48px; } }
.site-footer .brand { color: #fff; }
.site-footer .brand__sub { color: #8fa1bd; }
.footer-about p { margin-top: 18px; max-width: 340px; }
.footer-tagline { color: var(--teal-400); font-family: var(--font-head); font-weight: 600; }
.footer-heading {
  margin-bottom: 18px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
}
.footer-links li + li { margin-top: 10px; }
.footer-links a { color: #a9b7cc; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact li + li { margin-top: 14px; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--teal-400); }
.footer-contact address { font-style: normal; }
.footer-bottom {
  display: flex; flex-direction: column; gap: 14px;
  padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: #a9b7cc; }
.footer-legal a:hover { color: #fff; }
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* ---------- Page hero ---------- */
.hero--page { padding-block: 56px 72px; }
.hero--page .hero__grid { grid-template-columns: 1fr; }
.hero--page .hero__body { max-width: 800px; }
.hero--page h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
@media (min-width: 1024px) { .hero--page { padding-block: 80px 96px; } }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 0.875rem; color: #8fa1bd; animation: fade-up 0.8s backwards; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #4d5e7a; }
.breadcrumb a { color: #c3cee0; }
.breadcrumb [aria-current] { color: var(--teal-400); }

/* ---------- Lists ---------- */
.checklist { display: grid; gap: 12px 28px; }
@media (min-width: 640px) { .checklist--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .checklist--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .checklist--3 { grid-template-columns: repeat(3, 1fr); } }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.5; color: var(--ink); }
.checklist li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d5bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section--dark .checklist li { color: #dbe4f3; }
.section--dark .checklist li::before {
  background-color: rgba(45, 212, 191, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232dd4bf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.numlist { display: grid; gap: 12px; counter-reset: num; }
.numlist li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.5; color: var(--ink); counter-increment: num; }
.numlist li::before {
  content: counter(num); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy-900); color: var(--teal-400); font-family: var(--font-head); font-size: 0.75rem; font-weight: 800;
}

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-family: var(--font-head); font-size: 0.875rem; font-weight: 600; color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.pill:hover { border-color: var(--blue-100); background: var(--blue-50); transform: translateY(-1px); }
.pill-list--lg .pill { padding: 12px 20px; font-size: 1rem; }

.note {
  display: flex; gap: 10px; margin-top: 24px; padding: 14px 16px;
  border-radius: var(--radius-sm); background: var(--blue-50);
  font-size: 0.875rem; color: var(--body);
}
.note .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--blue-600); }

.card-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- About: story, vision & mission ---------- */
.story-quote {
  margin-top: 28px; padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-soft);
  font-size: 0.9375rem;
}
.story-quote strong { color: var(--ink); }

.vm-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .vm-grid { grid-template-columns: 0.9fr 1.1fr; } }
.vision-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 36px; border-radius: var(--radius-lg); color: #dbe4f3;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(45, 212, 191, 0.25), transparent 60%),
    linear-gradient(150deg, var(--navy-800), var(--navy-950));
}
.vision-card h2 { color: #fff; }
.vision-card__text { font-family: var(--font-head); font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 700; line-height: 1.4; color: #fff; }
.mission-card { padding: 36px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.mission-card h2 { margin-bottom: 24px; }
.vision-card .eyebrow, .mission-card .eyebrow { margin-bottom: 8px; }

.statement {
  max-width: 860px; margin-inline: auto; text-align: center;
  font-family: var(--font-head); font-size: clamp(1.375rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.35; color: var(--ink);
}
.statement span { color: var(--blue-600); }

/* ---------- Services ---------- */
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 76px); }
.subnav {
  position: sticky; top: var(--header-h); z-index: 90;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav__inner { position: relative; }
/* position: relative makes link.offsetLeft measure from the list (used to centre the active link).
   --fade-l / --fade-r are set by JS only on the side that has hidden links. */
.subnav__list {
  position: relative;
  display: flex; gap: 6px; padding: 10px 2px; overflow-x: auto; scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent 100%);
}
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list li { flex: none; }
.subnav__list a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-head); font-size: 0.875rem; font-weight: 600; color: var(--body); white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.subnav__list a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.subnav__list a.is-active { background: var(--navy-900); color: #fff; }
.subnav__arrow {
  position: absolute; top: 50%; z-index: 1; transform: translateY(-50%);
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.subnav__arrow:hover { border-color: var(--blue-600); color: var(--blue-600); box-shadow: var(--shadow-md); }
.subnav__arrow[hidden] { display: none; }
.subnav__arrow .icon { width: 18px; height: 18px; }
.subnav__arrow--prev { left: calc(var(--gutter) - 6px); }
.subnav__arrow--next { right: calc(var(--gutter) - 6px); }

.service__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .service__grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
  .service__intro { position: sticky; top: calc(var(--header-h) + 96px); }
}
.service__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.service__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-600)); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(29, 91, 255, 0.6);
}
.service__num { font-family: var(--font-head); font-size: 0.875rem; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.service__tagline { margin-top: 12px; font-family: var(--font-head); font-size: 1.125rem; font-weight: 600; color: var(--blue-600); }
.service__desc { margin-top: 16px; }
.service__intro .btn-row { margin-top: 28px; }
.service__intro .btn { white-space: normal; text-align: left; }
.service__body { display: grid; gap: 20px; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 1.0625rem; font-weight: 700; }
.panel h3 .icon { width: 20px; height: 20px; color: var(--blue-600); }
.panel--accent { border-color: var(--blue-100); background: var(--blue-50); }
.panel p { font-size: 0.9375rem; }

/* tabs */
.tabs__list { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-bottom: 16px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tabs__list [role="tab"] {
  padding: 8px 18px; border: 0; border-radius: 999px; background: transparent;
  font-family: var(--font-head); font-size: 0.875rem; font-weight: 700; color: var(--body);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.tabs__list [role="tab"]:hover { color: var(--ink); }
.tabs__list [role="tab"][aria-selected="true"] { background: #fff; color: var(--blue-600); box-shadow: var(--shadow-sm); }
.tabs__panel { animation: fade-up 0.4s ease; }
.tabs__panel[hidden] { display: none; }

/* ---------- Careers ---------- */
.ways-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .ways-grid { grid-template-columns: 1fr 1fr; } }
.way-card { padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.way-card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 1.25rem; }
.way-card p { font-size: 0.9375rem; }
.way-card .pill-list { margin-top: 18px; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter button {
  padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-family: var(--font-head); font-size: 0.875rem; font-weight: 700; color: var(--body);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.filter button:hover { border-color: var(--blue-600); color: var(--blue-600); }
.filter button[aria-pressed="true"] { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }

.role-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .role-grid { grid-template-columns: repeat(3, 1fr); } }
.role-card[hidden] { display: none; }
.role-card { display: flex; flex-direction: column; gap: 14px; }
.role-card h3 { margin: 0; }
.role-card .cap-card__icon { margin-bottom: 0; }
.role-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.badge--employment { background: var(--blue-50); color: var(--blue-600); }
.badge--project { background: var(--teal-50); color: var(--teal-700); }
.role-card details { border-top: 1px solid var(--line); padding-top: 12px; }
.role-card summary {
  display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: 0.875rem; font-weight: 700; color: var(--ink);
}
.role-card summary::-webkit-details-marker { display: none; }
.role-card summary .icon { width: 18px; height: 18px; transition: transform 0.25s; }
.role-card details[open] summary .icon { transform: rotate(180deg); }
.role-card details .checklist { margin-top: 14px; }
.role-card details .checklist li { font-size: 0.875rem; }
.role-card .text-link { margin-top: auto; }

.talent-band { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .talent-band { grid-template-columns: 1.3fr 0.7fr; } }
.talent-band .btn-row { justify-content: flex-start; }
@media (min-width: 960px) { .talent-band .btn-row { justify-content: flex-end; } }

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .form-layout { grid-template-columns: 0.75fr 1.25fr; gap: 56px; } .form-aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.form-aside .checklist { margin-top: 24px; }

.form-card {
  position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .form-card { padding: 40px; } }
.form-card__title { margin-bottom: 6px; font-size: 1.375rem; font-weight: 800; }
.form-card__lead { margin-bottom: 28px; font-size: 0.9375rem; }
.form-section { margin: 32px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.form-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field--full { grid-column: 1 / -1; }
.field { min-width: 0; border: 0; margin: 0; padding: 0; }
.field > label:not(.consent), .field legend, .field__label {
  display: block; margin-bottom: 8px; padding: 0;
  font-family: var(--font-head); font-size: 0.875rem; font-weight: 700; color: var(--ink);
}
.req { color: #c2410c; }
.optional { font-family: var(--font-body); font-weight: 400; color: var(--muted); }

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid #d5deea; border-radius: var(--radius-sm); background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344546c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: #94a3b8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b8c6d8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(29, 91, 255, 0.15);
}
.field__hint { margin-top: 6px; font-size: 0.8125rem; color: var(--muted); }
.field__error { display: none; margin-top: 6px; font-size: 0.8125rem; font-weight: 600; color: #b91c1c; }
.field.is-invalid input:not([type="checkbox"]), .field.is-invalid select, .field.is-invalid textarea { border-color: #dc2626; }
.field.is-invalid .field__error { display: block; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.check-grid--wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.check {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1.5px solid #d5deea; border-radius: var(--radius-sm); background: #fff; cursor: pointer;
  font-size: 0.9063rem; line-height: 1.3; color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s;
}
.check:hover { border-color: #b8c6d8; }
.check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--blue-600); }
.check:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); }
.check:has(input:focus-visible) { outline: 3px solid var(--blue-500); outline-offset: 2px; }

/* "Attach it in the email" note (replaces file uploads) */
.attach-note {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px;
  border: 1.5px dashed #b8c6d8; border-radius: var(--radius-sm); background: var(--bg-soft);
  font-size: 0.875rem; line-height: 1.55; color: var(--body);
}
.attach-note strong { display: block; margin-bottom: 2px; font-family: var(--font-head); color: var(--ink); }
.attach-note__icon {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--blue-600);
}
.attach-note__icon .icon { width: 20px; height: 20px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.875rem; line-height: 1.5; color: var(--body); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue-600); }

.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.form-actions p { font-size: 0.8125rem; color: var(--muted); }
.form-success { text-align: center; padding: 32px 0 8px; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success__icon {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--teal-50); color: var(--teal-700);
  animation: pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.form-success__icon .icon { width: 34px; height: 34px; stroke-width: 2.5; }
.form-success h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.form-success p { max-width: 480px; margin-inline: auto; }

.attach-reminder {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px !important; padding: 8px 14px;
  border-radius: 999px; background: #fffbeb; border: 1px solid #fde68a;
  font-size: 0.875rem; font-weight: 600; color: #92400e;
}
.attach-reminder .icon { width: 16px; height: 16px; }

.send-options { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.send-options__label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.send-options__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.send-options__copied { min-height: 1.4em; margin-top: 10px !important; font-size: 0.8125rem; font-weight: 600; color: var(--teal-700); }

.email-preview { margin-top: 20px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); }
.email-preview summary {
  padding: 12px 16px; cursor: pointer;
  font-family: var(--font-head); font-size: 0.875rem; font-weight: 700; color: var(--ink);
}
.email-preview dl {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; padding: 0 16px 12px;
  font-size: 0.8125rem;
}
.email-preview dt { color: var(--muted); }
.email-preview dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }
.email-preview pre {
  max-height: 280px; overflow: auto; margin: 0; padding: 14px 16px;
  border-top: 1px solid var(--line); background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font: 0.8125rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--body); white-space: pre-wrap; word-break: break-word;
}
.form-success [data-form-again] { margin-top: 20px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.form-success [data-form-again]:hover .icon { transform: translateX(-3px); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .contact-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.contact-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card .feature__icon { width: 40px; height: 40px; }
.contact-card h3 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-card p, .contact-card address { font-style: normal; font-size: 0.9375rem; color: var(--ink); }
.contact-card .pending { color: #b45309; }

.enquiry-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .enquiry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .enquiry-grid { grid-template-columns: repeat(3, 1fr); } }
.enquiry-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: left; color: var(--body);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.enquiry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-100); text-decoration: none; }
.enquiry-card h3 { margin-bottom: 4px; font-size: 1rem; font-weight: 700; }
.enquiry-card p { font-size: 0.875rem; }
.enquiry-card__go { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 0.8125rem; font-weight: 700; color: var(--blue-600); }
.enquiry-card__go .icon { width: 14px; height: 14px; transition: transform 0.2s; }
.enquiry-card:hover .enquiry-card__go .icon { transform: translateX(3px); }

.partner-band { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .partner-band { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin: 40px 0 12px; font-size: 1.375rem; font-weight: 800; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1rem; }
.prose p + p { margin-top: 12px; }
.prose ul { margin-top: 12px; padding-left: 20px; list-style: disc; }
.prose li + li { margin-top: 6px; }
.draft-banner {
  display: flex; gap: 10px; margin-bottom: 40px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 0.875rem;
}
.draft-banner .icon { width: 18px; height: 18px; margin-top: 2px; }

/* ---------- 404 ---------- */
.hero--404 { min-height: calc(100vh - var(--header-h)); display: grid; align-items: center; }
.err-code {
  font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(90deg, #6f9bff, var(--teal-400)); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Unconfirmed details (email/phone/hours). Remove the class once real values are added. */
.pending {
  color: #fbbf24; border-bottom: 1px dashed currentColor;
}

/* ==========================================================================
   Motion
   All of it is switched off by the prefers-reduced-motion rule near the top.
   ========================================================================== */

/* ---------- Scroll reveal (only active when JS runs) ----------
   JS sets --rd (stagger delay) and removes .reveal once the element is in,
   so components get their own hover transitions back. */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rd, 0ms),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rd, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

@keyframes fade-up { from { opacity: 0; transform: translateY(28px); } }
@keyframes fade-in-scale { from { opacity: 0; transform: translateY(20px) scale(0.96); } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-80px, 60px) scale(1.15); }
  100% { transform: translate(40px, 120px) scale(0.95); }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(45, 212, 191, 0); }
}
@keyframes dots-move { to { background-position: 24px 24px; } }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--teal-400));
  transform: scaleX(var(--progress, 0)); transform-origin: left;
  pointer-events: none;
}

/* ---------- Hero entrance + ambient motion ---------- */
.hero__grid { z-index: 1; }
.hero__tags, .hero h1, .hero__lead, .hero__text, .hero .btn-row, .hero__audience {
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.hero h1          { animation-delay: 0.1s; }
.hero__lead       { animation-delay: 0.25s; }
.hero__text       { animation-delay: 0.35s; }
.hero .btn-row    { animation-delay: 0.45s; }
.hero__audience   { animation-delay: 0.55s; }
.hero .playground-wrap { animation: fade-in-scale 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s backwards; }

.hero h1 .accent {
  background-image: linear-gradient(90deg, #6f9bff, var(--teal-400), #6f9bff);
  background-size: 200% auto;
  animation: shimmer 8s linear infinite;
}

/* slow drifting glow behind the hero */
.hero::after {
  content: ""; position: absolute; top: -200px; right: -160px;
  width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.16), transparent 65%);
  animation: drift 20s ease-in-out infinite alternate;
}

/* hero tags: hover */
.hero__tags li { transition: background-color 0.2s, border-color 0.2s, transform 0.2s; }
.hero__tags li:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }

/* ---------- Hero annotation playground (assets/js/playground.js) ---------- */
.playground {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(15, 34, 64, 0.9), rgba(7, 17, 34, 0.95));
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(45, 212, 191, 0.05);
}
.playground__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem; color: #a9b7cc;
}
.playground__title { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 0.9375rem; font-weight: 700; color: #fff; }
.playground__sub { display: block; margin-top: 2px; padding-left: 16px; font-size: 0.75rem; color: #8fa1bd; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); animation: pulse-dot 2s ease-in-out infinite; }
.playground__count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.playground__count b { color: #fff; }

.playground__stage {
  position: relative; aspect-ratio: 1 / 1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 32px 32px;
  cursor: crosshair;
  touch-action: none; /* lets touch users draw boxes */
  user-select: none; -webkit-user-select: none;
}
@media (min-width: 560px) { .playground__stage { aspect-ratio: 4 / 3; } }
.playground__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.playground__hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(7, 17, 34, 0.8);
  font-size: 0.75rem; color: #dbe4f3;
  transition: opacity 0.4s, transform 0.4s;
}
.playground__hint .icon { width: 14px; height: 14px; color: var(--teal-400); }
.playground__hint.is-hidden { opacity: 0; transform: translate(-50%, 8px); }

.playground__done {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 20px; text-align: center; overflow-y: auto;
  background: rgba(7, 17, 34, 0.78);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: fade-up 0.5s ease backwards;
}
.playground__done[hidden] { display: none; }
.playground__done-eyebrow {
  font-family: var(--font-head); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-400);
}
.playground__done-title { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.1; color: #fff; }
.playground__summary { display: flex; gap: 8px; margin: 6px 0 4px; }
.playground__summary div {
  min-width: 84px; padding: 8px 12px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04);
}
.playground__summary dt { font-size: 0.6875rem; color: #8fa1bd; }
.playground__summary dd { margin: 0; font-family: var(--font-head); font-size: 1.125rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.playground__done-text { max-width: 380px; font-size: 0.8125rem; color: #c3cee0; }
.playground__done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }

.playground__tools {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.playground__classes { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: transparent;
  font-size: 0.75rem; font-weight: 600; color: #c3cee0;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s;
}
.chip:hover { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.chip:active { transform: scale(0.95); }
.chip kbd {
  display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: -4px;
  border-radius: 5px; background: var(--c); color: var(--navy-950);
  font-family: var(--font-head); font-size: 0.6875rem; font-weight: 800; line-height: 1;
}
.chip__count {
  min-width: 22px; padding: 1px 6px; border-radius: 999px; text-align: center;
  background: rgba(255, 255, 255, 0.08); color: #c3cee0;
  font-size: 0.6875rem; font-variant-numeric: tabular-nums;
  transition: background-color 0.2s, color 0.2s;
}
.chip__count.is-bump { animation: count-bump 0.4s ease; }
@keyframes count-bump { 50% { transform: scale(1.35); } }
.chip--link { border-color: rgba(255, 255, 255, 0.3); color: #fff; font-size: 0.8125rem; }
.chip--link:hover { text-decoration: none; border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.chip--link .icon { width: 14px; height: 14px; }
.chip[aria-pressed="true"] {
  border-color: var(--c); color: #fff;
  background: rgba(255, 255, 255, 0.06);
  background: color-mix(in srgb, var(--c) 20%, transparent);
}
.chip--icon { flex: none; width: 32px; padding: 0; justify-content: center; }
.chip--ghost .icon { transition: transform 0.4s; }
.chip--ghost:hover .icon { transform: rotate(-180deg); }
.chip--solid { border-color: var(--teal-400); background: var(--teal-400); color: var(--navy-950); font-size: 0.8125rem; }
.chip--solid:hover { background: #5eead4; color: var(--navy-950); }

.playground__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.playground__stats div { padding: 10px 16px; border-right: 1px solid rgba(255, 255, 255, 0.06); }
.playground__stats div:nth-child(2n) { border-right: 0; }
.playground__stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.playground__stats dt { font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; color: #8fa1bd; }
.playground__stats dd { margin: 2px 0 0; font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
@media (min-width: 560px) {
  .playground__stats { grid-template-columns: repeat(4, 1fr); }
  .playground__stats div:nth-child(2n) { border-right: 1px solid rgba(255, 255, 255, 0.06); }
  .playground__stats div:last-child { border-right: 0; }
  .playground__stats div:nth-child(-n+2) { border-bottom: 0; }
}

.playground__progress { height: 3px; background: rgba(255, 255, 255, 0.06); }

.playground-caption {
  display: flex; gap: 10px; margin-top: 16px; padding-inline: 4px;
  font-size: 0.8125rem; color: #8fa1bd;
}
.playground-caption .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--teal-400); }
.playground-caption a { color: var(--teal-400); font-weight: 600; white-space: nowrap; }
.playground__progress span {
  display: block; height: 100%; width: var(--done, 0%);
  background: linear-gradient(90deg, var(--blue-600), var(--teal-400));
  transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.img-slot__tag::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: middle;
  border-radius: 50%; background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ---------- Buttons: shine sweep ---------- */
.btn--primary, .btn--white { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after, .btn--white::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn--white::after { background: linear-gradient(90deg, transparent, rgba(29, 91, 255, 0.15), transparent); }
.btn--primary:hover::after, .btn--white:hover::after { left: 125%; }
.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- Cursor spotlight on cards (--mx/--my set by JS) ---------- */
.cap-card, .feature, .step { position: relative; isolation: isolate; }
.cap-card::after, .feature::after, .step::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(29, 91, 255, 0.09), transparent 65%);
  opacity: 0; transition: opacity 0.3s;
}
.cap-card:hover::after, .feature:hover::after, .step:hover::after { opacity: 1; }

/* capability cards */
.cap-card__icon { transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1), background-color 0.25s, color 0.25s; }
.cap-card:hover .cap-card__icon { transform: translateY(-3px) rotate(-8deg); background: var(--blue-600); color: #fff; }
.cap-card:nth-child(even):hover .cap-card__icon { background: var(--teal-600); color: #fff; }

/* why-choose features */
.feature { transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.feature__icon { transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1), background 0.25s, color 0.25s; }
.feature:hover .feature__icon { transform: scale(1.08); background: linear-gradient(135deg, var(--blue-600), var(--teal-600)); color: #fff; }

/* stats */
.stat { transition: background-color 0.25s; }
.stat:hover { background: rgba(255, 255, 255, 0.04); }

/* industries */
.industry { transition: border-color 0.2s, background-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.industry:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.industry .icon { transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); }
.industry:hover .icon { transform: scale(1.18) rotate(-6deg); }

/* process steps */
.step { transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.step::before { transition: transform 0.3s; transform-origin: left bottom; }
.step:hover::before { transform: scale(1.12); }

/* closing CTA: slowly moving dot pattern */
.cta-band::before { animation: dots-move 6s linear infinite; }
