/* =========================================================
   Extractly — one-page site
   ========================================================= */

:root {
  --red: #B4121B;
  --red-soft: #f3d5d7;
  --red-dark: #8E0E15;
  --red-light: #f0525a; /* readable red for small text on black */
  --grey: #8a8a8a;
  --ink: #000000;
  --ink-2: #333333;
  --muted: #6b6b6b;
  --bg: #f6f4f4;
  --white: #ffffff;
  --line: #e4e1e1;

  --font: "Epilogue", system-ui, -apple-system, "Segoe UI", sans-serif; /* headings */
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; /* body text */
  --mono: "Space Mono", ui-monospace, Menlo, monospace;

  --container: 1308px; /* 1260px of content + 24px side padding */
  --radius: 4px;
}

@font-face {
  font-family: "Histore Magical";
  src: url("../Assets/Histore%20Magical%20DEMO%20VERSION.otf") format("opentype");
  font-weight: normal; font-style: normal; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
/* All headings use Histore Magical (single weight, so no faux bold and no tight tracking) */
h1, h2, h3 { font-family: "Histore Magical", var(--font); font-weight: normal; font-synthesis: none; letter-spacing: 0 !important; font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 110px 0; }

/* ---------- Type ---------- */
.h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 700; max-width: 820px; letter-spacing: -0.01em; }
.h2-xl { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; color: var(--ink-2); letter-spacing: -0.015em; margin-bottom: 28px; }
.body-lg { font-size: 14.5px; line-height: 1.75; max-width: 640px; margin-bottom: 24px; }
.mono, .eyebrow { font-family: var(--mono); font-size: 1rem; margin-bottom: 18px; }
.eyebrow { display: inline-block; background: var(--ink); color: var(--red-light); padding: 4px 12px; font-size: .85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  padding: 16px 28px; border: 2px solid var(--ink); border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: 0 10px 30px -8px rgba(180, 18, 27, .6); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(180, 18, 27, .7); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); color: var(--white); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; box-shadow: 4px 4px 0 var(--red); transform: translate(-2px, -2px); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }

/* ---------- Header ---------- */
/* Floating white pill that sits over the page */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: 14px; pointer-events: none; }
.site-header::before {
  content: ""; position: absolute; top: 0; left: 0; height: 3px;
  width: var(--progress, 0%); background: var(--red); transition: width .1s;
}
.site-header .nav {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between;
  width: min(var(--container), calc(100% - 32px)); height: 64px; margin: 0 auto; padding: 0 8px 0 24px; border-radius: 999px;
  background: var(--white);
  position: relative; border: 1px solid var(--line); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .25);
  transition: height .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled .nav { height: 58px; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .3); }
.logo { display: block; }
.logo img { width: auto; height: 32px; }
.logo .logo-light { display: none; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: .92rem; font-weight: 500; }
.nav-links a:not(.btn) { padding: 9px 16px; border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:not(.btn):hover { background: var(--red-soft); color: var(--red-dark); }
.nav-links .btn {
  margin-left: 10px; gap: 8px; padding: 11px 12px 11px 20px; border: 0; border-radius: 999px;
  background: var(--red); color: var(--white); font-size: .9rem;
}
.nav-links .btn::after {
  content: "→"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .2); transition: transform .25s;
}
.nav-links .btn:hover { background: var(--red-dark); box-shadow: none; transform: none; }
.nav-links .btn:hover::after { transform: rotate(-45deg); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Navigation variants (data-nav on .site-header; "pill" is the default above) ---------- */

/* Shared: white logo + light toggle on dark variants */
.site-header[data-nav="glass"] .logo-dark, .site-header[data-nav="menu"] .logo-dark { display: none; }
.site-header[data-nav="glass"] .logo-light, .site-header[data-nav="menu"] .logo-light { display: block; }
.site-header[data-nav="glass"] .nav-toggle span { background: var(--white); }

/* 2. Dark glass: full-width blurred bar, sliding red underlines */
.site-header[data-nav="glass"] { padding-top: 0; background: rgba(8, 8, 8, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, .08); pointer-events: auto; transition: background .3s; }
.site-header[data-nav="glass"].scrolled { background: rgba(8, 8, 8, .88); }
.site-header[data-nav="glass"] .nav { height: 74px; background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0 24px; }
.site-header[data-nav="glass"].scrolled .nav { height: 66px; }
@media (min-width: 901px) {
  .site-header[data-nav="glass"] .nav-links { gap: 34px; }
  .site-header[data-nav="glass"] .nav-links a:not(.btn) { position: relative; padding: 6px 0; border-radius: 0; color: rgba(255, 255, 255, .72); background: none; }
  .site-header[data-nav="glass"] .nav-links a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red-light);
    transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  }
  .site-header[data-nav="glass"] .nav-links a:not(.btn):hover { color: var(--white); background: none; }
  .site-header[data-nav="glass"] .nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
  .site-header[data-nav="glass"] .nav-links .btn { background: transparent; border: 1.5px solid rgba(255, 255, 255, .45); }
  .site-header[data-nav="glass"] .nav-links .btn:hover { background: var(--red); border-color: var(--red); }
}

/* 2b. White: same layout as Dark glass, solid white with a soft gradient */
.site-header[data-nav="white"] {
  padding-top: 0; pointer-events: auto; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 92% 0%, rgba(180, 18, 27, .1), transparent 40%), linear-gradient(90deg, #ffffff 0%, #fbf4f4 100%);
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, .35);
}
.site-header[data-nav="white"] .nav { height: 74px; background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0 24px; }
.site-header[data-nav="white"].scrolled .nav { height: 66px; }
@media (min-width: 901px) {
  .site-header[data-nav="white"] .nav-links { gap: 34px; }
  .site-header[data-nav="white"] .nav-links a:not(.btn) { position: relative; padding: 6px 0; border-radius: 0; color: var(--ink-2); background: none; }
  .site-header[data-nav="white"] .nav-links a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red);
    transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  }
  .site-header[data-nav="white"] .nav-links a:not(.btn):hover { color: var(--ink); background: none; }
  .site-header[data-nav="white"] .nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
  .site-header[data-nav="white"] .nav-links .btn { background: transparent; color: var(--ink); border: 1.5px solid rgba(0, 0, 0, .3); }
  .site-header[data-nav="white"] .nav-links .btn::after { background: var(--red); color: var(--white); }
  .site-header[data-nav="white"] .nav-links .btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }
  .site-header[data-nav="white"] .nav-links .btn:hover::after { background: rgba(255, 255, 255, .2); }
}

/* 3. Islands: logo pill + dark link pill with a red bubble that follows the hovered link */
.site-header[data-nav="islands"] .nav { background: none; border: 0; box-shadow: none; padding: 0; }
.site-header[data-nav="islands"] .logo { display: grid; place-items: center; height: 60px; padding: 0 26px; border-radius: 999px; background: var(--white); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .3); }
@media (min-width: 901px) {
  .site-header[data-nav="islands"] .nav-links {
    position: relative; isolation: isolate; height: 60px; padding: 6px; gap: 2px; border-radius: 999px;
    background: rgba(12, 12, 12, .92); backdrop-filter: blur(12px); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .55);
  }
  .site-header[data-nav="islands"] .nav-links::before {
    content: ""; position: absolute; z-index: -1; top: 6px; bottom: 6px; left: var(--ix, 6px); width: var(--iw, 0); border-radius: 999px;
    background: var(--red); opacity: var(--io, 0); transition: left .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1), opacity .25s;
  }
  .site-header[data-nav="islands"] .nav-links a:not(.btn) { padding: 0 20px; height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, .78); background: none; }
  .site-header[data-nav="islands"] .nav-links a:not(.btn):hover { color: var(--white); background: none; }
  .site-header[data-nav="islands"] .nav-links .btn { height: 100%; margin-left: 6px; background: var(--white); color: var(--ink); }
  .site-header[data-nav="islands"] .nav-links .btn::after { background: var(--red); color: var(--white); }
  .site-header[data-nav="islands"] .nav-links .btn:hover { background: var(--white); }
}
@media (max-width: 900px) {
  .site-header[data-nav="islands"] .logo { height: 54px; padding: 0 20px; }
  .site-header[data-nav="islands"] .nav-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 54px; height: 54px; border-radius: 50%; background: var(--red); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
  .site-header[data-nav="islands"] .nav-toggle span { margin: 0; background: var(--white); width: 20px; }
}

/* 4. Fullscreen menu: logo + Menu button; links open as a full-screen overlay */
.site-header[data-nav="menu"] .nav { background: none; border: 0; box-shadow: none; transition: background .3s, height .3s; }
.site-header[data-nav="menu"].scrolled .nav { background: rgba(10, 10, 10, .94); }
.site-header[data-nav="menu"] .logo, .site-header[data-nav="menu"] .nav-toggle { position: relative; z-index: 2; }
.site-header[data-nav="menu"] .nav-toggle {
  display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 8px 0 20px; border-radius: 999px;
  background: var(--white); font: 600 .9rem var(--body); color: var(--ink);
}
.site-header[data-nav="menu"] .nav-toggle::before { content: "Menu"; }
.site-header[data-nav="menu"] .nav-toggle[aria-expanded="true"]::before { content: "Close"; }
.site-header[data-nav="menu"] .nav-toggle span { display: none; }
.site-header[data-nav="menu"] .nav-toggle::after {
  content: ""; width: 32px; height: 32px; border-radius: 50%; background: var(--red) center/14px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8h18M3 16h18' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .4s;
}
.site-header[data-nav="menu"] .nav-toggle[aria-expanded="true"]::after { transform: rotate(135deg); }
.site-header[data-nav="menu"] .nav-links {
  position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
  padding: 120px max(32px, calc((100vw - 1260px) / 2)); border-radius: 0; box-shadow: none; counter-reset: navi;
  background: radial-gradient(circle at 85% 15%, rgba(180, 18, 27, .5), transparent 50%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 16px), var(--ink);
  clip-path: circle(0 at calc(100% - 80px) 46px); opacity: 1; transform: none; pointer-events: none;
  transition: clip-path .7s cubic-bezier(.7, 0, .2, 1);
}
.site-header[data-nav="menu"] .nav-links.open { clip-path: circle(150% at calc(100% - 80px) 46px); pointer-events: auto; }
.site-header[data-nav="menu"] .nav-links a:not(.btn) {
  display: flex; align-items: baseline; gap: 22px; padding: 4px 0; border-radius: 0; background: none; counter-increment: navi;
  font-family: "Histore Magical", var(--font); font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1.1; color: var(--white);
  font-variant-ligatures: none; font-feature-settings: "liga" 0;
}
.site-header[data-nav="menu"] .nav-links a:not(.btn)::before { content: counter(navi, decimal-leading-zero); font-family: var(--mono); font-size: .9rem; color: var(--red-light); }
.site-header[data-nav="menu"] .nav-links a:not(.btn):hover { color: var(--red-light); background: none; transform: translateX(12px); transition: transform .3s, color .3s; }
.site-header[data-nav="menu"] .nav-links .btn { margin: 36px 0 0; padding: 16px 16px 16px 28px; font-size: 1.05rem; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; display: flex; align-items: center; padding: 120px 0 64px;
  background-color: var(--ink); color: var(--white);
  background-image:
    radial-gradient(circle at 80% 40%, rgba(180, 18, 27, .35), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .075) 0 1px, transparent 1px 16px);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; border-radius: 999px;
  background: rgba(180, 18, 27, .18); border: 1px solid rgba(240, 82, 90, .45); color: var(--white);
  text-transform: uppercase; letter-spacing: .1em; font-size: .8rem;
}
.hero .eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red-light);
  box-shadow: 0 0 0 4px rgba(240, 82, 90, .2); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(240, 82, 90, 0); } }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 26px; }
