
@font-face {
  font-family: "Archivo Variable"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-ext-standard-normal.woff2") format("woff2-variations"), url("/fonts/archivo-latin-ext-standard-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Variable"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-standard-normal.woff2") format("woff2-variations"), url("/fonts/archivo-latin-standard-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Layout: a navy night band (hero, data, contact) frames white reading sections; content sits on a
   12-column grid up to 1200px, left-aligned. One family (Archivo) carries the identity through its
   width axis: expanded, tight headlines against normal-width body text. */
:root {
  --night: #0A1A2C;
  --night-2: #112942;
  --night-deep: #07121F;
  --night-line: rgba(255, 255, 255, 0.13);
  --on-night: #FFFFFF;
  --on-night-2: rgba(232, 241, 250, 0.74);
  --paper: #FFFFFF;
  --mist: #EEF3F8;
  --ink: #0E2135;
  --ink-2: #4A5C70;
  --rule: #D5DEE8;
  --brand: #00A2E8;
  --brand-deep: #0A6CAB;
  --brand-soft: #8DD6F6;
  --amber: #F2A93B;
  --danger: #B42318;
  --danger-on-night: #FF9C8C;

  --font: "Archivo Variable", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.35rem + 2.2vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.3rem + 4vw, 4.3rem);
  --gutter: clamp(16px, 4vw, 44px);
  --maxw: 1200px;
  --section: clamp(64px, 9vw, 128px);
  --radius: 4px;

  /* Hero chart colours (read by script) */
  --viz-good: #3DB7EF;
  --viz-bad: #F2A93B;
  --viz-line: #FFFFFF;
  --viz-grid: rgba(255, 255, 255, 0.12);
  --viz-text: rgba(232, 241, 250, 0.86);
  --viz-muted: rgba(232, 241, 250, 0.55);
  --viz-bg: #0A1A2C;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--night);
}
img, svg, canvas { max-width: 100%; }
img { height: auto; }
a { color: var(--brand-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 640; letter-spacing: -0.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); top: -100px; z-index: 60;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }
.nw { white-space: nowrap; }
mark.todo { background: #FFE7A8; color: #5A3B00; padding: 0 4px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section); }
.section + .section.is-white { border-top: 1px solid var(--rule); }
.is-mist { background: var(--mist); }
.is-night { background: var(--night); color: var(--on-night); color-scheme: dark; }
.is-night a { color: var(--brand-soft); }

.h2 { font-size: var(--step-3); font-stretch: 112%; line-height: 1.08; }
.h3 { font-size: var(--step-1); font-stretch: 106%; line-height: 1.25; font-weight: 620; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.is-night .lead { color: var(--on-night-2); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 52rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-stretch: 106%; font-size: 1rem; letter-spacing: 0;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--brand); color: var(--night); }
.btn-primary:hover { background: var(--brand-soft); text-decoration: none; }
.is-night .btn-primary, .is-night .btn-primary:hover { color: var(--night); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.38); color: var(--on-night); }
.btn-ghost:hover { border-color: var(--on-night); }
.is-night .btn-ghost { color: var(--on-night); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--night);
  color: var(--on-night);
  border-bottom: 1px solid var(--night-line);
  color-scheme: dark;
}
.header-bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { display: block; height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--on-night-2); text-decoration: none; font-size: 0.97rem; font-weight: 500;
  padding: 10px 12px; border-radius: var(--radius);
}
.site-nav a:hover { color: var(--on-night); background: rgba(255, 255, 255, 0.06); }
.site-nav .nav-contact { color: var(--night); background: var(--brand); font-weight: 600; margin-left: 8px; padding-inline: 16px; }
.site-nav .nav-contact:hover { color: var(--night); background: var(--brand-soft); }
.lang { display: flex; align-items: center; gap: 2px; margin-left: 12px; padding-left: 16px; border-left: 1px solid var(--night-line); }
.lang a, .lang span { font-size: 0.9rem; font-weight: 600; padding: 6px 7px; text-decoration: none; color: var(--on-night-2); }
.lang [aria-current] { color: var(--on-night); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--brand); }
.lang a:hover { color: var(--on-night); }
.nav-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  background: transparent; color: var(--on-night); border: 1px solid var(--night-line);
  border-radius: var(--radius); font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle-icon { position: relative; width: 18px; height: 12px; }
