/* =========================================================================
   QuickAnalytics.ai: every system, every market.
   Colours follow Assets/brand-tokens.css (the 13 Connected World palette).
   Light is the default theme; [data-theme="dark"] on <html> switches to dark.
   ========================================================================= */

/* ---------- Fonts (served from /fonts; SIL Open Font License, see fonts/LICENSE-*.txt) ---------- */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/sora-500.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/sora-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plex-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plex-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/plex-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/plex-sans-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plex-mono-500.woff2') format('woff2'); }

/* ---------- Theme tokens: light (default) ---------- */
:root,
[data-theme='light'] {
  --bg: #f7f8fc;
  --bg-deep: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f3f4fb;
  --text: #0e1330;
  --muted: #4e5683;
  --subtle: #6a7299;
  --line: rgba(22, 44, 119, 0.09);
  --line-strong: rgba(22, 44, 119, 0.17);
  --violet: #5a3df0;
  --cyan: #18c8f0;
  --accent-ink: #5a3df0;
  --warn: #d9582b;
  --warn-line: rgba(217, 88, 43, 0.45);
  --chore-text: #b4461f;
  --chore-bg: rgba(217, 88, 43, 0.07);

  --ring: linear-gradient(146deg, #2e30a0 0%, #4437c8 35%, #5340e2 55%, #654cf5 75%, #7660ff 100%);

  --glow-violet: rgba(90, 61, 240, 0.13);
  --glow-cyan: rgba(24, 200, 240, 0.1);
  --glow-blue: rgba(88, 104, 255, 0.09);
  --grid-dot: rgba(22, 44, 119, 0.17);
  --menu-bg: rgba(247, 248, 252, 0.8);
  --card-bg: linear-gradient(180deg, #ffffff, #fbfbfe);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 22px 48px -30px rgba(22, 44, 119, 0.28);
  --panel-bg: linear-gradient(180deg, #ffffff, #f8f9fd);
  --panel-shadow: 0 40px 90px -50px rgba(22, 44, 119, 0.35);
  --art-bg: radial-gradient(60% 60% at 50% 50%, rgba(24, 200, 240, 0.08), transparent 70%), #f3f4fb;
  --chip-dot: #bec4d9;
  --input-bg: #ffffff;
  --ghost-bg: rgba(255, 255, 255, 0.7);
  --ghost-hover: rgba(22, 44, 119, 0.05);
  --dim-text: rgba(14, 19, 48, 0.13);
  --outline-text: rgba(22, 44, 119, 0.24);
  --grain: 0.03;
  --mark-shadow: rgba(90, 61, 240, 0.28);
  --icon-bg: rgba(90, 61, 240, 0.08);
  --icon-ink: #5a3df0;
  --shadow-pop: 0 30px 70px -30px rgba(22, 44, 119, 0.4);

  /* The mark in its colour-on-light version (Assets/svg/mark-color.svg). */
  --mr0: #2e30a0;
  --mr1: #4f3edb;
  --mr2: #5944e8;
  --mr3: #634bf3;
  --mr4: #6e56fa;
  --mr5: #7660ff;
  --mark-grid: #bec4d9;
  --mark-a: #162c77;

  /* Service illustrations */
  --i-line: rgba(22, 44, 119, 0.2);
  --i-line-soft: rgba(22, 44, 119, 0.1);
  --i-surface: #ffffff;
  --i-ink: #f3f4fb;
  --i-dot: #162c77;
  --i-glyph: #5a6290;
  --i-text: #1d2550;
  --i-label: #5a6290;
  --i-code: rgba(22, 44, 119, 0.45);
  --i-pointer: #162c77;

  --btn-bg: #5a3df0;
  --btn-bg-hover: #4a2fdc;
  --pill-bg: #f1f3fa;
  --cta-bg: #0e1330;
  --cta-line: transparent;
  --ins-line: rgba(22, 44, 119, 0.26);
  --ins-line-back: rgba(22, 44, 119, 0.1);
  --ins-rim: rgba(22, 44, 119, 0.42);
  --ins-fill: rgba(255, 255, 255, 0.55);
  --rule: rgba(22, 44, 119, 0.22);

  /* Glass (Apple-style material) */
  --glass-1: rgba(255, 255, 255, 0.72);
  --glass-2: rgba(255, 255, 255, 0.42);
  --glass-rim: rgba(255, 255, 255, 0.95);
  --glass-rim-2: rgba(255, 255, 255, 0.32);
  --glass-edge: rgba(22, 44, 119, 0.12);
  --glass-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65), 0 22px 50px -28px rgba(22, 44, 119, 0.45), 0 3px 10px -5px rgba(22, 44, 119, 0.16);
  --glass-blur: blur(24px) saturate(190%) brightness(1.04);
  --glass-sheen: rgba(255, 255, 255, 0.75);
  --glass-base: rgba(255, 255, 255, 0);
  /* The dark world the page passes through (statement and services) */
  --stage: #0e1330;

  /* Read by js/globe.js */
  --globe-rgb: 22, 44, 119;
  --globe-tint: 90, 61, 240;
  color-scheme: light;
}

/* ---------- Theme tokens: dark (also the stage sections and the closing panel) ---------- */
[data-theme='dark'],
.on-stage,
.orbit.is-stage,
.cta__panel,
.site-header.is-stage-top,
.site-header.is-over-dark,
.site-footer,
.wa.is-stage,
.wa.is-over-dark {
  --bg: #0e1330;
  --bg-deep: #0a0e26;
  --surface: #121839;
  --surface-2: #161d45;
  --text: #f4f6ff;
  --muted: #aeb8e0;
  --subtle: #8a93bb;
  --line: rgba(174, 184, 224, 0.12);
  --line-strong: rgba(174, 184, 224, 0.24);
  --violet: #7a5cff;
  --accent-ink: #18c8f0;
  --warn: #ff9f7a;
  --warn-line: rgba(255, 159, 122, 0.45);
  --chore-text: #ffc3ab;
  --chore-bg: rgba(255, 159, 122, 0.08);

  --ring: linear-gradient(146deg, #5868ff 0%, #7a5cff 50%, #5a80fa 73%, #3f9df6 88%, #3aa6f5 100%);

  --glow-violet: rgba(90, 61, 240, 0.32);
  --glow-cyan: rgba(24, 200, 240, 0.14);
  --glow-blue: rgba(88, 104, 255, 0.16);
  --grid-dot: rgba(174, 184, 224, 0.2);
  --menu-bg: rgba(10, 14, 38, 0.82);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  --card-shadow: none;
  --panel-bg: linear-gradient(180deg, rgba(22, 29, 69, 0.88), rgba(12, 16, 42, 0.88));
  --panel-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.8);
  --art-bg: radial-gradient(60% 60% at 50% 50%, rgba(24, 200, 240, 0.07), transparent 70%), rgba(9, 12, 34, 0.35);
  --chip-dot: #5b6178;
  --input-bg: rgba(255, 255, 255, 0.03);
  --ghost-bg: rgba(255, 255, 255, 0.025);
  --ghost-hover: rgba(255, 255, 255, 0.06);
  --dim-text: rgba(244, 246, 255, 0.14);
  --outline-text: rgba(174, 184, 224, 0.32);
  --grain: 0.05;
  --mark-shadow: rgba(90, 61, 240, 0.5);
  --icon-bg: rgba(122, 92, 255, 0.14);
  --icon-ink: #b9a9ff;
  --shadow-pop: 0 30px 80px -30px rgba(0, 0, 0, 0.8);

  --mr0: #5868ff;
  --mr1: #7a5cff;
  --mr2: #7166fe;
  --mr3: #5a80fa;
  --mr4: #3f9df6;
  --mr5: #3aa6f5;
  --mark-grid: #5b6178;
  --mark-a: #ffffff;

  --i-line: rgba(174, 184, 224, 0.22);
  --i-line-soft: rgba(174, 184, 224, 0.12);
  --i-surface: #141a3d;
  --i-ink: #0e1330;
  --i-dot: #aeb8e0;
  --i-glyph: #aeb8e0;
  --i-text: #e3e7ff;
  --i-label: #aeb8e0;
  --i-code: rgba(174, 184, 224, 0.45);
  --i-pointer: #ffffff;

  --btn-bg: #6a4dff;
  --btn-bg-hover: #7b60ff;
  --pill-bg: rgba(255, 255, 255, 0.05);
  --cta-bg: #151c47;
  --cta-line: rgba(174, 184, 224, 0.16);
  --ins-line: rgba(174, 184, 224, 0.3);
  --ins-line-back: rgba(174, 184, 224, 0.1);
  --ins-rim: rgba(174, 184, 224, 0.45);
  --ins-fill: rgba(255, 255, 255, 0.015);
  --rule: rgba(174, 184, 224, 0.22);

  --glass-1: rgba(255, 255, 255, 0.12);
  --glass-2: rgba(255, 255, 255, 0.04);
  --glass-base: rgba(10, 14, 36, 0.42);
  --glass-rim: rgba(255, 255, 255, 0.45);
  --glass-rim-2: rgba(255, 255, 255, 0.08);
  --glass-edge: rgba(0, 0, 0, 0.45);
  --glass-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 30px 70px -34px rgba(0, 0, 0, 0.85), 0 4px 14px -6px rgba(0, 0, 0, 0.45);
  --glass-blur: blur(30px) saturate(140%);
  --glass-sheen: rgba(255, 255, 255, 0.16);

  --globe-rgb: 174, 184, 224;
  --globe-tint: 90, 61, 240;
  color-scheme: dark;
}
[data-theme='dark'] { --stage: #060918; }
.on-stage, .cta__panel, .site-footer { --bg: var(--stage); --bg-deep: var(--stage); }

:root {
  /* Sora: engineered geometric display, a cousin of the logo's lettering. IBM Plex: systems-grade text and data. */
  --font-display: 'Sora', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 76px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1320px;
  --radius: 28px;
  --wa: #25d366;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ol, ul, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
::selection { background: rgba(122, 92, 255, 0.4); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

@view-transition { navigation: auto; }
/* Theme switch: the new theme spreads out in a circle from the toggle (main.js drives the clip). */
.theme-switching::view-transition-old(root),
.theme-switching::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* Film grain keeps large flat surfaces from feeling digital. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain);
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout & type ---------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; padding: 0.75rem 1rem; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; transition: top 0.3s; }
.skip:focus { top: 1rem; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.display, .display-2, .display-3, .stack__title, .next-svc__title, .footer__statement { font-family: var(--font-display); font-weight: 600; }
.display { font-size: clamp(2.9rem, 6.5vw, 6rem); line-height: 0.98; letter-spacing: -0.042em; }
.display-2 { font-size: clamp(2.1rem, 4.3vw, 3.9rem); line-height: 1.04; letter-spacing: -0.04em; }
.display-3 { font-size: clamp(1.7rem, 2.7vw, 2.45rem); line-height: 1.1; letter-spacing: -0.035em; }
.lede { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 34rem; }
.dot { font-style: normal; color: var(--cyan); }

.section-head { display: grid; gap: 1.25rem; max-width: 48rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head__text { color: var(--muted); font-size: 1.125rem; max-width: 36rem; }

/* ---------- Buttons & links ---------- */
.btn { --py: 0.85rem; --px: 1.35rem; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: var(--py) var(--px); border-radius: 999px; font: 500 0.95rem/1.1 var(--font-body); white-space: nowrap; transition: background-color 0.25s, border-color 0.25s, box-shadow 0.3s, transform 0.4s var(--ease-out); will-change: transform; }
.btn--sm { --py: 0.62rem; --px: 1.05rem; font-size: 0.875rem; }
.btn--lg { --py: 1.02rem; --px: 1.6rem; font-size: 1rem; }
.btn--primary { color: #fff; background: var(--btn-bg); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 10px 24px -14px rgba(90, 61, 240, 0.8); }
.btn--primary:hover { background: var(--btn-bg-hover); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 16px 30px -14px rgba(90, 61, 240, 0.85); }
.btn--ghost { color: var(--text); border: 1px solid transparent; }
.btn--ghost:hover { box-shadow: var(--glass-shadow), 0 0 0 0.5px var(--glass-edge), 0 0 0 4px rgba(122, 92, 255, 0.08); }
.btn--whatsapp .i-icon { width: 1.25em; height: 1.25em; color: var(--wa); }
.i-arrow { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.45s var(--ease-out); }
.i-icon { width: 1.25em; height: 1.25em; flex: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; color: var(--text); padding-bottom: 0.15rem; background: linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% 1px no-repeat, linear-gradient(var(--violet), var(--violet)) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease-out), color 0.3s; }
.link-arrow:hover, a:hover > .link-arrow { background-size: 100% 1px, 100% 1px; color: var(--violet); }

.panel { position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-bg); box-shadow: var(--panel-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05); overflow: hidden; }

/* ---------- Glass ----------
   Apple-style material: a translucent tint over a strong blur with boosted saturation, a bright rim that
   catches the light (and turns towards the pointer), a sheen that follows it, and a soft shadow.
   It is used where there is something behind it to blur: the mark, the ring, the stage, other panels. */
.glass,
.btn--ghost,
.theme-toggle,
.menu-toggle,
.connect--cta .connect__link {
  border-color: transparent;
  background: linear-gradient(145deg, var(--glass-1), var(--glass-2)), linear-gradient(var(--glass-base), var(--glass-base));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), 0 0 0 0.5px var(--glass-edge);
}
.glass::before,
.btn--ghost::before,
.theme-toggle::before,
.menu-toggle::before,
.connect--cta .connect__link::before,
.site-header__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(var(--spec-a, 160deg), var(--glass-rim) 0%, var(--glass-rim-2) 26%, transparent 50%, var(--glass-rim-2) 74%, var(--glass-rim) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.glass::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--glass-sheen), transparent 55%); transition: opacity 0.4s; }
.glass.is-lit::after { opacity: 1; }

.ticks { display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--muted); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.3em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: rgba(24, 200, 240, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230B9FD1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.ticks--lg { gap: 1.1rem; }
.ticks--lg li { padding: 0 0 1.1rem 2.4rem; border-bottom: 1px solid var(--line); color: var(--text); font: 500 clamp(1.1rem, 1.6vw, 1.35rem)/1.4 var(--font-display); letter-spacing: -0.015em; }
.ticks--lg li::before { width: 1.4rem; height: 1.4rem; top: 0.15em; }

/* ---------- Motion: one entrance per page, then scroll-driven scenes only ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.02em 0.14em; margin: -0.04em -0.02em -0.14em; }
.w > span { display: inline-block; }
.js [data-split] .w > span { transform: translate3d(0, 110%, 0); transition: transform 1.1s var(--ease-out) calc(var(--i) * 0.07s + var(--d, 0s)); }
.js [data-split].is-in .w > span { transform: none; }
.line { display: block; }
.js .hero-in { opacity: 0; transform: translate3d(0, 18px, 0); animation: hero-in 1s var(--ease-out) var(--d, 0s) forwards; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* ---------- The animated mark ---------- */
.qa-mark { overflow: visible; }
.qa-s0 { stop-color: var(--mr0); }
.qa-s1 { stop-color: var(--mr1); }
.qa-s2 { stop-color: var(--mr2); }
.qa-s3 { stop-color: var(--mr3); }
.qa-s4 { stop-color: var(--mr4); }
.qa-s5 { stop-color: var(--mr5); }
.qa-grid { stroke: var(--mark-grid); }
.qa-a { fill: var(--mark-a); stroke: var(--mark-a); }
.qa-pointer { fill: var(--i-pointer); stroke: var(--i-pointer); }
.qa-ring { transform-origin: 50px 50px; }
.qa-nodes circle, .qa-spark, .qa-ring__head { transform-box: fill-box; transform-origin: center; }
.qa-a { transform-box: fill-box; transform-origin: 50% 85%; }
.qa-ring.is-spinning { animation: qa-spin 1.2s var(--ease-in-out); }

/* Each part waits in its first frame until the mark scrolls into view (main.js adds .is-in). */
.js .qa-mark[data-animate]:not(.is-in) * { animation-play-state: paused !important; }
.js .qa-mark[data-animate] .qa-ring__arc { stroke-dasharray: 1 1; animation: qa-draw 1.3s var(--ease-out) 0.1s both; }
.js .qa-mark[data-animate] .qa-ring__head { animation: qa-pop 0.5s var(--ease-back) 1.05s both; }
.js .qa-mark[data-animate] .qa-grid path { stroke-dasharray: 1 1; animation: qa-draw 1s var(--ease-out) calc(0.3s + var(--g) * 0.05s) both; }
.js .qa-mark[data-animate] .qa-nodes circle { animation: qa-pop 0.55s var(--ease-back) calc(0.75s + var(--d) * 0.5s) both, qa-twinkle 3.8s ease-in-out calc(2.6s + var(--n) * 0.24s) infinite; }
.js .qa-mark[data-animate] .qa-a { animation: qa-rise 0.9s var(--ease-out) 0.95s both; }
.js .qa-mark[data-animate] .qa-spark { animation: qa-pop 0.6s var(--ease-back) 1.45s both, qa-sparkle 3.2s ease-in-out 2.4s infinite; }
.js .qa-mark[data-animate] .qa-spark--small { animation-delay: 1.6s, 3.1s; animation-duration: 0.6s, 2.6s; }

/* Header mark: entrance only, no idle loops. */
.js .logo .qa-mark[data-animate] .qa-nodes circle { animation: qa-pop 0.55s var(--ease-back) calc(0.75s + var(--d) * 0.5s) both; }
.js .logo .qa-mark[data-animate] .qa-spark { animation: qa-pop 0.6s var(--ease-back) 1.45s both; }
.seen .logo .qa-mark *, .seen .logo__word { animation: none !important; }

@keyframes qa-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes qa-pop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }
@keyframes qa-rise { from { opacity: 0; transform: translateY(35%) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes qa-twinkle { 0%, 100% { opacity: 1; } 45% { opacity: 0.35; } }
@keyframes qa-sparkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(0.55) rotate(45deg); opacity: 0.65; } }
@keyframes qa-spin { to { transform: rotate(360deg); } }
@keyframes node-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(24, 200, 240, 0.15), 0 0 16px var(--cyan); } 50% { box-shadow: 0 0 0 7px rgba(24, 200, 240, 0.05), 0 0 22px var(--cyan); } }