.hero h1 mark, .h2-xl mark { background: var(--red); color: var(--white); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); max-width: 560px; margin-bottom: 36px; }
.hero .lead { color: rgba(255, 255, 255, .75); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .btn {
  font-size: 1.1rem; font-weight: 500; letter-spacing: 0; padding: 18px 30px; border-width: 1.5px; border-radius: 16px;
}
.hero-actions .btn-primary { box-shadow: none; }
.hero-actions .btn-primary:hover { box-shadow: none; transform: translateY(-2px); }
.hero-actions .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .4); }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--white); color: var(--white); }
.btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
/* Annotated document: fields on the page are traced to structured cards. Fixed 560x440 stage, zoomed on smaller screens */
.hero-stage { position: relative; width: 560px; height: 440px; }
.hero-doc {
  position: absolute; left: 20px; top: 40px; width: 290px; height: 380px; border-radius: 14px;
  background: var(--white); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8);
}
.hero-doc > * { position: absolute; }
.hd-title { left: 24px; top: 26px; width: 110px; height: 12px; border-radius: 4px; background: var(--ink); }
.hd-sub { left: 24px; top: 48px; width: 70px; height: 8px; border-radius: 4px; background: #d9d9d9; }
.hero-doc i { height: 8px; border-radius: 4px; background: #e8e8e8; }
.hd-field {
  height: 24px; border-radius: 6px; border: 1.5px dashed var(--red); background: rgba(180, 18, 27, .08);
  box-shadow: inset 0 0 0 5px var(--white), inset 0 0 0 20px rgba(180, 18, 27, .18);
}
.hs-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hs-links path { fill: none; stroke: var(--red-light); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .8; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -10; } }
.hs-card {
  position: absolute; left: 372px; width: 178px; height: 52px; padding: 8px 14px; border-radius: 12px;
  display: flex; flex-direction: column; justify-content: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px);
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .7);
  animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--k) * -1.2s);
}
.hs-label { width: 54px; height: 7px; border-radius: 4px; background: var(--red-light); opacity: .8; margin-bottom: 9px; }
.hs-value { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .85); }
.hs-check {
  position: absolute; right: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; padding: 4px; border-radius: 50%;
  background: var(--red); fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- 2. Logos ---------- */
.logos {
  padding: 80px 0; border-top: 3px solid var(--red);
  background:
    radial-gradient(circle at 15% 0%, rgba(180, 18, 27, .08), transparent 45%),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .045) 0 1px, transparent 1px 16px),
    var(--white);
}
.logos-title { font-size: clamp(2.5rem, 5.2vw, 4.4rem); color: var(--ink); text-align: center; margin: 0 auto clamp(56px, 7vw, 96px); }
.marquee {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee + .marquee { margin-top: 18px; }
.marquee-group {
  flex: none; display: flex; align-items: center;
  animation: marquee 32s linear infinite;
}
.marquee-reverse .marquee-group { animation-direction: reverse; animation-duration: 36s; }
.marquee:hover .marquee-group { animation-play-state: paused; }
.marquee-group li {
  flex: none; display: flex; align-items: center; height: 72px; padding: 0 44px;
  filter: grayscale(1); opacity: .5; transition: filter .3s, opacity .3s, transform .3s;
}
.marquee-group li:hover { filter: none; opacity: 1; transform: scale(1.08); }
@keyframes marquee { to { transform: translateX(-100%); } }
/* Client logos with ✦ separators */
.lg-row .marquee-group li { filter: none; opacity: 1; height: auto; padding: 0 24px; gap: 14px; }
.lg-row .marquee-group li:hover { transform: none; }
.lg-row + .lg-row { margin-top: 48px; }
.lg-row .marquee-group li::after { content: "✦"; margin-left: 24px; color: var(--red); font-size: 1rem; }
.lg-logo { display: block; width: auto; max-width: none; }
.lg-logo.lg-mono { filter: brightness(0); } /* white/light single-colour logos, shown dark on the light section */

/* Logo variants (preview) — keep one once a design is chosen.
   marquee: the two scrolling rows above (default) */
.lw-wall-wrap, .lw-cols { display: none; }
.lw-wall li, .lw-col li { display: flex; align-items: center; justify-content: center; }
.lw-wall .lg-logo, .lw-col .lg-logo { max-width: 78%; object-fit: contain; }
.logos[data-variant="wall"] .marquee, .logos[data-variant="split"] .marquee { display: none; }

/* wall: static grid of cells, greyscale logos that colour in on hover */
.logos[data-variant="wall"] .lw-wall-wrap { display: block; }
.lw-wall {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.lw-wall li { height: 150px; background: var(--white); transition: background .3s; }
.lw-wall .lg-logo { filter: grayscale(1); opacity: .55; transition: filter .3s, opacity .3s, transform .3s; }
.lw-wall li:hover { background: #fdf6f6; }
.lw-wall li:hover .lg-logo { filter: none; opacity: 1; transform: scale(1.06); }
.lw-more { font-family: var(--font); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; color: var(--red); }

/* dark: black band, logos on white chips */
.logos[data-variant="dark"] {
  background:
    radial-gradient(circle at 15% 0%, rgba(180, 18, 27, .35), transparent 50%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 16px),
    var(--ink);
}
.logos[data-variant="dark"] .logos-title { color: var(--white); }
.logos[data-variant="dark"] .marquee + .marquee { margin-top: 20px; }
.logos[data-variant="dark"] .lg-row .marquee-group li {
  height: 104px; margin: 0 10px; padding: 0 36px; border-radius: 18px; background: var(--white);
}
.logos[data-variant="dark"] .lg-row .marquee-group li::after { content: none; }

/* split: title on the left, two columns of logo cards scrolling vertically on the right */
.logos[data-variant="split"] {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 60px;
  padding-inline: max(24px, (100% - 1260px) / 2);
}
.logos[data-variant="split"] > .container { max-width: none; margin: 0; padding: 0; }
.logos[data-variant="split"] .logos-title { text-align: left; margin: 0; }
.logos[data-variant="split"] .lw-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; height: 460px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}
.lw-track { animation: lwUp 30s linear infinite; }
.lw-col:nth-child(2) .lw-track { animation-direction: reverse; animation-duration: 34s; }
.lw-cols:hover .lw-track { animation-play-state: paused; }
.lw-col li {
  height: 120px; margin-bottom: 18px; border-radius: 18px; background: var(--white);
  border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .25);
}
@keyframes lwUp { to { transform: translateY(-50%); } }

/* ---------- 3. How it works ---------- */
.how { text-align: left; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 80px; position: relative; }
.step { text-align: center; position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; left: 66%; width: 66%; height: 40px;
  border-top: 2px dotted #666; border-radius: 50% 50% 0 0;
}
.step:nth-child(2)::after { border-top: 0; border-bottom: 2px dotted #666; border-radius: 0 0 50% 50%; top: 66px; }
.tile {
  width: 120px; height: 120px; margin: 0 auto 30px; background: var(--red-soft);
  display: grid; place-items: center; transform: rotate(-18deg); transition: transform .4s;
}
.tile svg { width: 64px; transform: rotate(18deg); }
.step:hover .tile { transform: rotate(0); }
.step h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 10px; }
.step p { font-size: 1.05rem; color: var(--ink-2); max-width: 300px; margin: 0 auto; }
.scroll-pill { display: block; width: 36px; height: 56px; border: 2px solid var(--grey); border-radius: 20px; margin: 80px auto 0; position: relative; }
.scroll-pill span { position: absolute; left: 50%; top: 10px; width: 4px; height: 10px; margin-left: -2px; background: var(--grey); border-radius: 2px; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(20px); } }

