/* ==========================================================================
   XXXXXX — site styles
   Layout idea: lifted objects on a cool-white stage. Soft vignettes and long,
   soft shadows are borrowed from the logo; the logo's "X • ." dot trail is the
   recurring mark. Boldness lives in the hero logo reveal; everything else stays quiet.
   ========================================================================== */

:root {
  /* Color: globally updated to #FAFAFA background and #000000 text */
  --bg: #FAFAFA;          /* off-white global background */
  --surface: #FFFFFF;
  --surface-2: #F0F0F0;
  --ink: #000000;         /* 21:1 on white */
  --muted: #000000;       /* body text, descriptions, labels: black */
  --line: #E0E0E0;
  --brand: #3F8CEE;       /* accents, shapes */
  --brand-ink: #3F8CEE;   /* buttons + links */
  --brand-soft: rgba(63, 140, 238, 0.1);
  --accent-text: #3F8CEE;
  --deep: #FAFAFA;
  --on-deep: #000000;
  --on-deep-muted: #000000;
  --danger: #C42B2B;
  --stage-1: #FAFAFA;
  --stage-2: #F5F5F5;
  --stage-3: #EEEEEE;
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, .05), 0 8px 20px -10px rgba(0, 0, 0, .08);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .06), 0 12px 28px -8px rgba(0, 0, 0, .10);
  --logo-shadow: drop-shadow(0 10px 12px rgba(0, 0, 0, .10));

  /* Type */
  --font-display: "Rubik", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Shape + rhythm */
  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 26px;
  --radius-xl: 36px;
  --gutter: clamp(16px, 4.5vw, 40px);
  --maxw: 1200px;
  --header-h: 64px;
  --section: clamp(72px, 10vw, 136px);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: light;
  interpolate-size: allow-keywords;
}

