/* Adaptive Intelligence — site stylesheet. Plain CSS, no build step. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-variable-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Conthrax";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/conthrax-sb-regular.woff2") format("woff2");
}

:root {
  --ink: #0a1015;
  --ink-2: #141a21;
  --ink-3: #1e242c;
  --paper: #ffffff;
  --paper-2: #f3f3f1;
  --paper-3: #e9e9e6;
  --red: #bf1812;
  --red-deep: #850d03;
  --red-soft: #fbe9e8;
  --text: #0a1015;
  --muted: #5d636b;
  --line: rgba(10, 16, 21, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(10, 16, 21, 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
  --gutter: 20px;
  --section: clamp(60px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); letter-spacing: -0.015em; }
h4 { font-size: 1.2rem; letter-spacing: -0.01em; }
h5, h6 { font-size: 1.05rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin: 0.3em 0; }
li > p { margin: 0; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.lead { font-size: 1.25rem; line-height: 1.55; }
.small { font-size: 0.9rem; color: var(--muted); }
.muted { color: var(--muted); }
.red { color: var(--red); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 1rem;
}
.dark .eyebrow { color: #ff6b63; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.container--wide { max-width: 1320px; }

/* Sections */
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--flush { padding: 0; }
.dark { background: var(--ink); color: #fff; }
.dark .muted, .dark .small { color: rgba(255, 255, 255, 0.7); }
.dark-2 { background: var(--ink-3); color: #fff; }
.grey { background: var(--paper-2); }
.has-bg { background-size: cover; background-position: center; color: #fff; }
.has-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,21,0.78), rgba(10,16,21,0.86)); }
.has-bg > * { position: relative; }
.has-bg--red::before { background: linear-gradient(135deg, rgba(133,13,3,0.92), rgba(191,24,18,0.8)); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.15rem; color: var(--muted); }
.dark .section-head p, .has-bg .section-head p { color: rgba(255,255,255,0.76); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--red); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper-3); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: rgba(10,16,21,0.06); }
.dark .btn--ghost:hover, .has-bg .btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--sm { padding: 10px 18px; font-size: 0.875rem; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.btn-row--center { justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span small { display: block; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav li { position: relative; }
.nav a, .nav button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink); background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { background: var(--paper-2); }
.nav a[aria-current="page"] { font-weight: 700; }
.nav .caret { width: 10px; height: 10px; transition: transform 0.15s ease; }
.nav li.open > button .caret { transform: rotate(180deg); }
.nav .sub {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; flex-direction: column; gap: 2px;
}
.nav li.open > .sub { display: flex; }
.nav .sub a { display: block; border-radius: 10px; padding: 10px 12px; width: 100%; }
.nav .sub a.sub-head { font-weight: 700; }
.nav .nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; border-radius: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.2s ease, opacity 0.2s ease; }
@media (min-width: 981px) {
  .nav li:hover > .sub, .nav li:focus-within > .sub { display: flex; }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 20px 20px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a, .nav button { width: 100%; justify-content: space-between; padding: 12px 10px; border-radius: 10px; font-size: 1.05rem; }
  .nav .sub { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
  .nav .sub a { font-size: 0.98rem; }
  .nav .nav-cta { margin: 10px 0 0; }
  .nav .nav-cta .btn { width: 100%; justify-content: center; background: var(--red); color: #fff; font-weight: 600; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { padding: clamp(56px, 9vw, 128px) 0; overflow: hidden; position: relative; }
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero--stack .container { display: block; text-align: center; }
.hero--stack .hero-copy { max-width: 820px; margin: 0 auto; }
.hero--stack .btn-row { justify-content: center; }
.hero-copy .lead { max-width: 620px; color: var(--muted); }
.dark .hero-copy .lead, .has-bg .hero-copy .lead { color: rgba(255,255,255,0.78); }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(100%, 420px); }
.hero-art--photo img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.hero-mark { position: absolute; right: -6vw; top: 50%; transform: translateY(-50%); width: 46vw; max-width: 640px; opacity: 0.07; pointer-events: none; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(60%, 240px); }
  .hero-art--photo img { width: 100%; }
}

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--text-wide { grid-template-columns: 1.2fr 0.8fr; }
.split--reverse > :first-child { order: 2; }
.split img.photo, .photo { width: 100%; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--16x9 { aspect-ratio: 16 / 9; }
.photo--square { aspect-ratio: 1; }
.split .lead { color: var(--muted); }
.dark .split .lead, .has-bg .split .lead { color: rgba(255,255,255,0.78); }
@media (max-width: 860px) {
  .split, .split--text-wide { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* Cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .cards--2 { grid-template-columns: 1fr; } }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 10px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3, .card h4 { margin-bottom: 0.2em; }
.card p { color: var(--muted); }
.card .btn { align-self: flex-start; margin-top: auto; }
.card--dark { background: var(--ink-2); border-color: var(--line-dark); color: #fff; }
.card--dark p { color: rgba(255,255,255,0.74); }
.card--red { background: var(--red); border-color: transparent; color: #fff; }
.card--red p { color: rgba(255,255,255,0.86); }
.card--photo { padding: 0; overflow: hidden; }
.card--photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card--photo .card-body { padding: clamp(22px, 3vw, 28px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card--photo .card-body .btn { margin-top: auto; align-self: flex-start; }
.card .icon { width: 56px; height: 56px; border-radius: 14px; background: var(--red-soft); display: grid; place-items: center; margin-bottom: 6px; }
.card .icon img { width: 36px; height: 36px; object-fit: contain; }
.card--dark .icon { background: rgba(255,255,255,0.08); }
.card .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.dark .card { background: var(--ink-2); border-color: var(--line-dark); color: #fff; }
.dark .card p { color: rgba(255,255,255,0.74); }
.dark .card .icon { background: rgba(255,255,255,0.08); }
.card ul { padding-left: 1.1em; color: var(--muted); }
.dark .card ul, .card--dark ul { color: rgba(255,255,255,0.78); }
.card .ideal { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.dark .card .ideal { border-color: var(--line-dark); }
.card .ideal strong { color: var(--red); letter-spacing: 0.06em; font-size: 0.78rem; text-transform: uppercase; }
.dark .card .ideal strong { color: #ff6b63; }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 32px; margin: 0.55em 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Stats */
.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.stat { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); }
.stat .num { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: #fff; }
.stat .num span { color: var(--red); }
.stat p { margin: 0.6rem 0 0; color: rgba(255,255,255,0.78); }
.stat .src { display: block; margin-top: 0.8rem; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.stat--light { background: #fff; border-color: var(--line); }
.stat--light .num { color: var(--ink); }
.stat--light p { color: var(--muted); }
.stat--red { background: var(--red); border-color: transparent; }
.stat--red .num span { color: #fff; }

/* Quote / callout */
.callout {
  border-left: 4px solid var(--red); background: var(--paper-2); padding: 22px 26px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.15rem; font-weight: 500;
}
.dark .callout { background: rgba(255,255,255,0.06); }
.callout--dark { background: var(--ink); color: #fff; border-radius: var(--radius); border: 0; padding: clamp(24px, 3vw, 36px); text-align: center; font-size: 1.25rem; }

/* Pipeline (Data Analysis > Cleaning > …) */
.pipeline { display: flex; flex-wrap: wrap; gap: 10px 0; align-items: center; font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.5rem); letter-spacing: -0.01em; }
.pipeline span { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.08); }
.pipeline i { color: var(--red); font-style: normal; padding: 0 10px; font-weight: 800; }

/* Logo strip */
.logos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: center; }
.logos--sm { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; height: 92px; display: grid; place-items: center; padding: 16px 20px; }
.logo-tile img { max-height: 48px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter 0.2s ease, opacity 0.2s ease; }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-tile--tall img { max-height: 60px; }
.dark .logo-tile { background: #fff; }
.logos-title { text-align: center; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; font-weight: 700; }

/* Team */
.team { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.member h3 { font-size: 1.15rem; margin-bottom: 0.1em; }
.member .role { color: var(--red); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; }
.member p { font-size: 0.95rem; color: var(--muted); }

/* CTA band */
.band { padding: clamp(48px, 6vw, 80px) 0; }
.band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { margin: 0; max-width: 720px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.band--red { background: var(--red); color: #fff; }
.band--grey { background: var(--paper-2); }

/* Prose (blog, legal) */
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose h4 { margin-top: 1.5em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.2em; }
.prose img { border-radius: var(--radius); margin: 2em 0; width: 100%; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 2em 0; padding: 20px 26px; border-left: 4px solid var(--red); background: var(--paper-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.prose .callout--dark { margin: 2em 0; font-style: normal; }
.article-head { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); text-align: center; }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 900px; margin: 0 auto 0.5em; }
.article-head .lead { max-width: 760px; margin: 0 auto 1.2rem; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.article-cover { max-width: 1000px; margin: 0 auto clamp(32px, 4vw, 56px); }
.article-cover img { width: 100%; aspect-ratio: 2.3 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }

/* Blog list */
.posts { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post .post-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post h2 { font-size: 1.3rem; margin: 0; }
.post h2 a { text-decoration: none; }
.post h2 a::after { content: ""; position: absolute; inset: 0; }
.post { position: relative; }
.post p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.post .post-meta { margin-top: auto; padding-top: 10px; font-size: 0.85rem; color: var(--muted); font-weight: 500; display: flex; gap: 14px; }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10,16,21,0.08); }
.field textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-msg { display: none; padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.form-msg.show { display: block; }
.form-msg--ok { background: #e6f6ea; color: #14532d; }
.form-msg--err { background: var(--red-soft); color: var(--red-deep); }
.form-msg--info { background: var(--paper-2); color: var(--ink); }
.footer-form .form-msg--info { background: rgba(255,255,255,0.1); color: #fff; }
.form.sent > :not(.form-msg) { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-turnstile { min-height: 65px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }

/* Contact details */
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.contact-grid .card h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 0.6em; }
.contact-grid .card p { color: inherit; }
.contact-grid a { text-decoration: none; }
.contact-grid a:hover { text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* Embeds */
.embed { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.embed iframe { width: 100%; border: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: clamp(48px, 6vw, 80px) 0 32px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; }
.footer-grid h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 1em; }
.footer-grid p, .footer-grid li { color: rgba(255,255,255,0.82); font-size: 0.97rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0.45em 0; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand small { color: rgba(255,255,255,0.6); }
.footer-form .field input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); color: #fff; }
.footer-form .field input::placeholder { color: rgba(255,255,255,0.45); }
.footer-form .field input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.12); }
.footer-form .form-note { color: rgba(255,255,255,0.55); }
.footer-form .form-msg--ok { background: rgba(255,255,255,0.1); color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Cookie banner */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(10,16,21,0.2);
  padding: 18px 20px; display: none; gap: 16px; align-items: center; flex-wrap: wrap;
}
.cookie.show { display: flex; }
.cookie p { margin: 0; flex: 1 1 320px; font-size: 0.92rem; }
.cookie .btn-row { margin: 0; }

/* WhatsApp */
.whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,0.25); transition: transform 0.15s ease;
}
.whatsapp:hover { transform: scale(1.06); }
.whatsapp svg { width: 30px; height: 30px; }
body.cookie-open .whatsapp { bottom: 140px; }

/* Misc */
.atlas-word { font-family: "Conthrax", var(--font); letter-spacing: 0.12em; }
.feature-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,0.08); display: grid; place-items: center; }
.feature .icon img { width: 32px; height: 32px; object-fit: contain; }
.feature h3 { font-size: 1.1rem; margin-bottom: 0.25em; }
.feature p { color: rgba(255,255,255,0.74); font-size: 0.98rem; }
.light .feature .icon, .grey .feature .icon { background: var(--red-soft); }
.light .feature p, .grey .feature p { color: var(--muted); }
.quotes { display: grid; gap: 12px; }
.quote { background: var(--ink-2); color: #fff; border-radius: 14px; padding: 16px 20px; font-weight: 600; border-left: 4px solid var(--red); }
.math img { width: 100%; max-width: 700px; filter: invert(1); margin: 0 auto; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { position: relative; padding-left: 56px; min-height: 40px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: grid; place-items: center; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: clamp(4rem, 12vw, 8rem); color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .cookie, .whatsapp, .nav-toggle { display: none !important; }
}