/* ---------- Header ---------- */
.logo { --h: 44px; display: inline-flex; align-items: center; flex: none; }
.logo__mark { width: var(--h); height: var(--h); }
.logo__word { width: auto; height: calc(var(--h) * 0.38); margin-left: calc(var(--h) * 0.14); margin-top: calc(var(--h) * 0.05); }
.logo__word--dark, [data-theme='dark'] .logo__word--light, .is-stage-top .logo__word--light, .is-over-dark .logo__word--light { display: none; }
[data-theme='dark'] .logo__word--dark, .is-stage-top .logo__word--dark, .is-over-dark .logo__word--dark { display: block; }
.js:not(.seen) .logo__word { clip-path: inset(0 100% 0 0); animation: wipe 1.1s var(--ease-out) 0.9s forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }

.site-header { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h); transition: transform 0.6s var(--ease-out); }
.site-header.is-hidden { transform: translateY(-110%); }
/* On scroll the full-width bar condenses into a floating glass capsule. */
.site-header__inner { position: relative; isolation: isolate; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-radius: 999px; transition: height 0.6s var(--ease-out), margin-top 0.6s var(--ease-out), width 0.6s var(--ease-out), max-width 0.6s var(--ease-out), padding 0.6s var(--ease-out); }
.site-header__inner::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(145deg, var(--glass-1), var(--glass-2)); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow), 0 0 0 0.5px var(--glass-edge); opacity: 0; transition: opacity 0.45s var(--ease-out); }
.site-header__inner::before { opacity: 0; transition: opacity 0.45s var(--ease-out); }
.site-header.is-scrolled .site-header__inner { height: 58px; margin-top: 9px; width: calc(100% - 2 * var(--gutter) + 2rem); max-width: calc(var(--max) + 2rem); padding-inline: 1rem 0.5rem; }
.site-header.is-scrolled .site-header__inner::after, .site-header.is-scrolled .site-header__inner::before { opacity: 1; }
/* Without JavaScript the header can't react to scrolling, so it stays a capsule. */
.no-js .site-header__inner { height: 58px; margin-top: 9px; width: calc(100% - 2 * var(--gutter) + 2rem); max-width: calc(var(--max) + 2rem); padding-inline: 1rem 0.5rem; }
.no-js .site-header__inner::after, .no-js .site-header__inner::before { opacity: 1; }
.site-header.is-scrolled .theme-toggle, .site-header.is-scrolled .menu-toggle { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-scrolled .theme-toggle::before, .site-header.is-scrolled .menu-toggle::before { opacity: 0; }
.site-header__actions { display: flex; align-items: center; gap: 0.6rem; }

.nav__list { display: flex; align-items: center; gap: 0.25rem; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.55rem 0.95rem; border-radius: 999px; color: var(--muted); font-size: 0.925rem; font-weight: 500; transition: color 0.3s, background-color 0.3s; }
.nav__link svg { width: 12px; height: 12px; transition: transform 0.4s var(--ease-out); }
.nav__link:hover, .nav__link[aria-current='page'], .nav__item--menu:hover .nav__link, .nav__item--menu:focus-within .nav__link { color: var(--text); background: var(--ghost-hover); }
.nav__item--menu:hover .nav__link svg, .nav__item--menu:focus-within .nav__link svg { transform: rotate(180deg); }

.mega { position: absolute; left: 50%; top: 100%; padding-top: 1rem; width: min(760px, 90vw); transform: translate(-50%, 8px); opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s 0.35s; }
.nav__item--menu:hover .mega, .nav__item--menu:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mega__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; padding: 0.75rem; border-radius: 22px; }
.mega__item { display: grid; gap: 0.25rem; padding: 0.95rem 1rem; border-radius: 14px; transition: background-color 0.3s; }
.mega__item:hover { background: var(--icon-bg); }
.mega__title { display: block; font: 600 0.95rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.mega__text { display: block; font-size: 0.825rem; line-height: 1.45; color: var(--subtle); margin-top: 0.2rem; }

.theme-toggle, .menu-toggle { position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%; color: var(--text); display: grid; place-items: center; transition: background-color 0.3s, transform 0.4s var(--ease-out); }
.theme-toggle:hover, .menu-toggle:hover { transform: scale(1.06); }
.theme-toggle svg { width: 20px; height: 20px; overflow: visible; }
.theme-toggle__sun, .theme-toggle__moon { transform-origin: 12px 12px; transition: transform 0.7s var(--ease-out), opacity 0.4s; }
.theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(0.4); }
[data-theme='dark'] .theme-toggle__sun { opacity: 1; transform: none; }
[data-theme='dark'] .theme-toggle__moon { opacity: 0; transform: rotate(60deg) scale(0.4); }