/* Dark mode overrides disabled so they do not override the new colors */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #FAFAFA;
    --surface: #FFFFFF;
    --surface-2: #F0F0F0;
    --ink: #000000;
    --muted: #000000;
    --line: #E0E0E0;
    --brand: #3F8CEE;
    --brand-ink: #3F8CEE;
    --brand-soft: rgba(63, 140, 238, 0.1);
    --accent-text: #3F8CEE;
    --deep: #FAFAFA;
    --on-deep: #000000;
    --on-deep-muted: #000000;
    --danger: #C42B2B;
    --stage-1: #FAFAFA;
    --stage-2: #F5F5F5;
    --stage-3: #EEEEEE;
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, .05), 0 8px 20px -10px rgba(0, 0, 0, .08);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .06), 0 12px 28px -8px rgba(0, 0, 0, .10);
    --logo-shadow: drop-shadow(0 10px 12px rgba(0, 0, 0, .10));
    color-scheme: light;
  }
}
:root[data-theme="dark"] {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-2: #F0F0F0;
  --ink: #000000;
  --muted: #000000;
  --line: #E0E0E0;
  --brand: #3F8CEE;
  --brand-ink: #3F8CEE;
  --brand-soft: rgba(63, 140, 238, 0.1);
  --accent-text: #3F8CEE;
  --deep: #FAFAFA;
  --on-deep: #000000;
  --on-deep-muted: #000000;
  --danger: #C42B2B;
  --stage-1: #FAFAFA;
  --stage-2: #F5F5F5;
  --stage-3: #EEEEEE;
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, .05), 0 8px 20px -10px rgba(0, 0, 0, .08);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .06), 0 12px 28px -8px rgba(0, 0, 0, .10);
  --logo-shadow: drop-shadow(0 10px 12px rgba(0, 0, 0, .10));
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::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;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: #000000; text-decoration: none; }
p { margin: 0; color: #000000; }
ul, ol { margin: 0; }
button { font: inherit; color: inherit; }
label { color: #000000; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #000000; outline-offset: 2px; border-radius: 8px; }
::selection { background: #000000; color: #FAFAFA; }

.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;
}
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: #000000; color: #FAFAFA; padding: 12px 18px; border-radius: 12px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--section); background-color: var(--bg); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); background-color: var(--bg); }
.section--flush-top { padding-top: 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
  color: #000000;
}
.display { font-size: clamp(2.75rem, 1.2rem + 5.4vw, 5.5rem); font-weight: 800; letter-spacing: -.045em; line-height: .95; color: #000000; }
.h1 { font-size: clamp(2.5rem, 1.35rem + 4.8vw, 5rem); font-weight: 800; letter-spacing: -.04em; line-height: .97; color: #000000; }
.h2 { font-size: clamp(2rem, 1.2rem + 3.1vw, 3.5rem); font-weight: 750; letter-spacing: -.035em; color: #000000; }
.h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); letter-spacing: -.015em; line-height: 1.2; font-weight: 650; color: #000000; }
.lead { font-size: clamp(1.0625rem, .98rem + .45vw, 1.3125rem); line-height: 1.55; color: #000000; max-width: 58ch; }
.muted { color: #000000; }
.small { font-size: .9375rem; color: #000000; }
.accent { color: #000000; }
.tabular { font-variant-numeric: tabular-nums; }

/* The logo's dot trail after a headline: "X • ." */
.nw { white-space: nowrap; }
.trail {
  display: inline-block; position: relative;
  width: .5em; height: .7em; margin-left: .04em; vertical-align: baseline;
}
.trail i {
  position: absolute; border-radius: 50%; background: var(--brand);
  transform: scale(0); transition: transform .7s var(--ease-spring);
}
.trail i:first-child { width: .2em; height: .2em; left: .02em; bottom: .3em; transition-delay: .15s; }
.trail i:last-child { width: .11em; height: .11em; left: .3em; bottom: .02em; transition-delay: .32s; }
.is-in .trail i, .trail.is-in i, .hero .trail i, .page-hero .trail i { transform: scale(1); }
:is(.hero, .page-hero) .trail i:first-child { animation: dot-pop .7s var(--ease-spring) both 1.15s; }
:is(.hero, .page-hero) .trail i:last-child { animation: dot-pop .7s var(--ease-spring) both 1.3s; }

/* Eyebrow pill */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  max-width: 100%; text-wrap: balance; line-height: 1.35; box-sizing: border-box;
}
.eyebrow .pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.eyebrow .pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--brand); opacity: 0; animation: ring 2.4s var(--ease-out) infinite;
}
.kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }

/* Section heads */
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head--split {
  max-width: none; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 24px clamp(32px, 6vw, 96px);
}
.sec-head--split .lead, .sec-head--split .head-action { justify-self: end; }
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }
@media (max-width: 860px) {
  .sec-head--split { grid-template-columns: 1fr; }
  .sec-head--split .lead, .sec-head--split .head-action { justify-self: start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font-body); letter-spacing: .01em; white-space: nowrap; cursor: pointer;
  color: #000000;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); stroke: currentColor; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: #000000; color: #FFFFFF; border-color: #000000;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: #262626; border-color: #262626; box-shadow: var(--shadow-lift); }
.btn-secondary { background: var(--surface); color: #000000; border-color: #000000; box-shadow: var(--shadow-soft); }
.btn-secondary:hover { background: #F0F0F0; border-color: #000000; }
.btn-light { background: #000000; color: #FFFFFF; border-color: #000000; box-shadow: var(--shadow-soft); }
.btn-light:hover { background: #262626; border-color: #262626; box-shadow: var(--shadow-lift); }
.btn-outline-light { color: #000000; border-color: #000000; }
.btn-outline-light:hover { background: rgba(0, 0, 0, .06); }
.btn-block { width: 100%; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 650; color: #000000;
}
.text-link svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); stroke: #000000; }
.text-link:hover svg { transform: translateX(4px); }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand svg { width: 40px; height: auto; fill: var(--brand); transition: transform .5s var(--ease-spring); flex-shrink: 0; }
.brand:hover svg { transform: rotate(-4deg) scale(1.04); }
.brand-text { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; color: #000000; }
.nav-links {
  display: flex; gap: 2px; list-style: none; margin: 0; padding: 4px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface);
}
.nav-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: .9375rem; font-weight: 550; color: #000000; transition: color .2s, background-color .2s;
}
.nav-links a:hover { background: rgba(0, 0, 0, .05); color: #000000; }
.nav-links a[aria-current="page"] { background: #000000; color: #FFFFFF; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center; position: relative;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .4s var(--ease-out), opacity .2s;
}
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand);
  transform-origin: left; transform: scaleX(0); pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: grow-x linear both; animation-timeline: scroll(root); }
}

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
  background: var(--bg); padding: 16px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu nav ul { list-style: none; padding: 0; margin: 0; }
.m-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 700; letter-spacing: -.03em;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms + 60ms);
}
.m-link svg { width: 24px; height: 24px; color: var(--muted); }
.m-link[aria-current="page"] { color: var(--brand); }
.mobile-menu.is-open .m-link { opacity: 1; transform: none; }
.mobile-menu .m-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
.mobile-menu .m-foot p { color: var(--muted); font-size: .9375rem; }
html.menu-open { overflow: hidden; }

@media (max-width: 860px) {
  .nav-links, .nav-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 861px) { .mobile-menu { display: none; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(56px, 8vw, 104px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 -10% 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--brand) 26%, transparent) 1.2px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 38%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 38%, #000 0%, transparent 70%);
  opacity: .7;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .9375rem; }
.avatars { display: flex; }
.avatars span {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -10px;
  display: grid; place-items: center; font: 700 .8125rem/1 var(--font-display); color: #fff;
  background: var(--brand-ink);
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: #0B1B33; }
.avatars span:nth-child(3) { background: #6EA9F5; color: #0B1B33; }
.avatars span:nth-child(4) { background: var(--surface-2); color: var(--ink); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

/* Kinetic headline: words rise out of a blur, one after another */
.split .w { display: inline-block; white-space: nowrap; animation: word-in 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
.hero-copy > .eyebrow { animation: fade-up .8s var(--ease-out) both; }
.hero-copy > .lead { animation: fade-up .9s var(--ease-out) both .55s; }
.hero-copy > .hero-actions { animation: fade-up .9s var(--ease-out) both .7s; }
.hero-copy > .hero-proof { animation: fade-up .9s var(--ease-out) both .85s; }

/* The stage: the logo reveal, lifted objects on a vignette */
.stage {
  position: relative; width: 100%; max-width: 580px; margin-inline: auto; aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; container-type: inline-size;
  background: radial-gradient(ellipse 72% 72% at 50% 46%, var(--stage-1) 0%, var(--stage-2) 58%, var(--stage-3) 100%);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
  animation: fade-in 1s var(--ease-out) both;
}
.stage-logo { position: absolute; left: 50%; top: 47%; width: 60%; transform: translate(-50%, -50%); }
.stage-logo svg { width: 100%; height: auto; overflow: visible; fill: var(--brand); filter: var(--logo-shadow); }
.stage-logo .lg-x, .stage-logo .lg-dot, .stage-logo .lg-dot2 { transform-box: fill-box; }
.stage-logo .lg-x { transform-origin: 50% 100%; animation: x-in 1.1s var(--ease-out) both .25s; }
.stage-logo .lg-dot { transform-origin: 50% 100%; animation: dot-drop 1.25s linear both .7s, bob 5s ease-in-out infinite 2.4s; }
.stage-logo .lg-dot2 { transform-origin: 50% 50%; animation: dot-pop .8s var(--ease-spring) both 1.35s; }

.float-card {
  position: absolute; z-index: 2;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 4cqi; box-shadow: var(--shadow-lift);
  padding: 3cqi; display: grid; gap: 2cqi; font-size: clamp(11px, 2.4cqi, 14px); color: var(--muted);
  animation: pop-in .8s var(--ease-spring) both, float 7s ease-in-out infinite;
}
.float-card b { color: var(--ink); font: 700 1em/1.1 var(--font-display); letter-spacing: -.01em; }
.fc-1 { top: 7%; left: 6%; width: 34cqi; animation-delay: 1.6s, 2.4s; }
.fc-2 { top: 9%; right: 6%; width: 30cqi; animation-delay: 1.75s, 3.1s; }
.fc-3 { bottom: 8%; left: 8%; width: 38cqi; animation-delay: 1.9s, 2.8s; }
.fc-4 { bottom: 10%; right: 7%; width: 26cqi; animation-delay: 2.05s, 3.6s; }
.fc-row { display: flex; align-items: center; gap: 2cqi; }
.mini-bars { display: flex; align-items: flex-end; gap: 1.4cqi; height: 9cqi; }
.mini-bars i { flex: 1; border-radius: 1cqi; background: var(--brand); height: var(--h); opacity: .9; transform-origin: bottom; animation: bar-up 1s var(--ease-spring) both; animation-delay: calc(1.9s + var(--i) * 80ms); }
.mini-bars i:nth-child(odd) { background: color-mix(in srgb, var(--brand) 40%, var(--surface-2)); }
.check { width: 7cqi; height: 7cqi; border-radius: 50%; background: var(--brand-ink); display: grid; place-items: center; flex: none; }
.check svg { width: 60%; height: 60%; stroke: #fff; }
.sk { display: block; height: 1.6cqi; min-height: 6px; border-radius: 99px; background: var(--surface-2); width: var(--w, 100%); }
.sk.b { background: var(--brand); }
.sk.d { background: color-mix(in srgb, var(--ink) 70%, transparent); }
.toggle-ui { width: 12cqi; height: 7cqi; border-radius: 99px; background: var(--brand-ink); position: relative; flex: none; }
.toggle-ui::after { content: ""; position: absolute; top: 12%; right: 6%; width: 5.4cqi; height: 76%; border-radius: 50%; background: #fff; }

/* ---------- Marquee (client wordmarks) ---------- */
.logos { padding-block: clamp(28px, 4vw, 44px); border-block: 1px solid var(--line); }
.logos-label { text-align: center; color: var(--muted); font-size: .875rem; margin-bottom: 18px; letter-spacing: .02em; }
.marquee {
  --gap: clamp(36px, 6vw, 72px);
  display: flex; overflow: hidden; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: var(--gap); padding-right: var(--gap); flex-shrink: 0; min-width: 100%;
  justify-content: space-around; animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--muted); opacity: .85;
  font: 700 clamp(1.1rem, 1rem + .5vw, 1.4rem)/1 var(--font-display); letter-spacing: -.02em;
}
.wordmark .shp { width: 22px; height: 22px; background: currentColor; flex: none; }
.shp.c { border-radius: 50%; }
.shp.s { border-radius: 6px; transform: rotate(45deg) scale(.82); }
.shp.t { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.shp.r { border-radius: 50% 50% 4px 50%; }
.wordmark.thin { font-weight: 500; letter-spacing: .06em; }

/* ---------- Bento (services) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; grid-column: span 2; isolation: isolate; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 14px; min-height: 250px;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tile p { color: var(--muted); }
.tile .tile-foot { margin-top: auto; }
.tile--feature {
  grid-column: span 4; grid-row: span 2; border: 1px solid var(--line); color: #000000; min-height: 520px;
  background: var(--surface); box-shadow: var(--shadow-soft);
}
.tile--feature p { color: #000000; opacity: 1; }
.tile--feature .icon { background: #F0F0F0; color: #000000; border: 1px solid var(--line); }
.tile--wide { grid-column: span 4; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--brand-soft); color: #000000; border: 1px solid var(--line);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 8%, transparent), transparent 62%);
}
.spot:hover::before { opacity: 1; }
.tile--feature.spot::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 0, 0, .04), transparent 62%); }

/* Code window in the feature tile: lines "type" in */
.codewin {
  margin-top: 4px; margin-bottom: 8px; border-radius: 18px; background: #F8F8F8;
  border: 1px solid var(--line); padding: 16px 18px 20px; display: grid; gap: 11px;
  box-shadow: none;
}
.codewin .bar { display: flex; gap: 6px; margin-bottom: 6px; }
.codewin .bar i { width: 10px; height: 10px; border-radius: 50%; background: #CCCCCC; }
.ln { display: flex; gap: 8px; padding-left: calc(var(--ind, 0) * 18px); clip-path: inset(0 100% 0 0); transition: clip-path .7s steps(14, end); transition-delay: calc(var(--i) * 140ms + 200ms); }
.ln i { height: 9px; border-radius: 9px; width: var(--w); background: #333333; }
.ln i.k { background: #000000; }
.ln i.s { background: #555555; }
.ln i.c { background: #CCCCCC; }
.is-in .ln { clip-path: inset(0 0 0 0); }
.caret { width: 9px; height: 16px; background: #000000; border-radius: 2px; animation: blink 1s steps(2, start) infinite; margin-left: calc(var(--ind, 0) * 18px); }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--wide { grid-column: span 1; }
  .tile--feature { grid-column: span 2; grid-row: auto; min-height: 0; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--feature, .tile--wide { grid-column: auto; min-height: 0; }
}

/* ---------- Stats with odometers ---------- */
.stats {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface); color: #000000; border-radius: var(--radius-xl);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px;
}
:root[data-theme="dark"] .stats { box-shadow: var(--shadow-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stats { box-shadow: var(--shadow-soft); } }
.stats::before, .stats::after { display: none; }
.stat { display: grid; gap: 8px; align-content: start; }
.stat-num { font: 800 clamp(2.75rem, 1.9rem + 3.2vw, 4.5rem)/1 var(--font-display); letter-spacing: -.04em; display: flex; align-items: flex-start; color: #000000; }
.stat-num .plus { color: #000000; }
.stat p { color: #000000; font-size: .9375rem; max-width: 22ch; }
.odo { display: inline-block; height: 1em; overflow: hidden; }
.odo-col { display: flex; flex-direction: column; transform: translateY(0); transition: transform 2.2s var(--ease-out); transition-delay: calc(var(--c, 0) * 120ms); }
.odo-col span { display: block; height: 1em; }
.is-in .odo-col { transform: translateY(calc(var(--n) * -1em)); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Process: sticky stacking cards ---------- */
.process { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.process-head { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 18px; justify-items: start; }
.stack { display: grid; gap: 22px; }
.stack-card {
  position: sticky; top: calc(var(--header-h) + 28px + var(--i) * 16px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(24px, 4vw, 40px); min-height: clamp(240px, 30vw, 320px); box-shadow: var(--shadow-soft);
  display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; align-content: start;
}
.stack-num {
  grid-row: span 3; font: 800 clamp(3rem, 2rem + 4vw, 5rem)/.85 var(--font-display); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.6px #000000;
}
.stack-card p { color: #000000; max-width: 46ch; }
.stack-card .chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mini-chip { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: .8125rem; font-weight: 600; color: #000000; border: 1px solid var(--line); }
@media (max-width: 920px) {
  .process { grid-template-columns: 1fr; }
  .process-head { position: static; }
  .stack-card { top: calc(var(--header-h) + 14px + var(--i) * 12px); min-height: 0; grid-template-columns: 1fr; }
  .stack-num { grid-row: auto; }
}

/* ---------- Product cards + CSS mock UIs ---------- */
.prod-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod-card {
  position: relative; display: flex; flex-direction: column; isolation: isolate;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.prod-card.pop { animation: pop-in .6s var(--ease-spring) both; }
.prod-thumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; container-type: inline-size;
  background: radial-gradient(ellipse 80% 80% at 50% 40%, var(--stage-1), var(--stage-2) 70%, var(--stage-3));
  display: grid; place-items: center; border-bottom: 1px solid var(--line);
}
.prod-body { padding: 24px; display: grid; gap: 10px; align-content: start; flex: 1; }
.prod-body p { color: var(--muted); }
.prod-body .text-link { margin-top: 4px; }
.prod-card .stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tag {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: var(--brand-soft); color: var(--accent-text); font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
@media (max-width: 960px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-rail {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .prod-rail::-webkit-scrollbar { display: none; }
  .prod-rail > * { scroll-snap-align: start; }
}
@media (max-width: 620px) { .prod-grid { grid-template-columns: 1fr; } }
.rail-hint { display: none; margin-top: 8px; color: var(--muted); font-size: .875rem; align-items: center; gap: 8px; }
@media (max-width: 960px) { .rail-hint { display: flex; } }

.win {
  width: 80%; background: var(--surface); border: 1px solid var(--line); border-radius: 3.5cqi;
  box-shadow: var(--shadow-lift); overflow: hidden; transition: transform .6s var(--ease-out);
}
.prod-card:hover .win, .prod-card:hover .phone { transform: translateY(-2%) scale(1.02); }
.win-bar { height: 7cqi; display: flex; align-items: center; gap: 1.4cqi; padding: 0 2.6cqi; border-bottom: 1px solid var(--line); }
.win-bar i { width: 1.8cqi; height: 1.8cqi; border-radius: 50%; background: var(--line); }
.win-body { padding: 3.4cqi; display: grid; gap: 2.6cqi; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqi; }
.kpi { border: 1px solid var(--line); border-radius: 2cqi; padding: 2cqi; display: grid; gap: 1.4cqi; }
.chart { height: 22cqi; display: flex; align-items: flex-end; gap: 2cqi; padding-top: 2cqi; border-bottom: 1px solid var(--line); }
.chart i {
  flex: 1; height: var(--h); border-radius: 1.4cqi 1.4cqi .4cqi .4cqi;
  background: linear-gradient(to top, color-mix(in srgb, var(--brand) 45%, transparent), var(--brand));
  transform-origin: bottom; transform: scaleY(.06); transition: transform 1.1s var(--ease-spring); transition-delay: calc(var(--i) * 70ms + 150ms);
}
.is-in .chart i { transform: scaleY(1); }

.phone {
  width: 34%; aspect-ratio: 9 / 18.5; border-radius: 6cqi; padding: 1.6cqi; background: var(--ink);
  box-shadow: var(--shadow-lift); transition: transform .6s var(--ease-out); position: relative; z-index: 1;
}
.phone-screen { width: 100%; height: 100%; border-radius: 4.6cqi; background: var(--surface); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; }
.phone-top { padding: 4cqi 3cqi 2cqi; display: grid; gap: 1.6cqi; }
.phone-list { padding: 0 2.4cqi; display: grid; gap: 1.8cqi; align-content: start; }
.phone-row { display: flex; align-items: center; gap: 1.8cqi; padding: 1.6cqi; border-radius: 2cqi; background: var(--surface-2); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease-out); transition-delay: calc(var(--i) * 110ms + 200ms); }
.is-in .phone-row { opacity: 1; transform: none; }
.phone-row .av { width: 5cqi; height: 5cqi; border-radius: 50%; background: var(--brand); flex: none; }
.phone-tabs { display: flex; justify-content: space-around; padding: 2.4cqi 2cqi 3cqi; border-top: 1px solid var(--line); }
.phone-tabs i { width: 3.4cqi; height: 3.4cqi; border-radius: 1cqi; background: var(--line); }
.phone-tabs i:first-child { background: var(--brand); }
.phone-ghost { position: absolute; width: 30%; aspect-ratio: 9 / 18.5; border-radius: 6cqi; background: color-mix(in srgb, var(--brand) 22%, var(--surface-2)); transform: translateX(46%) rotate(8deg); }

.chat { width: 78%; display: grid; gap: 2.4cqi; }
.bub { max-width: 72%; padding: 2.6cqi 3cqi; border-radius: 3.4cqi; display: grid; gap: 1.4cqi; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .5s, transform .6s var(--ease-spring); transition-delay: calc(var(--i) * 260ms + 200ms); }
.bub.me { justify-self: end; background: var(--brand-ink); border-color: transparent; }
.bub.me .sk { background: rgba(255, 255, 255, .7); }
.is-in .bub { opacity: 1; transform: none; }
.typing { justify-self: start; display: flex; gap: 1.2cqi; padding: 2.6cqi 3cqi; border-radius: 3.4cqi; background: var(--surface); border: 1px solid var(--line); }
.typing i { width: 1.8cqi; height: 1.8cqi; border-radius: 50%; background: var(--muted); animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }

.nodes { width: 82%; height: auto; overflow: visible; }
.nodes .edge { fill: none; stroke: color-mix(in srgb, var(--brand) 50%, var(--line)); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease-out); transition-delay: calc(var(--i) * 120ms + 200ms); }
.is-in .nodes .edge { stroke-dashoffset: 0; }
.nodes .node { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.nodes .node.b { fill: var(--brand); stroke: none; }
.nodes .pulse-ring { fill: none; stroke: var(--brand); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.6s var(--ease-out) infinite; }

.shop { width: 78%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqi; }
.shop-item { background: var(--surface); border: 1px solid var(--line); border-radius: 2.6cqi; padding: 2cqi; display: grid; gap: 1.6cqi; box-shadow: var(--shadow-soft); opacity: 0; transform: scale(.92); transition: opacity .5s, transform .6s var(--ease-spring); transition-delay: calc(var(--i) * 80ms + 150ms); }
.is-in .shop-item { opacity: 1; transform: none; }
.shop-item .img { aspect-ratio: 1; border-radius: 1.8cqi; background: color-mix(in srgb, var(--brand) 18%, var(--surface-2)); }
.shop-item:nth-child(3n+2) .img { background: color-mix(in srgb, var(--brand) 40%, var(--surface-2)); }

.codeview { width: 80%; background: #0E1A2E; border-radius: 3.4cqi; padding: 3cqi 3.4cqi 4cqi; display: grid; gap: 2.2cqi; box-shadow: var(--shadow-lift); }
.codeview .ln i { height: 1.9cqi; }
.codeview .bar { display: flex; gap: 1.4cqi; margin-bottom: 1cqi; }
.codeview .bar i { width: 1.9cqi; height: 1.9cqi; border-radius: 50%; background: rgba(255, 255, 255, .25); }

/* ---------- Testimonial ---------- */
.quote-wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
.quote-mark { font: 800 clamp(5rem, 3rem + 8vw, 10rem)/.7 var(--font-display); color: #000000; }
blockquote { margin: 0; display: grid; gap: 28px; }
blockquote p { font: 600 clamp(1.5rem, 1.05rem + 2vw, 2.6rem)/1.2 var(--font-display); letter-spacing: -.025em; text-wrap: pretty; color: #000000; }
.cite { display: flex; align-items: center; gap: 14px; }
.cite .face { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #000000; color: #FFFFFF; font: 800 1.25rem/1 var(--font-display); }
.cite b { display: block; color: #000000; }
.cite span { color: #000000; font-size: .9375rem; }
.rating { display: inline-flex; gap: 6px; }
.rating i { width: 10px; height: 10px; border-radius: 50%; background: #000000; }
@media (max-width: 640px) { .quote-wrap { grid-template-columns: 1fr; } .quote-mark { line-height: .5; } }

/* ---------- CTA panel ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; color: #000000; border-radius: var(--radius-xl);
  padding: clamp(44px, 8vw, 104px) clamp(24px, 6vw, 80px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: grid; gap: 22px; justify-items: start;
}
.cta h2 { max-width: 14ch; color: #000000; }
.cta p { color: #000000; max-width: 48ch; font-size: 1.125rem; }
.cta .hero-actions { margin-top: 6px; }
.cta-logo { position: absolute; right: -4%; bottom: -14%; width: min(56%, 560px); z-index: -1; fill: #000000; opacity: .04; }
.cta-logo .lg-dot, .cta-logo .lg-dot2 { transform-box: fill-box; transform-origin: 50% 100%; }
.cta.is-in .cta-logo .lg-dot { animation: dot-drop 1.25s linear both .2s; }
.cta.is-in .cta-logo .lg-dot2 { animation: dot-pop .8s var(--ease-spring) both .8s; }
@media (max-width: 640px) { .cta-logo { width: 90%; right: -20%; bottom: -6%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px 32px; }
.footer-brand { display: grid; gap: 18px; justify-items: start; align-content: start; }
.footer-brand svg { width: 84px; fill: var(--brand); }
.footer-brand p { color: #000000; max-width: 34ch; }
.f-title { font: 700 .8125rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #000000; margin-bottom: 12px; }
.f-list { list-style: none; padding: 0; display: grid; gap: 2px; }
.f-list a { display: inline-flex; align-items: center; min-height: 40px; color: #000000; transition: color .2s; }
.f-list a:hover { color: #000000; text-decoration: underline; }
address { font-style: normal; color: #000000; display: grid; gap: 8px; }
address a { color: #000000; min-height: 32px; display: inline-flex; align-items: center; }
address a:hover { color: #000000; text-decoration: underline; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: #000000; transition: color .2s, border-color .2s, transform .3s var(--ease-spring);
}
.socials a:hover { color: #000000; border-color: #000000; transform: translateY(-2px); background: #F0F0F0; }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  color: #000000; font-size: .875rem;
}
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; color: #000000; }
.footer-bottom a:hover { color: #000000; text-decoration: underline; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Sub-page hero ---------- */
.page-hero { position: relative; padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(48px, 7vw, 96px); isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--brand) 24%, transparent) 1.2px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 50% 80% at 85% 20%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 50% 80% at 85% 20%, #000, transparent 70%);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; font-size: .875rem; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { min-height: 32px; display: inline-flex; align-items: center; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px clamp(32px, 6vw, 80px); align-items: end; }
.page-hero-copy { display: grid; gap: 24px; justify-items: start; }
.page-hero-copy > * { animation: fade-up .9s var(--ease-out) both; }
.page-hero-copy > :nth-child(2) { animation-delay: .1s; }
.page-hero-copy > :nth-child(3) { animation-delay: .5s; }
.page-hero-copy > :nth-child(4) { animation-delay: .62s; }
.page-hero-copy .split { animation: none; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.collage { position: relative; aspect-ratio: 5 / 4.4; width: 100%; max-width: 520px; justify-self: end; }
.ph {
  position: absolute; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-lift);
  background: radial-gradient(ellipse at 30% 20%, var(--stage-1), var(--stage-2) 60%, var(--stage-3));
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted);
  animation: pop-in .9s var(--ease-spring) both;
}
.ph svg { width: 28%; max-width: 64px; opacity: .55; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ph-1 { left: 0; top: 6%; width: 58%; height: 70%; animation-delay: .3s; }
.ph-2 { right: 0; top: 0; width: 38%; height: 44%; animation-delay: .45s; background: linear-gradient(160deg, #3F8CEE, #2A74D8); color: #fff; border: 0; }
.ph-3 { right: 6%; bottom: 0; width: 46%; height: 46%; animation-delay: .6s; }
.ph-badge {
  position: absolute; left: 6%; bottom: 4%; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow-lift);
  animation: pop-in .8s var(--ease-spring) both .85s, float 7s ease-in-out infinite 2s;
}
.ph-badge b { font: 800 1.5rem/1 var(--font-display); letter-spacing: -.03em; }
.ph-badge span { font-size: .8125rem; color: var(--muted); line-height: 1.3; }
@media (max-width: 900px) { .collage { justify-self: start; max-width: 100%; } }

.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-head { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 18px; justify-items: start; }
.story-body { display: grid; gap: 22px; font-size: 1.125rem; color: var(--muted); }
.story-body p:first-child { color: var(--ink); font: 500 clamp(1.25rem, 1.05rem + .8vw, 1.6rem)/1.45 var(--font-display); letter-spacing: -.01em; }
.signature { display: flex; align-items: center; gap: 14px; margin-top: 8px; color: var(--ink); }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } .story-head { position: static; } }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mv-card { border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 56px); display: grid; gap: 18px; align-content: start; min-height: 320px; position: relative; overflow: hidden; isolation: isolate; }
.mv-card.light { background: var(--surface); border: 1px solid var(--line); color: #000000; }
.mv-card.dark { background: var(--surface); color: #000000; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.mv-card.dark p { color: #000000; }
.mv-card.light p { color: #000000; }
.mv-card .big-dot { position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: var(--brand); opacity: .05; z-index: -1; transition: transform 1.2s var(--ease-out); }
.mv-card.is-in .big-dot { transform: scale(1.25); }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } .mv-card { min-height: 0; } }

.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.value { padding: 32px 28px 32px 0; display: grid; gap: 14px; align-content: start; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--line); }
.value p { color: #000000; }
.value .v-num { font: 700 .875rem/1 var(--font-display); color: #000000; letter-spacing: .02em; }
@media (max-width: 960px) {
  .values { grid-template-columns: 1fr 1fr; }
  .value { padding: 28px 20px 28px 0; border-bottom: 1px solid var(--line); }
  .value + .value { padding-left: 0; border-left: 0; }
  .value:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .value:nth-child(even) { padding-left: 0; border-left: 0; }
}

.timeline { position: relative; padding-left: 40px; max-width: 880px; }
.t-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 4vw, 48px); }
.timeline::before, .timeline-progress { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.timeline::before { background: var(--line); }
.timeline-progress { background: #000000; transform-origin: top; transform: scaleY(var(--p, 0)); }
.t-item { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 8px 32px; }
.t-item::before {
  content: ""; position: absolute; left: -40px; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line); transition: border-color .4s, background-color .4s, transform .5s var(--ease-spring);
}
.t-item.is-in::before { border-color: #000000; background: #000000; transform: scale(.8); box-shadow: 0 0 0 6px rgba(0, 0, 0, .08); }
.t-year { font: 800 clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem)/1 var(--font-display); letter-spacing: -.04em; color: #000000; }
.t-item p { color: #000000; max-width: 52ch; }
.t-item > div { display: grid; gap: 10px; }
@media (max-width: 640px) { .t-item { grid-template-columns: 1fr; } }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { display: grid; gap: 14px; }
.member .face {
  position: relative; aspect-ratio: 1 / 1.1; border-radius: var(--radius-l); overflow: hidden; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.member .face span { font: 800 clamp(3rem, 2rem + 4vw, 5rem)/1 var(--font-display); color: #000000; letter-spacing: -.05em; filter: var(--logo-shadow); }
.member:nth-child(3n+2) .face span { color: #000000; }
.member .face .m-social {
  position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: center; gap: 8px;
  transform: translateY(140%); transition: transform .5s var(--ease-out);
}
.member .face .m-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-soft); color: #000000; border: 1px solid var(--line); }
.member .face .m-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.member:hover .face, .member:focus-within .face { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.member:hover .m-social, .member:focus-within .m-social { transform: none; }
@media (hover: none) { .member .face .m-social { transform: none; } }
.member b { font: 650 1.0625rem/1.2 var(--font-display); color: #000000; }
.member span.role { color: #000000; font-size: .9375rem; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* Kochi map card (stylised backwaters) */
.map-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); min-height: 400px; isolation: isolate; }
@media (max-width: 640px) { .map-card { min-height: 460px; } }
.map-card svg.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .land { fill: var(--surface-2); }
.map .water { fill: color-mix(in srgb, var(--brand) 22%, var(--surface)); }
.map .road { fill: none; stroke: var(--surface); stroke-width: 6; stroke-linecap: round; }
.map .road.minor { stroke-width: 3; opacity: .8; }
.map .block { fill: color-mix(in srgb, var(--line) 70%, var(--surface-2)); }
.pin { position: absolute; left: 58%; top: 42%; z-index: 2; transform: translate(-50%, -100%); display: grid; justify-items: center; }
.pin-head { width: 46px; height: 46px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: #000000; display: grid; place-items: center; box-shadow: var(--shadow-lift); animation: pin-drop 1s var(--ease-spring) both .3s; }
.pin-head svg { width: 20px; transform: rotate(45deg); fill: #fff; }
.pin::after { content: ""; position: absolute; bottom: -10px; width: 18px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .2); }
.pin-ring { position: absolute; left: 50%; bottom: -14px; width: 60px; height: 24px; margin-left: -30px; border-radius: 50%; border: 2px solid #000000; animation: ring 2.4s var(--ease-out) infinite 1.2s; }
.map-info {
  position: absolute; left: 16px; bottom: 16px; right: 16px; z-index: 3; max-width: 380px;
  padding: 20px 22px; border-radius: 20px; display: grid; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lift);
}
.map-info address { color: #000000; }

/* ---------- Products page ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: .9375rem; color: #000000; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease-spring);
}
.chip:hover { color: #000000; border-color: #000000; }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: #000000; color: #FFFFFF; border-color: #000000; }
.chip .count { margin-left: 6px; opacity: .7; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }

.spotlight {
  background: var(--surface); color: #000000; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; position: relative;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.spotlight .kicker { color: #000000; }
.spotlight p { color: #000000; }
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li svg { width: 22px; height: 22px; flex: none; margin-top: 2px; fill: none; stroke: #000000; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.spotlight .ticks li span { color: #000000; }
.dash {
  background: #FAFAFA; border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: grid; gap: 14px;
  box-shadow: var(--shadow-soft); container-type: inline-size;
}
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash-top .seg-mini { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: #EEEEEE; }
.dash-top .seg-mini i { width: 44px; height: 18px; border-radius: 99px; }
.dash-top .seg-mini i:first-child { background: #CCCCCC; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-kpi { padding: 14px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line); display: grid; gap: 6px; }
.dash-kpi .v { font: 800 clamp(1.4rem, 5cqi, 2rem)/1 var(--font-display); letter-spacing: -.03em; color: #000000; display: flex; }
.dash-kpi .v em { font-style: normal; color: #000000; }
.dash-kpi small { color: #000000; font-size: .8125rem; }
.dash-charts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.dash-panel { padding: 14px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line); display: grid; gap: 10px; }
.dash-panel .chart { height: 140px; border-color: rgba(255, 255, 255, .08); gap: 8px; }
.dash-panel .chart i { background: linear-gradient(to top, rgba(63, 140, 238, .35), #3F8CEE); border-radius: 6px 6px 2px 2px; }
.line-chart { width: 100%; height: 140px; overflow: visible; }
.line-chart .draw { fill: none; stroke: #6EA9F5; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease-out) .4s; }
.line-chart .area { fill: url(#areaGrad); opacity: 0; transition: opacity 1s 1.4s; }
.line-chart .grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.line-chart .end { fill: #fff; stroke: #3F8CEE; stroke-width: 3; opacity: 0; transition: opacity .4s 2.2s; }
.is-in .line-chart .draw { stroke-dashoffset: 0; }
.is-in .line-chart .area, .is-in .line-chart .end { opacity: 1; }
.dash .sk { background: rgba(255, 255, 255, .14); height: 8px; }
.dash .sk.b { background: #3F8CEE; }
@media (max-width: 960px) { .spotlight { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .dash-charts { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 36px; }
.feature { display: grid; gap: 14px; align-content: start; }
.feature p { color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; gap: 32px; } }


/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 72px; padding: 18px 0; font: 650 clamp(1.0625rem, 1rem + .4vw, 1.3rem)/1.3 var(--font-display); letter-spacing: -.01em;
  color: #000000;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #000000; text-decoration: underline; }
.faq-icon { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line); transition: transform .4s var(--ease-spring), background-color .3s; color: #000000; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease-out); }
.faq-icon::after { transform: rotate(90deg); }
.faq details[open] .faq-icon { transform: rotate(180deg); background: var(--surface-2); }
.faq details[open] .faq-icon::after { transform: rotate(0); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq .answer { padding: 0 56px 24px 0; color: #000000; max-width: 70ch; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-layout .sec-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout .sec-head { position: static; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 64px); align-items: start; }

/* ---------- Apple HIG Contact Card & Form ---------- */
.apple-contact-card {
  width: 100%;
  max-width: 580px;
  background: #FFFFFF;
  border-radius: 32px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
  border: 1px solid #F1F5F9;
  box-sizing: border-box;
}

.apple-form-header {
  margin-bottom: 24px;
}

.apple-form-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3F8CEE;
  margin-bottom: 8px;
}

.apple-form-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.35rem + 0.9vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #0F172A;
  margin: 0 0 8px;
}

.apple-form-subtitle {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #64748B;
  margin: 0;
}

.apple-field-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: static;
}

.apple-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #334155;
  margin-bottom: 6px;
  position: static !important;
  transform: none !important;
  pointer-events: auto !important;
}

.apple-field-label .req {
  color: #3F8CEE;
  margin-left: 2px;
}

.apple-input,
.apple-select,
.apple-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: rgba(248, 250, 252, 0.7);
  color: #0F172A;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.apple-input::placeholder,
.apple-textarea::placeholder {
  color: #94A3B8;
  opacity: 1;
}

.apple-input:focus,
.apple-select:focus,
.apple-textarea:focus {
  border-color: #3F8CEE !important;
  box-shadow: 0 0 0 3px rgba(63, 140, 238, 0.2) !important;
  background: #FFFFFF !important;
}

.apple-textarea {
  resize: none;
  min-height: 110px;
}

.apple-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.apple-field-error {
  display: none;
  color: #DC2626;
  font-size: 0.8125rem;
  margin-top: 5px;
  font-weight: 500;
}

.apple-field-group.has-error .apple-input,
.apple-field-group.has-error .apple-select,
.apple-field-group.has-error .apple-textarea {
  border-color: #EF4444 !important;
  background: #FEF2F2 !important;
}

.apple-field-group.has-error .apple-field-error {
  display: block;
}

.apple-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 18px;
}

.apple-error-banner svg {
  flex: none;
  color: #EF4444;
}

.apple-submit-btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: #3F8CEE;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 25px -5px rgba(63, 140, 238, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.apple-submit-btn:hover:not(:disabled) {
  opacity: 0.96;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -6px rgba(63, 140, 238, 0.45);
}

.apple-submit-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.apple-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.apple-submit-btn .btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.apple-submit-btn .btn-arrow {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.apple-submit-btn:hover:not(:disabled) .btn-arrow {
  transform: translateX(3px);
}

.apple-submit-btn .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.apple-spinner {
  width: 18px;
  height: 18px;
  animation: apple-spin 0.8s linear infinite;
}

@keyframes apple-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.apple-form-privacy {
  text-align: center;
  font-size: 0.75rem;
  color: #94A3B8;
  margin-top: 14px;
  line-height: 1.4;
}

/* Success View */
.apple-success-view {
  padding: clamp(32px, 5vw, 48px) 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.apple-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(63, 140, 238, 0.1);
  color: #3F8CEE;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.apple-success-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.apple-success-desc {
  font-size: 0.9375rem;
  color: #64748B;
  max-width: 360px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.apple-again-btn {
  padding: 10px 24px;
  border-radius: 12px;
  background: #F1F5F9;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.apple-again-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(22px, 4vw, 48px); box-shadow: var(--shadow-soft); }
.form-card > .h3 { margin-bottom: 8px; color: #000000; }
.form-card > p { color: #000000; margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.full { grid-column: 1 / -1; }
.field { position: relative; display: grid; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 60px; padding: 26px 16px 10px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: #000000; font: inherit; font-size: 1rem; appearance: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field label { position: absolute; left: 17px; top: 19px; color: #000000; font-size: 1rem; pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease-out), color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #000000; background: var(--surface); box-shadow: 0 0 0 3px rgba(0, 0, 0, .12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-11px) scale(.78); }
.field input:focus + label, .field textarea:focus + label, .field select:focus + label { color: #000000; font-weight: 600; }
.field.select::after { content: ""; position: absolute; right: 20px; top: 27px; width: 8px; height: 8px; border-right: 2px solid #000000; border-bottom: 2px solid #000000; transform: rotate(45deg); pointer-events: none; }
.field .err { display: none; color: var(--danger); font-size: .875rem; margin-top: 6px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid .err { display: block; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 650; margin-bottom: 12px; font-size: .9375rem; color: #000000; }
.radio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chips input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chips label { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9375rem; color: #000000; cursor: pointer; transition: all .25s; }
.radio-chips input:checked + label { background: #000000; border-color: #000000; color: #FFFFFF; }
.radio-chips input:focus-visible + label { outline: 2px solid #000000; outline-offset: 2px; }
.field-check .err { display: none; color: var(--danger); font-size: .875rem; margin: 4px 0 0 34px; }
.field-check.is-invalid .err { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: #000000; cursor: pointer; min-height: 44px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: #000000; flex: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.form-actions .small { color: #000000; }
.form-success { text-align: center; display: grid; gap: 16px; justify-items: center; padding: clamp(24px, 6vw, 64px) 0; }
.form-success svg { width: 88px; height: 88px; }
.form-success circle { fill: var(--brand-soft); }
.form-success path { fill: none; stroke: #000000; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s var(--ease-out) forwards .2s; }
.form-success p { color: #000000; max-width: 40ch; }
.info-list { display: grid; gap: 12px; }
.info { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.info:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.info .label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #000000; }
.info .value { font: 650 1.0625rem/1.35 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; color: #000000; }
.info a.value { min-height: 32px; display: inline-flex; align-items: center; color: #000000; }
.info a.value:hover { color: #000000; text-decoration: underline; }
.info-text { display: grid; gap: 4px; min-width: 0; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: #000000; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2FB36A; box-shadow: 0 0 0 4px color-mix(in srgb, #2FB36A 22%, transparent); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: var(--section); }
.nf .stage { max-width: 420px; aspect-ratio: 4 / 3; margin-bottom: 32px; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal="scale"] { transform: translateY(18px) scale(.96); }
.js [data-reveal="left"] { transform: translateX(-28px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.no-anim [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ---------- Keyframes ---------- */
@keyframes word-in { from { opacity: 0; transform: translateY(.38em); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.85) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes x-in {
  0% { opacity: 0; transform: translateY(30%) scale(.55) rotate(-14deg); }
  55% { opacity: 1; transform: translateY(-4%) scale(1.06) rotate(3deg); }
  75% { transform: translateY(1%) scale(.98, 1.02) rotate(-1deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes dot-drop {
  0% { opacity: 0; transform: translateY(-260%); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  10% { opacity: 1; }
  40% { transform: translateY(0) scale(1); animation-timing-function: ease-out; }
  48% { transform: translateY(0) scale(1.18, .78); animation-timing-function: cubic-bezier(.33, 1, .68, 1); }
  64% { transform: translateY(-34%) scale(.96, 1.04); animation-timing-function: cubic-bezier(.32, 0, .67, 0); }
  78% { transform: translateY(0) scale(1.08, .9); animation-timing-function: ease-out; }
  88% { transform: translateY(-8%) scale(1); }
  100% { opacity: 1; transform: none; }
}
@keyframes dot-pop { 0% { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6%); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes ring { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-40%); opacity: 1; } }
@keyframes bar-up { from { transform: scaleY(.1); } to { transform: scaleY(1); } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pin-drop { 0% { opacity: 0; transform: rotate(-45deg) translate(40px, -40px); } 100% { opacity: 1; transform: rotate(-45deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none !important; flex-wrap: wrap; justify-content: center; row-gap: 20px; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .scroll-progress { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .float-card, .map-info, .ph-badge { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: #777777; --muted: #000000; }
}

/* 3-Column Value Grid (Philosophy) */
.value-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card-3 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 3.5vw, 36px); display: grid; gap: 14px; box-shadow: var(--shadow-soft); align-content: start; }
@media (max-width: 860px) { .value-grid-3 { grid-template-columns: 1fr; } }

/* Services List (Alternating 2-Column Blocks) */
.services-list { display: grid; gap: clamp(36px, 6vw, 64px); }
.service-block { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding: clamp(28px, 4.5vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); }
.service-block--alt { grid-template-columns: .9fr 1.1fr; }
.service-block--alt .service-visual { order: -1; }
.service-deliverables { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.service-deliverables .deliv-title { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #000000; }
.deliv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.deliv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8125rem; font-weight: 600; color: #000000; }
.service-visual { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; display: grid; place-items: center; min-height: 240px; }
@media (max-width: 900px) {
  .service-block, .service-block--alt { grid-template-columns: 1fr; }
  .service-block--alt .service-visual { order: 0; }
}

/* Product Modules & Comparison */
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.module-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 3.5vw, 36px); display: grid; gap: 14px; box-shadow: var(--shadow-soft); transition: transform .35s var(--ease-out); align-content: start; }
.module-card:hover { transform: translateY(-4px); }
.module-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #000000; }
.module-badge i { width: 8px; height: 8px; border-radius: 50%; background: #000000; }
.comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.comp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 32px); display: grid; gap: 12px; box-shadow: var(--shadow-soft); align-content: start; }
@media (max-width: 860px) { .comparison-grid { grid-template-columns: 1fr; } }

/* Contact Calendar Card & Trust Steps */
.cal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(18px, 4vw, 28px); display: grid; gap: 16px; margin-top: 24px; box-shadow: var(--shadow-soft); }
.cal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.cal-slot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius-s); background: var(--bg); border: 1px solid var(--line); font-size: .9375rem; font-weight: 600; color: #000000; }
.cal-slot span { flex: 1 1 200px; }
.cal-slot .btn { flex: none; }
.dev-placeholder { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .8125rem; background: #EEEEEE; border: 1px dashed #777777; padding: 6px 10px; border-radius: 6px; display: inline-block; color: #000000; }
.trust-steps { display: grid; gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.trust-step { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.trust-num { width: 32px; height: 32px; border-radius: 50%; background: #000000; color: #FFFFFF; display: grid; place-items: center; font-weight: 700; font-size: .875rem; }

/* Mobile Responsiveness & Button Wraps */
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; width: 100%; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .dash-kpis { grid-template-columns: 1fr; }
  .spotlight { padding: clamp(20px, 4vw, 36px) clamp(16px, 3.5vw, 24px); }
  .module-grid { grid-template-columns: 1fr; }
  .cal-slot { flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
  .cal-slot .btn { width: 100%; justify-content: center; }
}

/* Custom select styling */
.field select { cursor: pointer; }

body, main, .hero, .page-hero, .section, .section--tight, .site-header, .site-footer {
  background-color: #FAFAFA;
}

body, h1, h2, h3, h4, h5, h6,
p, label, input, select, textarea,
summary, b, strong, em, dt, dd, address, time, .stat-num, .stat p, .lead, .muted, .small {
  color: #000000;
}

/* === CodXQ Brand & Accent Colors === */
/* Logo Color: #3F8CEE */
.brand svg, .stage-logo svg, .cta-logo svg, .footer-brand svg,
.lg-x, .lg-dot, .lg-dot2 {
  fill: #3F8CEE !important;
}

/* Primary Buttons: #3F8CEE */
.btn-primary {
  background: #3F8CEE !important;
  color: #FFFFFF !important;
  border-color: #3F8CEE !important;
  box-shadow: 0 4px 14px rgba(63, 140, 238, 0.28) !important;
  transition: all .25s ease !important;
}
.btn-primary:hover {
  background: #2575dc !important;
  border-color: #2575dc !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(63, 140, 238, 0.38) !important;
}
.btn-primary svg {
  stroke: #FFFFFF !important;
}

/* Important Accent Text (Key highlights, badges, primary keywords): #3F8CEE */
.eyebrow {
  color: #3F8CEE !important;
  background: rgba(63, 140, 238, 0.08) !important;
  border: 1px solid rgba(63, 140, 238, 0.3) !important;
  font-weight: 700 !important;
}
.eyebrow .pulse {
  background: #3F8CEE !important;
}
.eyebrow .pulse::after {
  border-color: #3F8CEE !important;
}
.kicker {
  color: #3F8CEE !important;
  font-weight: 700 !important;
}
.accent-text, .primary-keyword, .highlight-accent {
  color: #3F8CEE !important;
}
.step-num {
  color: #3F8CEE !important;
}
.module-badge {
  color: #3F8CEE !important;
}
.module-badge i {
  background: #3F8CEE !important;
}
.text-link {
  color: #3F8CEE !important;
}
.text-link svg {
  stroke: #3F8CEE !important;
}

a:not(.btn-primary):not(.btn-light):not(.nav-links a[aria-current="page"]):not(.chip[aria-pressed="true"]) {
  color: #000000;
}



/* Hero Headline Proportions & Above-the-fold Optimization */
.hero-copy .display {
  font-size: clamp(2.1rem, 1.35rem + 2.2vw, 3.6rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -.035em !important;
}
.hero-copy .lead {
  font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
  line-height: 1.55;
  color: #111111;
}
.stage-logo svg {
  fill: #3F8CEE !important;
}
.float-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  color: #000000;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08);
}
