/* =========================================================
   Calei Partners · calei.es
   Palette: #164863 deep blue · #427D9D steel blue · #9BBEC8 grey blue · #DDF2FD ice blue
   Light theme with deep-blue contrast sections.
   ========================================================= */
:root {
  /* palette */
  --cream: #DDF2FD;
  --teal: #9BBEC8;
  --orange: #427D9D;
  --terra: #164863;
  /* derived */
  --bg: #F7FBFE;
  --bg-2: #DDF2FD;
  --surface: #FFFFFF;
  --ink: #0D2B3B;
  --ink-2: #0E2F42;
  --ink-3: #164863;
  --text: #0D2B3B;
  --muted: #3E5C6C;
  --terra-deep: #2F6585;
  --accent-on-dark: #9BBEC8;  /* accents inside dark sections: 7:1 on #0E2F42 */      /* small accent text on light: 4.7:1 */
  --teal-deep: #2F6585;       /* teal text on light: 5.6:1 */
  --line: rgba(13, 43, 59, .12);
  --line-2: rgba(13, 43, 59, .2);
  --line-dark: rgba(221, 242, 253, .14);
  --grad: linear-gradient(100deg, var(--terra) 0%, var(--orange) 100%);
  --grad-text: linear-gradient(100deg, var(--terra-deep) 0%, var(--terra) 70%, #427D9D 100%);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  /* canvas colours (read by JS) */
  --c-node: rgba(22, 72, 99, .75);
  --c-link: 66, 125, 157;
  /* z-index scale */
  --z-content: 10; --z-float: 20; --z-nav: 50; --z-menu: 60; --z-top: 90;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
button, input, textarea, select { font-family: inherit; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--terra-deep); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dark .grad { background: linear-gradient(100deg, var(--accent-on-dark), var(--cream)); -webkit-background-clip: text; background-clip: text; }
.mono { font-family: var(--font-mono); font-weight: 500; font-size: .82em; padding: .02em .35em; border: 1px solid var(--line-dark); border-radius: 12px; background: rgba(155, 190, 200, .1); color: var(--teal); }
.skip { position: fixed; left: 16px; top: -60px; z-index: var(--z-top); background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- scroll progress + cursor glow ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: var(--z-top); background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.cursor-glow { position: fixed; z-index: 1; width: 520px; height: 520px; left: 0; top: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 125, 157, .16), transparent 60%); transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s; mix-blend-mode: multiply; }
@media (hover: hover) { body:hover .cursor-glow { opacity: 1; } }

/* ---------- buttons ---------- */
.btn { --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 26px;
  border-radius: 999px; font-weight: 600; font-size: 16px; cursor: pointer; border: 1px solid transparent; position: relative;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s; white-space: nowrap; }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); background-size: 180% 100%; color: #fff; box-shadow: 0 12px 30px -12px rgba(22, 72, 99, .7); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 40px -12px rgba(22, 72, 99, .85); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255, 255, 255, .6); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--terra); background: #fff; }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: var(--z-nav); top: 14px; left: 50%; transform: translateX(-50%); width: calc(100% - 28px); max-width: 1240px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 18px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(247, 251, 254, .65); backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%); transition: background .3s, border-color .3s, top .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(247, 251, 254, .92); border-color: var(--line-2); top: 8px; box-shadow: 0 10px 30px -18px rgba(13, 43, 59, .35); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.brand b { color: var(--terra); }
.brand small { font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 6px; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: rgba(22, 72, 99, .1); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.lang { position: relative; display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .7); }
.lang button { position: relative; z-index: 1; min-width: 44px; height: 36px; border: 0; background: none; color: var(--muted); font: 600 13px var(--font-mono);
  letter-spacing: .06em; border-radius: 999px; cursor: pointer; transition: color .25s; }