.menu-toggle { display: none; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 0.5s var(--ease-out), background-color 0.3s; }
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ''; position: absolute; left: 0; }
.menu-toggle__bars::before { transform: translateY(-5.5px); }
.menu-toggle__bars::after { transform: translateY(5.5px); }
.menu-open .menu-toggle__bars { background: transparent; }
.menu-open .menu-toggle__bars::before { transform: rotate(45deg); }
.menu-open .menu-toggle__bars::after { transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; padding-top: calc(var(--header-h) + 1.5rem); overflow-y: auto; background: var(--menu-bg); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease-out), visibility 0s 0.45s; }
.menu-open .menu { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu-open { overflow: hidden; }
.menu-open .wa { opacity: 0; pointer-events: none; }
.menu__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; min-height: calc(100% - 2rem); padding-bottom: 2rem; }
.menu__label { font-size: 0.875rem; font-weight: 500; color: var(--subtle); margin-bottom: 0.5rem; }
.menu__services a { display: flex; align-items: baseline; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font: 600 1.35rem/1.25 var(--font-display); letter-spacing: -0.02em; }
.menu__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.5rem; }
.menu__links a { color: var(--muted); font-size: 1.05rem; }
.menu__foot { display: grid; gap: 1.5rem; justify-items: start; }
.menu li { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
.menu-open .menu li { opacity: 1; transform: none; transition-delay: calc(0.08s + var(--i, 6) * 0.04s); }

/* ---------- Connect with us (footer, menu, contact page) ---------- */
.connect { display: grid; gap: 0.9rem; }
.connect__link { display: flex; align-items: center; gap: 0.85rem; color: var(--text); font-size: 0.95rem; line-height: 1.35; transition: color 0.3s; }
.connect__link small { display: block; margin-bottom: 0.1rem; font-size: 0.8rem; color: var(--subtle); }
.connect__link .i-icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--icon-bg); color: var(--icon-ink); transition: transform 0.4s var(--ease-out); }
.connect__link--whatsapp .i-icon { color: #1faf55; background: rgba(37, 211, 102, 0.12); }
.connect__link:hover .i-icon { transform: translateY(-2px); }
.connect--menu { gap: 0.75rem; }

.socials { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.socials:empty { display: none; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--muted); transition: color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out); }
.socials a:hover { color: var(--text); border-color: var(--subtle); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.connect-cards { display: grid; gap: 0.9rem; width: 100%; }
.connect-cards__title { font: 600 1.1rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.connect-cards__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.connect-card { position: relative; display: grid; gap: 0.2rem; align-content: start; padding: 1.15rem; border-radius: 18px; overflow: hidden; transition: transform 0.5s var(--ease-out); }
.connect-card:hover { transform: translateY(-3px); }
.connect-card__icon .i-icon { width: 40px; height: 40px; padding: 10px; margin-bottom: 0.7rem; border-radius: 12px; background: var(--icon-bg); color: var(--icon-ink); }
.connect-card--whatsapp .i-icon { color: #1faf55; background: rgba(37, 211, 102, 0.12); }
.connect-card__label { font-size: 0.85rem; color: var(--subtle); }
.connect-card__value { font-weight: 600; font-size: 0.95rem; overflow-wrap: anywhere; }

/* ---------- WhatsApp widget ---------- */
.wa { position: fixed; right: max(1.5rem, env(safe-area-inset-right)); bottom: max(1.5rem, env(safe-area-inset-bottom)); z-index: 70; display: grid; justify-items: end; gap: 0.85rem; transition: opacity 0.3s; }
.wa__button { position: relative; height: 52px; min-width: 52px; padding: 0 15px; border-radius: 999px; display: inline-flex; align-items: center; color: var(--text); transition: transform 0.45s var(--ease-out), padding 0.5s var(--ease-out); }
.wa__button:hover { transform: translateY(-2px); }
.wa__glyph { position: relative; display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.wa__glyph .i-icon { width: 22px; height: 22px; color: #1fbf5c; transition: transform 0.45s var(--ease-out), opacity 0.3s; }
.wa__glyph .wa__x { position: absolute; width: 18px; height: 18px; opacity: 0; transform: rotate(-90deg) scale(0.5); transition: transform 0.45s var(--ease-out), opacity 0.3s; }
.wa__label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; font-size: 0.9rem; font-weight: 500; transition: max-width 0.6s var(--ease-out), opacity 0.35s, margin 0.6s var(--ease-out); }
.wa__button:hover .wa__label, .wa.is-teasing .wa__label { max-width: 12rem; margin-left: 0.6rem; opacity: 1; }
.wa.is-open .wa__label { max-width: 0; margin-left: 0; opacity: 0; }
.wa.is-open .wa__glyph .i-icon { opacity: 0; transform: rotate(90deg) scale(0.5); }
.wa.is-open .wa__glyph .wa__x { opacity: 1; transform: none; }

.wa__panel { position: relative; width: min(350px, calc(100vw - 2.5rem)); border-radius: 22px; overflow: hidden; transform-origin: 100% 100%; opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.96); transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s 0.35s; }
.wa.is-open .wa__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.wa__head { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.1rem; color: #fff; background: linear-gradient(120deg, #2e30a0, #5a3df0 55%, #3f8ff6); }
.wa__avatar { position: relative; flex: none; width: 46px; height: 46px; padding: 6px; border-radius: 50%; background: #fff; }
.wa__avatar::after { content: ''; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--wa); border: 2px solid #fff; }
.wa__avatar .qa-mark { width: 100%; height: 100%; --mr0: #2e30a0; --mr1: #4f3edb; --mr2: #5944e8; --mr3: #634bf3; --mr4: #6e56fa; --mr5: #7660ff; --mark-grid: #bec4d9; --mark-a: #162c77; }
.wa__name { display: block; font-weight: 600; line-height: 1.3; }
.wa__sub { display: block; font-size: 0.8rem; opacity: 0.85; }
.wa__body { padding: 1.2rem 1.1rem; background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px); background-size: 18px 18px; }
.wa__bubble { position: relative; max-width: 92%; padding: 0.8rem 0.95rem; border-radius: 4px 16px 16px 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 20px -14px rgba(22, 44, 119, 0.5); font-size: 0.925rem; line-height: 1.5; }
.wa__bubble small { display: block; margin-top: 0.35rem; font-size: 0.7rem; color: var(--subtle); text-align: right; }
.wa__actions { display: grid; gap: 0.6rem; padding: 1rem 1.1rem 1.1rem; }
.wa__start { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.9rem 1rem; border-radius: 999px; background: var(--wa); color: #06341b; font-weight: 600; transition: filter 0.3s, transform 0.4s var(--ease-out); }
.wa__start:hover { filter: brightness(1.05); transform: translateY(-1px); }
.wa__call { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem; font-size: 0.875rem; color: var(--muted); }
.wa__call:hover { color: var(--text); }
.wa__call .i-icon { width: 1.1em; height: 1.1em; }

/* ---------- Shared page backdrop: the globe's dot grid, quiet ---------- */
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__grid { position: absolute; inset: 0; background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px); background-size: 30px 30px; -webkit-mask-image: radial-gradient(55% 70% at 78% 42%, #000 0%, transparent 70%); mask-image: radial-gradient(55% 70% at 78% 42%, #000 0%, transparent 70%); opacity: 0.7; }

/* ---------- Home: hero ----------
   The mark at full scale, drawn as a precision instrument. Its 29°N parallel and equator run out
   across the page and become the lines the headline sits on (js/hero.js does the alignment). */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 2rem) 0 3.5rem; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__copy { display: grid; gap: 1.6rem; justify-items: start; }
.hero__title { font-size: clamp(2.5rem, 6.1vw, 6.5rem); line-height: 1; letter-spacing: -0.045em; }
.hero__title .line { display: block; white-space: nowrap; }
.bl { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.hero__lede { margin-top: 0.4rem; font-size: clamp(1.1rem, 1.45vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 28rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__rule { position: absolute; z-index: 1; top: 0; left: 0; width: 0; height: 1px; background: var(--rule); transform-origin: 0 50%; }
.hero__rule b { position: absolute; right: -4px; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(24, 200, 240, 0.16); }
.js .hero__rule { transform: scaleX(0); animation: rule-in 1.2s var(--ease-out) 0.05s forwards; }
.js .hero__rule b { opacity: 0; animation: hero-in 0.6s var(--ease-out) 1.1s forwards; }
@keyframes rule-in { to { transform: scaleX(1); } }

.ins { position: absolute; z-index: 0; top: 50%; right: max(0px, calc((100vw - var(--max)) / 2 - 2rem)); width: min(60vw, 112vh); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.js .ins[style] { transform: none; }
.ins svg { width: 100%; height: 100%; overflow: visible; }
.ins-front { fill: none; stroke: var(--ins-line); stroke-opacity: var(--grid-o, 1); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: stroke 0.6s; }
.ins-back { fill: none; stroke: var(--ins-line-back); stroke-opacity: var(--grid-o, 1); stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.ins-rim { fill: var(--ins-fill); stroke: var(--ins-rim); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.ins-nodes circle { fill: var(--cyan); transform-box: fill-box; transform-origin: center; transition: transform 0.5s var(--ease-back); }
.ins-nodes circle.is-active { transform: scale(1.9); }
.ins-a { fill: var(--mark-a); stroke: var(--mark-a); }
.ins-spark { fill: var(--cyan); transform-box: fill-box; transform-origin: center; }
.ins-bezel { fill-opacity: 0.1; }
.ins-bezel-line { fill: none; stroke-width: var(--bw, 0.42); stroke-linejoin: round; }
.ins-ticks { fill: none; stroke: var(--ins-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ins-leader { fill: none; stroke: var(--text); stroke-opacity: 0.4; stroke-width: 1; vector-effect: non-scaling-stroke; }
/* The loop is running: a pulse of the brand gradient travels the ring into the arrowhead. */
/* A light travels the ring (drawn by js/orbit.js: one dash whose gradient follows its head). */
.ins-pulse { fill: none; stroke-width: 12; stroke-linecap: round; opacity: 0; } /* shown only while the script animates it */
.ins-head { opacity: 0.18; }

/* Entrance: the ring traces itself, the globe opens, nodes light, the needle lands. */
.js .ins-globe { animation: globe-in 1.3s var(--ease-out) 0.2s both; }
@keyframes globe-in { from { opacity: 0; transform: scale(0.82); } }
.js .ins-bezel-line { stroke-dasharray: 1 1; animation: qa-draw 1.6s var(--ease-out) 0.4s both; }
.js .ins-bezel, .js .ins-ticks { animation: fade-in 1s var(--ease-out) 1.4s both; }
.js .hero:not(.is-live) .ins-head, .js .orbit:not(.is-live) .ins-head { animation: fade-in 0.6s var(--ease-out) 1.6s both; }
@keyframes fade-in { from { opacity: 0; } }
.js .ins-nodes circle { animation: qa-pop 0.5s var(--ease-back) calc(1s + var(--n, 0) * 0.035s) both; }
.js .ins-a { transform-box: fill-box; transform-origin: 50% 85%; animation: qa-rise 0.9s var(--ease-out) 1.25s both; }
.js .ins-spark { animation: qa-pop 0.6s var(--ease-back) 1.9s both, qa-sparkle 3.2s ease-in-out 2.8s infinite; }
.js .ins-spark--small { animation-delay: 2.05s, 3.4s; }

/* The result of each lap appears in the ring's opening, where the arrow points. */
.readout { position: absolute; left: 66%; top: 66%; width: 15.5rem; padding: 0.75rem 0.9rem 0.8rem; border-radius: 16px; transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out); }
.readout__meta { display: flex; flex-wrap: wrap; gap: 0.1rem 0.6rem; font: 500 0.7rem/1.35 var(--font-mono); color: var(--subtle); }
.readout__meta > span { white-space: nowrap; }
.readout__meta b { color: var(--accent-ink); font-weight: 500; }
.readout__text { display: block; margin-top: 0.3rem; font: 600 0.9rem/1.35 var(--font-display); letter-spacing: -0.01em; color: var(--text); }
.readout__text::before { content: ''; display: inline-block; width: 15px; height: 15px; margin: 0 0.4rem -2px 0; border-radius: 50%; background: rgba(24, 200, 240, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230B9FD1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.js .readout { opacity: 0; transform: translateY(6px); }
.js .is-live .readout { opacity: 1; transform: none; }
.js .is-live .readout.is-swapping { opacity: 0; transform: translateY(6px); }

.legend { position: absolute; z-index: 2; left: max(var(--gutter), calc((100% - var(--max)) / 2)); bottom: 1.75rem; display: flex; gap: 2rem; font: 400 0.84rem/1.3 var(--font-body); color: var(--subtle); white-space: nowrap; }
.legend div { display: flex; align-items: center; gap: 0.45rem; }
.legend dt { display: flex; align-items: center; gap: 0.5rem; color: var(--text); font-weight: 500; }
.legend dd { margin: 0; }
.legend i { display: inline-block; flex: none; }
.legend__mer { width: 9px; height: 14px; border: 1.2px solid var(--ins-rim); border-radius: 50%; }
.legend__par { width: 16px; height: 1.2px; background: var(--ins-rim); }
.legend__node { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.legend { opacity: calc(1 - var(--a, 0) * 3); }
.js .legend { animation: legend-in 1s var(--ease-out) 2.3s backwards; }
@keyframes legend-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- The orbit: the mark's own layer, fixed behind the page's content (js/orbit.js) ---------- */
.orbit { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; contain: strict; }
.orbit__stage { position: absolute; inset: 0; background: var(--stage); opacity: 0; }
.orbit__stage::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(174, 184, 224, 0.13) 1px, transparent 1.2px); background-size: 30px 30px; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 80%); }
.orbit__glow { position: absolute; left: 0; top: 0; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, var(--glow-violet) 0%, transparent 65%); opacity: 0; transform-origin: 0 0; will-change: transform, opacity; }
.orbit__ins { position: absolute; inset: 0; transition: filter 0.9s var(--ease-out); }
.orbit__ins.is-off { filter: grayscale(1) opacity(0.42); }
.orbit__ins svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit__readout { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.orbit__readout .readout { position: relative; left: auto; top: auto; }
.orbit-on main > section, .orbit-on .site-footer { position: relative; z-index: 1; }
.orbit-on .story__hub { transform: translate(-50%, -50%); opacity: 1; }
.orbit-on .story__hub::before, .orbit-on .story__hub .qa-mark, .orbit-on .story__sticky::before { visibility: hidden; }

/* Sections that sit on the stage. Without the orbit (no JavaScript, reduced motion) they carry it themselves. */
.on-stage { background: var(--stage); color: var(--text); }
.orbit-on .on-stage { background: transparent; }
.services__bridge { display: none; }
.orbit-on .services__bridge { display: block; height: 30vh; }
/* The markets globe arrives first and the dark drains into it; the words follow. */
@media (min-width: 1021px) { .orbit-on .markets__copy { padding-top: 62vh; } }

/* ---------- Home: the disconnect (scroll story) ---------- */
.story { position: relative; height: 420vh; }
.story__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.story__sticky::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: var(--sp, 0); background: radial-gradient(40% 50% at 68% 52%, var(--glow-violet), transparent 70%); }
.story__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: var(--header-h); }
.story__copy { display: grid; gap: 2rem; }
.story__steps { position: relative; display: grid; }
.story__step { grid-area: 1 / 1; display: grid; gap: 1.1rem; align-content: start; opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out); pointer-events: none; }
.story__step.is-active { opacity: 1; transform: none; }
.story__step.is-past { transform: translate3d(0, -34px, 0); }
.story__step h2 { font-size: clamp(1.9rem, 3.5vw, 3.2rem); line-height: 1.06; letter-spacing: -0.04em; }
.story__step p { font-size: 1.125rem; color: var(--muted); max-width: 30rem; }
.story__progress { display: flex; gap: 0.5rem; }
.story__progress span { position: relative; width: 44px; height: 3px; border-radius: 3px; background: var(--line-strong); overflow: hidden; }
.story__progress i { position: absolute; inset: 0; background: var(--ring); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
.story__stage { position: relative; width: 100%; aspect-ratio: 10 / 7.4; }
.story__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.story__broken { stroke: var(--warn-line); }
.story__x { stroke: var(--warn); }
.story__hub { position: absolute; left: 50%; top: 50%; width: 21%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(var(--hub, 0)); opacity: var(--hub, 0); }
.story__hub::before { content: ''; position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(circle, var(--glow-violet), transparent 65%); }
.story__hub .qa-mark { position: relative; width: 100%; height: 100%; }
.chip { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.6rem 1rem; border-radius: 999px; font-size: clamp(0.72rem, 1vw, 0.9rem); font-weight: 500; white-space: nowrap; will-change: transform; transition: box-shadow 0.6s; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--chip-dot); transition: background-color 0.6s, box-shadow 0.6s; }
.is-strained .chip i { background: var(--warn); box-shadow: 0 0 10px var(--warn-line); }
.is-connected .chip { box-shadow: var(--glass-shadow), 0 0 0 1px rgba(24, 200, 240, 0.5), 0 0 26px -6px rgba(24, 200, 240, 0.6); }
.is-connected .chip i { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.chore { position: absolute; left: 0; top: 0; padding: 0.28rem 0.7rem; border-radius: 999px; border: 1px solid var(--warn-line); background: var(--chore-bg); color: var(--chore-text); font: 500 0.72rem/1.2 var(--font-mono); white-space: nowrap; opacity: 0; will-change: transform, opacity; }

/* ---------- Home: manifesto ---------- */
.manifesto, .svc-intro { padding-block: clamp(6rem, 16vh, 11rem); }
.manifesto { padding-bottom: clamp(9rem, 34vh, 20rem); }
.manifesto__text { font: 600 clamp(1.8rem, 3.8vw, 3.5rem)/1.16 var(--font-display); letter-spacing: -0.035em; max-width: 66rem; }
.manifesto__text--sm { font-size: clamp(1.5rem, 2.8vw, 2.6rem); line-height: 1.22; max-width: 58rem; }
.js .mw { color: var(--dim-text); transition: color 0.35s linear; }
.js .mw.is-on { color: var(--text); }

/* ---------- Home: services stack ---------- */
.services { position: relative; padding-block: clamp(4rem, 10vh, 7rem); }
.stack { display: grid; gap: clamp(1.5rem, 4vh, 3rem); }
.stack__card { position: sticky; top: calc(var(--header-h) + 1.25rem + var(--i) * 12px); }
/* Each service is a pane of glass; the next one slides over it and the one beneath recedes. */
.stack__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: min(74vh, 620px); border-radius: var(--radius); overflow: hidden; transform-origin: 50% 0; transform: scale(calc(1 - var(--cover, 0) * 0.05)); will-change: transform; }
.stack__content, .stack__art { opacity: calc(1 - var(--cover, 0) * 0.65); }
.stack__content { display: flex; flex-direction: column; gap: 1.2rem; padding: clamp(2rem, 4vw, 3.5rem); }
.stack__pos { margin-bottom: auto; padding-bottom: 2rem; font: 600 0.9rem var(--font-display); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.stack__pos span { color: var(--subtle); font-weight: 500; }
.stack__title { font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1.04; letter-spacing: -0.04em; }
.stack__tagline { font: 500 clamp(1.05rem, 1.35vw, 1.2rem)/1.45 var(--font-body); color: var(--text); }
.stack__summary { color: var(--muted); max-width: 34rem; }
.stack__content .ticks { margin: 0.3rem 0 0.8rem; }
.stack__content .link-arrow { align-self: flex-start; margin-top: auto; }
.stack__art { position: relative; display: grid; place-items: center; padding: clamp(1.5rem, 3vw, 3rem); border-left: 1px solid var(--line); background: radial-gradient(60% 60% at 50% 50%, rgba(24, 200, 240, 0.07), transparent 70%); }
.stack__art .illo { width: 100%; max-width: 520px; }

/* ---------- Illustrations ---------- */
.illo { width: 100%; height: auto; overflow: visible; }
.illo .i-surface { fill: var(--i-surface); }
.illo .i-ink { fill: var(--i-ink); }
.illo .i-line { stroke: var(--i-line); }
.illo .i-line-soft { stroke: var(--i-line-soft); }
.illo .i-dot { fill: var(--i-dot); }
.illo .i-glyph { color: var(--i-glyph) !important; }
.illo__label { font: 500 11px/1 var(--font-body); fill: var(--i-label); letter-spacing: 0.01em; }
.illo__text { font: 500 12.5px/1 var(--font-body); fill: var(--i-text); }
.illo__code text { font: 12px/1 var(--font-mono); fill: var(--i-code); }

/* ---------- Home: markets ---------- */
.markets { position: relative; padding-block: clamp(5rem, 12vh, 9rem); }
.markets__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.markets__visual { position: sticky; top: calc(var(--header-h) + 4vh); height: calc(100vh - var(--header-h) - 8vh); display: grid; place-items: center; }
.globe { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; }
.globe__canvas { position: relative; width: 100%; height: 100%; }
.globe__halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--glow-violet), var(--glow-cyan) 55%, transparent 72%); filter: blur(30px); }
[data-theme='light'] .globe__halo { inset: 14%; opacity: 0.7; }
.markets__copy { display: grid; gap: 1.4rem; padding-top: 4vh; }
.industries { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.industry { position: relative; padding: 1.5rem 0; border-bottom: 1px solid var(--line); transition: opacity 0.5s; }
.js .industry { opacity: 0.5; }
.js .industry.is-active { opacity: 1; }
.industry::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--ring); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.9s var(--ease-out); }
.industry.is-active::before { transform: scaleX(1); }
.industry h3 { font: 600 clamp(1.25rem, 1.9vw, 1.6rem)/1.2 var(--font-display); letter-spacing: -0.025em; }
.industry p { color: var(--muted); margin-top: 0.35rem; }

/* ---------- Home: process (a real sequence, so it is numbered) ---------- */
.process { padding-block: clamp(5rem, 12vh, 8rem); }
.process__track { position: relative; }
.process__rail { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line-strong); border-radius: 2px; }
.process__fill { position: absolute; inset: 0; background: var(--ring); border-radius: inherit; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.process__pointer { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 26px; height: 26px; transform: translate(-50%, -50%); filter: drop-shadow(0 0 6px rgba(24, 200, 240, 0.7)); overflow: visible; }
.process__steps { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); }
.process__step { position: relative; padding-top: 3rem; display: grid; gap: 0.7rem; align-content: start; }
.process__dot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; transform: translate(0, -50%) translateY(1px); background: var(--bg); border: 2px solid var(--line-strong); transition: border-color 0.5s, box-shadow 0.5s, background-color 0.5s; }
.process__step.is-on .process__dot { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 5px rgba(24, 200, 240, 0.15); }
.process__num { font: 600 0.85rem var(--font-display); color: var(--subtle); font-variant-numeric: tabular-nums; transition: color 0.5s; }
.process__step.is-on .process__num { color: var(--accent-ink); }
.process__step h3 { font: 600 clamp(1.35rem, 2vw, 1.75rem)/1.15 var(--font-display); letter-spacing: -0.03em; }
.process__step p { color: var(--muted); }
.js .process__step { opacity: 0.5; transition: opacity 0.6s; }
.js .process__step.is-on { opacity: 1; }

/* ---------- Home: principles ---------- */
.principles { padding-block: clamp(3rem, 8vh, 6rem) clamp(5rem, 12vh, 8rem); }
.principles__grid, .uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 2.75rem); }
.principle, .use { display: grid; gap: 0.7rem; align-content: start; padding-top: 1.4rem; border-top: 1px solid var(--line-strong); }
.principle h3, .use h3 { font: 600 1.25rem/1.25 var(--font-display); letter-spacing: -0.025em; }
.principle p, .use p { color: var(--muted); }

/* ---------- Home: FAQ ---------- */
.faq { padding-block: clamp(5rem, 12vh, 8rem); border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1.25rem; justify-items: start; }
.faq__item { border-top: 1px solid var(--line-strong); }
.faq__item:last-child { border-bottom: 1px solid var(--line-strong); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.45rem 0; cursor: pointer; list-style: none; font: 600 clamp(1.08rem, 1.5vw, 1.3rem)/1.35 var(--font-display); letter-spacing: -0.02em; transition: color 0.2s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--violet); }
.faq__icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform 0.4s var(--ease-out), background-color 0.3s; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease-out); }
.faq__item[open] .faq__icon { background: var(--text); color: var(--bg); border-color: var(--text); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item p { max-width: 40rem; padding: 0 3.5rem 1.6rem 0; color: var(--muted); }
.faq__item[open] p { animation: faq-open 0.45s var(--ease-out); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Closing call to action: the one dark panel on the page ---------- */
.cta { padding-block: clamp(2rem, 6vh, 4rem) 0; }
/* The one dark panel near the end. As it scrolls in it widens from a card to the full width (js/main.js sets --open). */
.cta__panel { --mr0: #5868ff; --mr1: #7a5cff; --mr2: #7166fe; --mr3: #5a80fa; --mr4: #3f9df6; --mr5: #3aa6f5; --mark-grid: #5b6178; --mark-a: #ffffff;
  --side: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --open: 1;
  position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4.5rem, 12vh, 8rem); background: var(--stage); color: var(--text);
  clip-path: inset(0 calc((1 - var(--open, 0)) * var(--side)) round calc((1 - var(--open, 0)) * 32px)); }
.cta__panel::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: -1; pointer-events: none; background: linear-gradient(transparent, var(--stage)); }
.cta__panel::before { content: ''; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(rgba(174, 184, 224, 0.18) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(60% 90% at 85% 30%, #000, transparent 70%); mask-image: radial-gradient(60% 90% at 85% 30%, #000, transparent 70%); }
.cta__ring { position: absolute; z-index: -1; right: calc(var(--side) - 14%); top: 50%; width: min(62vw, 760px); height: auto; transform: translateY(-50%) rotate(calc(-30deg + var(--open, 0) * 40deg)); opacity: 0.55; }
.cta__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); align-items: end; gap: clamp(2rem, 5vw, 5rem); padding-inline: calc(var(--gutter) + clamp(1.25rem, 5vw, 4.5rem)); }
.cta__copy { display: grid; gap: 1.4rem; justify-items: start; }
.cta__mark { width: 64px; height: 64px; margin-bottom: 0.5rem; }
.cta__title { max-width: 13ch; }
.cta__text { max-width: 34rem; color: var(--muted); font-size: 1.125rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.btn--light { color: var(--text); border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.04); }
.btn--light:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }
.connect--cta { gap: 0.7rem; }
.connect--cta .connect__link { position: relative; padding: 0.55rem 1.1rem 0.55rem 0.55rem; border-radius: 999px; color: var(--text); }
.connect--cta .connect__link small { color: var(--muted); }
.connect--cta .connect__link .i-icon { background: rgba(255, 255, 255, 0.08); color: #c9bdff; border-radius: 50%; }
.connect--cta .connect__link--whatsapp .i-icon { background: rgba(37, 211, 102, 0.16); color: #4be08a; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: clamp(4rem, 10vh, 6rem) 0 6.5rem; background: var(--stage); color: var(--text); overflow: hidden; }
.site-footer > .container { position: relative; }
.site-footer > .container::before { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(clamp(4rem, 10vh, 6rem) * -1); height: 1px; background: var(--line); }
.footer__top { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr); gap: 3rem; }
.footer__brand { display: grid; gap: 1.25rem; align-content: start; justify-items: start; }
.footer__logo { width: 150px; height: auto; }
.footer__brand p { color: var(--subtle); }
.footer__cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 1.1fr); gap: 2rem; }
.footer__label { font: 600 0.95rem/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--text); margin-bottom: 1.1rem; }
.footer__cols ul:not(.connect) { display: grid; gap: 0.7rem; }
.footer__cols ul:not(.connect) a { color: var(--muted); font-size: 0.95rem; transition: color 0.3s; }
.footer__cols ul:not(.connect) a:hover { color: var(--text); }
.footer__statement { margin: clamp(3.5rem, 9vw, 7rem) 0 clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(2.1rem, 6.3vw, 6rem); line-height: 1; letter-spacing: -0.055em; color: var(--text); }
.footer__statement span { color: var(--cyan); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; border-top: 1px solid var(--line); color: var(--subtle); font-size: 0.875rem; }
.footer__top-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); }
.footer__top-link svg { width: 16px; height: 16px; }