/* ---------- Core capabilities: winding path ---------- */
.capabilities {
  color: var(--ink);
  background: radial-gradient(circle at 0% 0%, #fdeff0, transparent 45%), linear-gradient(120deg, #fffafa 0%, #fbf1f1 55%, #f8e6e4 100%);
}
.capabilities .section-head { max-width: 860px; margin: 0 auto 10px; text-align: center; }
.capabilities .section-head .h2-xl { color: var(--ink); }
.capabilities .section-pill { background: var(--red); border-color: var(--red); color: var(--white); }
.cap-path { position: relative; max-width: 1200px; margin: -4% auto 0; } /* pull up into the empty top of the path artwork */
.cp-svg { display: block; width: 100%; height: auto; overflow: visible; }
.cp-track { fill: none; stroke: rgba(180, 18, 27, .1); stroke-width: 34; stroke-linecap: round; }
.cp-line { fill: none; stroke: url(#cpGrad); stroke-width: 6; stroke-linecap: round; }
.cp-flow { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 22; opacity: .9; animation: cpFlow 2.4s linear infinite; }
@keyframes cpFlow { to { stroke-dashoffset: -24; } }
.cp-head { fill: #f0525a; }
.cp-icon {
  position: absolute; display: grid; place-items: center; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  background: var(--white); color: var(--red); border: 3px solid var(--red);
  box-shadow: 0 0 0 8px rgba(180, 18, 27, .1), 0 16px 30px -12px rgba(180, 18, 27, .5); transition: transform .3s, background .3s, color .3s;
}
.cp-icon:hover { transform: scale(1.08); background: var(--red); color: var(--white); }
.cp-icon svg { width: 28px; height: 28px; }
.cp-step { position: absolute; width: 230px; transform: translateX(-50%); text-align: center; }
.cp-top { bottom: 70%; }
.cp-bottom { top: 85%; }
.cp-dash { display: block; width: 34px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: var(--red); }
.cp-num { display: block; font-family: var(--mono); font-size: .72rem; color: var(--red); margin-bottom: 4px; }
.cp-step h3 { font-size: 1.3rem; margin-bottom: 6px; }
.cp-step p { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 901px) {
  .cp-step h3 { font-size: 1.2rem; white-space: nowrap; } /* titles break only at their <br>: always two lines */
}
.cap-alt h3 br { display: none; } /* the other layouts wrap titles naturally */

/* Roadmap variants (data-variant on .capabilities; "wave" is the path above) */
.capabilities:not([data-variant="wave"]) .cap-path { display: none; }
.cap-alt { display: none; list-style: none; max-width: 1200px; margin: 60px auto 0; padding: 0; }
.capabilities[data-variant="rail"] .cap-rail,
.capabilities[data-variant="spine"] .cap-spine { display: grid; }
.cap-alt li { animation: caIn .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes caIn { from { opacity: 0; transform: translateY(24px); } }
.ca-node {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--white); color: var(--red); border: 3px solid var(--red);
  box-shadow: 0 0 0 7px rgba(180, 18, 27, .1), 0 14px 26px -12px rgba(180, 18, 27, .5); transition: background .3s, color .3s;
}
.ca-node svg { width: 24px; height: 24px; }
.cap-alt li:hover .ca-node { background: var(--red); color: var(--white); }
.ca-card { background: var(--white); border: 1px solid rgba(180, 18, 27, .1); border-radius: 20px; padding: 22px 22px 24px; box-shadow: 0 22px 40px -28px rgba(120, 10, 16, .45); }
.ca-num { display: block; font-family: var(--mono); font-size: .72rem; color: var(--red); margin-bottom: 6px; }
.ca-card h3 { font-size: 1.15rem; line-height: 1.25; margin-bottom: 8px; }
.ca-card p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

/* Rail: one horizontal track, stations with cards hanging below */
.cap-rail { position: relative; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
/* Track matches the wave path: soft wide band, gradient line, white dots flowing along it */
.cap-rail::before, .cap-rail::after { content: ""; position: absolute; z-index: 0; left: 6%; right: 6%; }
.cap-rail::before { top: 13px; height: 34px; border-radius: 34px; background: rgba(180, 18, 27, .1); }
.cap-rail::after {
  top: 27px; height: 6px; border-radius: 6px; transform-origin: left;
  background: linear-gradient(90deg, rgba(255, 255, 255, .9) 0 4px, transparent 4px) 0 50% / 24px 2px repeat-x, linear-gradient(90deg, #5c0a10, var(--red) 50%, #f0525a);
  animation: crFill 1.6s cubic-bezier(.4, 0, .2, 1) both, crFlow 2.4s linear infinite;
}
@keyframes crFill { from { transform: scaleX(0); } }
@keyframes crFlow { to { background-position: 24px 50%, 0 0; } }
.cap-rail li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cap-rail .ca-card { flex: 1; position: relative; margin-top: 26px; padding: 22px 16px 24px; }
.cap-rail .ca-card::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; background: var(--white); border: solid rgba(180, 18, 27, .1); border-width: 1px 0 0 1px; transform: translateX(-50%) rotate(45deg); }
.cap-rail .ca-card h3 { white-space: nowrap; font-size: clamp(.92rem, 1.25vw, 1.15rem); }
.cap-rail .ca-card h3 br { display: inline; }

/* Timeline: vertical spine, cards alternating left and right */
.cap-spine { position: relative; max-width: 1000px; gap: 22px; }
/* Spine matches the wave path: soft wide band, gradient line, white dots flowing down it */
.cap-spine::before, .cap-spine::after { content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; left: 50%; }
.cap-spine::before { width: 34px; margin-left: -17px; border-radius: 34px; background: rgba(180, 18, 27, .1); }
.cap-spine::after {
  width: 6px; margin-left: -3px; border-radius: 6px; transform-origin: top;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0 4px, transparent 4px) 50% 0 / 2px 24px repeat-y, linear-gradient(180deg, #5c0a10, var(--red) 50%, #f0525a);
  animation: csFill 1.6s cubic-bezier(.4, 0, .2, 1) both, csFlow 2.4s linear infinite;
}
@keyframes csFill { from { transform: scaleY(0); } }
@keyframes csFlow { to { background-position: 50% 24px, 0 0; } }
.cap-spine li { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; }
.cap-spine .ca-node { grid-column: 2; grid-row: 1; justify-self: center; }
.cap-spine li:nth-child(odd) .ca-card { grid-column: 1; text-align: right; }
.cap-spine li:nth-child(even) .ca-card { grid-column: 3; }
.cap-spine .ca-card { grid-row: 1; padding: 24px 28px; }
.ca-big { grid-row: 1; padding: 0 28px; font-family: var(--font); font-weight: 800; font-size: 5rem; letter-spacing: -0.04em; line-height: 1; color: rgba(180, 18, 27, .14); }
.cap-spine li:nth-child(odd) .ca-big { grid-column: 3; }
.cap-spine li:nth-child(even) .ca-big { grid-column: 1; text-align: right; }


@media (max-width: 900px) {
  .cp-svg, .cp-icon { display: none; }
  .cap-path { display: grid; gap: 26px; margin-top: 40px !important; padding-left: 26px; border-left: 4px solid var(--red); }
  .cp-step { position: static; width: auto; transform: none; text-align: left; }
  .cp-dash { margin: 0 0 10px; }
  .cap-rail { grid-template-columns: 1fr; margin-top: 40px; }
  .cap-rail::before, .cap-rail::after { top: 0; bottom: 0; right: auto; height: auto; }
  .cap-rail::before { left: 13px; width: 34px; }
  .cap-rail::after {
    left: 27px; width: 6px; transform-origin: top; animation-name: crFillY, crFlowY;
    background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0 4px, transparent 4px) 50% 0 / 2px 24px repeat-y, linear-gradient(180deg, #5c0a10, var(--red) 50%, #f0525a);
  }
  @keyframes crFillY { from { transform: scaleY(0); } }
  @keyframes crFlowY { to { background-position: 50% 24px, 0 0; } }
  .cap-rail li { flex-direction: row; align-items: flex-start; gap: 18px; text-align: left; }
  .cap-rail .ca-card { margin-top: 0; }
  .cap-rail .ca-card::before { display: none; }
  .cap-rail .ca-card h3 { white-space: normal; font-size: 1.15rem; }
  .cap-spine { margin-top: 40px; }
  .cap-spine::before, .cap-spine::after { left: 30px; }
  .cap-spine li { grid-template-columns: 60px 1fr; gap: 18px; }
  .cap-spine .ca-node { grid-column: 1; }
  .cap-spine li:nth-child(n) .ca-card { grid-column: 2; text-align: left; }
  .ca-big { display: none; }
}

/* ---------- 4. Plans ---------- */
.plans { background: var(--white); }
.section-head { margin-bottom: 60px; }
.section-head .body-lg { max-width: 1000px; }
.industries .section-head .body-lg { max-width: none; }
@media (min-width: 1200px) {
  .industries .section-head .body-lg { white-space: nowrap; } /* intro on one line where it fits */
}
.section-head .h2-xl { font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.section-pill {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: rgba(180, 18, 27, .08); border: 1px solid rgba(180, 18, 27, .35);
  font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--red); margin-bottom: 20px;
}

/* Stacking cards: each plan sticks below the header and the next one slides over it */
.plan-stack { display: grid; gap: 40px; }
.plan {
  position: sticky; top: calc(96px + var(--i) * 22px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  min-height: 480px; padding: 56px 80px; border-radius: 28px; overflow: hidden;
  box-shadow: 0 -10px 40px -20px rgba(0,0,0,.15), 0 30px 60px -30px rgba(0,0,0,.2);
  transform-origin: center top;
  transform: scale(calc(1 - var(--p, 0) * .05));
  filter: brightness(calc(1 - var(--p, 0) * .12));
}
.step-1, .step-4 { background: linear-gradient(120deg, #fdf3f3 0%, #f6dcde 55%, #efc7ca 100%); }
.step-3, .step-6 {
  background:
    radial-gradient(circle at 85% 15%, rgba(180, 18, 27, .14), transparent 45%),
    radial-gradient(circle at 10% 100%, rgba(180, 18, 27, .08), transparent 40%),
    linear-gradient(120deg, #f8f8f8 0%, #eeeeee 55%, #e4e2e2 100%);
}
.plan-dark { background: radial-gradient(circle at 85% 30%, rgba(180, 18, 27, .55), transparent 55%), var(--ink); color: var(--white); }

.plan-pill {
  display: inline-block; background: var(--red); color: var(--white); border-radius: 30px;
  font-family: var(--mono); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 7px 16px; margin-bottom: 22px;
}
.step-3 .plan-pill, .step-6 .plan-pill { background: var(--ink); }
.plan-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.plan-icon {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  background: var(--white); color: var(--red); box-shadow: 0 8px 20px -10px rgba(0,0,0,.25);
}
.plan-icon svg { width: 28px; height: 28px; }
.plan h3 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.plan-desc { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); max-width: 500px; }
.plan-dark .plan-desc { color: rgba(255, 255, 255, .72); }
.plan-sub { margin-top: 22px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.plan-docs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; }
.plan-docs li {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--white); border: 1px solid rgba(180, 18, 27, .12); box-shadow: 0 10px 22px -16px rgba(120, 10, 16, .5);
  font-size: .9rem; font-weight: 500; color: var(--ink);
}
.plan-docs svg { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--red-soft); color: var(--red); }
/* Step illustrations */
.pv-upload { display: grid; place-content: center; gap: 16px; }
.up-zone {
  display: grid; justify-items: center; gap: 6px; width: 380px; max-width: 100%; padding: 34px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, .7); border: 2px dashed rgba(180, 18, 27, .45); text-align: center;
}
.up-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 8px; border-radius: 50%; background: var(--red); color: var(--white); box-shadow: 0 12px 30px -10px rgba(180, 18, 27, .7); animation: bob 4s ease-in-out infinite; }
.up-icon svg { width: 28px; height: 28px; }
.up-zone b { font-size: 1.05rem; }
.up-zone small { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.up-files { display: grid; gap: 8px; width: 380px; max-width: 100%; }
.up-files li {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  background: var(--white); font-family: var(--mono); font-size: .78rem; box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .4);
}
.up-tag { padding: 3px 7px; border-radius: 4px; background: var(--ink); color: var(--white); font-size: .62rem; font-weight: 700; }
.up-files li:first-child .up-tag { background: var(--red); }
.up-files i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--red); transform-origin: left; animation: upload 3s var(--d) ease-in-out infinite; }
@keyframes upload { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
.pv-hub { position: relative; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-lines path { fill: none; stroke: var(--red); stroke-width: 2; stroke-dasharray: 6 6; opacity: .45; vector-effect: non-scaling-stroke; }
.hub-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 22px 30px; border-radius: 20px; background: var(--ink); color: var(--white);
  line-height: 0;
  box-shadow: 0 0 0 10px rgba(180, 18, 27, .1), 0 30px 50px -20px rgba(0, 0, 0, .45);
}
.hub-core img { width: auto; height: 34px; }
.hub-node {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px;
  background: var(--white); font-weight: 600; font-size: .95rem; white-space: nowrap; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .35);
}
.hub-node svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hub-node.n1 { left: 21%; top: 17.5%; transform: translate(-50%, -50%); }
.hub-node.n2 { left: 79%; top: 17.5%; transform: translate(-50%, -50%); }
.hub-node.n3 { left: 21%; top: 82.5%; transform: translate(-50%, -50%); }
.hub-node.n4 { left: 79%; top: 82.5%; transform: translate(-50%, -50%); }
.pv-config { display: grid; place-items: center; }
/* Step 02 artwork: a deck of the three pre-configured setups; each takes a turn at the front as the selected one */
.pv-config .cfp { position: relative; width: 360px; height: 290px; flex: none; }
.cfp-card {
  position: absolute; left: 0; bottom: 34px; width: 300px; padding: 16px; box-sizing: border-box; border-radius: 20px;
  background: linear-gradient(160deg, #3a1316, #1c0a0c); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .9);
  animation: cfpDeck 9s var(--d) infinite both;
}
.cfp-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.cfp-head > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cfp-head b { font-size: .9rem; font-weight: 600; color: var(--white); white-space: nowrap; }
.cfp-head small { font-size: .7rem; color: rgba(255, 255, 255, .5); }
.cfp-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--red); color: var(--white); }
.cfp-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cfp-sel {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--red-light);
  box-shadow: 0 0 0 5px rgba(240, 82, 90, .18); animation: cfpSel 9s var(--d) infinite both;
}
.cfp-sel svg { width: 14px; height: 14px; fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cfp-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cfp-fields li { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; }
.cfp-fields span { font-family: var(--mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .5); }
.cfp-fields i { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .28); }
.cfp-out { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 9px 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px dashed rgba(255, 255, 255, .18); }
.cfp-out span { font-family: var(--mono); font-size: .58rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .45); }
.cfp-out code { font-family: var(--mono); font-size: .72rem; color: var(--white); }
.cfp-dots { position: absolute; left: 0; bottom: 0; display: flex; gap: 6px; margin: 0; }
.cfp-dots i { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .25); animation: cfpDot 9s var(--d) infinite both; }
/* Front, then slides out and tucks in at the back, moves to the middle, and returns to the front */
@keyframes cfpDeck {
  0%, 27% { transform: none; opacity: 1; z-index: 3; }
  31% { transform: translate(-60px, 14px) rotate(-8deg); opacity: 0; z-index: 3; }
  33%, 60% { transform: translate(56px, -44px) scale(.88); opacity: .4; z-index: 1; }
  66%, 93% { transform: translate(28px, -22px) scale(.94); opacity: .7; z-index: 2; }
  100% { transform: none; opacity: 1; z-index: 3; }
}
@keyframes cfpSel { 0%, 27% { opacity: 1; } 31%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cfpDot { 0%, 30% { width: 22px; background: var(--red-light); } 34%, 100% { width: 8px; background: rgba(255, 255, 255, .25); } }

/* Step 04 artwork: a rule set evaluated line by line, ending in a decision */
.pv-rules, .pv-agg { display: grid; place-items: center; }
.dr {
  width: 100%; max-width: 380px; padding: 16px; border-radius: 22px; background: var(--white);
  border: 1px solid rgba(180, 18, 27, .1); box-shadow: 0 30px 60px -30px rgba(120, 10, 16, .45);
}
.dr-label, .ag-label { display: flex; justify-content: space-between; margin: 2px 4px 10px; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.dr-label span, .ag-label span { color: var(--red); }
.dr-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dr-rules li { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.dr-rules em { flex: none; font-style: normal; font-family: var(--mono); font-size: .62rem; font-weight: 700; color: var(--red); }
.dr-rules code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: .74rem; color: var(--ink); }
/* Threshold values shown as placeholder bars rather than figures */
.dr-ph { display: inline-block; height: 8px; margin-left: 4px; border-radius: 4px; background: #d9cfd0; vertical-align: middle; }
.dr-ok, .dr-flag {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 6px; border-radius: 999px;
  font-size: .7rem; font-weight: 600; animation: drIn 8s var(--d) infinite both;
}
.dr-ok { background: #e3f4ea; color: #1d7a45; }
.dr-flag { background: var(--red-soft); color: var(--red); }
.dr-ok svg, .dr-flag svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dr-result {
  display: flex; align-items: baseline; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--ink); color: var(--white); animation: drIn 8s var(--d) infinite both;
}
.dr-result span { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .55); }
.dr-result b { font-size: .92rem; font-weight: 600; }
.dr-result i { margin-left: auto; font-style: normal; font-size: .7rem; color: var(--red-light); }
@keyframes drIn { 0% { opacity: 0; transform: scale(.85); } 5%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }

/* Step 05 artwork: three payslips flow into a sum node that outputs a summary chart */
.pv-agg .ag { position: relative; width: 440px; height: 260px; flex: none; }
.ag-flow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ag-line { fill: none; stroke: rgba(240, 82, 90, .55); stroke-width: 2; stroke-dasharray: 6 7; animation: agFlow 1.2s linear infinite; }
.ag-out { stroke: var(--red-light); }
.ag-doc {
  position: absolute; left: 0; display: flex; align-items: center; gap: 10px; width: 96px; height: 64px; padding: 0 10px; box-sizing: border-box; border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .14);
  animation: agIn 8s var(--d) infinite both;
}
.ag-doc div { flex: 1; display: grid; gap: 5px; }
.ag-doc small { font-family: var(--mono); font-size: .55rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.ag-doc i { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .28); }
.ag-doc i + i { width: 60%; }
.ag-tag { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(180, 18, 27, .45); font-family: var(--mono); font-size: .6rem; color: var(--white); }
.ag-hub {
  position: absolute; left: 172px; top: 102px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 8px rgba(180, 18, 27, .18), 0 16px 30px -10px rgba(180, 18, 27, .9); animation: agPulse 2.4s ease-in-out infinite;
}
.ag-hub svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ag-card {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 178px; padding: 14px; box-sizing: border-box; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.ag-card .ag-label { margin: 0 0 12px; font-size: .58rem; color: rgba(255, 255, 255, .55); }
.ag-card .ag-label span { color: var(--red-light); }
.ag-chart { position: relative; display: flex; align-items: flex-end; justify-content: space-around; height: 96px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.ag-chart span {
  width: 26px; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--red-light), var(--red));
  transform-origin: bottom; animation: agBar 8s var(--d) infinite both;
}
/* Dashed line marking the average across the three bars */
.ag-chart em { position: absolute; left: -4px; right: -4px; bottom: 65%; border-top: 2px dashed rgba(255, 255, 255, .85); animation: agAvg 8s infinite both; }
.ag-keys { display: flex; justify-content: space-around; margin-top: 6px; font-family: var(--mono); font-size: .55rem; color: rgba(255, 255, 255, .5); }
.ag-chips { display: flex; justify-content: space-between; margin-top: 14px; }
.ag-chips span { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .55rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .75); }
.ag-sw { width: 10px; height: 10px; border-radius: 3px; background: var(--red-light); }
.ag-sw.ag-dash { height: 0; border-radius: 0; background: none; border-top: 2px dashed rgba(255, 255, 255, .85); }
@keyframes agFlow { to { stroke-dashoffset: -13; } }
@keyframes agPulse { 50% { box-shadow: 0 0 0 14px rgba(180, 18, 27, .08), 0 16px 30px -10px rgba(180, 18, 27, .9); } }
@keyframes agIn { 0% { opacity: 0; transform: translateX(-14px); } 5%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes agBar { 0%, 3% { transform: scaleY(0); } 12%, 88% { transform: none; } 96%, 100% { transform: scaleY(0); } }
@keyframes agAvg { 0%, 20% { opacity: 0; } 26%, 88% { opacity: 1; } 95%, 100% { opacity: 0; } }

/* Step 02 body: the three setups as a numbered list */
.plan-list { list-style: none; counter-reset: pl; display: grid; gap: 10px; max-width: 500px; margin: 18px 0 0; padding: 0; }
.plan-list li { counter-increment: pl; display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.plan-list li::before {
  content: counter(pl, decimal-leading-zero); flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -1px; border-radius: 8px;
  background: var(--red); font-family: var(--mono); font-size: .68rem; color: var(--white);
}


.plan-visual { position: relative; height: 360px; }
.pv-starter { display: flex; align-items: center; justify-content: center; gap: 18px; }
.pv-doc {
  position: relative; overflow: hidden; width: 180px; height: 240px; background: var(--white); border-radius: 12px;
  padding: 26px 22px; transform: rotate(-6deg); box-shadow: 0 30px 50px -20px rgba(0,0,0,.3);
}
.pv-doc-head { display: block; width: 50%; height: 14px; background: var(--red); border-radius: 4px; margin-bottom: 22px; }
.pv-doc i { display: block; height: 8px; background: #e6e6e6; border-radius: 4px; margin-bottom: 14px; }
@keyframes scan { to { top: 100%; } }
.pv-arrow { font-size: 2rem; color: var(--red); font-weight: 700; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.pv-json {
  margin: 0; min-width: 300px; min-height: 182px; background: var(--ink); color: rgba(255,255,255,.85); border-radius: 12px; padding: 22px 24px;
  font-family: var(--mono); font-size: .82rem; line-height: 1.7; transform: rotate(3deg);
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.4);
}
.pv-json b { color: var(--red-light); font-weight: 400; }
/* Fields light up on the document one by one while the matching JSON line types out */
.pv-doc i.f:nth-of-type(1) { animation: hl1 9s infinite; }
.pv-doc i.f:nth-of-type(3) { animation: hl2 9s infinite; }
.pv-doc i.f:nth-of-type(5) { animation: hl3 9s infinite; }
.pv-doc i.f:nth-of-type(7) { animation: hl4 9s infinite; }
.jl { display: block; width: 0; overflow: hidden; white-space: pre; }
.jl:nth-child(1) { animation: type1 9s steps(var(--n)) infinite; }
.jl:nth-child(2) { animation: type2 9s steps(var(--n)) infinite; }
.jl:nth-child(3) { animation: type3 9s steps(var(--n)) infinite; }
.jl:nth-child(4) { animation: type4 9s steps(var(--n)) infinite; }
@keyframes hl1 { 0%, 4%, 92%, 100% { background: #e6e6e6; box-shadow: none; } 7%, 88% { background: rgba(180, 18, 27, .35); box-shadow: 0 0 0 4px rgba(180, 18, 27, .12); } }
@keyframes type1 { 0%, 4% { width: 0; } 14%, 88% { width: calc(var(--n) * 1ch); } 94%, 100% { width: 0; } }
@keyframes hl2 { 0%, 16%, 92%, 100% { background: #e6e6e6; box-shadow: none; } 19%, 88% { background: rgba(180, 18, 27, .35); box-shadow: 0 0 0 4px rgba(180, 18, 27, .12); } }
@keyframes type2 { 0%, 16% { width: 0; } 26%, 88% { width: calc(var(--n) * 1ch); } 94%, 100% { width: 0; } }
@keyframes hl3 { 0%, 28%, 92%, 100% { background: #e6e6e6; box-shadow: none; } 31%, 88% { background: rgba(180, 18, 27, .35); box-shadow: 0 0 0 4px rgba(180, 18, 27, .12); } }
@keyframes type3 { 0%, 28% { width: 0; } 38%, 88% { width: calc(var(--n) * 1ch); } 94%, 100% { width: 0; } }
@keyframes hl4 { 0%, 40%, 92%, 100% { background: #e6e6e6; box-shadow: none; } 43%, 88% { background: rgba(180, 18, 27, .35); box-shadow: 0 0 0 4px rgba(180, 18, 27, .12); } }
@keyframes type4 { 0%, 40% { width: 0; } 50%, 88% { width: calc(var(--n) * 1ch); } 94%, 100% { width: 0; } }



/* Shorter screens: tighten the cards so a stuck card still fits, or drop stacking entirely */
@media (min-width: 901px) and (max-height: 820px) {
  .plan { min-height: 0; padding: 44px 56px; top: calc(84px + var(--i) * 16px); }
  .plan-visual { height: 320px; }
  .pv-config .cfp, .dr, .pv-agg .ag { zoom: .85; }
}
@media (min-width: 901px) and (max-height: 680px) {
  .plan { position: relative; top: auto; transform: none; filter: none; }
}



/* ---------- Industries we serve ---------- */
@keyframes capIn { from { opacity: 0; transform: translateY(14px); } }
/* Industry index: big list on the left, sticky preview of the active industry on the right */
.ind-index { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.ind-list { border-top: 1px solid var(--line); }
.ind-item { border-bottom: 1px solid var(--line); }
.ind-row {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; width: 100%;
  padding: 20px 4px; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: var(--ink);
}
.ind-n { font-family: var(--mono); font-size: .8rem; color: var(--muted); transition: color .3s; }
.ind-name {
  font-family: var(--font); font-size: clamp(1.4rem, 2.3vw, 2rem); font-weight: 800; letter-spacing: -0.03em;
  color: rgba(0, 0, 0, .28); transition: color .3s, transform .4s cubic-bezier(.2, .8, .2, 1);
}
.ind-go {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: var(--white); font-size: 1.1rem;
  opacity: 0; transform: translateX(-12px) scale(.8); transition: opacity .3s, transform .4s cubic-bezier(.2, .8, .2, 1);
}
.ind-row:hover .ind-name { color: rgba(0, 0, 0, .6); }
.ind-item.is-active .ind-n { color: var(--red); }
.ind-item.is-active .ind-name { color: var(--ink); transform: translateX(8px); }
.ind-item.is-active .ind-go { opacity: 1; transform: none; }
.ind-row:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 8px; }
.ind-chips { display: none; }

.ind-preview {
  position: sticky; top: 110px; min-height: 620px; border-radius: 28px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at 85% 0%, rgba(180, 18, 27, .55), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 16px),
    var(--ink);
  color: var(--white);
}
.ind-pane { position: absolute; inset: 0; padding: 40px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.ind-pane.is-active { opacity: 1; visibility: visible; }
.ind-pane-head { display: flex; align-items: center; gap: 18px; }
.ind-pane-icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--red); color: var(--white); box-shadow: 0 16px 34px -12px rgba(180, 18, 27, .8); }
.ind-pane-icon svg { width: 30px; height: 30px; }
.ind-pane-n { font-family: var(--mono); font-size: .75rem; color: rgba(255, 255, 255, .55); }
.ind-pane h3 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.ind-pane-desc { max-width: 440px; margin-top: 24px; font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .75); }
.ind-row-desc { display: none; }
.ind-pane-label { margin: 28px 0 0; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red-light); }

/* Fanned stack of document files; dealt in when the pane becomes active */
.ind-files { display: grid; gap: 12px; margin-top: 16px; }
.ind-file {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px);
  transition: background .3s, border-color .3s, transform .3s;
}
.ind-file:hover { background: rgba(255, 255, 255, .1); border-color: rgba(240, 82, 90, .45); transform: translateX(4px); }
.ind-pane.is-active .ind-file { animation: rowIn .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--f) * .08s); }
@keyframes rowIn { from { opacity: 0; transform: translateX(24px); } }
.if-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--white); color: var(--red); }
.if-icon svg { width: 22px; height: 22px; }
.if-name { font-size: .98rem; font-weight: 600; }
.if-status {
  padding: 5px 11px; border-radius: 999px; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--white); background: rgba(180, 18, 27, .45); border: 1px solid rgba(240, 82, 90, .5); white-space: nowrap;
}
.if-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--red-light); transform-origin: left; }
.ind-pane.is-active .if-bar { animation: fill 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.2s + var(--f) * .12s); }
@keyframes fill { from { transform: scaleX(0); } }