.nav-toggle-icon::before, .nav-toggle-icon::after, .nav-toggle-icon span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon span { top: 5px; }
.nav-toggle-icon::after { top: 10px; }
.nav-open .nav-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle-icon span { opacity: 0; }
.nav-open .nav-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1040px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); border-bottom: 1px solid var(--night-line);
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 20px max(var(--gutter), env(safe-area-inset-left, 0px));
  }
  .js .nav-open .site-nav { display: flex; }
  .js .site-nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--night-line); border-radius: 0; }
  .js .site-nav .nav-contact { margin: 16px 0 0; text-align: center; border-radius: var(--radius); border-bottom: 0; padding: 14px; }
  .js .site-nav .lang a, .js .site-nav .lang span { border-bottom: 0; padding: 8px 10px; font-size: 1rem; }
  .site-nav { flex-wrap: wrap; }
  html:not(.js) .header-bar { flex-wrap: wrap; padding-block: 12px; }
  .lang { margin-left: 0; padding-left: 0; border-left: 0; }
  .js .lang { padding-top: 12px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--night); color: var(--on-night); color-scheme: dark; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 7vw, 104px) clamp(32px, 4vw, 56px);
}
.hero-text { display: grid; gap: 26px; min-width: 0; }
.hero h1 {
  font-size: var(--step-4); font-stretch: 116%; font-weight: 660; line-height: 1.02; letter-spacing: -0.025em;
  color: var(--on-night);
}
.hero .lead { color: var(--on-night-2); font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.viz { margin: 0; position: relative; min-width: 0; }
.viz canvas { display: block; width: 100%; aspect-ratio: 6 / 5; }
.viz figcaption { margin-top: 12px; font-size: 0.86rem; line-height: 1.5; color: var(--viz-muted); max-width: 38em; }
.viz-tip {
  position: absolute; z-index: 2; pointer-events: none; min-width: 120px;
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
  padding: 9px 12px 10px; font-size: 0.84rem; line-height: 1.4;
  box-shadow: 0 6px 24px rgba(3, 10, 20, 0.35);
  display: grid; gap: 1px; font-variant-numeric: tabular-nums;
}
.viz-tip strong { font-weight: 650; font-stretch: 106%; }
.viz-tip span { color: var(--ink-2); }

.facts { border-top: 1px solid var(--night-line); padding-block: 28px clamp(40px, 5vw, 64px); display: grid; gap: 18px; }
.facts-title { font-size: 0.92rem; color: var(--on-night-2); font-weight: 500; }
.facts-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-list li { display: grid; gap: 6px; padding-inline: 24px; border-left: 1px solid var(--night-line); align-content: start; }
.facts-list li:first-child { padding-left: 0; border-left: 0; }
.fact-num { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-stretch: 118%; font-weight: 640; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--on-night); }
.fact-label { color: var(--on-night-2); font-size: 0.98rem; line-height: 1.4; max-width: 16em; }

/* ---------- Consulting ---------- */
.services { border-top: 1px solid var(--ink); }
.service {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: 16px clamp(20px, 3vw, 40px); padding-block: 28px; border-bottom: 1px solid var(--rule);
}
.service h3 { font-size: var(--step-1); font-stretch: 108%; font-weight: 630; line-height: 1.25; }
.service p { color: var(--ink-2); max-width: 36em; }
.terms { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.terms li {
  font-size: 0.86rem; font-weight: 550; color: var(--ink); line-height: 1.2;
  padding: 6px 10px; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper);
}
.sectors { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 20px; }
.sectors-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.sectors-list li { border-top: 3px solid var(--ink); padding-top: 14px; display: grid; gap: 4px; }
.sectors-list strong { font-weight: 630; font-stretch: 108%; font-size: 1.1rem; }
.sectors-list span { color: var(--ink-2); font-size: 0.97rem; }