.lang button[aria-pressed="true"] { color: var(--cream); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.lang-pill { position: absolute; top: 3px; left: 3px; height: 36px; width: 44px; border-radius: 999px; background: var(--ink); transition: transform .35s var(--ease); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { position: fixed; z-index: var(--z-menu); top: 78px; left: 14px; right: 14px; padding: 16px; display: grid; gap: 4px;
  border: 1px solid var(--line-2); border-radius: 24px; background: rgba(247, 251, 254, .97); backdrop-filter: blur(16px); animation: drop .35s var(--ease);
  box-shadow: 0 30px 60px -30px rgba(13, 43, 59, .45); }
.mobile-menu a:not(.btn) { padding: 14px 12px; border-radius: 12px; font-weight: 500; }
.mobile-menu a:not(.btn):hover { background: rgba(22, 72, 99, .08); }
.mobile-menu .btn { margin-top: 8px; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 100px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .8; }
.hero-grid { position: absolute; inset: -20% -10%; z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }
.orb { position: absolute; z-index: -2; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.orb-a { width: 560px; height: 560px; left: -160px; top: -140px; background: radial-gradient(circle, rgba(155, 190, 200, .95), transparent 65%); animation: float 14s ease-in-out infinite; }
.orb-b { width: 620px; height: 620px; right: -200px; bottom: -260px; background: radial-gradient(circle, rgba(66, 125, 157, .55), transparent 65%); animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { translate: 40px -30px; } }

.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  font: 500 13px var(--font-mono); letter-spacing: .06em; color: var(--muted); background: rgba(255, 255, 255, .65); text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 0 rgba(22, 72, 99, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(22, 72, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 72, 99, 0); } }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); margin: 22px 0 22px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 580px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14.5px; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; fill: none; stroke: var(--terra); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; perspective: 1200px; }
.terminal { position: relative; z-index: var(--z-content); border: 1px solid rgba(13, 43, 59, .3); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); box-shadow: 0 50px 100px -40px rgba(13, 43, 59, .65), 0 0 0 6px rgba(255, 255, 255, .5);
  transform-style: preserve-3d; transition: transform .2s ease-out; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line-dark); font: 12px var(--font-mono); color: #B6CFD8; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; }