/* Panels variant: one industry open at a time (desktop); main.js switches them */
.ind-rail { display: flex; gap: 12px; height: 480px; }
.ind {
  position: relative; overflow: hidden; isolation: isolate; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; padding: 26px 20px; border-radius: 24px; cursor: pointer; outline: none;
  background: var(--white); border: 1px solid var(--line);
  transition: flex .6s cubic-bezier(.2, .8, .2, 1), padding .6s, background .4s, color .4s, border-color .4s;
}
.ind:hover { border-color: rgba(180, 18, 27, .4); }
.ind:focus-visible { box-shadow: 0 0 0 3px rgba(180, 18, 27, .35); }
.ind.is-open {
  flex: 4.5 1 0; padding: 32px; color: var(--white); border-color: var(--red);
  background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .18), transparent 50%), linear-gradient(150deg, var(--red) 0%, var(--red-dark) 100%);
}
.ind-bg-num {
  position: absolute; z-index: -1; right: -8px; bottom: -48px; pointer-events: none;
  font-size: 13rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: rgba(255, 255, 255, .1);
  opacity: 0; transition: opacity .4s;
}
.ind.is-open .ind-bg-num { opacity: 1; }
.ind-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ind-num { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.ind.is-open .ind-num { color: rgba(255, 255, 255, .7); }
.ind-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--red-soft); color: var(--red); transition: width .4s, height .4s, background .4s;
}
.ind-icon svg { width: 24px; height: 24px; }
.ind.is-open .ind-icon { width: 64px; height: 64px; background: var(--white); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4); }
.ind.is-open .ind-icon svg { width: 30px; height: 30px; }
.ind-title {
  margin-top: auto; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em;
}
.ind.is-open .ind-title { writing-mode: horizontal-tb; transform: none; white-space: normal; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; }
.ind-body { display: none; }
.ind.is-open .ind-body { display: block; margin-top: 18px; animation: indIn .5s .15s both; }
@keyframes indIn { from { opacity: 0; transform: translateY(10px); } }
.ind-desc { max-width: 380px; font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .85); }