/* ---------- Approach (timeline) ---------- */
.gantt { --weeks: 8; display: grid; gap: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: clamp(16px, 2.5vw, 28px); }
.gantt-row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 20px; align-items: stretch; border-top: 1px solid var(--rule); }
.gantt-list { list-style: none; margin: 0; padding: 0; }
.gantt-row.is-axis { border-top: 0; padding-block: 0 8px; }
.gantt-label { display: grid; gap: 2px; min-width: 0; padding-block: 12px; align-content: center; }
.gantt-label strong { font-weight: 600; font-size: 0.99rem; line-height: 1.3; }
.gantt-label span { font-size: 0.86rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.gantt-axis-title { font-size: 0.86rem; color: var(--ink-2); font-weight: 500; }
.gantt-track {
  display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); min-height: 30px; align-items: center;
  background-image: repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px calc(100% / var(--weeks)));
  background-position: left; position: relative;
}
.gantt-track::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.gantt-weeks { display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); }
.gantt-weeks span { font-size: 0.82rem; color: var(--ink-2); text-align: center; font-variant-numeric: tabular-nums; }
.gantt-bar { height: 14px; border-radius: 3px; background: var(--brand-deep); margin-inline: 2px; }
.gantt-bar.is-parallel { background: repeating-linear-gradient(135deg, var(--brand) 0 6px, #43BDF0 6px 12px); }
.g-s1 { grid-column-start: 1; } .g-s2 { grid-column-start: 2; } .g-s3 { grid-column-start: 3; } .g-s4 { grid-column-start: 4; }
.g-s5 { grid-column-start: 5; } .g-s6 { grid-column-start: 6; } .g-s7 { grid-column-start: 7; } .g-s8 { grid-column-start: 8; }
.g-s9 { grid-column-start: 9; } .g-s10 { grid-column-start: 10; } .g-s11 { grid-column-start: 11; } .g-s12 { grid-column-start: 12; }
.g-w1 { grid-column-end: span 1; } .g-w2 { grid-column-end: span 2; } .g-w3 { grid-column-end: span 3; } .g-w4 { grid-column-end: span 4; }
.g-w5 { grid-column-end: span 5; } .g-w6 { grid-column-end: span 6; } .g-w7 { grid-column-end: span 7; } .g-w8 { grid-column-end: span 8; }
.g-w9 { grid-column-end: span 9; } .g-w10 { grid-column-end: span 10; } .g-w11 { grid-column-end: span 11; } .g-w12 { grid-column-end: span 12; }

.deliverables { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(20px, 3vw, 40px); }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.check-list li { position: relative; padding-left: 26px; line-height: 1.45; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 12px; height: 7px;
  border-left: 2px solid var(--brand-deep); border-bottom: 2px solid var(--brand-deep); transform: rotate(-45deg);
}

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.project-col { display: grid; gap: 4px; align-content: start; }
.project-col h3 { padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.project-list li { display: grid; gap: 4px; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.project-list strong { font-weight: 620; font-size: 1.06rem; line-height: 1.35; }
.project-list span { color: var(--ink-2); font-size: 0.97rem; }

/* ---------- Data ---------- */
.data-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); }
.data-main { display: grid; gap: 24px; align-content: start; }
.sources { display: grid; gap: 0; margin-top: 12px; border-top: 1px solid var(--night-line); }
.sources div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--night-line); }
.sources dt { font-weight: 620; font-stretch: 106%; color: var(--on-night); }
.sources dd { color: var(--on-night-2); }
.data-side { display: grid; gap: 28px; align-content: start; }
.uses { display: grid; gap: 0; border-top: 1px solid var(--night-line); }
.uses li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--night-line); position: relative; }
.uses li::before { content: ""; position: absolute; left: 2px; top: 1.32em; width: 12px; height: 2px; background: var(--brand); }
.case { background: var(--night-2); border-radius: 6px; padding: clamp(20px, 3vw, 28px); display: grid; gap: 10px; }
.case h3 { font-size: 1rem; font-weight: 620; color: var(--brand-soft); font-stretch: 104%; }

