/* Ingrox — original design system */
:root {
  /* Unified typography scale — per-breakpoint via variables */
  --title-size: clamp(38px, 4.4vw, 56px);  /* h1 + h2 — SAME size */
  --subtitle-size: 26px;                    /* pillar, service, step subtitles */
  --body-size: 19px;                        /* all paragraph text */
  --stat-size: 48px;                        /* all big numbers */
  --mono-size: 13px;                        /* all mono labels/eyebrows */
  /* Ingrox brand palette — navy #17224F + green #7DBE3C */
  --cream: oklch(0.985 0.004 250);   /* crisp off-white */
  --cream-2: oklch(0.965 0.006 250);
  --cream-3: oklch(0.93 0.01 250);
  --ink: oklch(0.22 0.08 265);        /* Ingrox navy */
  --ink-2: oklch(0.32 0.07 265);
  --ink-soft: oklch(0.50 0.04 265);
  --line: oklch(0.88 0.01 250);
  --accent: oklch(0.78 0.19 135);     /* Ingrox green */
  --accent-2: oklch(0.65 0.17 135);   /* deeper green */
  --white: oklch(0.995 0.002 250);

  --f-display: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-ui: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;

  --max: 1360px;
  --gutter: clamp(20px, 3vw, 40px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Type scale */
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--mono-size);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.display em { font-style: normal; font-weight: 400; color: var(--ink-2); opacity: 0.7; }

/* Wordmark */
.wordmark {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.wordmark .dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 3px;
  transform: translateY(-2px);
}
.wordmark em { font-style: italic; }

.nav .logo-img,
a.wordmark .logo-img,
img.logo-img {
  height: 30px !important;
  width: auto !important;
  display: block;
  max-width: 160px;
}
.footer .logo-img-big,
img.logo-img-big {
  max-height: 56px !important;
  height: auto;
  width: auto;
  display: block;
  max-width: 100%;
}
body.dark .logo-img,
body.dark .logo-img-big {
  filter: brightness(0) invert(1);
}

/* Top nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--cream) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-links {
  display: flex; gap: 32px;
  font-size: 17px;
  color: var(--ink-2);
}
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  justify-self: end;
  display: flex; align-items: center; gap: 10px;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
  transition: transform .2s ease, background .2s ease;
}
.pill:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.35);
}
.pill.ghost {
  background: transparent; color: var(--ink);
}
.pill.ghost:hover { background: var(--ink); color: var(--cream); }
.pill.accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.pill.accent:hover {
  background: var(--ink);
  color: var(--accent);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.35);
}
.pill .arrow { font-size: 11px; }

/* ===== Hero ===== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) var(--gutter) clamp(20px, 3vw, 36px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero h1 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--title-size);
  line-height: 1;
  letter-spacing: -0.035em;
}
.hero h1 em { font-style: normal; font-weight: 400; color: var(--ink-2); opacity: 0.65; }
.hero h1 .ink-strong { font-weight: 500; color: var(--ink); }
.hero h1 .mark {
  background: var(--accent);
  padding: 0 0.15em;
  border-radius: 4px;
  margin: 0 -0.05em;
}
.hero-side {
  padding-bottom: 12px;
  display: flex; flex-direction: column; gap: 24px;
}
.hero-side p {
  font-size: var(--body-size); line-height: 1.55;
  color: var(--ink-2);
  max-width: 42ch;
  margin: 0;
}
.hero-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
}

.hero-ticker {
  margin-top: clamp(24px, 3.5vw, 40px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.ticker-cell {
  padding: 14px 24px;
  border-right: 1px solid var(--line);
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s ease, transform .8s ease;
}
.ticker-cell.in {
  opacity: 1;
  transform: translateY(0);
}
.ticker-cell::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .8s cubic-bezier(.2,.7,.2,1) .3s;
}
.ticker-cell.in::before { width: 32px; }
.ticker-cell:last-child { border-right: 0; }
.ticker-cell .n {
  font-family: var(--f-display);
  font-size: var(--stat-size);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.035em;
  display: inline-block;
}
.ticker-cell .n em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.ticker-cell .l {
  font-family: var(--f-mono);
  font-size: var(--mono-size);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* Marquee */
.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 22px 0;
  overflow: hidden;
  max-width: none;
  margin: 12px 0 32px;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
  font-family: var(--f-display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.03em;
  padding-left: 56px;
}
.marquee-track em { font-style: normal; font-weight: 400; color: var(--accent); }
.marquee-track .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  align-self: center;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Section */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
}
.section-head {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 32px;
  align-items: start;
  padding-bottom: 48px;
  margin-bottom: 48px;
}

/* Check-in scene animation — staff scanning attendees */
.checkin-scene {
  margin: 8px 0 40px;
  background: var(--cream);
  border: 1px solid oklch(0.88 0.03 135);
  border-radius: 16px;
  padding: 28px 24px 20px;
  position: relative;
  overflow: hidden;
}
body.dark .checkin-scene {
  background: oklch(0.18 0.03 140);
  border-color: oklch(0.28 0.03 140);
}

.cs-stage {
  position: relative;
  height: 140px;
  overflow: hidden;
}

/* Staff member — fixed on left */
.cs-staff {
  position: absolute;
  left: 14%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}
.cs-staff-head {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink);
  position: relative;
}
.cs-staff-head::after {
  /* cap/beanie */
  content: ""; position: absolute;
  top: -4px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 10px; background: var(--accent);
  border-radius: 12px 12px 0 0;
}
.cs-staff-body {
  width: 36px; height: 44px;
  background: var(--ink);
  margin-top: 3px;
  border-radius: 8px 8px 4px 4px;
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
  position: relative;
}
.cs-badge {
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 7px; font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  background: oklch(0.2 0.04 260);
  padding: 2px 4px;
  border-radius: 2px;
}
/* Scanner device — held to the right of staff */
.cs-scanner-device {
  position: absolute;
  right: -22px; top: 18px;
  transform: rotate(15deg);
  animation: cssTilt 1.6s ease-in-out infinite;
}
@keyframes cssTilt {
  0%, 100% { transform: rotate(15deg); }
  50% { transform: rotate(10deg) translateX(-1px); }
}
.cs-scanner-screen {
  width: 18px; height: 22px;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.cs-scanner-beam {
  position: absolute;
  inset: 2px;
  background: oklch(0.25 0.06 135);
  border-radius: 1px;
  overflow: hidden;
}
.cs-scanner-beam::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: cssBeam 0.9s linear infinite;
}
@keyframes cssBeam {
  from { top: 0; } to { top: 100%; }
}
.cs-scanner-grip {
  width: 6px; height: 10px;
  background: oklch(0.2 0.01 260);
  margin: 0 auto;
  border-radius: 0 0 2px 2px;
}

/* Scan beam from scanner → attendee's QR */
.cs-beam {
  position: absolute;
  left: calc(14% + 40px);
  top: 56%;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), oklch(0.8 0.18 135 / 0.3));
  box-shadow: 0 0 10px var(--accent), 0 0 20px oklch(0.7 0.2 135 / 0.5);
  transform-origin: left center;
  animation: cssBeamShot 2.4s ease-in-out infinite;
  opacity: 0;
  z-index: 2;
}
@keyframes cssBeamShot {
  0%, 40% { width: 0; opacity: 0; }
  45% { width: 90px; opacity: 1; }
  55% { width: 90px; opacity: 1; }
  60%, 100% { width: 0; opacity: 0; }
}