/* ---------- Configurable extraction ---------- */
.configurable { background: var(--white); }
.cfgx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.cfgx-copy .h2-xl { font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.cfgx-copy .body-lg { max-width: 520px; }
.cfgx-note {
  display: flex; gap: 16px; align-items: flex-start; max-width: 520px; margin-top: 12px; padding: 22px 24px; border-radius: 20px;
  color: var(--white); background: radial-gradient(circle at 90% 0%, rgba(180, 18, 27, .55), transparent 60%), var(--ink);
}
.cfgx-note-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--red); }
.cfgx-note-icon svg { width: 22px; height: 22px; }
.cfgx-note p { font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .85); }

/* Numbered points joined by a vertical line */
.cfgx-list { position: relative; display: grid; gap: 14px; }
.cfgx-list::before { content: ""; position: absolute; left: 45px; top: 30px; bottom: 30px; border-left: 2px dashed rgba(180, 18, 27, .3); }
.cfgx-item {
  position: relative; display: grid; grid-template-columns: 62px auto 1fr; align-items: center; gap: 16px;
  padding: 14px 22px 14px 14px; border-radius: 18px; transition: background .3s, transform .3s;
}
.cfgx-icon {
  position: relative; z-index: 1; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px;
  background: var(--white); color: var(--red); border: 1px solid var(--line); box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .35);
  transition: background .3s, color .3s, border-color .3s;
}
.cfgx-icon svg { width: 26px; height: 26px; }
.cfgx-n { font-family: var(--mono); font-size: .8rem; color: var(--red); }
.cfgx-text h3 { font-size: 1.3rem; line-height: 1.25; color: var(--ink); margin-bottom: 4px; }
.cfgx-text p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.cfgx-item:hover { background: #fbf3f3; transform: translateX(6px); }
.cfgx-item:hover .cfgx-icon { background: var(--red); border-color: var(--red); color: var(--white); }
.cfgx-shield { display: none; }

/* Variant 2 "vault": dark spotlight with the points as glowing cards */
.configurable[data-variant="vault"] {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(180, 18, 27, .55), transparent 70%),
    radial-gradient(circle at 100% 100%, rgba(180, 18, 27, .25), transparent 40%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 16px),
    var(--ink);
}
.configurable[data-variant="vault"] .cfgx-grid { grid-template-columns: 1fr; gap: 64px; }
.configurable[data-variant="vault"] .cfgx-copy { display: flex; flex-direction: column; align-items: center; max-width: 820px; margin: 0 auto; text-align: center; }
.configurable[data-variant="vault"] .cfgx-shield {
  position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 30px; border-radius: 28px;
  color: var(--white); background: linear-gradient(145deg, var(--red-light), var(--red-dark));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 24px 60px -10px rgba(180, 18, 27, .8);
}
.configurable[data-variant="vault"] .cfgx-shield svg { width: 44px; height: 44px; }
.configurable[data-variant="vault"] .cfgx-shield::before,
.configurable[data-variant="vault"] .cfgx-shield::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(240, 82, 90, .6);
  animation: vaultPulse 2.8s ease-out infinite;
}
.configurable[data-variant="vault"] .cfgx-shield::after { animation-delay: 1.4s; }
@keyframes vaultPulse { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.configurable[data-variant="vault"] .section-pill { background: rgba(240, 82, 90, .12); border-color: rgba(240, 82, 90, .5); color: var(--red-light); }
.configurable[data-variant="vault"] .cfgx-copy .h2-xl { color: var(--white); }
.configurable[data-variant="vault"] .cfgx-copy .body-lg { max-width: 640px; color: rgba(255, 255, 255, .72); }
.configurable[data-variant="vault"] .cfgx-note { display: none; }
.configurable[data-variant="vault"] .cfgx-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.configurable[data-variant="vault"] .cfgx-list::before { display: none; }
.configurable[data-variant="vault"] .cfgx-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px; overflow: hidden;
  padding: 30px 26px 32px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, #181818, #0d0d0d);
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.configurable[data-variant="vault"] .cfgx-item::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 60%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-light), transparent);
  animation: vaultScan 3.6s linear infinite; animation-delay: calc(var(--d, 0) * .9s);
}
.configurable[data-variant="vault"] .cfgx-item:nth-child(2) { --d: 1; }
.configurable[data-variant="vault"] .cfgx-item:nth-child(3) { --d: 2; }
.configurable[data-variant="vault"] .cfgx-item:nth-child(4) { --d: 3; }
@keyframes vaultScan { to { left: 100%; } }
.configurable[data-variant="vault"] .cfgx-item:hover {
  background: linear-gradient(180deg, #2a0d0f, #0f0909);
  border-color: rgba(240, 82, 90, .6); transform: translateY(-8px); box-shadow: 0 30px 60px -20px rgba(180, 18, 27, .7);
}
.configurable[data-variant="vault"] .cfgx-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(180, 18, 27, .14); border-color: rgba(240, 82, 90, .3); color: var(--red-light); box-shadow: none; }
.configurable[data-variant="vault"] .cfgx-n { display: none; }
.configurable[data-variant="vault"] .cfgx-text h3 { color: var(--white); margin-bottom: 10px; }
.configurable[data-variant="vault"] .cfgx-text p { color: rgba(255, 255, 255, .7); }
@media (max-width: 1100px) {
  .configurable[data-variant="vault"] .cfgx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .configurable[data-variant="vault"] .cfgx-list { grid-template-columns: 1fr; }
  .configurable[data-variant="vault"] .cfgx-item { padding: 24px 20px 26px; }
  .configurable[data-variant="vault"] .cfgx-icon { width: 52px; height: 52px; }
}