/* ---------- Oferta ---------- */
.packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.package { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: clamp(20px, 2.6vw, 30px); display: grid; gap: 14px; align-content: start; grid-template-rows: auto auto auto 1fr auto; }
.package-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.package h3 { font-size: var(--step-1); font-stretch: 108%; font-weight: 640; line-height: 1.25; }
.package-time { font-size: 0.86rem; font-weight: 600; color: var(--brand-deep); background: #E3F3FC; border-radius: 3px; padding: 4px 9px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.package-for { font-size: 0.92rem; color: var(--ink-2); }
.package-for span { font-weight: 600; color: var(--ink); }
.package-text { color: var(--ink-2); }
.package .check-list { grid-template-columns: minmax(0, 1fr); gap: 8px; font-size: 0.97rem; align-content: start; }
.package-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 4px; }
.package-price { font-size: 0.86rem; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; }
.package-cta { font-weight: 620; color: var(--brand-deep); text-decoration: none; }
.package-cta::after { content: " \2192"; }
.package-cta:hover { text-decoration: underline; text-underline-offset: 3px; }
.recurring { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 20px; }
.recurring-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.recurring-list li { border-top: 3px solid var(--ink); padding-top: 14px; display: grid; gap: 6px; align-content: start; }
.recurring-list strong { font-weight: 630; font-stretch: 106%; font-size: 1.05rem; line-height: 1.3; }
.recurring-list span { color: var(--ink-2); font-size: 0.95rem; }
.coop-note { color: var(--ink-2); font-size: 0.95rem; border-left: 2px solid var(--brand); padding-left: 14px; max-width: 46em; }
.product-card { border: 1px dashed rgba(255, 255, 255, 0.3); border-radius: 6px; padding: clamp(18px, 2.6vw, 24px); display: grid; gap: 8px; justify-items: start; }
.product-badge { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--night); background: var(--amber); border-radius: 3px; padding: 3px 8px; }
.product-card h3 { font-size: 1.1rem; font-weight: 630; font-stretch: 106%; color: var(--on-night); }
.product-card p { color: var(--on-night-2); font-size: 0.95rem; }
.product-card a { font-weight: 620; text-decoration: none; }
.product-card a::after { content: " \2192"; }

/* ---------- AI ---------- */
.ai-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: start; margin-bottom: clamp(40px, 5vw, 64px); }
.ai-head { margin-bottom: 0; }
.ai-head .btn { justify-self: start; margin-top: 6px; }
.shap { margin: 0; background: var(--night-2); border-radius: 6px; padding: clamp(18px, 2.6vw, 28px); display: grid; gap: 14px; }
.shap-title { font-weight: 620; font-stretch: 104%; color: var(--brand-soft); font-size: 1rem; }
.shap-chart { display: grid; border-top: 1px solid var(--night-line); }
.shap-row { display: grid; grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr) 4.4rem; gap: 12px; align-items: center; border-bottom: 1px solid var(--night-line); }
.shap-name { font-size: 0.92rem; line-height: 1.25; padding-block: 9px; color: var(--on-night); }
.shap-row.is-base .shap-name, .shap-row.is-out .shap-name { font-weight: 640; }
.shap-track { display: block; width: 100%; height: 36px; overflow: visible; }
.shap-num { font-size: 0.9rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--on-night); white-space: nowrap; }
.is-pos .shap-bar { fill: var(--amber); }
.is-neg .shap-bar { fill: var(--viz-good); }
.shap-row.is-pos .shap-num { color: var(--amber); }
.shap-row.is-neg .shap-num { color: var(--brand-soft); }
.shap-link { stroke: rgba(255, 255, 255, 0.34); stroke-width: 1; stroke-dasharray: 3 3; }
.shap-mark { stroke: var(--on-night); stroke-width: 2.5; }
.shap-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.86rem; color: var(--on-night-2); }
.shap-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }
.shap-legend .is-pos::before { background: var(--amber); }
.shap-legend .is-neg::before { background: var(--viz-good); }
.shap figcaption { font-size: 0.84rem; color: var(--on-night-2); line-height: 1.45; }
.ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 44px); }
.ai-card { display: grid; gap: 12px; align-content: start; padding-block: 26px 30px; border-top: 1px solid var(--night-line); }
.ai-card h3 { font-size: var(--step-1); font-stretch: 108%; font-weight: 630; line-height: 1.25; }
.ai-card p { color: var(--on-night-2); }
.is-night .terms li { background: transparent; color: var(--on-night); border-color: rgba(255, 255, 255, 0.22); }