/* Beep/check feedback */
.cs-beep {
  position: absolute;
  left: calc(14% + 130px);
  top: 34%;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  animation: cssBeep 2.4s ease-out infinite;
  box-shadow: 0 2px 10px oklch(0.7 0.2 135 / 0.5);
  z-index: 4;
}
@keyframes cssBeep {
  0%, 50% { opacity: 0; transform: scale(0.3); }
  58% { opacity: 1; transform: scale(1.3); }
  70% { opacity: 1; transform: scale(1); }
  85%, 100% { opacity: 0; transform: scale(1); }
}

/* Attendees streaming from right → stop at scan spot → continue left-past staff */
.cs-attendee {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cssAtt 7.2s linear infinite;
  animation-delay: var(--delay);
}
.cs-att-head {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink);
}
.cs-att-body {
  width: 26px; height: 32px;
  background: var(--ink);
  margin-top: 2px;
  border-radius: 6px 6px 3px 3px;
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
  position: relative;
}
/* QR badge hanging on attendee */
.cs-qr {
  position: absolute;
  top: 24px; left: -14px;
  width: 16px; height: 16px;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  padding: 1px;
  animation: cssQrFlash 7.2s linear infinite;
  animation-delay: var(--delay);
}
.cs-qr-pattern {
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'><rect width='9' height='9' fill='%23f5f3ec'/><g fill='%2317224F'><rect x='0' y='0' width='3' height='1'/><rect x='0' y='2' width='3' height='1'/><rect x='0' y='0' width='1' height='3'/><rect x='2' y='0' width='1' height='3'/><rect x='1' y='1' width='1' height='1'/><rect x='6' y='0' width='3' height='1'/><rect x='6' y='2' width='3' height='1'/><rect x='6' y='0' width='1' height='3'/><rect x='8' y='0' width='1' height='3'/><rect x='7' y='1' width='1' height='1'/><rect x='0' y='6' width='3' height='1'/><rect x='0' y='8' width='3' height='1'/><rect x='0' y='6' width='1' height='3'/><rect x='2' y='6' width='1' height='3'/><rect x='1' y='7' width='1' height='1'/><rect x='4' y='0' width='1' height='1'/><rect x='3' y='2' width='1' height='1'/><rect x='5' y='3' width='1' height='1'/><rect x='4' y='4' width='1' height='1'/><rect x='3' y='5' width='1' height='1'/><rect x='5' y='5' width='1' height='1'/><rect x='0' y='4' width='1' height='1'/><rect x='2' y='4' width='1' height='1'/><rect x='4' y='2' width='1' height='1'/><rect x='7' y='4' width='1' height='1'/><rect x='5' y='7' width='1' height='1'/><rect x='4' y='8' width='1' height='1'/><rect x='6' y='6' width='1' height='1'/><rect x='8' y='6' width='1' height='1'/><rect x='7' y='8' width='1' height='1'/><rect x='6' y='8' width='1' height='1'/><rect x='4' y='6' width='1' height='1'/></g></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
@keyframes cssQrFlash {
  0%, 44% { box-shadow: 0 0 0 0 var(--accent); }
  50%, 58% { box-shadow: 0 0 0 3px var(--accent), 0 0 10px var(--accent); }
  64%, 100% { box-shadow: 0 0 0 0 var(--accent); }
}

@keyframes cssAtt {
  0%   { right: -10%; opacity: 0; }
  8%   { opacity: 1; }
  35%  { right: 30%; } /* approaches */
  45%  { right: 38%; } /* stops for scan */
  58%  { right: 38%; } /* held during scan */
  66%  { right: 42%; transform: translateY(-50%) scale(1.02); } /* little hop after scan */
  92%  { right: 78%; opacity: 1; } /* continues left */
  100% { right: 90%; opacity: 0; }
}

/* Stats footer */
.cs-stats {
  display: flex; align-items: center; gap: 20px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed oklch(0.85 0.02 135);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.cs-stat { display: inline-flex; align-items: baseline; gap: 8px; }
.cs-stat-sep { width: 1px; height: 16px; background: oklch(0.85 0.02 135); flex-shrink: 0; }
.cs-stat-n {
  font-family: var(--f-display);
  font-size: 18px; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.cs-stat-n em { font-style: normal; color: var(--ink-soft); font-size: 12px; margin-left: 2px; }
.cs-stat-l { color: var(--ink-soft); }
.cs-live { display: inline-flex; align-items: center; gap: 6px; color: oklch(0.5 0.15 145) !important; }
.cs-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 oklch(0.7 0.2 135 / 0.7);
  animation: csPulse 1.6s ease-out infinite;
}
@keyframes csPulse {
  0% { box-shadow: 0 0 0 0 oklch(0.7 0.2 135 / 0.7); }
  70% { box-shadow: 0 0 0 8px oklch(0.7 0.2 135 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.7 0.2 135 / 0); }
}

body.dark .cs-staff-head,
body.dark .cs-staff-body,
body.dark .cs-att-head,
body.dark .cs-att-body { background: oklch(0.92 0.01 250); }
body.dark .cs-staff-head::after { background: var(--accent); }
body.dark .cs-qr { background: oklch(0.95 0.01 250); border-color: oklch(0.92 0.01 250); }
body.dark .cs-qr svg { color: oklch(0.22 0.08 265); }
body.dark .cs-rail { border-color: oklch(0.45 0.04 140); }
body.dark .cs-stat-n { color: oklch(0.96 0.01 250); }
body.dark .cs-stat-l, body.dark .cs-stat-n em { color: oklch(0.78 0.01 250); }
body.dark .cs-stat-sep { background: oklch(0.45 0.04 140); }
body.dark .cs-label { color: oklch(0.96 0.01 250); background: oklch(0.28 0.03 140); }

@media (max-width: 720px) {
  .checkin-scene { padding: 22px 16px 16px; }
  .cs-stage { height: 120px; }
  .cs-stats { flex-wrap: wrap; gap: 12px; font-size: 10px; }
  /* Faster cycle on mobile so the scene feels alive in a narrower viewport.
     Attendees cycle = 3 × beam cycle so sync is preserved. */
  .cs-attendee { animation-duration: 3.6s !important; }
  .cs-qr { animation-duration: 3.6s !important; }
  .cs-beam { animation-duration: 1.2s !important; }
  .cs-beep { animation-duration: 1.2s !important; }
  /* Override the inline --delay values (0, -2.4s, -4.8s) for the faster mobile cycle */
  .cs-stage .cs-attendee:nth-of-type(1),
  .cs-stage .cs-attendee:nth-of-type(1) .cs-qr { animation-delay: 0s !important; }
  .cs-stage .cs-attendee:nth-of-type(2),
  .cs-stage .cs-attendee:nth-of-type(2) .cs-qr { animation-delay: -1.2s !important; }
  .cs-stage .cs-attendee:nth-of-type(3),
  .cs-stage .cs-attendee:nth-of-type(3) .cs-qr { animation-delay: -2.4s !important; }
}

/* Sage-tinted section (pillars) */
.section--sage {
  background: oklch(0.96 0.02 135);
  border-radius: 24px;
  max-width: calc(var(--max) - 48px);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 100px) clamp(32px, 5vw, 72px);
  position: relative;
}
.section--sage + .section { padding-top: clamp(48px, 6vw, 80px); }
.section--sage::before {
  content: "";
  position: absolute;
  top: 24px; right: 28px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px oklch(0.88 0.12 135 / 0.4);
}
body.dark .section--sage {
  background: oklch(0.22 0.03 140);
}
@media (max-width: 720px) {
  .section--sage {
    max-width: calc(100% - 24px);
    border-radius: 16px;
    padding: 32px 18px;
  }
  .section--sand {
    max-width: calc(100% - 24px);
    border-radius: 16px;
    padding: 32px 18px;
  }
}

/* Blue-tinted section (process) */
.section--sand {
  background: oklch(0.95 0.02 250);
  border-radius: 24px;
  max-width: calc(var(--max) - 48px);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 100px) clamp(32px, 5vw, 72px);
  position: relative;
}
.section--sand + .section { padding-top: clamp(48px, 6vw, 80px); }
.section--sand::before {
  content: "";
  position: absolute;
  top: 24px; right: 28px;
  width: 10px; height: 10px; border-radius: 50%;
  background: oklch(0.55 0.14 255);
  box-shadow: 0 0 0 5px oklch(0.8 0.1 255 / 0.5);
}
body.dark .section--sand {
  background: oklch(0.24 0.03 260);
}
@media (max-width: 720px) {
  .section--sand {
    max-width: calc(100% - 24px);
    border-radius: 16px;
    padding: 40px 20px;
  }
}