/* Variant 3 "hub": the points arranged around a central shield */
.configurable[data-variant="hub"] {
  background:
    radial-gradient(circle at 50% 68%, rgba(180, 18, 27, .12), transparent 38%),
    linear-gradient(180deg, var(--white), #fbf1f1);
}
.configurable[data-variant="hub"] .cfgx-grid { grid-template-columns: 1fr; gap: 56px; }
.configurable[data-variant="hub"] .cfgx-copy { display: flex; flex-direction: column; align-items: center; max-width: 820px; margin: 0 auto; text-align: center; }
.configurable[data-variant="hub"] .cfgx-copy .body-lg { max-width: 640px; }
.configurable[data-variant="hub"] .cfgx-note { display: none; }
.configurable[data-variant="hub"] .cfgx-list { grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr); grid-auto-flow: column; grid-template-rows: auto auto; gap: 28px 44px; align-items: center; }
.configurable[data-variant="hub"] .cfgx-list::before,
.configurable[data-variant="hub"] .cfgx-list::after {
  position: static; grid-column: 2; grid-row: 1 / 3; place-self: center; border-radius: 50%;
}
.configurable[data-variant="hub"] .cfgx-list::before {
  width: 200px; height: 200px; border: 0; z-index: 1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.2-7 10-4-1.8-7-5.5-7-10V6z M9 12l2 2 4-4'/%3E%3C/svg%3E") center / 84px no-repeat,
    radial-gradient(circle at 30% 25%, var(--red-light), var(--red) 45%, var(--red-dark));
  box-shadow: 0 0 0 18px rgba(180, 18, 27, .08), 0 0 0 38px rgba(180, 18, 27, .05), 0 30px 70px -10px rgba(180, 18, 27, .55);
  animation: hubPulse 2.6s ease-in-out infinite;
}
@keyframes hubPulse {
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 26px rgba(180, 18, 27, .1), 0 0 0 52px rgba(180, 18, 27, .04), 0 34px 80px -8px rgba(180, 18, 27, .65);
  }
}
.configurable[data-variant="hub"] .cfgx-list::after {
  content: ""; width: 292px; height: 292px; border: 2px dashed rgba(180, 18, 27, .3);
  animation: hubSpin 40s linear infinite;
}
@keyframes hubSpin { to { transform: rotate(360deg); } }
.configurable[data-variant="hub"] .cfgx-item {
  display: flex; align-items: flex-start; gap: 18px; padding: 26px 24px; border-radius: 22px;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .25);
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.configurable[data-variant="hub"] .cfgx-item:nth-child(-n+2) { flex-direction: row-reverse; text-align: right; }
.configurable[data-variant="hub"] .cfgx-item::after {
  content: ""; position: absolute; top: 50%; width: 44px; border-top: 2px dashed rgba(180, 18, 27, .35);
}
.configurable[data-variant="hub"] .cfgx-item:nth-child(-n+2)::after { right: -46px; }
.configurable[data-variant="hub"] .cfgx-item:nth-child(n+3)::after { left: -46px; }
.configurable[data-variant="hub"] .cfgx-item:hover {
  background: var(--white); border-color: rgba(180, 18, 27, .45); transform: translateY(-6px);
  box-shadow: 0 26px 50px -22px rgba(180, 18, 27, .45);
}
.configurable[data-variant="hub"] .cfgx-icon { flex: none; width: 54px; height: 54px; border-radius: 16px; box-shadow: none; background: rgba(180, 18, 27, .07); border-color: rgba(180, 18, 27, .18); }
.configurable[data-variant="hub"] .cfgx-item:hover .cfgx-icon { background: var(--red); border-color: var(--red); color: var(--white); }
.configurable[data-variant="hub"] .cfgx-n { display: none; }
.configurable[data-variant="hub"] .cfgx-text h3 { font-size: 1.2rem; margin-bottom: 8px; }
@media (max-width: 1100px) {
  .configurable[data-variant="hub"] .cfgx-list { grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); gap: 24px 32px; }
  .configurable[data-variant="hub"] .cfgx-list::before { width: 150px; height: 150px; background-size: 64px, auto; }
  .configurable[data-variant="hub"] .cfgx-list::after { width: 214px; height: 214px; }
  .configurable[data-variant="hub"] .cfgx-item::after { width: 32px; }
  .configurable[data-variant="hub"] .cfgx-item:nth-child(-n+2)::after { right: -34px; }
  .configurable[data-variant="hub"] .cfgx-item:nth-child(n+3)::after { left: -34px; }
}
@media (max-width: 900px) {
  .configurable[data-variant="hub"] .cfgx-list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; gap: 16px; }
  .configurable[data-variant="hub"] .cfgx-list::before,
  .configurable[data-variant="hub"] .cfgx-list::after { grid-column: 1; grid-row: 1; margin-bottom: 36px; }
  .configurable[data-variant="hub"] .cfgx-item:nth-child(-n+2) { flex-direction: row; text-align: left; }
  .configurable[data-variant="hub"] .cfgx-item::after { display: none; }
}
@media (max-width: 560px) {
  .configurable[data-variant="hub"] .cfgx-item { padding: 22px 18px; gap: 14px; }
}

/* ---------- Industries variants (data-variant on .industries) ---------- */
.ind-variant { display: none; }
.industries[data-variant="index"] .v-index,
.industries[data-variant="bento"] .v-bento,
.industries[data-variant="flip"] .v-flip,
.industries[data-variant="panels"] .v-panels { display: block; }
.industries[data-variant="panels"] .v-panels { display: flex; }
.industries[data-variant="bento"] .v-bento, .industries[data-variant="flip"] .v-flip { display: grid; }