.case p { color: var(--on-night); line-height: 1.6; }
.note { font-size: 0.92rem; color: var(--on-night-2); }
.data-side .btn { justify-self: start; }

/* ---------- Apps ---------- */
.app-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  border: 1px solid var(--rule); border-radius: 8px; padding: clamp(20px, 4vw, 48px); background: var(--paper);
}
.app-text { display: grid; gap: 16px; min-width: 0; }
.app-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: #FFF4E0; color: #6B4300; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.platforms { font-size: 0.95rem; color: var(--ink-2); }
.app-card h3 { font-size: var(--step-2); font-stretch: 110%; }
.app-card p { color: var(--ink-2); }
.app-card .check-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.app-note { font-size: 0.9rem; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 14px; }
.app-ill { width: 100%; height: auto; display: block; }
.ill-device { fill: #0E2135; }
.ill-screen { fill: #FFFFFF; }
.ill-slide-title { fill: #0E2135; font-family: var(--font); font-weight: 650; font-size: 15px; }
.ill-text { fill: #0E2135; font-family: var(--font); font-size: 15px; }
.ill-text-lg { fill: #0E2135; font-family: var(--font); font-size: 24px; font-weight: 500; }
.ill-muted { fill: #B9C6D3; }
.ill-line { stroke: #0A6CAB; stroke-width: 2.5; fill: none; }
.ill-zoom { fill: #F3F9FD; stroke: #00A2E8; stroke-width: 2; }
.ill-zoom-dash { fill: none; stroke: #00A2E8; stroke-width: 1.5; stroke-dasharray: 5 4; }
.ill-laser { fill: #F23B3B; }
.ill-laser-glow { fill: #F23B3B; opacity: 0.25; }
.ill-phone-screen { fill: #112942; }
.ill-phone-btn { fill: #00A2E8; }
.ill-phone-btn-2 { fill: #2B4560; }
.ill-phone-ico { fill: #0A1A2C; }
.ill-phone-ico-2 { fill: #8DD6F6; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.about-company { display: grid; gap: 22px; align-content: start; }
.founder { display: grid; gap: 18px; }
.founder-photo { width: 100%; max-width: 240px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; display: block; }
.founder-link a { font-weight: 600; }
.founder-name { font-size: var(--step-2); font-stretch: 110%; }
.founder-role { color: var(--ink-2); font-weight: 500; margin-top: -10px; }
.founder p { max-width: 40em; }
.creds { display: grid; border-top: 1px solid var(--rule); margin-top: 8px; }
.creds div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.creds dt { font-weight: 620; font-size: 0.95rem; }
.creds dd { color: var(--ink-2); }
.creds-title { margin: 14px 0 -10px; font-size: 1rem; font-weight: 640; font-stretch: 104%; letter-spacing: -0.005em; }
.career dt { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; }
.career dd { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); }
.contact-info { display: grid; gap: 28px; align-content: start; }
.contact-block { display: grid; gap: 8px; }
.contact-label { font-size: 0.9rem; color: var(--on-night-2); font-weight: 500; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.email-big { font-size: var(--step-2); font-stretch: 108%; font-weight: 600; color: var(--on-night); text-decoration: none; overflow-wrap: anywhere; }
.is-night a.email-big { color: var(--on-night); }
.email-big:hover { text-decoration: underline; }
.copy-btn {
  min-height: 36px; padding: 0 12px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent; color: var(--on-night); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.copy-btn:hover { border-color: var(--on-night); }
address { font-style: normal; color: var(--on-night); line-height: 1.6; }

.contact-form { background: var(--night-2); border-radius: 8px; padding: clamp(20px, 3.5vw, 40px); display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-weight: 550; font-size: 0.95rem; color: var(--on-night); }
.field label small { font-weight: 400; color: var(--on-night-2); font-size: 0.88rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--on-night);
  background: rgba(3, 12, 22, 0.45); border: 1px solid rgba(255, 255, 255, 0.24); border-radius: var(--radius);
  padding: 12px 14px; min-height: 50px;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238DD6F6' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.field select option { color: #0E2135; background: #FFFFFF; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.field [aria-invalid="true"] { border-color: var(--danger-on-night); }
.field-error { color: var(--danger-on-night); font-size: 0.9rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 16px; }
.form-privacy { font-size: 0.88rem; color: var(--on-night-2); line-height: 1.55; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.turnstile-box { min-height: 65px; }
.form-status { font-size: 0.98rem; padding: 12px 14px; border-radius: var(--radius); line-height: 1.5; }
.form-status:empty { padding: 0; }
.form-status.is-success { background: rgba(61, 183, 239, 0.16); color: var(--on-night); }
.form-status.is-error { background: rgba(255, 156, 140, 0.14); color: var(--on-night); }
.form-status.is-info { background: rgba(255, 255, 255, 0.08); color: var(--on-night); }
.noscript { color: var(--on-night); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-deep); color: var(--on-night-2); color-scheme: dark; padding-block: 48px 40px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: 32px; }
.footer-brand img { height: 26px; width: auto; display: block; }
.footer-title { color: var(--on-night); font-weight: 600; margin-bottom: 10px; font-size: 0.95rem; }
.company-data { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; }
.company-data dt { color: var(--on-night-2); }
.company-data dd { color: var(--on-night); }
.footer-links { display: grid; gap: 6px; }
.footer-links a { color: var(--on-night); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer .nw { white-space: nowrap; }
mark.todo { background: #4B3A12; color: #FFE3A3; }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--night); color: var(--on-night); padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px); color-scheme: dark; }
.legal-hero .back { color: var(--brand-soft); font-size: 0.95rem; }
.legal-hero h1 { font-size: var(--step-3); font-stretch: 112%; line-height: 1.08; margin-top: 18px; max-width: 22em; color: var(--on-night); }
.legal-meta { margin-top: 14px; color: var(--on-night-2); font-size: 0.95rem; }
.legal { padding-block: clamp(40px, 6vw, 72px) var(--section); }
.legal-body { max-width: 46rem; display: grid; gap: 16px; }
.legal-body h2 { font-size: var(--step-1); font-stretch: 106%; font-weight: 640; margin-top: 22px; line-height: 1.3; scroll-margin-top: 96px; }
.legal-body ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; }
.legal-body li::marker { color: var(--brand-deep); }
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; }
.legal-body table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.93rem; line-height: 1.45; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.legal-body th { background: var(--mist); font-weight: 620; }
.legal-body tr:last-child td { border-bottom: 0; }

/* ---------- 404 ---------- */
.nf { padding-block: clamp(72px, 12vw, 160px); display: grid; gap: 18px; }
.nf h1 { font-size: var(--step-4); font-stretch: 116%; line-height: 1.02; }
.nf .nf-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .viz { max-width: 640px; }
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .service .terms { grid-column: 2; }
  .data-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .app-card { grid-template-columns: minmax(0, 1fr); }
  .app-ill { max-width: 560px; }
}
@media (max-width: 760px) {
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .facts-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .service { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 24px; }
  .service .terms { grid-column: auto; }
  .sectors-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gantt-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gantt-label { padding-block: 12px 6px; }
  .gantt-track { margin-bottom: 12px; }
  .gantt-row.is-axis .gantt-axis-title { display: none; }
  .deliverables { grid-template-columns: minmax(0, 1fr); }
  .check-list { grid-template-columns: minmax(0, 1fr); }
  .projects-grid { grid-template-columns: minmax(0, 1fr); }
  .sources div, .creds div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .viz canvas { aspect-ratio: 1 / 1; }
}
@media (max-width: 480px) {
  .hero h1 { font-stretch: 104%; }
  .h2 { font-stretch: 104%; }
  .brand img { height: 26px; }
  .sectors-list { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 1040px) {
  .ai-top { grid-template-columns: minmax(0, 1fr); }
  .ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ai-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .shap-row { grid-template-columns: minmax(0, 1fr) 4.2rem; column-gap: 10px; row-gap: 0; }
  .shap-name { grid-column: 1 / -1; padding-block: 10px 0; }
  .shap-track { height: 26px; }
}
@media (max-width: 1040px) {
  .recurring-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .packages { grid-template-columns: minmax(0, 1fr); }
  .recurring-list { grid-template-columns: minmax(0, 1fr); }
}