.term-bar i:nth-child(1) { background: var(--cream); } .term-bar i:nth-child(2) { background: var(--accent-on-dark); } .term-bar i:nth-child(3) { background: var(--teal); }
.term-bar span { margin-left: 10px; }
.term-body { margin: 0; padding: 18px 20px; min-height: 270px; font: 13.5px/1.75 var(--font-mono); color: #DDF2FD; white-space: pre-wrap; }
.term-body .c-ok { color: var(--teal); } .term-body .c-dim { color: #8FB0BF; } .term-body .c-sky { color: var(--accent-on-dark); } .term-body .c-vi { color: var(--cream); font-weight: 500; }
.term-body .caret { display: inline-block; width: 8px; height: 16px; background: var(--accent-on-dark); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 20px 20px; }
.term-stages span { text-align: center; font: 12px var(--font-mono); padding: 8px 0; border-radius: 10px; border: 1px solid var(--line-dark); color: #8FB0BF; transition: all .4s var(--ease); }
.term-stages span.run { color: var(--accent-on-dark); border-color: rgba(66, 125, 157, .6); background: rgba(66, 125, 157, .1); }
.term-stages span.done { color: var(--ink); border-color: transparent; background: var(--teal); }

.float-card { position: absolute; z-index: var(--z-float); padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); box-shadow: 0 24px 50px -24px rgba(13, 43, 59, .45); display: grid; gap: 2px; }
.float-card b { font-family: var(--font-display); font-size: 22px; }
.float-card small { color: var(--muted); font-size: 12.5px; }
.fc-1 { left: -46px; bottom: -42px; width: 190px; animation: bob 6s ease-in-out infinite; }
.fc-1 svg { margin-top: 6px; }
.fc-1 path { stroke: var(--terra); }
.fc-2 { right: -26px; top: -34px; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; animation: bob 7s ease-in-out infinite reverse; }
.fc-2 b { font: 600 14px var(--font-mono); } .fc-2 small { grid-column: 2; }
.pulse { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: var(--teal-deep); animation: ping 1.6s infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--terra); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- section titles ---------- */
section { position: relative; }
.section-kicker { font: 500 13px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--terra-deep); margin-bottom: 16px; }
.dark .section-kicker { color: var(--accent-on-dark); }
section h2 { font-size: clamp(32px, 4.4vw, 58px); max-width: 900px; }
.section-lead { color: var(--muted); font-size: 18.5px; max-width: 640px; margin-top: 20px; }
.dark { background: var(--ink-2); color: var(--cream); }
.dark .section-lead { color: #B6CFD8; }

/* ---------- clients marquee ---------- */
.clients { padding: 120px 0 90px; background: var(--bg-2); }
.clients h2 { margin-bottom: 56px; }
.marquee { overflow: hidden; padding: 12px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: marquee 38s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 34s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }
.logo-card { flex: none; display: flex; align-items: center; justify-content: center; gap: 12px; width: 230px; height: 100px; padding: 18px 24px;
  background: transparent; border: 0; border-radius: 18px; transition: transform .35s var(--ease); }
.logo-card img { max-height: 52px; max-width: 100%; width: auto; filter: grayscale(1) contrast(1.1); opacity: .6; mix-blend-mode: multiply; transition: filter .35s, opacity .35s; }
.logo-card img.sq { max-height: 60px; }
.logo-card img.ico { height: 40px; width: 40px; flex: none; }
.logo-card .wm { font: 700 25px var(--font-display); color: var(--ink); letter-spacing: -.02em; opacity: .62; transition: opacity .35s; }
.logo-card:hover { transform: translateY(-5px) scale(1.04); }
.logo-card:hover img { filter: none; opacity: 1; }
.logo-card:hover .wm { opacity: 1; }
.logo-card:hover .ico-spotify { filter: invert(56%) sepia(76%) saturate(546%) hue-rotate(88deg) brightness(95%) contrast(90%); }
.clients-more { margin-top: 36px; color: var(--muted); text-align: center; font-style: italic; }

/* ---------- services bento ---------- */
.services { padding: 130px 0; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.card { position: relative; overflow: hidden; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); isolation: isolate;
  box-shadow: 0 20px 40px -32px rgba(13, 43, 59, .4); }
.card.span-2 { grid-column: span 2; min-height: 380px; }
.card.feat-a { background: linear-gradient(160deg, #fff 30%, rgba(155, 190, 200, .55)); }
.card.feat-b { background: linear-gradient(160deg, #fff 30%, rgba(66, 125, 157, .28)); }
.card:hover { border-color: rgba(22, 72, 99, .45); transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(22, 72, 99, .5); }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(66, 125, 157, .18), transparent 45%); }
.spot:hover::before { opacity: 1; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--cream); border: 1px solid rgba(22, 72, 99, .3); }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--terra-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 24px; margin-bottom: 12px; }
.card.span-2 h3 { font-size: 30px; }
.card p { color: var(--muted); font-size: 16px; max-width: 480px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; position: relative; z-index: 1; }
.tags li { font: 12.5px var(--font-mono); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); background: rgba(255, 255, 255, .8); }
.card-art { position: absolute; right: -10px; bottom: -10px; z-index: -1; }
.art-saas { display: grid; grid-template-columns: repeat(3, 54px); gap: 10px; transform: rotate(-12deg) translate(10px, 30px); }
.art-saas span { height: 54px; border-radius: 12px; border: 1px solid rgba(47, 101, 133, .35); background: rgba(155, 190, 200, .5); animation: tile 4s ease-in-out infinite; }
.art-saas span:nth-child(2n) { animation-delay: .6s; } .art-saas span:nth-child(3n) { animation-delay: 1.2s; }
@keyframes tile { 50% { background: var(--orange); border-color: var(--terra); } }
.art-pipe { display: flex; align-items: center; right: 28px; bottom: 34px; }
.art-pipe i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(22, 72, 99, .5); background: #fff; position: relative; animation: node 3s infinite; }
.art-pipe i + i { margin-left: 30px; }
.art-pipe i + i::before { content: ""; position: absolute; right: 100%; top: 50%; width: 32px; height: 2px; background: rgba(22, 72, 99, .35); }
.art-pipe i:nth-child(2) { animation-delay: .4s; } .art-pipe i:nth-child(3) { animation-delay: .8s; } .art-pipe i:nth-child(4) { animation-delay: 1.2s; } .art-pipe i:nth-child(5) { animation-delay: 1.6s; }
@keyframes node { 20%, 40% { background: var(--terra); border-color: var(--terra); box-shadow: 0 0 18px rgba(22, 72, 99, .7); } }

/* ---------- pipeline sticky (dark) ---------- */
.pipeline { height: 260vh; background: radial-gradient(ellipse at 50% 0%, rgba(66, 125, 157, .16), transparent 60%), var(--ink-2); color: var(--cream); }
.pipe-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.pipe-track { position: relative; height: 4px; margin: 70px 0 0; border-radius: 4px; background: var(--line-dark); }
.pipe-fill { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--accent-on-dark), var(--terra)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.pipe-runner { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--cream); box-shadow: 0 0 0 6px rgba(66, 125, 157, .3), 0 0 30px var(--orange); }
.pipe-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 34px; }
.pipe-steps li { display: grid; gap: 6px; align-content: start; padding: 20px 16px; border-radius: 16px; border: 1px solid var(--line-dark); background: rgba(221, 242, 253, .04);
  opacity: .35; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .5s, background .5s; }