/* Rich section head — with lede paragraph + credentials row */
.section-head--rich {
  align-items: start;
  padding-bottom: 20px;
  margin-bottom: 16px;
}
.section-title--poem {
  font-size: clamp(48px, 6vw, 96px) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.04em !important;
}
.section-title--poem em {
  color: var(--ink);
  background: var(--accent);
  font-style: normal;
  padding: 0 0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.section-head--rich .section-head-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section-head--rich .section-title {
  margin: 0;
}
.section-head--rich .section-lede {
  font-family: var(--f-body);
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0;
  text-wrap: pretty;
}
.section-head--rich .section-lede em {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
}
.section-credentials {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(24px, 3vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  justify-content: start;
  align-items: baseline;
  margin-top: 4px;
}
.cred { display: flex; flex-direction: column; gap: 4px; }
.cred-n {
  font-family: var(--f-display);
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.cred-l {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 720px) {
  .section-credentials { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* Pillars section head — stacked, more visual */
.section-head--bold {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding-bottom: 48px;
  margin-bottom: 48px;
}
.section-head--bold .eyebrow {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: oklch(0.97 0.02 120);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid oklch(0.88 0.08 120);
  justify-self: start;
}
.section-head--bold .section-title {
  max-width: 18ch;
  margin: 0;
}
.section-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 6px;
}
.section-head-actions .actions-note {
  font-size: var(--body-size);
  color: var(--ink-2);
  max-width: 28ch;
  line-height: 1.5;
  margin: 0 0 8px;
}
.section-head-actions .pill-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}
/* Abstract geometric art for pillars */
.pillars-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.abstract-art {
  width: 100%;
  max-width: 520px;
  height: auto;
  color: var(--ink);
  aspect-ratio: 1;
}
.abstract-art .aa-grid { color: var(--ink); }
.aa-node { transform-origin: 260px 260px; animation: aaPulse 2.4s ease-in-out infinite; }
@keyframes aaPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}
.aa-node-ring {
  transform-origin: 260px 260px;
  animation: aaRing 2.4s ease-out infinite;
}
@keyframes aaRing {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.8); opacity: 0; }
}
.aa-arc {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: aaDraw 1.8s cubic-bezier(.2,.7,.2,1) .2s forwards;
}
.aa-arc-2 {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: aaDraw 1.8s cubic-bezier(.2,.7,.2,1) .5s forwards;
}
@keyframes aaDraw { to { stroke-dashoffset: 0; } }
.aa-rings circle {
  transform-origin: 260px 260px;
  animation: aaRings 8s ease-in-out infinite;
}
.aa-rings circle:nth-child(2) { animation-delay: -2s; }
.aa-rings circle:nth-child(3) { animation-delay: -4s; }
.aa-rings circle:nth-child(4) { animation-delay: -6s; }
@keyframes aaRings {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}
.aa-orbit circle { animation: aaOrbit 4s ease-in-out infinite; }
.aa-orbit circle:nth-child(2) { animation-delay: -1s; }
.aa-orbit circle:nth-child(3) { animation-delay: -2s; }
.aa-orbit circle:nth-child(4) { animation-delay: -3s; }
@keyframes aaOrbit {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Dark theme: lighten ink */
body.dark .abstract-art { color: var(--cream); }

@media (max-width: 900px) {
  .abstract-art { max-width: 420px; }
}
.dot-accent {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px oklch(0.85 0.14 120 / 0.35);
}
.mark-sm {
  background: var(--accent);
  color: var(--ink);
  padding: 0 0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.section-num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.section-title {
  font-family: var(--f-display);
  font-size: var(--title-size);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
  max-width: 18ch;
}
.section-title em { font-style: normal; font-weight: 400; color: var(--ink-2); opacity: 0.7; }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 16px 0 16px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pillar:last-child { border-right: 0; }
.pillar:first-child { padding-left: 0; }
.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar:nth-child(n+1) { padding-left: 28px; }
.pillar:first-child { padding-left: 0; }
.pillar-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
  font-weight: 600;
}
.pillar-title {
  font-family: var(--f-display);
  font-size: var(--subtitle-size);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 500;
}
.pillar-title em { font-style: normal; font-weight: 400; opacity: 0.7; }
.pillar p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--body-size);
  line-height: 1.55;
}
.pillar-glyph {
  margin-top: 4px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
}

/* Services list */
/* Services section head */
.section-head--services {
  display: block;
  padding-bottom: 32px;
  margin-bottom: 16px;
  text-align: left;
}
.svc-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-2);
  background: oklch(0.96 0.02 135);
  border: 1px solid oklch(0.88 0.08 135);
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.svc-eyebrow .svc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.85 0.14 120 / 0.35);
  animation: svcPulse 2s ease-in-out infinite;
}
@keyframes svcPulse {
  0%,100% { box-shadow: 0 0 0 3px oklch(0.85 0.14 120 / 0.35); }
  50% { box-shadow: 0 0 0 6px oklch(0.85 0.14 120 / 0.15); }
}
.svc-eyebrow .svc-sep { opacity: 0.4; }
.svc-title { margin: 0 0 14px; max-width: 22ch; line-height: 1.25; }
.svc-title .mark { background: var(--accent); padding: 2px 10px; border-radius: 4px; display: inline-block; margin-top: 10px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.svc-sub {
  font-size: calc(var(--body-size) + 1px);
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 0 24px;
  line-height: 1.5;
}
.svc-teaser {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 4px;
}
.svc-chip-mini {
  font-family: var(--f-mono);
  font-size: 11.5px; letter-spacing: 0.04em;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--cream);
  transition: all .2s ease;
  cursor: pointer;
}
.svc-chip-mini:nth-child(1) { background: oklch(0.96 0.04 135); border-color: oklch(0.82 0.12 135); }
.svc-chip-mini:nth-child(2) { background: oklch(0.96 0.03 250); border-color: oklch(0.82 0.08 250); }
.svc-chip-mini:nth-child(3) { background: oklch(0.97 0.03 70); border-color: oklch(0.82 0.08 70); }
.svc-chip-mini:nth-child(4) { background: oklch(0.96 0.03 330); border-color: oklch(0.82 0.08 330); }
.svc-chip-mini:nth-child(5) { background: oklch(0.96 0.03 200); border-color: oklch(0.82 0.08 200); }
.svc-chip-mini { transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.svc-chip-mini:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(0,0,0,0.25); }
.svc-chip-mini:nth-child(1):hover { background: oklch(0.90 0.09 135); border-color: oklch(0.70 0.16 135); }
.svc-chip-mini:nth-child(2):hover { background: oklch(0.90 0.07 250); border-color: oklch(0.70 0.12 250); }
.svc-chip-mini:nth-child(3):hover { background: oklch(0.91 0.08 70);  border-color: oklch(0.72 0.14 70); }
.svc-chip-mini:nth-child(4):hover { background: oklch(0.90 0.07 330); border-color: oklch(0.70 0.13 330); }
.svc-chip-mini:nth-child(5):hover { background: oklch(0.90 0.07 200); border-color: oklch(0.70 0.12 200); }