/* ---------- Inner page heroes ---------- */
.page-hero, .svc-hero, .contact, .notfound { position: relative; isolation: isolate; padding: calc(var(--header-h) + clamp(3rem, 10vh, 6.5rem)) 0 clamp(3rem, 8vh, 6rem); overflow: hidden; }
.page-hero .container { display: grid; gap: 1.5rem; justify-items: start; }
.page-hero .display-2 { font-size: clamp(2.6rem, 5.8vw, 5.25rem); max-width: 16ch; }

/* ---------- Service page ---------- */
.svc-hero { min-height: min(92vh, 860px); display: flex; align-items: center; }
.svc-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.svc-hero__copy { display: grid; gap: 1.5rem; justify-items: start; }
.svc-hero__copy .display-2 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
.svc-hero__art { padding: clamp(1.25rem, 3vw, 2.5rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.9rem; color: var(--subtle); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.svc-intro { border-top: 1px solid var(--line); }
.svc-block { padding-block: clamp(4rem, 10vh, 6.5rem); border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split__head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
.deliver__list li { position: relative; padding: 1.2rem 0 1.2rem 1.6rem; border-bottom: 1px solid var(--line); font: 500 clamp(1.1rem, 1.6vw, 1.35rem)/1.35 var(--font-display); letter-spacing: -0.02em; }
.deliver__list li:first-child { border-top: 1px solid var(--line); }
.deliver__list li::before { content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(24, 200, 240, 0.14); }
.uses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.mini-steps li { display: grid; gap: 0.7rem; align-content: start; padding-top: 1.4rem; border-top: 2px solid var(--line-strong); }
.mini-steps li:first-child { border-image: var(--ring) 1; }
.mini-steps span { font: 600 0.85rem var(--font-display); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.mini-steps h3 { font: 600 1.3rem/1.2 var(--font-display); letter-spacing: -0.025em; }
.mini-steps p { color: var(--muted); }
.next-svc { border-top: 1px solid var(--line); }
.next-svc__link { position: relative; display: grid; gap: 0.9rem; padding-block: clamp(4rem, 10vh, 6.5rem); }
.next-svc__label { color: var(--subtle); font-size: 0.95rem; }
.next-svc__title { display: inline-flex; align-items: center; gap: 1.1rem; font-size: clamp(2.1rem, 5vw, 4.5rem); line-height: 1.05; letter-spacing: -0.045em; transition: color 0.4s; }
.next-svc__title .i-arrow { width: 0.7em; height: 0.7em; color: var(--violet); }
.next-svc__link:hover .next-svc__title { color: var(--violet); }
.next-svc__link:hover .i-arrow { transform: translateX(10px); }
.next-svc__text { color: var(--muted); font-size: 1.1rem; }

/* ---------- Services overview ---------- */
.svc-index { padding-bottom: clamp(4rem, 10vh, 6rem); }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.svc-card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: hidden; transition: transform 0.6s var(--ease-out); }
.svc-card:hover { transform: translateY(-4px); }
.svc-card__art { padding: 1.5rem 2rem 0; border-bottom: 1px solid var(--line); background: var(--art-bg); }
.svc-card__art .illo { max-width: 440px; margin-inline: auto; }
.svc-card__body { display: grid; gap: 0.85rem; align-content: start; padding: 2rem; }
.svc-card__body > p:not(.svc-card__meta) { color: var(--muted); }
.svc-card__meta { font-size: 0.9rem; font-weight: 500; color: var(--accent-ink); }
.svc-card__title { font: 600 clamp(1.5rem, 2.2vw, 1.95rem)/1.12 var(--font-display); letter-spacing: -0.035em; }
.svc-card .link-arrow { margin-top: 0.5rem; justify-self: start; }

/* ---------- Contact ---------- */
.contact { min-height: 100vh; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__intro { display: grid; gap: 1.6rem; justify-items: start; padding-top: 1rem; }
.contact__next { display: grid; gap: 1.1rem; margin-top: 0.5rem; padding-top: 2rem; border-top: 1px solid var(--line); counter-reset: n; width: 100%; }
.contact__next li { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: 0.75rem; counter-increment: n; }
.contact__next li::before { content: '0' counter(n); grid-row: span 2; font: 600 0.85rem/1.6 var(--font-display); color: var(--accent-ink); }
.contact__next strong { font-weight: 600; }
.contact__next span { color: var(--muted); font-size: 0.95rem; }
.contact__form { display: grid; gap: 1.25rem; padding: clamp(1.5rem, 3.5vw, 2.75rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.55rem; }
.field > span, .field legend { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.field legend { margin-bottom: 0.7rem; }
.field em { font-style: normal; color: var(--subtle); }
.field input, .field textarea { width: 100%; padding: 0.95rem 1.05rem; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--input-bg); outline: none; transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s; }
.field textarea { resize: vertical; min-height: 8.5rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--subtle); opacity: 0.7; }
.field input:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(122, 92, 255, 0.16); }
.field .is-invalid { border-color: var(--warn); }
.pills { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-block; padding: 0.55rem 0.95rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--input-bg); font-size: 0.875rem; color: var(--muted); transition: all 0.3s; }
.pill:hover span { border-color: var(--subtle); color: var(--text); }
.pill input:checked + span { color: var(--bg); border-color: var(--text); background: var(--text); }
.pill input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.contact__status { color: var(--muted); font-size: 0.95rem; }
.contact__status.is-ok { color: #0b8f6a; }
[data-theme='dark'] .contact__status.is-ok { color: var(--cyan); }
.contact__status.is-error { color: var(--warn); }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; align-items: center; text-align: center; }
.notfound__inner { display: grid; justify-items: center; gap: 1.5rem; }
.notfound__mark { width: 120px; height: 120px; margin-bottom: 0.5rem; }
.notfound__code { font: 500 0.95rem var(--font-mono); color: var(--subtle); }
.notfound .hero__actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .principles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 1020px) {
  :root { --header-h: 68px; }
  .nav, .site-header__actions > .btn { display: none; }
  .menu-toggle { display: grid; }
  .hero { flex-direction: column; align-items: stretch; padding-top: calc(var(--header-h) + 2.5rem); }
  .ins { position: relative; top: auto; right: auto; width: min(100%, 560px); margin: 1rem auto 0; transform: none; }
  .legend { position: static; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 1.25rem; padding-inline: var(--gutter); white-space: normal; }
  .story__grid { grid-template-columns: 1fr; gap: 1.5rem; align-content: center; height: 100%; padding-bottom: 1.5rem; }
  .story__steps { min-height: 9.5rem; }
  .story__step .display-3 { font-size: clamp(1.6rem, 6vw, 2.3rem); }
  .story__step p { font-size: 1rem; }
  .story__stage { max-width: 640px; justify-self: center; }
  .stack__inner { grid-template-columns: 1fr; min-height: 0; }
  .stack__art { order: -1; border-left: 0; border-bottom: 1px solid var(--line); padding: 1.5rem; }
  .stack__art .illo { max-width: 420px; }
  .stack__pos { margin-bottom: 0; padding-bottom: 0.25rem; }
  .markets__grid { grid-template-columns: 1fr; }
  .markets__visual { position: relative; top: 0; height: auto; }
  .globe { max-width: 420px; }
  .svc-hero__grid, .contact__grid, .split, .faq__grid, .cta__grid { grid-template-columns: 1fr; }
  .split__head, .faq__head { position: static; }
  .cta__grid { align-items: start; }
  .cta__ring { width: 120vw; right: -60vw; top: 70%; opacity: 0.4; }
  .uses { grid-template-columns: 1fr; gap: 1.75rem; }
  .mini-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
}

@media (max-width: 900px) {
  .stack__card { position: relative; top: 0; }
  .stack__inner { transform: none; filter: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .process__rail { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process__fill { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .process__pointer { left: 50%; top: calc(var(--p, 0) * 100%); transform: translate(-50%, -50%) rotate(90deg); }
  .process__steps { grid-template-columns: 1fr; gap: 2.75rem; padding-left: 2.75rem; }
  .process__step { padding-top: 0; }
  .process__dot { left: calc(-2.75rem + 6px); top: 0.55rem; transform: translate(-50%, 0) translateX(1px); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__connect { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .principles__grid, .mini-steps, .connect-cards__grid { grid-template-columns: 1fr; }
  .connect-card { grid-template-columns: auto 1fr; column-gap: 0.9rem; align-items: center; padding: 0.9rem 1rem; }
  .connect-card__icon { grid-row: span 2; }
  .connect-card__icon .i-icon { margin-bottom: 0; }
  .field-row, .footer__cols { grid-template-columns: 1fr; }
  .footer__cols { gap: 2.25rem; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 100%; }
  .readout { width: 13rem; padding: 0.6rem 0.75rem 0.65rem; }
  .readout__text { font-size: 0.82rem; }
  .chip { padding: 0.42rem 0.7rem; gap: 0.4rem; }
  .chip i { width: 6px; height: 6px; }
  .chore { font-size: 0.65rem; padding: 0.2rem 0.45rem; }
  .story__stage { aspect-ratio: 1; }
  .story { height: 400vh; }
  .site-header__actions { gap: 0.45rem; }
  .wa__button { height: 48px; min-width: 48px; padding: 0 13px; }
  .faq__item p { padding-right: 0; }
}

@media (hover: none) {
  .mega { display: none; }
}

/* ---------- Without JS or with reduced motion: everything visible and still ---------- */
.no-js .story { height: auto; }
.no-js .story__sticky { position: relative; height: auto; padding: 6rem 0; }
.no-js .story__step { position: relative; opacity: 1; transform: none; grid-area: auto; margin-bottom: 2rem; }
.no-js .story__stage, .no-js .story__progress, .no-js .theme-toggle, .no-js .hero__rule, .no-js .readout { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
}