.pipe-steps li.on { opacity: 1; transform: none; border-color: rgba(66, 125, 157, .55); background: rgba(66, 125, 157, .08); }
.pipe-steps .n { font: 12px var(--font-mono); color: var(--accent-on-dark); }
.pipe-steps b { font: 700 20px var(--font-display); }
.pipe-steps small { color: #B6CFD8; font-size: 13.5px; line-height: 1.5; }

/* ---------- stats ---------- */
.stats { padding: 90px 0; background: var(--teal); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { display: grid; gap: 8px; align-content: start; padding-left: 20px; border-left: 3px solid var(--terra); }
.stat b { font: 700 clamp(38px, 4vw, 54px) var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.stat span:not(.count) { color: #21465A; font-size: 15px; }

/* ---------- sectors ---------- */
.sectors { padding: 130px 0; }
.sector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.sector { position: relative; min-height: 460px; border-radius: 26px; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; color: var(--cream);
  box-shadow: 0 40px 60px -40px rgba(13, 43, 59, .6); }
.sector-bg { position: absolute; inset: -18% 0; z-index: -1; }
.sector-bank .sector-bg { background:
  repeating-linear-gradient(90deg, rgba(155, 190, 200, .1) 0 2px, transparent 2px 80px),
  linear-gradient(160deg, #1D5878 0%, #123B52 45%, var(--ink-2) 100%); }
.sector-bank .sector-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(155, 190, 200, .45), transparent 35%), radial-gradient(circle at 20% 70%, rgba(66, 125, 157, .2), transparent 40%); }
.sector-stream .sector-bg { background: linear-gradient(160deg, #2F6585 0%, #0F3A52 50%, var(--ink-2) 100%); }
.sector-stream .sector-bg::after { content: ""; position: absolute; left: 0; right: 0; top: 18%; height: 40%;
  background: repeating-linear-gradient(90deg, rgba(221, 242, 253, .55) 0 6px, transparent 6px 14px);
  mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent);
  animation: eq 2.4s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes eq { 0% { transform: scaleY(.4); } 50% { transform: scaleY(1); } 100% { transform: scaleY(.6); } }
.sector-content { padding: 36px; background: linear-gradient(transparent, rgba(14, 47, 66, .94) 35%); width: 100%; }
.sector h3 { font-size: 32px; margin-bottom: 12px; }
.sector p { color: #DDF2FD; max-width: 520px; }
.checks { display: grid; gap: 8px; margin-top: 18px; }
.checks li { position: relative; padding-left: 28px; font-size: 15.5px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: rgba(66, 125, 157, .2); box-shadow: inset 0 0 0 1px var(--accent-on-dark); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 9px; border: solid var(--accent-on-dark); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- method timeline ---------- */
.method { padding: 130px 0; background: var(--bg-2); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 70px; }
.tl-line { position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--line-2); }
.tl-line span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.timeline.in .tl-line span { transform: scaleX(1); }
.tl-item { position: relative; padding-top: 40px; }
.tl-dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-2); border: 3px solid var(--terra); box-shadow: 0 0 0 6px rgba(22, 72, 99, .15); }
.tl-item small { font: 500 12.5px var(--font-mono); color: var(--teal-deep); letter-spacing: .08em; text-transform: uppercase; }
.tl-item h3 { font-size: 22px; margin: 8px 0 10px; }
.tl-item p { color: var(--muted); font-size: 15.5px; }

/* ---------- contact (dark) ---------- */
.contact { padding: 140px 0; overflow: hidden; isolation: isolate; }
.contact-glow { position: absolute; left: 50%; top: 10%; width: 900px; height: 900px; margin-left: -450px; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 90deg, rgba(22, 72, 99, .35), rgba(155, 190, 200, .2), rgba(66, 125, 157, .3), rgba(22, 72, 99, .35)); filter: blur(110px); animation: spin 30s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.contact-inner { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 48px; text-align: center; }
.contact-copy { display: grid; justify-items: center; max-width: 760px; }
.contact-copy h2 { margin-inline: auto; }
.contact-copy .section-lead { margin-inline: auto; }
.mail-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; font: 600 22px var(--font-display); border-bottom: 2px solid var(--accent-on-dark); padding-bottom: 4px; transition: color .2s; }
.mail-link:hover { color: var(--accent-on-dark); }
/* ---------- email shown as an image (anti-scraping) ---------- */
.mail-link { cursor: default; user-select: none; }
.email-img { display: block; height: 30px; width: auto; }
.email-img.sm { height: 20px; margin: 2px 0; }

.mail-link svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-on-dark); stroke-width: 1.8; }

/* ---------- footer ---------- */
.footer { padding: 70px 0 30px; background: #0A2433; color: var(--cream); }
.footer .brand b { color: var(--accent-on-dark); }
.footer .brand small { color: #8FB0BF; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-tag { color: #B6CFD8; margin-top: 14px; font-size: 15px; }
.legal { font-style: normal; color: #C9E2EE; font-size: 15px; line-height: 1.75; }
.legal strong { color: var(--cream); }
.footer-contact { display: grid; gap: 6px; align-content: start; font-size: 15px; }
.footer-contact span { color: var(--accent-on-dark); font: 500 12.5px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; }
.footer-contact a { color: var(--cream); transition: color .2s; }
.footer-contact a:hover { color: var(--accent-on-dark); }
.sister { color: #B6CFD8 !important; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: #8FB0BF; font-size: 14px; }
.footer-bottom a:hover { color: var(--accent-on-dark); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 80px; }
  .hero-visual { max-width: 560px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .pipe-steps { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .tl-line { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav { padding: 8px 8px 8px 14px; }
  .brand small, .nav-cta { display: none; }
  .lang button { min-width: 38px; }
  .lang-pill { width: 38px; }
  .hero { padding: 120px 0 90px; }
  .hero-visual { margin: 0 14px; }
  .fc-1 { left: -10px; bottom: -50px; width: 170px; }
  .fc-2 { right: -8px; top: -44px; }
  .term-body { font-size: 12px; min-height: 230px; padding: 14px; }
  .bento, .sector-grid, .footer-grid { grid-template-columns: 1fr; }
  .card.span-2 { grid-column: auto; min-height: 0; padding-bottom: 120px; }
  .card { padding: 26px; }
  .pipeline { height: auto; }
  .pipe-sticky { position: relative; height: auto; padding: 110px 0; }
  .pipe-track { display: none; }
  .pipe-steps { grid-template-columns: 1fr 1fr; }
  .pipe-steps li { opacity: 1; transform: none; }
  .stats-grid, .timeline { grid-template-columns: 1fr; }
  .logo-card { width: 180px; height: 86px; padding: 14px 16px; }
  .logo-card .wm { font-size: 21px; }
  .sector { min-height: 420px; }
  .sector-content { padding: 26px; }
  .services, .sectors, .method, .clients, .contact { padding: 90px 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .reveal { opacity: 1; transform: none; }
  .hero-canvas { display: none; }
}