/* Dark-mode contrast fixes for pastel chips & eyebrow */
body.dark .svc-eyebrow {
  background: oklch(0.28 0.05 140);
  border-color: oklch(0.45 0.08 140);
  color: oklch(0.96 0.01 250);
}
body.dark .svc-chip-mini { color: oklch(0.22 0.08 265); }

.services {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.service {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 4px 96px 56px 1fr 140px;
  gap: 24px;
  align-items: start;
  padding: 28px 0 28px 4px;
  cursor: pointer;
  transition: padding .25s ease, background .3s ease, color .3s ease;
  position: relative;
}
.service .s-rail {
  height: 100%;
  background: transparent;
  border-radius: 2px;
  transition: background .25s ease;
  position: relative;
}
.service .s-dot {
  position: absolute;
  top: 36px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--ink-soft);
  border-radius: 50%;
  transition: background .25s ease, height .25s ease, top .25s ease;
}
.service:hover { padding-left: 20px; }
.service:hover .s-rail { background: var(--accent); }
.service:hover .s-dot { background: var(--ink); height: 40px; top: 20px; border-radius: 2px; opacity: 0; }
.service:hover .service-cta { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.service .s-numx {
  font-family: var(--f-display);
  font-size: 72px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: oklch(0.55 0.14 255);
  opacity: 0.55;
  transition: opacity .25s ease, color .25s ease;
  padding-top: 8px;
}
.service:hover .s-numx { opacity: 1; color: oklch(0.42 0.18 260); }
.service .s-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--ink);
  transition: all .25s ease;
  margin-top: 16px;
}
.service .s-icon svg { width: 22px; height: 22px; }
.service:hover .s-icon {
  background: var(--ink);
  color: var(--accent);
  border-color: var(--ink);
  transform: rotate(-4deg) scale(1.05);
}
.service .s-body {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 14px;
}
.service .s-title {
  font-family: var(--f-display);
  font-size: var(--subtitle-size);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
}
.service .s-title em { font-style: normal; font-weight: 400; opacity: 0.7; }
.service .s-desc {
  font-size: var(--body-size);
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.5;
}
.service .s-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.service .s-chip {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: transparent;
  transition: all .25s ease;
}
.service:hover .s-chip {
  border-color: var(--ink-2);
  color: var(--ink);
}
.service .service-cta {
  justify-self: end;
  align-self: center;
  margin-top: 16px;
  margin-right: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  transition: all .2s ease;
}

.service-detail {
  grid-column: 1 / -1;
  display: none;
  padding-top: 8px;
  margin-left: 4px;
}
.service.open { background: var(--ink); color: var(--cream); padding-left: 24px; padding-right: 32px; margin-left: -24px; margin-right: -32px; border-radius: 8px; }
.service.open .s-rail { background: var(--accent); }
.service.open .s-numx { color: oklch(0.78 0.13 255); opacity: 1; }
.service.open .s-icon { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.service.open .s-desc { color: oklch(0.85 0.015 85); }
.service.open .s-chip { border-color: oklch(0.45 0.03 265); color: oklch(0.85 0.015 85); }
.service.open .service-cta { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.service.open .service-detail { display: block; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid oklch(0.35 0.03 265);
  margin-top: 20px;
}
.detail-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid oklch(0.35 0.03 265 / 0.5);
}
.detail-list li {
  list-style: none;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid oklch(0.35 0.03 265);
  font-size: 14px;
  display: flex; gap: 12px; align-items: baseline;
  color: oklch(0.92 0.01 85);
}
.detail-list li:nth-child(2n) { padding-left: 24px; border-left: 1px solid oklch(0.35 0.03 265 / 0.5); }
/* If the list has an odd count, make the last item span both columns so there's no empty cell */
.detail-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.detail-list li .k {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--accent);
  width: 24px;
}
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  padding: 18px 0 4px;
}
.benefit {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  padding: 10px 0;
  align-items: start;
}
.benefit .b-icon {
  width: 32px; height: 32px;
  border: 1px solid oklch(0.4 0.03 265);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 0;
  grid-row: 1 / span 2;
}
.benefit h4 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.benefit h4 em { font-style: normal; font-weight: 400; opacity: 0.8; }
.benefit p {
  margin: 0;
  font-size: 13px;
  color: oklch(0.82 0.01 85);
  line-height: 1.45;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-copy h2 {
  font-family: var(--f-display);
  font-size: var(--title-size);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 24px;
}
.about-copy h2 em { font-style: normal; font-weight: 400; color: var(--ink-2); opacity: 0.7; }
.about-copy p {
  font-size: var(--body-size);
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 52ch;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--cream-2);
  align-self: center;     /* vertically centers against the copy column */
  justify-self: center;   /* centers the block horizontally in its column */
  width: 100%;
  max-width: 520px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 40px -24px oklch(0.22 0.08 265 / 0.25);
}
.about-stat {
  padding: 40px 32px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 160px;
  position: relative;
  transition: transform 0.35s ease;
}
.about-stat:nth-child(2n) { border-right: 0; }
.about-stat:nth-last-child(-n+2) { border-bottom: 0; }

/* Per-cell color treatments — alternating navy / cream / accent / cream */
.about-stat:nth-child(1) { background: var(--cream); }
.about-stat:nth-child(2) { background: var(--accent); }
.about-stat:nth-child(3) { background: var(--ink); }
.about-stat:nth-child(4) { background: var(--cream); }

/* Little decorative mark above each title */
.about-stat::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent-2);
  margin-bottom: 14px;
  transition: width 0.35s ease;
}
.about-stat:nth-child(2)::before { background: var(--ink); }
.about-stat:nth-child(3)::before { background: var(--accent); }

.about-stat:hover { transform: translateY(-2px); }
.about-stat:hover::before { width: 40px; }

.about-stat .big {
  font-family: var(--f-display);
  font-size: var(--stat-size);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.about-stat:nth-child(3) .big { color: var(--cream); }

.about-stat .big em { font-style: normal; font-weight: 400; color: var(--ink-2); opacity: 0.7; }
.about-stat .lbl {
  font-family: var(--f-mono);
  font-size: var(--mono-size);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
}
.about-stat:nth-child(2) .lbl { color: var(--ink); opacity: 0.75; }
.about-stat:nth-child(3) .lbl { color: var(--accent); opacity: 1; }

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 40px 28px 40px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; }
.step:not(:first-child) { padding-left: 28px; }
/* Animated step icons — positioned top-right of each step card, small */
.s-icon-anim {
  position: absolute;
  top: 42px;
  right: 20px;
  width: 28px;
  height: 28px;
  color: var(--accent);
  opacity: 0.85;
}
.s-icon-anim svg { width: 100%; height: 100%; display: block; }
.step:hover .s-icon-anim { opacity: 1; }