/* Bento: cover cards — visual cover + white body; wide tiles lay out side by side */
.v-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } /* eight equal cards: cover on top, text below */
.bt {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--white); border: 1px solid var(--line);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, border-color .4s;
}
.bt:hover { transform: translateY(-6px); border-color: rgba(180, 18, 27, .35); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .35); }
.bt-cover { position: relative; overflow: hidden; display: grid; place-items: center; height: 170px; flex: none; }
.bt-dark { background: radial-gradient(circle at 80% 0%, rgba(180, 18, 27, .6), transparent 60%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 14px), var(--ink); }
.bt-red { background: radial-gradient(circle at 80% 0%, rgba(255, 255, 255, .22), transparent 55%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 14px), linear-gradient(150deg, var(--red), var(--red-dark)); }
.bt-pink { background: repeating-linear-gradient(45deg, rgba(180, 18, 27, .07) 0 1px, transparent 1px 14px), linear-gradient(150deg, #fdf0f0, #f1cfd2); }
.bt-grey { background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 14px), linear-gradient(150deg, #f7f7f7, #e2e2e2); }
.bt-ico {
  position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px;
  background: var(--white); color: var(--red); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .45); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.bt-ico svg { width: 30px; height: 30px; }
.bt:hover .bt-ico { transform: translateY(-6px) scale(1.06); }
.bt-sheets { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.bt-sheets i {
  position: absolute; left: -34px; top: -44px; width: 68px; height: 88px; border-radius: 8px;
  background: rgba(255, 255, 255, .9); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .4);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.bt-sheets i:nth-child(1) { transform: translate(-30px, 6px) rotate(-14deg); opacity: .55; }
.bt-sheets i:nth-child(2) { transform: translate(30px, 6px) rotate(14deg); opacity: .55; }
.bt-sheets i:nth-child(3) { transform: translate(0, -4px); opacity: .8; }
.bt:hover .bt-sheets i:nth-child(1) { transform: translate(-52px, 2px) rotate(-22deg); }
.bt:hover .bt-sheets i:nth-child(2) { transform: translate(52px, 2px) rotate(22deg); }
.bt:hover .bt-sheets i:nth-child(3) { transform: translate(0, -14px); }
.bt-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.bt-num { font-family: var(--mono); font-size: .75rem; color: var(--red); }
.bt h3 { margin: 6px 0 8px; padding-right: 44px; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.bt p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.bt-go {
  position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink); transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.bt:hover .bt-go { background: var(--red); border-color: var(--red); color: var(--white); transform: rotate(-45deg); }

/* Flip cards: front shows the industry, back lists documents */
.v-flip { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fl { height: 240px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1000px; font: inherit; text-align: left; }
.fl-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.fl:hover .fl-inner, .fl:focus-visible .fl-inner, .fl.is-flipped .fl-inner { transform: rotateY(180deg); }
.fl-front, .fl-back { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 24px; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fl-front { background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.fl-n { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
/* Duotone industry icons: soft red fill under a red outline, on a white-to-blush tile */
.fl-icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin-top: 18px; border-radius: 16px; color: var(--red);
  background: linear-gradient(145deg, var(--white), #f9e3e5); border: 1px solid rgba(180, 18, 27, .16);
  box-shadow: 0 10px 22px -14px rgba(180, 18, 27, .55), inset 0 1px 0 var(--white);
}
.fl-icon svg { width: 30px; height: 30px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fl-tint { fill: rgba(180, 18, 27, .22); stroke: none; }
.fl-front b { margin-top: auto; font-family: "Histore Magical", var(--font); font-weight: normal; font-synthesis: none; font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; font-size: 1.5rem; line-height: 1.15; }
.fl-front small { margin-top: 6px; font-size: .75rem; color: var(--muted); }
.fl-back { transform: rotateY(180deg); background: linear-gradient(150deg, var(--red), var(--red-dark)); color: var(--white); }
.fl-back b { font-family: "Histore Magical", var(--font); font-weight: normal; font-synthesis: none; font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; font-size: 1.3rem; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
/* Bullets as a mini timeline: rings on a vertical line, numbered, filling in as the card flips */
.fl-back ul { position: relative; display: grid; gap: 12px; counter-reset: doc; }
.fl-back ul::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: rgba(255, 255, 255, .3); }
.fl-back li {
  position: relative; display: flex; align-items: baseline; gap: 10px; padding-left: 26px;
  font-size: .9rem; line-height: 1.35; counter-increment: doc;
}
.fl-back li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--white); background: var(--red); box-sizing: border-box;
}
.fl-back li::after { content: counter(doc, decimal-leading-zero); order: -1; font-family: var(--mono); font-size: .68rem; color: rgba(255, 255, 255, .55); }
.fl:hover .fl-back li, .fl:focus-visible .fl-back li, .fl.is-flipped .fl-back li { animation: bulletIn .45s cubic-bezier(.2, .8, .2, 1) both; }
.fl:hover .fl-back li::before, .fl:focus-visible .fl-back li::before, .fl.is-flipped .fl-back li::before { animation: ringFill .3s ease both; }
.fl-back li:nth-child(2), .fl-back li:nth-child(2)::before { animation-delay: .38s !important; }
.fl-back li:nth-child(1), .fl-back li:nth-child(1)::before { animation-delay: .3s !important; }
.fl-back li:nth-child(3), .fl-back li:nth-child(3)::before { animation-delay: .46s !important; }
.fl-back li:nth-child(4), .fl-back li:nth-child(4)::before { animation-delay: .54s !important; }
@keyframes bulletIn { from { opacity: 0; transform: translateX(-10px); } }
@keyframes ringFill { to { background: var(--white); } }

/* Floating variant switcher — preview tool, remove once a design is chosen */
.layout-switcher {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 4px;
  max-width: calc(100% - 32px); overflow-x: auto; padding: 6px; border-radius: 999px;
  background: rgba(20, 20, 20, .88); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .6);
  opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .3s, transform .3s;
}
.layout-switcher.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
/* Drag handle: the label at the start of each switcher */
.layout-switcher > span { cursor: grab; touch-action: none; user-select: none; display: inline-flex; align-items: center; gap: 8px; }
.layout-switcher > span::before {
  content: ""; width: 8px; height: 14px; opacity: .7;
  background: radial-gradient(circle, rgba(255, 255, 255, .8) 1.2px, transparent 1.6px) 0 0 / 4px 4.6px;
}
.layout-switcher.dragging { transition: none; }
.layout-switcher.dragging > span { cursor: grabbing; }
.layout-switcher.moved { transform: none !important; }
.layout-switcher .sw-min {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; margin-left: 4px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); font-size: 1.1rem; line-height: 1;
}
.layout-switcher .sw-min:hover { background: rgba(255, 255, 255, .12); }
.layout-switcher.minimized button:not(.sw-min) { display: none; }
.layout-switcher > span { padding: 0 10px 0 12px; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.layout-switcher button {
  flex: none; padding: 9px 16px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 600 .85rem var(--body); color: rgba(255, 255, 255, .75); transition: background .2s, color .2s;
}
.layout-switcher button:hover { color: var(--white); }
.layout-switcher button.on { background: var(--red); color: var(--white); }

/* ---------- 8. CTA ---------- */
.cta { padding: 100px 0; background: var(--white); }
.cta-box {
  background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .18), transparent 50%), linear-gradient(150deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white); display: grid; grid-template-columns: minmax(0, 550px) 1fr; gap: 50px; align-items: center;
  padding: 80px 8%; border-radius: 28px;
}
.cta h2 { font-size: clamp(2.8rem, 5.2vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; color: var(--white); margin-bottom: 14px; }
.cta p { font-size: 14.5px; line-height: 1.75; max-width: 460px; }
.cta-form { margin-top: 36px; display: grid; gap: 16px; }
.cta-field {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 20px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 18px; background: var(--white);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .25), 0 24px 44px -20px rgba(0, 0, 0, .55); transition: box-shadow .3s;
}
.cta-field:focus-within { box-shadow: 0 0 0 6px rgba(255, 255, 255, .25), 0 24px 44px -20px rgba(0, 0, 0, .55); }
.cta-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-family: var(--body); font-size: 15px; color: var(--ink);
}
.cta-field input::placeholder { color: var(--muted); }
.cta-form.invalid .cta-field { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--ink); }
.cta .cta-msg { margin: -4px 0 0 4px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.cta-msg:empty { display: none; }
.cta-form.invalid .cta-msg { color: var(--white); font-weight: 500; }
.cta-form.done .cta-msg { color: var(--white); font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cta-visual { display: grid; place-items: center; }
/* CTA artwork: a paper plane delivers an Extractly email into an open envelope, with an inbox notification */
.ctv { position: relative; width: 420px; height: 300px; max-width: 100%; }
.ctv-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); transform: translate(-50%, -50%); }
.ctv-ring.r1 { width: 260px; height: 260px; }
.ctv-ring.r2 { width: 400px; height: 400px; border-style: dashed; border-color: rgba(255, 255, 255, .12); }
.ctv-link { position: absolute; inset: 0; width: 100%; height: 100%; }
.ctv-link path { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 2; stroke-dasharray: 4 7; stroke-linecap: round; animation: ctvDash 1.6s linear infinite; }
@keyframes ctvDash { to { stroke-dashoffset: -22; } }
.ctv-plane {
  position: absolute; left: 22px; top: 42px; width: 56px; height: 56px; overflow: visible;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .35)); animation: ctvFly 5s ease-in-out infinite;
}
.ctv-plane path { fill: var(--white); stroke: var(--white); stroke-width: 1.2; stroke-linejoin: round; }
.ctv-plane .fold { fill: none; stroke: rgba(180, 18, 27, .45); }
@keyframes ctvFly { 50% { transform: translate(6px, -8px) rotate(-6deg); } }
.ctv-env { position: absolute; left: 160px; top: 60px; width: 220px; height: 230px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.ctv-env svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ctv-env-back rect { fill: #ecdcde; }
.ctv-env-back .flap { fill: #e2cbce; }
.ctv-env-front path { fill: var(--white); }
.ctv-env-front .crease { fill: none; stroke: #ecdcde; stroke-width: 1.5; stroke-linecap: round; }
/* Letter rises out of the envelope, then settles back */
.ctv-letter {
  position: absolute; left: 18px; top: 30px; width: 184px; height: 132px; padding: 16px; box-sizing: border-box; border-radius: 10px;
  background: linear-gradient(180deg, #fff, #f6f1f1); box-shadow: 0 -6px 18px -10px rgba(0, 0, 0, .3);
  animation: ctvRise 6s ease-in-out infinite;
}
.ctv-letter img { display: block; width: 86px; height: auto; margin-bottom: 14px; }
.ctv-letter i { display: block; height: 6px; margin-bottom: 8px; border-radius: 3px; background: #e2d6d7; }
.ctv-letter i.w80 { width: 80%; } .ctv-letter i.w60 { width: 60%; }
.ctv-btn { display: inline-block; margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: var(--red); color: var(--white); font-size: .62rem; font-weight: 600; }
@keyframes ctvRise { 0%, 100% { transform: translateY(14px); } 40%, 70% { transform: translateY(-46px); } }
.ctv-toast {
  position: absolute; left: 4px; bottom: 4px; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px;
  background: var(--ink); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .5);
  animation: ctvToast 6s ease-in-out infinite;
}
.ctv-at { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--white); color: var(--red); font-weight: 700; font-size: 1rem; }
.ctv-toast div { display: grid; gap: 1px; }
.ctv-toast b { font-size: .74rem; font-weight: 600; color: var(--white); }
.ctv-toast small { font-size: .62rem; color: rgba(255, 255, 255, .7); }
@keyframes ctvToast { 0%, 30% { opacity: 0; transform: translateY(-8px); } 40%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ctv-letter { animation: none; transform: translateY(-46px); } .ctv-toast { animation: none; } }
.cta-arrow {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--red); color: var(--white); transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .3s;
}
.cta-arrow svg { transition: transform .35s cubic-bezier(.2, .8, .2, 1); width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cta-arrow:hover, .cta-arrow:focus-visible { background: var(--ink); }
.cta-arrow:hover svg, .cta-arrow:focus-visible svg { transform: rotate(-45deg); }
.cta-arrow:disabled { opacity: .6; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden; padding: 110px 0 52px; color: var(--white);
  background:
    radial-gradient(circle at 85% 0%, rgba(180, 18, 27, .4), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 16px),
    var(--ink);
}
.site-footer::before { content: ""; position: absolute; top: 0; left: 33%; right: 0; height: 8px; background: var(--red); }
.footer-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px;
  padding-bottom: 54px; border-bottom: 1px solid rgba(255, 255, 255, .25);
}
.footer-tag { font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.4; }
.footer-tag em { font-style: normal; color: var(--red-light); }
.footer-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cta .btn { border-radius: 999px; padding: 14px 26px; }
.footer-mark { display: block; margin: 64px 0 52px; line-height: 0; }
.footer-mark img { width: min(62%, 680px); height: auto; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.footer-mark:hover img { transform: translateX(24px); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; font-size: .88rem; }
.footer-credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; font-size: .88rem; color: rgba(255, 255, 255, .55); }
.footer-credit img { width: auto; height: 32px; }
.footer-credit span { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .25); line-height: 26px; }
.legal { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; color: rgba(255, 255, 255, .55); }
.legal a:hover { color: var(--red-light); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; margin-left: auto; }
.footer-nav a { color: rgba(255, 255, 255, .85); transition: color .2s; }
.footer-nav a:hover { color: var(--red-light); }
.social { display: flex; align-items: center; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--ink); transition: background .2s, color .2s, transform .2s; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social a:hover { background: var(--red); color: var(--white); transform: translateY(-3px); }
.social .to-top { background: var(--red); color: var(--white); }
.social .to-top svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.social .to-top:hover { background: var(--red-dark); }

/* ---------- About page ---------- */
.about-hero { min-height: 0; padding: 180px 0 110px; }
/* About hero artwork: document being scanned at the centre of two orbiting rings of file tiles */
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.ah-art { position: relative; width: 500px; height: 500px; max-width: 100%; justify-self: center; }
.ah-glow { position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(closest-side, rgba(180, 18, 27, .55), transparent); filter: blur(20px); }
.ah-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .18); animation: spin 40s linear infinite; }
.ah-ring.r1 { width: 300px; height: 300px; margin: -150px 0 0 -150px; --r: 150px; }
.ah-ring.r2 { width: 440px; height: 440px; margin: -220px 0 0 -220px; --r: 220px; animation-duration: 60s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.ah-tile {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 50px; height: 50px; margin: -25px 0 0 -25px;
  border-radius: 15px; color: var(--white); border: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); backdrop-filter: blur(8px);
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .9);
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
}
.ah-tile svg { width: 24px; height: 24px; animation: spin 40s linear infinite reverse; }
.r2 .ah-tile svg { animation: spin 60s linear infinite; }
.ah-tile.red { background: linear-gradient(150deg, #e0303a, var(--red-dark)); border-color: rgba(255, 255, 255, .3); box-shadow: 0 0 30px rgba(180, 18, 27, .7); }
.ah-doc {
  position: absolute; left: 50%; top: 50%; width: 150px; height: 190px; margin: -95px 0 0 -75px; padding: 22px 18px; overflow: hidden;
  border-radius: 14px; background: linear-gradient(180deg, #fff, #eeeeee); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  animation: bob 6s ease-in-out infinite;
}
.ah-doc i { display: block; height: 7px; margin-bottom: 12px; border-radius: 4px; background: #dcdcdc; }
.ah-doc i.w50 { width: 50%; height: 9px; background: var(--ink); } .ah-doc i.w60 { width: 60%; } .ah-doc i.w70 { width: 70%; } .ah-doc i.w80 { width: 80%; }
.ah-doc i.hl { animation: ahHit 4s ease-in-out infinite; }
.ah-doc i.hl + i + i + i.hl, .ah-doc i.hl.w60 { animation-delay: 1.4s; }
@keyframes ahHit { 0%, 25%, 75%, 100% { background: #dcdcdc; } 35%, 65% { background: var(--red); } }
.ah-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--red); box-shadow: 0 0 16px 3px rgba(180, 18, 27, .6); animation: ahScan 4s ease-in-out infinite; }
@keyframes ahScan { 0% { top: 8%; } 50% { top: 92%; } 100% { top: 8%; } }


.about-hero .lead { max-width: 640px; }
.about-body { background: var(--white); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.about-grid .section-head { margin-bottom: 0; }
.about-copy { margin-top: 26px; }
.about-copy p { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); margin-bottom: 16px; }
/* Problem cards */
.pain-list { display: grid; gap: 16px; }
.pain-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; padding: 24px; border-radius: 20px;
  background: #faf6f6; border: 1px solid var(--line); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.pain-list li:hover { transform: translateX(6px); border-color: rgba(180, 18, 27, .35); box-shadow: 0 20px 40px -28px rgba(0, 0, 0, .35); }
.pain-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--white); color: var(--red); box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .3); }
.pain-icon svg { width: 26px; height: 26px; }
.pain-list h3 { font-size: 1.35rem; margin-bottom: 6px; }
.pain-list p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
/* What is Extractly — dark band */
.about-what { background: var(--bg); color: var(--ink); } /* same light grey as Industries We Serve */
.about-what-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
.about-what .section-head { margin: 0; }
.about-what .section-head .h2-xl { color: var(--ink); }
.about-what-copy p { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); margin-bottom: 18px; }
.about-what-copy .about-lead { font-size: 1.25rem; line-height: 1.6; color: var(--ink); padding-left: 20px; border-left: 3px solid var(--red); margin-bottom: 26px; }
.about-what-copy .btn { margin-top: 12px; border-radius: 16px; }
.footer-nav a[aria-current="page"] { color: var(--red-light); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
}

