/* ==========================================================================
   BINSA: Design system
   Light warm-grey canvas, deep navy sections, a single orange accent.
   ========================================================================== */

:root {
  --bg: #f3f2ef;
  --bg-2: #ebe9e5;
  --surface: #ffffff;
  --ink: #12151c;
  --ink-2: #3c4250;
  --muted: #6b7180;
  --line: rgba(18, 21, 28, 0.09);

  --navy-900: #141a28;
  --navy-800: #1b2335;
  --navy-700: #243049;
  --navy-600: #33415f;
  --navy-500: #4a5b80;
  --on-navy: #e9ecf3;
  --on-navy-muted: #9aa4ba;

  --accent: #e2572b;
  --accent-600: #c94a21;
  --accent-soft: #fbe3d8;
  --success: #22c55e;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(18, 21, 28, 0.06), 0 2px 8px rgba(18, 21, 28, 0.04);
  --shadow: 0 10px 30px -10px rgba(18, 21, 28, 0.18), 0 2px 6px rgba(18, 21, 28, 0.05);
  --shadow-lg: 0 30px 60px -20px rgba(18, 21, 28, 0.3);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography ---------- */
.display {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.display strong, .h2 strong { font-weight: 700; }
.h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.lead { font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--ink-2); max-width: 46ch; }
.small { font-size: 0.875rem; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 6px;
  background: #e3e2e6; color: #4d5260;
}
.eyebrow--accent { background: var(--accent-soft); color: var(--accent-600); }
.eyebrow--dark { background: rgba(255, 255, 255, 0.07); color: var(--on-navy-muted); }
.eyebrow--glass { background: rgba(255, 255, 255, 0.55); color: var(--ink-2); backdrop-filter: blur(8px); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 10px; border: 0; cursor: pointer;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--btn-bg); }
.btn:active { transform: translateY(0); }
.btn--accent { --btn-bg: var(--accent); }
.btn--accent:hover { background: var(--accent-600); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); box-shadow: var(--shadow-sm); }
.btn--pill { border-radius: 999px; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border: 1px solid var(--line); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 16px 0 auto; z-index: 50;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  max-width: 1060px; margin: 0 auto; padding: 8px 10px 8px 12px;
  border-radius: 999px;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.site-header.is-scrolled .nav,
.site-header.is-open .nav {
  background: rgba(243, 242, 239, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset, var(--shadow);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; flex: none; }
.logo-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-800); color: #fff;
  font-size: 0.78rem; font-weight: 800; letter-spacing: -0.02em;
}
.logo-word { font-size: 1.05rem; }
.nav-links { display: flex; gap: 22px; white-space: nowrap; }
.nav-links a {
  position: relative; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-news { margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-news .tag { color: var(--accent); background: var(--accent-soft); padding: 3px 6px; border-radius: 4px; font-size: 0.66rem; }
.nav-news:hover .chev { transform: translateX(3px); }
.nav-news .chev { transition: transform .25s var(--ease); }
.nav .btn { height: 42px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow-sm); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px auto; transition: transform .3s var(--ease), opacity .2s; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 1240px) { .nav-news { display: none; } .nav .btn { margin-left: auto; } }
@media (max-width: 920px) {
  .site-header { inset: 12px 0 auto; padding: 0 12px; }
  .nav-links, .nav-news, .nav > .btn { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu {
    pointer-events: auto;
    display: grid; gap: 4px;
    max-width: 900px; margin: 8px auto 0; padding: 12px;
    border-radius: 22px; background: rgba(243, 242, 239, 0.94);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-8px) scale(.98); visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .site-header.is-open .mobile-menu { opacity: 1; transform: none; visibility: visible; }
  .mobile-menu a:not(.btn) { padding: 14px 12px; border-radius: 12px; font-weight: 600; font-size: 1.05rem; }
  .mobile-menu a:not(.btn):hover { background: rgba(0,0,0,.04); }
  .mobile-menu .btn { margin-top: 6px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--dark { background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%); color: var(--on-navy); }
.section-head { display: grid; gap: 18px; }
.section-head--center { text-align: center; justify-items: center; }
.section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 32px; }
.section-head--split p { color: var(--ink-2); max-width: 48ch; justify-self: end; font-size: 0.95rem; }
@media (max-width: 820px) { .section-head--split { grid-template-columns: 1fr; } .section-head--split p { justify-self: start; } }

/* ---------- Lottie animations ---------- */
.lottie { display: inline-grid; place-items: center; width: 100%; height: 100%; line-height: 0; }
.lottie-fallback { width: 84%; height: 84%; }
.lottie .ink path { stroke: currentColor; }
.lottie .accent path { stroke: var(--accent); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   HOME: Hero with orbiting arc
   ========================================================================== */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  padding: clamp(84px, 14vh, 150px) 0 clamp(18px, 4vh, 48px); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  background: var(--navy-900); color: #fff;
}

/* ---- Layered background: CSS glow → generated image → reeded glass → grain → legibility shade ---- */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-glow, .hero-photo, .hero-photo img { position: absolute; inset: -4%; width: 108%; height: 108%; }
.hero-glow {
  background:
    radial-gradient(38% 55% at 72% 30%, #ffd9c2 0%, rgba(255, 181, 154, .85) 22%, rgba(226, 87, 43, .75) 48%, transparent 75%),
    radial-gradient(30% 45% at 58% 62%, rgba(226, 87, 43, .55), transparent 70%),
    radial-gradient(60% 80% at 100% 0%, rgba(201, 74, 33, .55), transparent 70%),
    linear-gradient(180deg, #1b2335 0%, #141a28 100%);
  filter: blur(30px);
  animation: drift 26s ease-in-out infinite alternate;
}
.hero-photo img { object-fit: cover; object-position: 70% 40%; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-1.5%, 1%, 0) scale(1.04); }
  100% { transform: translate3d(1%, -1%, 0) scale(1.02); }
}
/* vertical fluted-glass bands; --shift follows the pointer for a subtle shimmer */
.hero-reeds {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,0) 0px, rgba(255,255,255,.07) 14px, rgba(255,255,255,.16) 30px,
      rgba(0,0,0,.18) 31px, rgba(0,0,0,.06) 36px, rgba(255,255,255,0) 44px);
  background-position: var(--shift, 0px) 0;
  mix-blend-mode: overlay; opacity: .55;
  transition: background-position 1.2s var(--ease);
  -webkit-mask: linear-gradient(90deg, rgba(0,0,0,.35) 0%, #000 45%, #000 100%);
          mask: linear-gradient(90deg, rgba(0,0,0,.35) 0%, #000 45%, #000 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,26,40,.82) 0%, rgba(20,26,40,.55) 32%, rgba(20,26,40,0) 62%),
    linear-gradient(0deg, rgba(20,26,40,.9) 0%, rgba(20,26,40,0) 28%);
}

/* hero text on dark */
.hero .display { color: #fff; }
.hero .lead { color: rgba(255,255,255,.78); padding-left: 0; }
.hero-team-label { color: rgba(255,255,255,.6) !important; }
.hero-stats strong { color: #fff; }
.hero-stats span { color: rgba(255,255,255,.65) !important; }

/* header over the dark hero (until scrolled) */
.dark-hero .site-header:not(.is-scrolled):not(.is-open) .nav-links a,
.dark-hero .site-header:not(.is-scrolled):not(.is-open) .nav-news,
.dark-hero .site-header:not(.is-scrolled):not(.is-open) .logo-word { color: #fff; }
.dark-hero .site-header:not(.is-scrolled):not(.is-open) .logo-mark { background: #fff; color: var(--navy-800); }
.dark-hero .site-header:not(.is-scrolled):not(.is-open) .nav-news .tag { background: rgba(226,87,43,.22); color: #ffb59a; }
.hero-grid { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.hero-copy { display: grid; gap: clamp(10px, 2.2vh, 22px); justify-items: start; max-width: 680px; }
.hero .display { font-size: clamp(2rem, min(5vw, 7.2vh), 3.6rem); }
.hero .lead { font-size: clamp(.92rem, 2vh, 1.1rem); max-width: 46ch; }
.hero-copy .lead { max-width: 40ch; }
.hero-team { margin-top: 30px; display: grid; gap: 12px; }
.hero-team-label { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* service deck: original fanned stack, glass styling */
.hero-team { margin-top: clamp(64px, 10vh, 92px); width: min(340px, 100%); gap: clamp(8px, 1.4vh, 14px); }
.hero-copy .btn { position: relative; z-index: 7; }
.svc-bar { position: relative; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.agent-stack { position: relative; display: grid; }
.agent-card {
  grid-area: 1 / 1; position: relative;
  border-radius: 16px; padding: clamp(14px, 2vh, 18px) 18px clamp(16px, 2.3vh, 20px);
  display: grid; align-content: start; gap: clamp(8px, 1.2vh, 11px);
  color: #fff;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.03)), rgba(27, 35, 53, .8);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 24px 50px -24px rgba(0,0,0,.7);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  transform-origin: 0% 100%;
  transition: transform .8s var(--ease), opacity .8s var(--ease), filter .8s var(--ease);
}
.svc-head { display: flex; align-items: center; gap: 12px; }
.svc-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #f38a5f, var(--accent) 60%, var(--accent-600)); box-shadow: 0 8px 18px -8px rgba(226,87,43,.9), inset 0 1px 0 rgba(255,255,255,.35); }
.svc-icon .lottie { width: 24px; height: 24px; }
.agent-card h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.agent-card p { font-size: 0.84rem; color: rgba(255,255,255,.74); line-height: 1.5; }
.agent-card .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; background: #e6e9f0; color: #3b4660; }
.agent-card .chip { background: rgba(255,255,255,.1); color: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.14); padding: 4px 9px; border-radius: 999px; }
.agent-card[data-pos="0"] { z-index: 4; transform: none; opacity: 1; }
.agent-card[data-pos="1"] { z-index: 3; transform: translate(-46px, -6px) rotate(-8deg) scale(.96); opacity: .55; filter: blur(.4px); }
.agent-card[data-pos="2"] { z-index: 2; transform: translate(-86px, 2px) rotate(-16deg) scale(.92); opacity: .3; filter: blur(.8px); }
.agent-card[data-pos="3"] { z-index: 1; transform: translate(-110px, 14px) rotate(-22deg) scale(.88); opacity: 0; }
.agent-card:not([data-pos="0"]) { pointer-events: none; }
.svc-progress { position: absolute; z-index: 5; left: 18px; right: 18px; bottom: 8px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.svc-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #ffb59a); }
.svc-progress i.run { animation: progress var(--svc-ms, 3.6s) linear forwards; }
.agent-stack:hover .svc-progress i.run { animation-play-state: paused; }
.svc-dots { display: flex; gap: 6px; }
.svc-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.28); cursor: pointer; transition: width .4s var(--ease), background .3s; }
.svc-dots button[aria-selected="true"] { width: 22px; background: #fff; }
.svc-dots button:hover { background: rgba(255,255,255,.6); }

/* arc */
.orbit {
  position: absolute; z-index: 1;
  width: 1100px; height: 1100px;
  right: -520px; top: 50%; transform: translateY(-38%);
  pointer-events: none;
}
.orbit-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(closest-side, transparent 72.5%, rgba(255,255,255,.22) 73%, rgba(255,255,255,.08) 76%, rgba(255,255,255,.04) 88%, rgba(255,255,255,.14) 99.2%, transparent 99.6%);
  -webkit-mask: radial-gradient(closest-side, transparent 72.5%, #000 73%, #000 99.5%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 72.5%, #000 73%, #000 99.5%, transparent 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.orbit-ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 200deg, transparent 0 18%, rgba(255,255,255,.22) 30%, transparent 44%, transparent 72%, rgba(255,181,154,.18) 86%, transparent);
}
.orbit-spin { position: absolute; inset: 0; animation: spin 36s linear infinite; }
.orbit-arm { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)); }
.orbit-node { position: absolute; left: 0; top: 0; width: 0; height: 0; transform: translateX(var(--r, 475px)); }
.orbit-node .upright { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) rotate(calc(var(--a) * -1)); z-index: 2; }
.orbit-node .counter { animation: spin 36s linear infinite reverse; }
.orbit-icon {
  position: relative; z-index: 2;
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffffff, #e9ecf3 75%);
  color: var(--navy-800);
  box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 14px 34px -8px rgba(226, 87, 43, .55);
}
.orbit-icon svg { width: 32px; height: 32px; }
/* motion trail: sits behind the icon, along the direction of travel */
.orbit-trail {
  position: absolute; z-index: 1; left: 0; top: 0;
  width: 46px; height: 150px; margin-left: -23px; margin-top: -150px;
  border-radius: 40px;
  background: linear-gradient(180deg, transparent, rgba(226, 87, 43, .45) 60%, rgba(255, 181, 154, .85));
  filter: blur(14px);
  transform-origin: 50% 100%;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-stats { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(24px, 6vh, 80px); display: grid; gap: clamp(10px, 2.4vh, 22px); text-align: left; }
.hero-stats strong { display: block; font-size: clamp(1.4rem, 3.6vh, 1.9rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.hero-stats span { font-size: 0.8rem; color: var(--muted); }

@media (min-width: 1440px) { .hero-stats { right: calc((100vw - var(--container)) / 2); } }

@media (max-width: 1080px) {
  .orbit { width: 900px; height: 900px; right: -560px; }
  .orbit-node { --r: 389px; }
}
@media (max-width: 900px) {
  .hero { height: auto; min-height: 100svh; padding-top: clamp(84px, 12vh, 110px); }
  .hero-grid { justify-content: flex-start; }
  .orbit { width: 640px; height: 640px; right: -400px; top: 120px; transform: none; opacity: .5; }
  .orbit-node { --r: 276px; }
  .orbit-icon { width: 56px; height: 56px; }
  .orbit-icon svg { width: 24px; height: 24px; }
  .hero-stats span { display: block; line-height: 1.3; margin-top: 4px; }
  .hero-stats { position: relative; right: auto; bottom: auto; margin: clamp(18px, 3.5vh, 40px) var(--gutter) 0; padding: 14px 16px; border-radius: 14px; background: rgba(20,26,40,.55); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); max-width: 100%; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stats strong { font-size: 1.6rem; }
}
@media (max-width: 760px) {
  .hero-team { display: none; }
  /* compact hero: height follows the content; a smaller ring wraps the stats, which sit under the button */
  .hero { height: auto; min-height: 0; justify-content: flex-start; padding-bottom: 40px; }
  .hero-grid { flex: 0 0 auto; }
  .hero .display, .hero .lead, .hero-stats { text-shadow: 0 1px 14px rgba(20, 26, 40, .7); }
  .hero-stats {
    position: relative; z-index: 3; right: auto; bottom: auto;
    margin: 56px 16px 0 auto; padding: 0; width: 170px;
    grid-template-columns: 1fr; gap: 12px;
    background: none; border: 0; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .hero-stats strong { font-size: 1.4rem; }
  /* ring centre = stats centre: 101px from the right edge, 120px above the hero's bottom */
  .orbit { width: 460px; height: 460px; left: calc(100% - 331px); right: auto; top: auto; bottom: -110px; transform: none; opacity: 1; }
  .orbit-node { --r: 200px; }
  .orbit-icon { width: 48px; height: 48px; }
  .orbit-icon svg { width: 21px; height: 21px; }
  /* the bottom of the phone background is dark, so give the glass ring its own warm glow */
  .orbit-ring {
    background: radial-gradient(closest-side, transparent 72.5%, rgba(255,190,150,.6) 73%, rgba(240,120,64,.5) 77%, rgba(226,87,43,.42) 86%, rgba(190,66,28,.4) 94%, rgba(255,160,120,.5) 99.2%, transparent 99.6%);
  }
  .orbit-ring::after { background: conic-gradient(from 200deg, transparent 0 18%, rgba(255,240,228,.5) 30%, transparent 44%, transparent 100%); }
  /* dark glass icons so white text stays readable when one passes behind it */
  .orbit-icon { background: rgba(20, 26, 40, .55); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 26px -8px rgba(226,87,43,.6); }
}
@media (max-width: 560px) {
  .hero-shade { background: linear-gradient(180deg, rgba(20,26,40,.35) 0%, rgba(20,26,40,.7) 45%, rgba(20,26,40,.92) 100%); }
  .hero-stats strong { font-size: 1.35rem; }
}

@media (min-width: 901px) and (max-height: 700px) {
  .agent-card p { font-size: .8rem; }
  .hero-stats span { font-size: .72rem; }
}

/* ==========================================================================
   Logo strip
   ========================================================================== */
.logos { padding: 56px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.logos-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.logos-label { flex: none; display: grid; gap: 2px; }
.logos-label strong { font-size: 0.85rem; font-weight: 600; }
.logos-label span { font-size: 0.75rem; color: var(--on-navy-muted); }
.marquee { overflow: hidden; flex: 1; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; color: #dfe4ee; opacity: .85; white-space: nowrap; }
.wordmark svg { width: 22px; height: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 720px) { .logos-row { flex-direction: column; align-items: flex-start; gap: 20px; } .marquee { width: 100%; } }

/* ==========================================================================
   How it works (dark)
   ========================================================================== */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: start; padding-top: clamp(60px, 8vw, 100px); }
.how-copy { display: grid; gap: 22px; justify-items: start; }
.how-copy .h2 { color: #fff; }
.how-copy .lead { color: var(--on-navy-muted); font-size: 0.92rem; }
.steps { width: 100%; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.step { border-bottom: 1px solid rgba(255,255,255,.06); }
.step button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 0.92rem; font-weight: 500; color: var(--on-navy-muted); transition: color .2s;
}
.step button:hover { color: #fff; }
.step .arrow { opacity: 0; transform: translateX(-6px); transition: all .3s var(--ease); }
.step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.step-body > div { overflow: hidden; }
.step-body p { font-size: 0.85rem; color: var(--on-navy-muted); padding-bottom: 18px; max-width: 46ch; }
.step.is-active button { color: #fff; }
.step.is-active .arrow { opacity: 1; transform: none; }
.step.is-active .step-body { grid-template-rows: 1fr; }
.step-progress { height: 1px; background: rgba(255,255,255,.08); margin-bottom: -1px; overflow: hidden; }
.step-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.step.is-active .step-progress i { animation: progress var(--step-ms, 6s) linear forwards; }
@keyframes progress { to { width: 100%; } }

.flow-panel {
  position: sticky; top: 110px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: #242e45;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.07) inset;
}
.flow-top {
  position: relative; height: 270px;
  background:
    radial-gradient(60% 70% at 50% 100%, rgba(226,87,43,.28), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.09) 1px, transparent 1.5px) 0 0 / 18px 18px,
    linear-gradient(180deg, #2f3a56 0%, #263049 100%);
}
.flow-chips { position: absolute; top: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; padding: 0 14px; z-index: 2; }
.flow-chip {
  font-size: clamp(0.56rem, 0.85vw, 0.66rem); font-weight: 700; letter-spacing: 0.06em;
  padding: 9px clamp(6px, 0.8vw, 11px); border-radius: 999px; white-space: nowrap;
  color: rgba(255,255,255,.62); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: color .4s, background .4s, border-color .4s, box-shadow .4s, transform .4s var(--ease);
}
.flow-chip.is-hot {
  color: #fff; background: linear-gradient(145deg, #f0845a, var(--accent));
  border-color: rgba(255,255,255,.25); transform: translateY(-2px);
  box-shadow: 0 8px 22px -6px rgba(226,87,43,.75);
}
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-lines .base { fill: none; stroke: rgba(255,255,255,.13); stroke-width: 1.2; transition: stroke .4s; }
.flow-lines .base.hot { stroke: rgba(255,160,120,.45); }
.flow-lines .pulse { fill: none; stroke: #ffc3a6; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 12 100; animation: dash 2.4s linear infinite; filter: drop-shadow(0 0 4px rgba(255,140,100,.95)); }
@keyframes dash { from { stroke-dashoffset: 112; } to { stroke-dashoffset: 0; } }
.flow-orb {
  position: absolute; left: 50%; bottom: 30px; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%;
  display: grid; place-items: center; z-index: 2;
  background: radial-gradient(circle at 40% 30%, #fff 0%, #ffe0d0 30%, #f39a74 65%, var(--accent) 100%);
  box-shadow: 0 0 0 6px rgba(226,87,43,.18), 0 0 40px 8px rgba(226,87,43,.45);
}
.flow-orb::before, .flow-orb::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255,180,150,.55); animation: ring 2.8s ease-out infinite; }
.flow-orb::after { animation-delay: 1.4s; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.flow-orb-num { font-size: 0.95rem; font-weight: 800; color: var(--navy-800); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.flow-bottom { position: relative; background: #f6f6f8; color: var(--ink); padding: 18px 16px 16px; }
.flow-bottom::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent); opacity: .8; }
.flow-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.flow-step { font-size: 0.66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.flow-step b { color: var(--accent); }
.flow-live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #138a44; }
.flow-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.flow-bottom h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.flow-rows { display: grid; gap: 6px; }
.flow-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 9px 12px 9px 9px; border-radius: 10px; font-size: 0.84rem; font-weight: 500;
  border: 1px solid rgba(18,21,28,.05);
  animation: rowIn .55s var(--ease) both; animation-delay: calc(var(--i) * 90ms);
}
.flow-row .ico { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-600); }
.flow-row .ico svg { width: 15px; height: 15px; }
.flow-row .ico .lottie { width: 20px; height: 20px; }
.flow-row .ico .lottie svg { width: 100%; height: 100%; }
.flow-row .ok { font-style: normal; margin-left: auto; font-size: 0.64rem; font-weight: 700; color: #138a44; background: #dcf5e6; padding: 4px 8px; border-radius: 999px; letter-spacing: .06em; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } .flow-panel { position: relative; top: 0; } }

/* ==========================================================================
   Feature cards
   ========================================================================== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 48px; }
.feature {
  position: relative; overflow: hidden;
  min-height: 400px; border-radius: var(--radius-lg); padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  transition: opacity .9s var(--ease) var(--d, 0s), transform .6s var(--ease), box-shadow .5s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.feature p { font-size: 0.82rem; line-height: 1.5; }
.feature--stack { background: linear-gradient(180deg, #e9edf6, #f4f5f9); box-shadow: 0 0 0 1px #fff inset; }
.feature--stack p, .feature--chan p { color: var(--ink-2); }
.feature--scale { color: #fff; background: linear-gradient(170deg, #4e67b3 0%, #2c3d78 55%, #1d2752 100%); }
.feature--scale p { color: rgba(255,255,255,.8); }
.feature--chan { background: linear-gradient(180deg, #fbe9e1, #f8f1ee); box-shadow: 0 0 0 1px #fff inset; }
.feature--know { color: #fff; background: linear-gradient(180deg, #b34a3a 0%, #d86a3c 45%, #f2a361 80%, #f6c27b 100%); }
.feature--know p { color: rgba(255,255,255,.88); }

.mini-window { background: rgba(255,255,255,.88); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-sm); }
.mini-window h4 { font-size: 0.75rem; font-weight: 600; margin-bottom: 12px; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
.app { display: grid; justify-items: center; gap: 5px; font-size: 0.62rem; color: var(--ink-2); }
.app i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); font-style: normal; font-weight: 800; font-size: 0.8rem; }
.chan-list { display: grid; gap: 7px; }
.chan { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; background: #fbf3ef; font-size: 0.78rem; font-weight: 600; }
.chan svg { width: 14px; height: 14px; color: var(--accent); }
.chan:last-child { opacity: .45; }

/* CSS illustration: server rack */
.rack-art { position: absolute; inset: 40% 0 0 0; display: flex; gap: 10px; padding: 0 20px; align-items: flex-end; perspective: 600px; }
.rack {
  flex: 1; height: 100%; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #2c3a6e, #1a2349);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  padding: 12px 8px; display: grid; gap: 8px; align-content: start;
  transform: rotateY(-14deg); transform-origin: bottom;
}
.rack:nth-child(2) { height: 85%; transform: rotateY(-6deg); }
.rack span { height: 14px; border-radius: 3px; background: linear-gradient(90deg, #374a8a, #2a3970); position: relative; }
.rack span::after { content: ""; position: absolute; right: 6px; top: 5px; width: 4px; height: 4px; border-radius: 50%; background: #7cf0a6; box-shadow: 0 0 6px #7cf0a6; animation: blink 2.4s infinite; animation-delay: calc(var(--i, 0) * 0.3s); }
.rack span:nth-child(3n)::after { background: #ffb59a; box-shadow: 0 0 6px #ffb59a; }
@keyframes blink { 50% { opacity: .25; } }

/* CSS illustration: sunset / knowledge base */
.sun-art { position: absolute; inset: 0; pointer-events: none; }
.sun-art::before { content: ""; position: absolute; left: 50%; top: 52%; width: 220px; height: 220px; margin-left: -110px; border-radius: 50%; background: radial-gradient(circle, #ffe7b0 0%, rgba(255, 210, 140, .6) 35%, transparent 70%); }
.sun-art::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 32%; background: linear-gradient(180deg, #5a2a2a, #2a1414); clip-path: polygon(0 40%, 18% 22%, 35% 36%, 52% 14%, 70% 30%, 86% 18%, 100% 30%, 100% 100%, 0 100%); }
.doc-stack { position: absolute; left: 50%; bottom: 18%; width: 150px; transform: translateX(-50%); z-index: 2; }
.doc-stack div { height: 18px; margin-top: -6px; border-radius: 4px; background: rgba(255,255,255,.92); box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.doc-stack div:nth-child(1) { width: 80%; margin-left: 10%; opacity: .6; }
.doc-stack div:nth-child(2) { width: 90%; margin-left: 5%; opacity: .8; }
.feature--know .copy, .feature--scale .copy { position: relative; z-index: 3; }

@media (max-width: 1080px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } .feature { min-height: 360px; } }

/* ==========================================================================
   Contact / Book a call
   ========================================================================== */
.contact-wrap { background: linear-gradient(180deg, var(--navy-600) 0%, var(--navy-700) 100%); }
.contact-card {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 0;
  border-radius: 26px; overflow: hidden; padding: 8px;
  background: var(--navy-800);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.6);
}
.contact-media {
  position: relative; border-radius: 20px; overflow: hidden; min-height: 560px;
  background:
    radial-gradient(500px 300px at 30% 20%, rgba(255,255,255,.75), transparent 60%),
    linear-gradient(180deg, #8fb2e8 0%, #5e86c9 40%, #2d4b8a 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.contact-media .datacenter { position: absolute; inset: 10% 8% 38% 8%; }
.quote {
  position: relative; z-index: 2; margin: 14px; padding: 22px;
  border-radius: 16px; color: #fff;
  background: linear-gradient(180deg, rgba(20,26,40,.25), rgba(20,26,40,.6));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.quote h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.quote p { font-size: 0.85rem; color: rgba(255,255,255,.82); }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; background: linear-gradient(135deg, #f6b38f, #e2572b); color: #fff; flex: none; }
.quote-author strong { display: block; font-size: 0.85rem; }
.quote-author span { font-size: 0.75rem; color: rgba(255,255,255,.65); }

.contact-form { padding: clamp(24px, 4vw, 48px); color: var(--on-navy); display: grid; gap: 18px; align-content: start; }
.contact-form .h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.contact-form .lead { color: var(--on-navy-muted); font-size: 0.88rem; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #cfd5e2; }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid transparent; border-radius: 8px;
  background: rgba(255,255,255,.08); color: #fff; padding: 12px 14px; font-size: 0.9rem;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.field select option { color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.25); box-shadow: 0 0 0 4px rgba(226,87,43,.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 0.85rem; min-height: 1.2em; display: flex; align-items: center; gap: 10px; }
.form-status .lottie { width: 30px; height: 30px; flex: none; color: #fff; }
.btn .lottie { width: 20px; height: 20px; color: #fff; }
.form-status.ok { color: #86efac; }
.form-status.err { color: #fca5a5; }
.contact-form .btn[disabled] { opacity: .6; cursor: progress; }

@media (max-width: 900px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-media { min-height: 420px; }
}
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* CSS illustration: data-center perspective */
.datacenter { display: flex; gap: 6%; align-items: flex-end; justify-content: center; }
.datacenter div {
  width: 20%; border-radius: 6px 6px 2px 2px;
  background: repeating-linear-gradient(180deg, #2a3c6c 0 12px, #1f2d55 12px 16px);
  box-shadow: 0 30px 40px -20px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.12);
  position: relative;
}
.datacenter div::after { content: ""; position: absolute; inset: 10px 6px auto auto; width: 5px; height: 60%; background: repeating-linear-gradient(180deg, #7cf0a6 0 3px, transparent 3px 16px); opacity: .85; }
.datacenter div:nth-child(1) { height: 70%; transform: skewY(6deg); }
.datacenter div:nth-child(2) { height: 92%; }
.datacenter div:nth-child(3) { height: 70%; transform: skewY(-6deg); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--navy-700) 0%, #5d6a88 55%, #7d89a5 100%); color: #fff; padding-top: clamp(70px, 10vw, 120px); }
.footer-cta { text-align: center; display: grid; justify-items: center; gap: 18px; }
.footer-cta .h2 { font-weight: 600; }
.footer-cta .h2 span { font-weight: 400; display: block; }
.footer-cta p { color: rgba(255,255,255,.8); max-width: 44ch; }
.footer-logos { margin-top: 70px; }
.footer-logos .logos-row { gap: 24px; }
.footer-cards { margin-top: 30px; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr; gap: 8px; }
.fcard { border-radius: 10px; padding: 16px; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); min-height: 190px; display: flex; flex-direction: column; }
.fcard h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.fcard ul { display: grid; gap: 6px; }
.fcard li a { font-size: 0.82rem; color: rgba(255,255,255,.85); display: inline-flex; gap: 8px; align-items: center; transition: color .2s, transform .2s; }
.fcard li a::before { content: "•"; opacity: .6; }
.fcard li a:hover { color: #fff; transform: translateX(3px); }
.fcard .logo-mark { border-radius: 8px; background: #fff; color: var(--navy-800); }
.newsletter { margin-top: auto; display: grid; gap: 8px; }
.newsletter label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.newsletter-field { display: flex; background: rgba(255,255,255,.14); border-radius: 8px; overflow: hidden; }
.newsletter-field input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; padding: 10px 12px; font-size: 0.82rem; }
.newsletter-field input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-field input:focus { outline: none; }
.newsletter-field button { border: 0; background: rgba(255,255,255,.18); color: #fff; padding: 0 12px; cursor: pointer; }
.newsletter-field button:hover { background: var(--accent); }
.fcard--post { padding: 0; overflow: hidden; }
.fcard--post .post-img { height: 110px; background: linear-gradient(135deg, #2d3c6a, #4f68b0 60%, #9bb6ea); position: relative; }
.fcard--post .post-img::after { content: ""; position: absolute; inset: 18px 22px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 18px, transparent 18px 26px); border-radius: 4px; -webkit-mask: linear-gradient(180deg, #000, transparent); mask: linear-gradient(180deg, #000, transparent); }
.fcard--post .post-body { padding: 14px 16px; }
.fcard--post h4 { margin-bottom: 6px; }
.fcard--post p { font-size: 0.75rem; color: rgba(255,255,255,.75); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 0.78rem; color: rgba(255,255,255,.85); flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 14px; }
.footer-bottom a:hover { text-decoration: underline; }

.giant {
  position: relative; height: clamp(110px, 15vw, 220px); margin-top: 30px;
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 45%); mask: linear-gradient(180deg, transparent 0%, #000 45%);
}
.giant-grid {
  position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 4px 12px;
  font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,.4); line-height: 1.6; overflow: hidden;
  -webkit-mask: radial-gradient(60% 80% at 50% 30%, #000, transparent); mask: radial-gradient(60% 80% at 50% 30%, #000, transparent);
}
.giant-word {
  position: absolute; left: 50%; bottom: -0.2em; transform: translateX(-50%);
  font-size: clamp(66px, 16.5vw, 250px); font-weight: 800; letter-spacing: -0.05em; line-height: .8;
  color: #f1f2f5; white-space: nowrap; user-select: none;
}

@media (max-width: 960px) { .footer-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-cards { grid-template-columns: 1fr; } }

/* ==========================================================================
   Inner-page hero (Services / About)
   ========================================================================== */
.page-hero { padding-top: 110px; }
.banner {
  position: relative; overflow: hidden; border-radius: 0;
  min-height: 460px; display: flex; align-items: center;
  color: #fff;
}
.banner .container { position: relative; z-index: 2; display: grid; gap: 18px; justify-items: start; padding-top: 60px; padding-bottom: 60px; }
.banner .display { color: #fff; }
.banner .lead { color: rgba(255,255,255,.88); }
.banner-art { position: absolute; inset: 0; }
.banner--services .banner-art {
  background:
    radial-gradient(500px 300px at 22% 62%, rgba(255, 214, 170, .9), transparent 60%),
    linear-gradient(180deg, #9cc4d9 0%, #c7dbe0 48%, #b9a99a 62%, #6c625c 100%);
}
.banner--services { color: var(--ink); }
.banner--services .display { color: var(--ink); }
.banner--services .lead { color: var(--ink-2); }
.banner--about .banner-art {
  background:
    linear-gradient(90deg, rgba(14, 22, 38, .85) 0%, rgba(14, 22, 38, .4) 45%, transparent 70%),
    linear-gradient(180deg, #34507a 0%, #1f3354 60%, #0f1a2e 100%);
}

/* Floating container art for Services banner */
.cube-scene { position: absolute; right: 4%; bottom: 6%; width: min(50vw, 640px); height: auto; overflow: visible; }
.cube-scene .cube { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 760px) { .cube-scene { opacity: .3; width: 110vw; right: -30%; } }

/* Ship-like skyline art for About banner */
.skyline { position: absolute; right: 0; bottom: 0; width: 65%; height: 80%; display: flex; align-items: flex-end; gap: 1.2%; padding-right: 3%; }
.skyline span { flex: 1; background: linear-gradient(180deg, #4e6d9e, #263d63); border-radius: 3px 3px 0 0; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.skyline span::after { content: ""; position: absolute; inset: 10px 25%; background: repeating-linear-gradient(180deg, rgba(255,214,150,.75) 0 3px, transparent 3px 12px); opacity: .45; }

/* ---------- Stats row ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 70px 0; }
.stats-row strong { display: block; font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.stats-row span { font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 760px) { .stats-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Staircase impact cards ---------- */
.stairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 60px; }
.stair {
  background: var(--bg-2); border-radius: var(--radius); padding: 22px;
  min-height: 230px; display: flex; flex-direction: column; justify-content: space-between;
  translate: 0 calc(var(--step) * 58px);
  transition: background .3s, opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.stair:hover { background: #fff; box-shadow: var(--shadow); }
.stair strong { font-size: clamp(1.8rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: -0.03em; }
.stair span { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; }
.stair svg { width: 15px; height: 15px; }
.stairs-spacer { height: 174px; }
@media (max-width: 900px) { .stairs { grid-template-columns: 1fr 1fr; } .stair { translate: none; } .stairs-spacer { height: 0; } }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 100px); align-items: center; }
.split + .split { margin-top: clamp(90px, 12vw, 160px); }
.split-copy { display: grid; gap: 20px; justify-items: start; }
.split-copy .lead { font-size: 0.95rem; }
.split--rev .split-copy { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split-copy { order: 0; } }

.stage { background: var(--bg-2); border-radius: var(--radius-lg); padding: clamp(18px, 4vw, 40px) clamp(18px, 6vw, 60px) 0; overflow: hidden; }
.mock { background: #fff; border-radius: 14px 14px 0 0; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 12px; }
.mock h4 { font-size: 0.9rem; font-weight: 600; }
.mock .skel { height: 7px; border-radius: 4px; background: #eceef2; }
.mock-field { display: grid; gap: 5px; }
.mock-field label { font-size: 0.68rem; font-weight: 600; color: var(--ink-2); }
.mock-field div { font-size: 0.82rem; padding: 10px 12px; border-radius: 8px; background: #f3f4f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-toggle { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.switch { width: 30px; height: 18px; border-radius: 999px; background: #d1fadf; position: relative; }
.switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--success); }
.mock .btn { width: 100%; height: 40px; border-radius: 999px; font-size: 0.7rem; }
.typing::after { content: "|"; animation: blink 1s steps(1) infinite; margin-left: 1px; color: var(--accent); }

.board { background: var(--bg-2); border-radius: var(--radius-lg); padding: 14px; display: grid; gap: 10px; }
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.node {
  background: #ecebe8; border-radius: 12px; padding: 16px; min-height: 160px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.node h5 { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; font-size: 0.88rem; font-weight: 600; }
.node h5 svg { width: 16px; height: 16px; }
.node p { font-size: 0.75rem; color: var(--ink-2); line-height: 1.45; }
.node .chip { align-self: flex-start; background: #dcdcdc; color: var(--ink); }
.node.is-active { background: #fff; box-shadow: var(--shadow); transform: translateY(-2px); }
.node.is-active .chip { background: var(--accent); color: #fff; }
.board-bar { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 8px 8px 8px 10px; box-shadow: var(--shadow-sm); }
.board-bar .ico { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; }
.board-bar .ico svg { width: 14px; height: 14px; }
.board-bar strong { font-size: 0.82rem; font-weight: 600; margin-right: auto; }
.pill-btn { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 0.66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pill-btn--dark { background: var(--navy-600); color: #fff; border-color: transparent; }
@media (max-width: 480px) { .board-bar .pill-btn:first-of-type { display: none; } }

/* ---------- Service list ---------- */
.service-list { margin-top: 56px; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 70px 1.1fr 1.4fr 40px; gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: opacity .9s var(--ease), transform .9s var(--ease), padding .4s var(--ease), background .3s;
}
.service:hover { padding-left: 14px; padding-right: 14px; background: rgba(255,255,255,.6); }
.service .svc-glyph { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-600); transition: background .3s, color .3s; }
.service .svc-glyph .lottie { width: 32px; height: 32px; }
.service:hover .svc-glyph { background: var(--accent); color: #fff; }
.service h3 .svc-badge { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-600); }
.service--feature { background: linear-gradient(90deg, rgba(226,87,43,.06), transparent 60%); }
.service h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; }
.service p { font-size: 0.9rem; color: var(--ink-2); }
.service .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); transition: background .3s, color .3s, transform .3s var(--ease); }
.service:hover .go { background: var(--accent); color: #fff; transform: rotate(-45deg); }
@media (max-width: 760px) { .service { grid-template-columns: auto 1fr auto; gap: 12px 14px; } .service .svc-glyph { width: 44px; height: 44px; } .service p { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Values / team ---------- */
.values { margin-top: 10px; background: #fff; border-radius: var(--radius); padding: 6px 18px; box-shadow: var(--shadow-sm); width: 100%; }
.value { padding: 16px 0; border-bottom: 1px solid var(--line); }
.value:last-child { border: 0; }
.value h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.value p { font-size: 0.82rem; color: var(--muted); }
.photo-art {
  aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(160deg, #dfe6f1 0%, #b7c4da 50%, #8193b5 100%);
}
.photo-art .win { position: absolute; top: 8%; bottom: 40%; width: 26%; background: repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 30%, rgba(255,255,255,.35) 30% 33%); border-radius: 4px; }
.photo-art .win:nth-child(1) { left: 6%; } .photo-art .win:nth-child(2) { left: 37%; } .photo-art .win:nth-child(3) { left: 68%; }
.photo-art .desk { position: absolute; left: 10%; right: 10%; bottom: 14%; height: 16%; background: linear-gradient(180deg, #c99a6b, #a87b50); border-radius: 8px; transform: perspective(400px) rotateX(30deg); }
.photo-art .people { position: absolute; left: 0; right: 0; bottom: 26%; display: flex; justify-content: center; gap: 4%; }
.photo-art .people i { width: 13%; aspect-ratio: .55; border-radius: 40px 40px 8px 8px; background: linear-gradient(180deg, var(--c, #2c3a5c) 0 70%, transparent 70%); position: relative; }
.photo-art .people i::before { content: ""; position: absolute; left: 50%; top: -34%; width: 64%; aspect-ratio: 1; margin-left: -32%; border-radius: 50%; background: #e9c3a3; }
.photo-art .people i:nth-child(2) { --c: #e2572b; transform: translateY(-8%); }
.photo-art .people i:nth-child(3) { --c: #8fa3c8; transform: translateY(-14%); }
.photo-art .people i:nth-child(4) { --c: #f3f2ef; }

.founder { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.member--founder { aspect-ratio: 1; max-width: 340px; width: 100%; justify-self: center; }
.member-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.member--founder h3 { font-size: 1.25rem; }
.member--founder p { font-size: .85rem; }
.member { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 0.66; background: linear-gradient(180deg, #e6e5e2, #d4d3cf); }
.member .portrait { position: absolute; inset: 14% 10% 0; display: grid; place-items: end center; }
.member .portrait::before { content: ""; position: absolute; top: 4%; left: 50%; width: 44%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--skin, #e7c2a1); }
.member .portrait::after { content: ""; width: 92%; height: 52%; border-radius: 50% 50% 0 0 / 40% 40% 0 0; background: var(--shirt, #fafafa); }
.member .role { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 0.66rem; font-weight: 600; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.9); }
.member .info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 50px 16px 16px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.95) 45%); }
.member h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.member p { font-size: 0.76rem; color: var(--ink-2); }
@media (max-width: 820px) { .founder { grid-template-columns: 1fr; } .member--founder { max-width: 320px; margin: 0 auto; } }

/* ---------- 404 ---------- */
.notfound { min-height: 80svh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; }
.notfound-art { width: min(380px, 82vw); height: auto; aspect-ratio: 2 / 1; color: var(--navy-800); margin-bottom: -10px; }
.notfound .display { font-size: clamp(5rem, 18vw, 12rem); font-weight: 800; letter-spacing: -0.06em; line-height: .9; color: var(--navy-800); }