/* 01 Descubrimos — search: subtle scan pulse */
.s-icon-search svg { animation: scanPulse 2.4s ease-in-out infinite; transform-origin: 13px 13px; }
@keyframes scanPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

/* 02 Configuramos — gear: slow rotate */
.s-icon-gear svg { animation: gearSpin 8s linear infinite; transform-origin: 16px 16px; }
@keyframes gearSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 03 Operamos — person monitoring (screen lines blink) */
.s-icon-live .op-line { opacity: 0.6; }
.s-icon-live .op-l1 { animation: opBlink 1.6s ease-in-out infinite; }
.s-icon-live .op-l2 { animation: opBlink 1.6s ease-in-out infinite; animation-delay: 0.4s; }
@keyframes opBlink {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* 04 Reportamos — bars grow in sequence */
.s-icon-bars .bar { transform-origin: center bottom; animation: barGrow 2.4s ease-in-out infinite; }
.s-icon-bars .b1 { animation-delay: 0s; }
.s-icon-bars .b2 { animation-delay: 0.15s; }
.s-icon-bars .b3 { animation-delay: 0.3s; }
.s-icon-bars .b4 { animation-delay: 0.45s; }
@keyframes barGrow {
  0%, 100% { transform: scaleY(0.35); }
  40%, 60% { transform: scaleY(1); }
}
.step .s-n {
  font-family: var(--f-display);
  font-size: var(--stat-size);
  line-height: 0.9;
  font-style: normal;
  color: oklch(0.55 0.14 255) !important;
  font-weight: 500;
  letter-spacing: -0.04em;
  transition: color .3s ease;
}
.step:hover .s-n { color: oklch(0.42 0.18 260) !important; }
body.dark .step .s-n { color: oklch(0.72 0.14 255) !important; }
body.dark .step:hover .s-n { color: oklch(0.82 0.15 255) !important; }
.step h3 {
  font-family: var(--f-display);
  font-size: var(--subtitle-size);
  margin: 16px 0 8px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.step p {
  font-size: var(--body-size);
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}

/* Contact */
.contact {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(72px, 9vw, 130px) 0;
}
.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact h2 {
  font-family: var(--f-display);
  font-size: var(--title-size);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 28px;
}
.contact h2 em { font-style: normal; font-weight: 400; color: oklch(0.65 0.03 265); }
.contact h2 .mark { background: var(--accent); color: var(--ink); padding: 0 0.15em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.contact-badge {
  width: 260px;
  max-width: 100%;
  margin: 0 0 32px;
  transform: rotate(-2deg);
  animation: badgeFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}
.contact-badge svg { width: 100%; height: auto; display: block; }
@keyframes badgeFloat {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(-1deg) translateY(-4px); }
}
.contact-lede {
  font-size: var(--body-size); line-height: 1.6;
  color: oklch(0.85 0.015 85);
  max-width: 44ch;
  margin: 0 0 32px;
}
.contact-meta {
  display: grid; gap: 20px; margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid oklch(0.4 0.03 265);
}
.contact-meta-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  font-size: 14px;
}
.contact-meta-row .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.7 0.02 85);
  padding-top: 3px;
}
.contact-meta-row .v { color: var(--cream); }

.form {
  display: grid; gap: 0;
  background: oklch(0.96 0.02 250);
  border: 1px solid oklch(0.88 0.03 250);
  border-radius: 16px;
  overflow: hidden;
}
.field {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  border-bottom: 1px solid oklch(0.9 0.025 250);
  padding: 0 20px;
}
.field:last-of-type { border-bottom: 1px solid oklch(0.9 0.025 250); }
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.45 0.04 265);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15px;
  background: transparent;
  border: 0;
  outline: none;
  padding: 18px 0;
  color: var(--ink);
  width: 100%;
}
.field textarea { padding: 18px 0; resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.58 0.03 265); }
.field:focus-within { background: oklch(0.98 0.015 250); }

.submit {
  padding: 22px;
  background: var(--accent);
  color: var(--ink);
  border: 0;
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transition: background .2s ease;
}
.submit:hover { background: var(--ink); color: var(--accent); }

/* Footer */
.footer {
  background: var(--cream);
  color: var(--ink);
  padding: 80px var(--gutter) 32px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-big {
  padding: 28px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.footer-big-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: footerLogoIn 1s cubic-bezier(.2,.8,.2,1) both;
}
.footer-logo-wrap .logo-img-big {
  max-height: 44px !important;
  height: auto;
  width: auto;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.footer-big:hover .logo-img-big { transform: translateY(-2px) scale(1.02); }
@keyframes footerLogoIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--cream);
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
  animation: badgeFade 1.2s .4s cubic-bezier(.2,.8,.2,1) both;
}
.footer-badge:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.footer-badge .arrow {
  font-size: 10px;
  transition: transform .2s;
}
.footer-badge:hover .arrow { transform: translateX(2px); }
.footer-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgeFade {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in oklch, var(--accent) 0%, transparent); }
}
.footer-marquee {
  position: relative;
  padding: 12px 0 0;
  border-top: 1px dashed var(--line);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.footer-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
  will-change: transform;
}
.footer-marquee-track span {
  font-family: var(--f-display);
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.footer-marquee-track .sep {
  color: var(--accent);
  font-size: 10px;
  font-weight: 400;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.footer-marquee:hover .footer-marquee-track { animation-play-state: paused; }

/* Dark mode adjustments */
body.dark .footer-badge { background: oklch(0.18 0.03 265); color: var(--ink-2); }
body.dark .footer-marquee-track span { color: var(--ink); }
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 40px 0 24px;
}
.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: var(--body-size);
  color: var(--ink-2);
  margin: 0 0 8px;
  line-height: 1.5;
}
.footer-col a { transition: color .18s ease, transform .18s ease; }
.footer-col a:hover { color: var(--accent); transform: translateX(3px); }
.footer-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Tweaks panel */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 16px;
  padding: 16px;
  width: 280px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.25);
  font-family: var(--f-ui);
  display: none;
}
.tweaks.on { display: block; }
.tweaks h4 {
  margin: 0 0 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; justify-content: space-between;
}
.tweak-row { margin-bottom: 14px; }
.tweak-row label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--ink-2);
}
.swatches { display: flex; gap: 6px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}
.swatch.active { border-color: var(--ink); }
.seg {
  display: flex; border: 1px solid var(--ink); border-radius: 999px; padding: 2px;
}
.seg button {
  flex: 1; padding: 6px 10px; border: 0; background: transparent;
  border-radius: 999px; font-size: 12px; color: var(--ink-2);
}
.seg button.active { background: var(--ink); color: var(--cream); }