@media (min-width: 901px) and (max-width: 1300px) {
  .hero-stage { zoom: .8; }
}

@media (max-width: 900px) {
  section { padding: 80px 0; }
  .logos[data-variant="split"] { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .logos[data-variant="split"] .lw-cols { height: 380px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--white); padding: 12px; gap: 4px; border-radius: 22px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .3);
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-grid, .cta-box { grid-template-columns: 1fr; }
  .about-grid, .about-what-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-hero-grid { grid-template-columns: 1fr; }
  .ah-art { zoom: .68; }
  .cfgx-grid { grid-template-columns: 1fr; gap: 44px; }
  .cta-visual { display: none; }
  .hero { min-height: 0; padding-top: 120px; }
  .nav-links .btn { margin: 6px 0 0; justify-content: center; }
  .site-header .nav { padding: 0 8px 0 20px; }
  .hero-visual { min-height: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 60px 30px; }
  .step::after { display: none; }
  /* Cards are taller than the screen here, so they scroll normally instead of stacking */
  .plan { position: relative; top: auto; transform: none; filter: none; grid-template-columns: minmax(0, 1fr); padding: 44px 32px; min-height: 0; }
  .plan-visual { height: 300px; }
  .pv-config .cfp, .dr, .pv-agg .ag { zoom: .85; }
  /* Industries: preview hides; each row opens its document chips as an accordion */
  .ind-index { display: block; }
  .ind-preview { display: none; }
  .industries[data-variant="panels"] .v-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; height: auto; }
  .ind-rail .ind, .ind-rail .ind.is-open { padding: 26px; cursor: default; color: var(--ink); background: var(--white); border-color: var(--line); }
  .ind-rail .ind-bg-num { display: none; }
  .ind-rail .ind.is-open .ind-num { color: var(--muted); }
  .ind-rail .ind.is-open .ind-icon { width: 48px; height: 48px; background: var(--red-soft); box-shadow: none; }
  .ind-rail .ind.is-open .ind-icon svg { width: 24px; height: 24px; }
  .ind-rail .ind-title, .ind-rail .ind.is-open .ind-title { writing-mode: horizontal-tb; transform: none; white-space: normal; margin-top: 22px; font-size: 1.35rem; font-weight: 800; }
  .ind-rail .ind-body, .ind-rail .ind.is-open .ind-body { display: block; margin-top: 14px; animation: none; }
  .ind-rail .ind-desc { color: var(--ink-2); }
  .v-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .v-flip { grid-template-columns: 1fr 1fr; }
  .ind-item.is-active .ind-row-desc { display: block; padding: 0 4px 14px 60px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
  .ind-item.is-active .ind-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px 22px 60px; animation: capIn .4s ease; }
  .ind-chips li { padding: 7px 13px; border-radius: 999px; background: var(--red-soft); font-size: .82rem; font-weight: 500; }
  .cta-box { padding: 56px 28px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero-stage { zoom: .62; }
  .steps { grid-template-columns: 1fr; }
  .plan { padding: 32px 20px 24px; border-radius: 22px; }
  .cta-field { padding-left: 16px; }
  .cta-arrow { width: 48px; height: 48px; border-radius: 12px; }
  .plan-visual { zoom: .78; }
  .hub-node { padding: 10px 14px; font-size: .88rem; }
  .pv-starter { gap: 10px; }
  .pv-starter .pv-doc { flex: none; width: 120px; height: 170px; padding: 18px 14px; }
  .pv-starter .pv-doc i { margin-bottom: 10px; }
  .pv-json { min-width: 0; flex: 1; min-height: 150px; padding: 14px; font-size: .62rem; }
  .ind-item.is-active .ind-chips, .ind-item.is-active .ind-row-desc { padding-left: 4px; }
  .ind-row { grid-template-columns: 34px 1fr auto; }
  .v-bento, .v-flip, .industries[data-variant="panels"] .v-panels { grid-template-columns: 1fr; }
  .layout-switcher > span { padding: 0 8px; font-size: 0; }
  .legal { gap: 18px; }
  .logos-title br { display: none; }
  .lw-wall { grid-template-columns: repeat(2, 1fr); }
  .lw-wall li { height: 110px; }
  .logos[data-variant="dark"] .lg-row .marquee-group li { height: 84px; padding: 0 24px; }
  .site-footer { padding-top: 76px; }
  .footer-mark img { width: 100%; }
  .footer-nav { margin-left: 0; gap: 18px; }
  .cfgx-item { grid-template-columns: 52px auto 1fr; gap: 12px; padding-right: 8px; padding-left: 12px; }
  .cfgx-icon { width: 52px; height: 52px; border-radius: 14px; }
  .cfgx-list::before { left: 38px; }
  .cfgx-text h3 { font-size: 1.15rem; }
  .cfgx-text p { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .jl { width: auto; }
}