/* Theme: dark */
body.dark {
  --cream: oklch(0.18 0.04 265);
  --cream-2: oklch(0.22 0.05 265);
  --cream-3: oklch(0.28 0.06 265);
  --ink: oklch(0.985 0.004 250);
  --ink-2: oklch(0.90 0.006 250);
  --ink-soft: oklch(0.68 0.01 250);
  --line: oklch(0.35 0.05 265);
  --white: oklch(0.18 0.04 265);
}
body.dark .contact { background: oklch(0.11 0.02 265); }
/* Green .mark highlights: force navy text in dark for legibility */
body.dark .hero h1 .mark,
body.dark .svc-title .mark,
body.dark .contact h2 .mark,
body.dark .mark { color: oklch(0.22 0.08 265) !important; }
/* Contact section is dark-on-dark in BOTH themes — force light text in dark */
body.dark .contact h2 { color: oklch(0.985 0.004 250); }
body.dark .contact h2 em { color: oklch(0.72 0.02 250); font-style: normal; }
body.dark .contact-meta-row .v { color: oklch(0.96 0.006 250); }
body.dark .contact-meta-row .k { color: oklch(0.62 0.015 250); }
body.dark .contact-lede { color: oklch(0.85 0.01 250); }
/* Contact form stays light-cream in both themes — keep inputs dark */
body.dark .form { background: oklch(0.96 0.02 250); }
body.dark .form .field input,
body.dark .form .field select,
body.dark .form .field textarea { color: oklch(0.22 0.08 265); }
body.dark .form .field-label { color: oklch(0.45 0.04 265); }
body.dark .form .field { border-color: oklch(0.86 0.02 250); }
body.dark .form .field:focus-within { background: oklch(0.98 0.015 250); }
/* Poem-style section title: keep dark-navy text on green in dark too */
body.dark .section-title--poem em { color: oklch(0.22 0.08 265); }
/* Marquee: keep it visually dark-on-light in dark (flip roles) */
body.dark .marquee {
  background: oklch(0.14 0.03 265);
  color: oklch(0.96 0.006 250);
  border-top-color: oklch(0.30 0.04 265);
  border-bottom-color: oklch(0.30 0.04 265);
}
/* Benefit titles inside expanded service card: force light text on dark card */
body.dark .benefit h4 { color: oklch(0.96 0.006 250); }
body.dark .service:hover,
body.dark .service.open {
  background: oklch(0.12 0.03 265);
  color: oklch(0.96 0.01 250);
}
body.dark .service:hover .s-title,
body.dark .service.open .s-title { color: oklch(0.98 0.005 250); }
body.dark .service:hover .s-desc,
body.dark .service.open .s-desc { color: oklch(0.80 0.01 250); }
body.dark .service:hover .s-chip,
body.dark .service.open .s-chip {
  border-color: oklch(0.55 0.04 265);
  color: oklch(0.88 0.01 250);
}
body.dark .service:hover .s-icon { background: var(--accent); color: oklch(0.18 0.06 265); border-color: var(--accent); }
body.dark .service.open .s-icon { background: var(--accent); color: oklch(0.18 0.06 265); border-color: var(--accent); }
/* Default (non-hover) CTA in dark: make it visible */
body.dark .service-cta {
  background: transparent;
  border-color: oklch(0.55 0.04 265);
  color: oklch(0.92 0.01 250);
}
body.dark .service:hover .service-cta,
body.dark .service.open .service-cta { background: var(--accent); color: oklch(0.18 0.06 265); border-color: var(--accent); }
/* Detail panel inside open service */
body.dark .service.open .detail-grid { border-top-color: oklch(0.45 0.04 265); }
body.dark .service.open .detail-list { border-top-color: oklch(0.45 0.04 265 / 0.5); }
body.dark .service.open .detail-list li {
  color: oklch(0.88 0.01 250);
  border-bottom-color: oklch(0.45 0.04 265);
}
body.dark .service.open .detail-list li:nth-child(2n) { border-left-color: oklch(0.45 0.04 265 / 0.5); }
body.dark .service.open .detail-list li .k { color: var(--accent); }
body.dark .service.open .benefit p { color: oklch(0.80 0.01 250); }
body.dark .service.open .benefit .b-icon { border-color: oklch(0.55 0.04 265); color: var(--accent); }

/* Theme: mono */
body.mono {
  --accent: oklch(0.95 0.006 250);
  --accent-2: oklch(0.6 0.02 250);
}
body.mono .hero h1 .mark { background: var(--ink); color: var(--cream); border-radius: 2px; }
body.mono .wordmark .dot { background: var(--ink); }

/* Theme: terracotta */
body.terracotta {
  --accent: oklch(0.72 0.16 35);
  --accent-2: oklch(0.55 0.14 35);
}

/* Density */
body.dense .section { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
body.dense .hero { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 5vw, 64px); }
body.dense .service { padding-top: 20px; padding-bottom: 20px; }

/* ===== Hero Showcase (animated product preview) ===== */
.showcase {
  position: relative;
  padding-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.showcase-frame {
  position: relative;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px oklch(0.22 0.08 265 / 0.35), 0 10px 20px -10px oklch(0.22 0.08 265 / 0.15);
  aspect-ratio: 4 / 3.2;
  min-height: 380px;
}
.showcase-chrome {
  height: 36px;
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
  position: relative;
}
.showcase-chrome .dot-r,
.showcase-chrome .dot-y,
.showcase-chrome .dot-g {
  width: 10px; height: 10px; border-radius: 50%;
}
.showcase-chrome .dot-r { background: oklch(0.7 0.18 27); }
.showcase-chrome .dot-y { background: oklch(0.85 0.14 85); }
.showcase-chrome .dot-g { background: oklch(0.78 0.19 135); }
.showcase-url {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.slide {
  position: absolute;
  inset: 36px 0 0 0;
  padding: 22px 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
  display: flex; flex-direction: column; gap: 18px;
}
.slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.s-hdr { display: flex; justify-content: space-between; align-items: start; }
.s-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.s-ttl {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 4px;
  line-height: 1;
}
.s-badge {
  background: var(--accent);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Slide 1: Registro */
.s-scan {
  flex: 1;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.qr {
  width: 90px; height: 90px;
  background: var(--white);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 1px var(--ink);
  border-radius: 6px;
  color: var(--ink);
  display: block;
}
.scan-line {
  position: absolute;
  left: 18px; right: 18px;
  height: 2px; background: var(--accent);
  top: 20px;
  box-shadow: 0 0 12px var(--accent);
  animation: scanY 2.2s ease-in-out infinite;
}
@keyframes scanY {
  0%, 100% { top: 22px; }
  50% { top: calc(100% - 22px); }
}
.scan-info .s-label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scan-info .s-name {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.scan-info .s-sub {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.s-counter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.s-ck {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.s-cl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* Slide 2: Panel */
.s-chart {
  flex: 1;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.bars {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  align-items: end;
  min-height: 130px;
}
.bars > div {
  height: var(--h);
  background: var(--ink);
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  animation: barGrow .8s cubic-bezier(.2,.8,.2,1) backwards;
}
.slide.active .bars > div:nth-child(1) { animation-delay: .05s; }
.slide.active .bars > div:nth-child(2) { animation-delay: .10s; }
.slide.active .bars > div:nth-child(3) { animation-delay: .15s; }
.slide.active .bars > div:nth-child(4) { animation-delay: .20s; }
.slide.active .bars > div:nth-child(5) { animation-delay: .25s; background: var(--accent); }
.slide.active .bars > div:nth-child(6) { animation-delay: .30s; }
.slide.active .bars > div:nth-child(7) { animation-delay: .35s; }
.slide.active .bars > div:nth-child(8) { animation-delay: .40s; }
.slide.active .bars > div:nth-child(9) { animation-delay: .45s; }
.slide.active .bars > div:nth-child(10) { animation-delay: .50s; background: var(--accent); }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart-foot {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}
.s-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kpi {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.kpi-n {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.kpi-l {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* Slide 3: Leads */
.s-leads {
  list-style: none;
  margin: 0; padding: 0;
  flex: 1;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}
.s-leads li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateX(-10px);
  animation: leadIn .5s ease forwards;
}
.s-leads li:last-child { border-bottom: 0; }
.slide.active .s-leads li:nth-child(1) { animation-delay: .1s; }
.slide.active .s-leads li:nth-child(2) { animation-delay: .2s; }
.slide.active .s-leads li:nth-child(3) { animation-delay: .3s; }
.slide.active .s-leads li:nth-child(4) { animation-delay: .4s; }
@keyframes leadIn { to { opacity: 1; transform: translateX(0); } }
.lead-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lead-n { font-weight: 600; font-size: 14px; line-height: 1.2; }
.lead-c { font-size: 11px; color: var(--ink-soft); margin-top: 2px; font-family: var(--f-mono); }
.lead-t {
  font-family: var(--f-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.lead-t:is([class*="hot"]), .s-leads .lead-t:nth-of-type(1) {} /* noop */
.s-leads li .lead-t { background: var(--cream-3); color: var(--ink-soft); }
.s-leads li:nth-child(1) .lead-t,
.s-leads li:nth-child(4) .lead-t { background: var(--accent); color: var(--ink); }
.s-leads li:nth-child(2) .lead-t { background: oklch(0.88 0.14 85); color: var(--ink); }

/* Slide 4: Map */
.s-map {
  flex: 1;
  background:
    linear-gradient(var(--cream-3) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, var(--cream-3) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}
.s-map .stand {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink);
  animation: standIn .5s ease backwards;
}
.slide.active .s-map .stand:nth-child(1) { animation-delay: .05s; }
.slide.active .s-map .stand:nth-child(2) { animation-delay: .10s; }
.slide.active .s-map .stand:nth-child(3) { animation-delay: .15s; }
.slide.active .s-map .stand:nth-child(4) { animation-delay: .20s; }
.slide.active .s-map .stand:nth-child(6) { animation-delay: .30s; }
.slide.active .s-map .stand:nth-child(7) { animation-delay: .35s; }
.slide.active .s-map .stand:nth-child(8) { animation-delay: .40s; }
@keyframes standIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
.s-map .stand.hot {
  background: var(--accent);
  border-color: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.78 0.19 135 / 0.5); }
  50% { box-shadow: 0 0 0 8px oklch(0.78 0.19 135 / 0); }
}
.s-map .aisle {
  position: absolute;
  background: var(--cream-3);
  border-radius: 2px;
}
.s-map .pin {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: oklch(0.55 0.22 27);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px oklch(0.22 0.08 265 / 0.3);
  animation: pinBounce 1.2s ease-in-out infinite;
}
@keyframes pinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.s-legend {
  display: flex; gap: 18px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.s-legend i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid var(--ink);
}

/* Showcase nav */
.showcase-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.showcase-nav .sn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 10px;
  font-family: var(--f-ui);
  font-size: 11px;
  color: var(--ink-soft);
  text-align: left;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.showcase-nav .sn span {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 2px;
}
.showcase-nav .sn.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.showcase-nav .sn.active span { color: var(--accent); }
.showcase-nav .sn.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; background: var(--accent);
  animation: progressBar 5s linear forwards;
}
@keyframes progressBar { from { width: 0 } to { width: 100% } }
.showcase-nav .sn:not(.active):hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Hero grid switch to 1fr/1fr when showcase is there */
.hero-grid {
  grid-template-columns: 1.1fr 1fr !important;
  align-items: start !important;
  gap: clamp(32px, 4vw, 60px) !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Burger button (hidden by default, shown on mobile) */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform .25s, opacity .2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ===== Tablet landscape & small laptops (≤ 1200px) ===== */
@media (max-width: 1200px) {
  :root {
    --title-size: clamp(34px, 4.8vw, 50px);
    --subtitle-size: 24px;
    --body-size: 18px;
    --stat-size: 44px;
    --mono-size: 12px;
  }
  .wrap, .section, .hero, .contact, .footer-inner { padding-left: 32px; padding-right: 32px; }
  .service { grid-template-columns: 4px 72px 48px 1fr 130px; gap: 16px; }
  .service .s-numx { font-size: 56px; }
}

/* ===== Tablet portrait & large phones (≤ 900px) ===== */
@media (max-width: 900px) {
  :root {
    --title-size: clamp(30px, 5.5vw, 42px);
    --subtitle-size: 22px;
    --body-size: 17px;
    --stat-size: 38px;
    --mono-size: 11px;
  }
  .wrap, .section, .hero, .contact, .footer-inner, .nav-inner { padding-left: 24px; padding-right: 24px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .hero { padding-top: 60px; padding-bottom: 60px; }

  /* Nav: hide desktop links, show burger, collapse CTA label */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-burger { display: flex; }
  .nav-inner {
    position: relative;
    grid-template-columns: auto 1fr;
  }
  .nav-inner .wordmark { justify-self: start; grid-column: 1; }
  .nav-cta { grid-column: 2; justify-self: end; }

  /* Hero */
  .hero-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 40px !important; }
  .hero-side { max-width: 100% !important; margin-top: 20px !important; }
  .hero-meta { flex-wrap: wrap; gap: 10px; }

  /* Showcase */
  .showcase-frame { min-height: 360px; padding: 20px; }
  .showcase-nav { grid-template-columns: repeat(2, 1fr); }

  /* Ticker under hero */
  .hero-ticker { grid-template-columns: repeat(2, 1fr); }
  .ticker-cell:nth-child(2) { border-right: 0; }
  .ticker-cell:nth-child(1), .ticker-cell:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .ticker-cell:nth-child(3), .ticker-cell:nth-child(4) { padding-top: 20px; }

  /* Grids → single column */
  .about, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .pillars, .process, .detail-list, .benefits, .about-stats, .footer-cols { grid-template-columns: 1fr; }
  .pillar, .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-left: 0 !important;
    padding-right: 0;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .pillar:last-child, .step:last-child { border-bottom: 0; }

  /* Pillars: número más grande, ícono a la derecha del título */
  .pillar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "num num"
      "title glyph"
      "desc desc";
    column-gap: 14px;
    row-gap: 10px;
    align-items: center;
  }
  .pillar-num { grid-area: num; font-size: 14px; }
  .pillar-title { grid-area: title; }
  .pillar p { grid-area: desc; }
  .pillar-glyph { grid-area: glyph; margin-top: 0; align-self: center; }

  /* Marquee más compacto en mobile */
  .marquee { padding: 14px 0; margin: 8px 0 24px; }
  .marquee-track { font-size: 20px; gap: 32px; padding-left: 32px; }
  .marquee-track .dot { width: 6px; height: 6px; }

  /* Servicios — compact mobile layout (like screenshot):
     Row 1: [ numx (huge) ] [ icon ] .... [ Ver más ]
     Row 2: [ title spanning width ]
     Row 3: [ desc ]
     Row 4: [ chips ] */
  .service,
  .service.open {
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas:
      "numx icon .     cta"
      "title title title title"
      "body  body  body  body"
      "chips chips chips chips";
    column-gap: 12px;
    row-gap: 6px;
    padding: 18px 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    align-items: center;
  }
  .service.open { padding: 16px 14px; margin-left: -14px; margin-right: -14px; border-radius: 8px; }
  .service:hover { padding-left: 0; }
  .service.open:hover { padding-left: 14px; }
  .service .s-rail { display: none; }
  .service .s-dot { display: none; }
  .service .s-numx {
    grid-area: numx;
    font-size: 56px;
    line-height: 0.9;
    padding-top: 0;
    margin: 0;
    font-weight: 300;
    letter-spacing: -0.02em;
  }
  .service .s-icon {
    grid-area: icon;
    margin: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    justify-self: start;
    align-self: start;
    margin-top: 4px;
  }
  .service .s-icon svg { width: 15px; height: 15px; }
  .service .s-body { display: contents; }
  .service .s-title {
    grid-area: title;
    font-size: 22px;
    line-height: 1.1;
    margin: 2px 0 0 0;
    letter-spacing: -0.01em;
  }
  .service .s-desc {
    grid-area: body;
    font-size: 13px;
    line-height: 1.4;
    max-width: none;
    margin: 0;
  }
  .service .s-chips {
    grid-area: chips;
    margin-top: 2px;
    gap: 5px;
    flex-wrap: wrap;
    display: flex;
  }
  .service .s-chip { font-size: 10px; padding: 3px 8px; }
  .service .service-cta {
    grid-area: cta;
    justify-self: end;
    align-self: start;
    margin-top: 6px;
    padding: 7px 14px;
    font-size: 12px;
  }
  .service-detail { grid-area: unset; padding-top: 4px; margin-left: 0; }
  .service.open .service-detail { margin-top: 10px; grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; gap: 14px; padding-top: 14px; margin-top: 10px; }

  /* Functional list & benefits: uniformes en 1 columna */
  .detail-list { border-top: 0; }
  .detail-list li,
  .detail-list li:nth-child(2n) {
    padding: 10px 0;
    border-left: 0;
    border-bottom: 0;
  }
  .benefit { padding: 6px 0; }

  /* Section heads */
  .section-head { grid-template-columns: 1fr; gap: 8px; padding-bottom: 24px; margin-bottom: 24px; }
  .section-head .section-title { font-size: clamp(28px, 7.5vw, 38px); max-width: none; }
  .section-head .section-num { font-size: 10px; }
  .section-head .eyebrow { font-size: 10px; }

  /* About: botón "Agendar demo" full-width */
  .about-copy > .pill {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
  }

  /* Form */
  .field { grid-template-columns: 1fr; padding: 14px 18px; gap: 4px; }
  .field label { font-size: 10px; }

  /* Footer */
  .footer-bottom { grid-template-columns: 1fr; gap: 12px; text-align: left; }
}

/* ===== Phones (≤ 640px) ===== */
@media (max-width: 640px) {
  .wrap, .section, .hero, .contact, .footer-inner, .nav-inner { padding-left: 18px; padding-right: 18px; }
  /* Contact form can use more of the viewport in mobile */
  .contact { padding-left: 4px; padding-right: 4px; }
  .form { border-radius: 12px; }
  .form .field { padding: 16px 18px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: 40px; padding-bottom: 48px; }

  .pill { padding: 10px 16px; font-size: 13px; }
  .pill.accent { padding: 12px 18px; }

  /* Showcase scaled down */
  .showcase, .showcase-frame { max-width: 100%; min-width: 0; }
  .showcase-frame { min-height: 480px; padding: 16px; border-radius: 18px; }
  .showcase-chrome { margin-bottom: 14px; }
  .slide { inset: 52px 0 0 0; padding: 14px 16px; gap: 14px; }
  .s-hdr .s-ttl { font-size: 22px; }

  /* Slide 1: QR + info stack properly */
  .s-scan { padding: 14px !important; gap: 14px !important; grid-template-columns: 80px 1fr !important; }
  .qr { width: 80px !important; height: 80px !important; }
  .scan-info .s-name { font-size: 16px !important; line-height: 1.15 !important; word-break: break-word; overflow-wrap: anywhere; }
  .scan-info .s-sub { font-size: 11px; }
  .s-counter { padding-top: 10px; }
  .s-ck { font-size: 22px; }

  /* Slide 2: chart compact */
  .s-chart { padding: 14px; }
  .bars { min-height: 110px; gap: 4px; }
  .s-kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .s-kpis .kpi { padding: 10px; }
  .s-kpis .kpi strong, .kpi-n { font-size: 18px; }

  /* Slide 3: leads list — allow wrap, no truncation */
  .s-leads li { grid-template-columns: 32px 1fr auto; gap: 10px; padding: 10px 12px; }
  .lead-av { width: 32px; height: 32px; font-size: 11px; }
  .lead-n { font-size: 13px; }
  .lead-c { font-size: 11px; }
  .lead-t { font-size: 10px; padding: 3px 7px; }

  /* Slide 4: map shorter */
  .s-map { min-height: 160px; }

  .showcase-nav .sn { padding: 8px 10px; font-size: 11px; }
  .showcase-nav .sn span { display: none; }

  /* Poem title: give the highlighted <em> breathing room so it doesn't clash with the line above.
     Keep <em> inline so box-decoration-break clones per line (no flat rectangle). */
  .section-title--poem { line-height: 1.55 !important; }
  .section-title--poem em {
    padding: 0.02em 0.18em;
  }

  /* Ticker single column */
  .hero-ticker { grid-template-columns: 1fr; }
  .ticker-cell { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 14px 0 !important; }
  .ticker-cell:last-child { border-bottom: 0; }

  /* Hero headline */

  /* Section titles */
  h2 { font-size: var(--title-size); }

  /* About stats */
  .about-stat .big { font-size: clamp(36px, 9vw, 56px); }

  /* About stats: más compactos + letras más chicas */
  .about-stat { min-height: 110px; padding: 22px 18px; }
  .about-stat .big { font-size: 28px; line-height: 1; }
  .about-stat .lbl { font-size: 10px; margin-top: 8px; }
  .about-stat::before { width: 18px; margin-bottom: 10px; }

  /* Footer centrado en mobile */
  .footer-cols { text-align: center; gap: 32px; padding: 32px 0 20px; }
  .footer-col h5 { margin-bottom: 12px; }
  .footer-col a, .footer-col p { margin-left: auto; margin-right: auto; }
  .footer-bottom { text-align: center !important; justify-items: center; }
  .footer-bot { flex-direction: column; gap: 12px; text-align: center; }

  /* Tweaks panel stays compact */
  .tweaks { right: 12px; left: 12px; bottom: 12px; max-width: none; }
}

/* ===== Small phones (≤ 420px) ===== */
@media (max-width: 420px) {
  :root {
    --title-size: clamp(26px, 7vw, 34px);
    --subtitle-size: 20px;
    --body-size: 15px;
    --stat-size: 32px;
    --mono-size: 10px;
  }
  .wordmark .logo-img { height: 24px; }
  .pill .arrow { display: none; }
  .showcase-frame { min-height: 460px; padding: 14px; }
  .slide { inset: 48px 0 0 0; padding: 12px 14px; gap: 12px; }
  .s-hdr .s-ttl { font-size: 20px; }
  .s-hdr .s-tag { font-size: 9px; }
  .s-badge { font-size: 9px; padding: 4px 8px; }
  .qr { width: 72px; height: 72px; }
  .s-scan { grid-template-columns: 72px 1fr; padding: 12px; gap: 12px; }
  .scan-info .s-name { font-size: 15px; }
  .s-ck { font-size: 20px; }
  .bars { min-height: 100px; }
  .s-map { min-height: 150px; }
}

/* Critical logo sizing — keep specific to avoid cascade issues */
.nav .logo-img { height: 30px !important; width: auto !important; max-width: 160px !important; display: block !important; }
.footer .logo-img-big { max-height: 44px !important; height: auto !important; width: auto !important; max-width: 200px !important; display: block !important; margin: 0 !important; }
body.dark .logo-img, body.dark .logo-img-big { filter: brightness(0) invert(1); }

/* Theme toggle button */
.theme-toggle {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  padding: 0;
}
.theme-toggle:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: translateY(-1px); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-moon { display: none; }
body.dark .theme-toggle .icon-sun { display: none; }
body.dark .theme-toggle .icon-moon { display: block; }
