/* ============================================================
   SYS DIGITAL — Landing v2
   Mobile-first · Light · Cyan gradient · Clean cards
   Breakpoints: sm 641px · md 769px · lg 901px
============================================================ */

:root {
  /* Surfaces */
  --bg: #f7f9fb;
  --bg-pure: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f1f5f7;
  --border: rgba(10, 22, 40, 0.08);
  --border-strong: rgba(10, 22, 40, 0.14);

  /* Text */
  --fg: #0a1a2e;
  --fg-soft: #1c2d44;
  --fg-muted: rgba(10, 22, 40, 0.62);
  --fg-dim: rgba(10, 22, 40, 0.42);
  --fg-on-cyan: #ffffff;
  --fg-on-cyan-muted: rgba(255, 255, 255, 0.78);
  --fg-hero-muted: rgba(10, 22, 40, 0.78);
  --fg-hero-dim: rgba(10, 22, 40, 0.55);

  /* Brand */
  --cyan-deep: #0d9488;
  --cyan: #14b8a6;
  --cyan-bright: #2dd4bf;
  --cyan-soft: #67e8f9;
  --cyan-pale: #a5f3fc;
  --cyan-tint: #ecfeff;

  --wa: #25d366;

  --grad-hero: linear-gradient(125deg, #14d8c2 0%, #2dd4bf 28%, #5fdce0 58%, #9fe9f0 88%, #c5f3f6 100%);
  --grad-hero-radial: radial-gradient(120% 80% at 80% 50%, #c5f3f6 0%, transparent 60%);
  --grad-accent: linear-gradient(120deg, #0d9488 0%, #2dd4bf 50%, #67e8f9 100%);
  --grad-line: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.4), transparent);

  /* Effects */
  --shadow-card: 0 1px 2px rgba(10, 22, 40, 0.04), 0 8px 24px -8px rgba(10, 22, 40, 0.08);
  --shadow-card-hover: 0 1px 2px rgba(10, 22, 40, 0.05), 0 24px 60px -16px rgba(13, 148, 136, 0.18);
  --shadow-soft: 0 4px 24px -4px rgba(10, 22, 40, 0.06);

  /* Radii */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Motion */
  --t-fast: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-base: 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-slow: 600ms cubic-bezier(0.16, 0.84, 0.32, 1);

  /* Fonts */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Type (mobile-first scale) */
  --text-hero: clamp(34px, 7.5vw, 92px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body { min-height: 100vh; }

@media (hover: none) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--cyan-bright); color: var(--fg); }

/* ----------------- Cursor ----------------- */

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--fg);
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(10, 22, 40, 0.35);
  transition: width 250ms ease, height 250ms ease, border-color 250ms ease, background 250ms ease;
}
.cursor-ring.hover {
  width: 64px; height: 64px;
  border-color: var(--cyan-deep);
  background: rgba(13, 148, 136, 0.08);
}
.cursor-ring.on-cyan {
  border-color: rgba(10, 22, 40, 0.4);
}
.cursor-ring.on-cyan.hover {
  border-color: var(--cyan-deep);
  background: rgba(13, 148, 136, 0.1);
}
.cursor-dot.on-cyan { background: var(--fg); mix-blend-mode: difference; }

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ----------------- Layout ----------------- */

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
@media (min-width: 769px) {
  .container { padding: 0 48px; }
}

section { position: relative; padding: 80px 0; z-index: 2; }
@media (min-width: 769px) {
  section { padding: 140px 0; }
}

/* ----------------- Nav ----------------- */

.nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px -8px rgba(10, 22, 40, 0.15);
  width: min(calc(100% - 32px), 1080px);
  transition: padding var(--t-base), box-shadow var(--t-base);
}
.nav.on-cyan {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(10, 22, 40, 0.1);
  color: var(--fg);
  box-shadow: 0 8px 32px -8px rgba(10, 22, 40, 0.14);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-width: 0;
}
.nav-brand-name {
  white-space: nowrap;
  line-height: 1.1;
}
@media (min-width: 401px) {
  .nav-brand { font-size: 15px; }
}
.nav-brand .lg {
  width: 36px; height: 22px;
  display: inline-flex; align-items: center;
}
.nav-brand--logo-only {
  gap: 0;
  color: var(--cyan-deep);
  justify-self: start;
}
.nav-brand--logo-only .nav-brand-name {
  display: none;
}
.nav-brand--logo-only .lg {
  width: 44px;
  height: 28px;
}
@media (min-width: 901px) {
  .nav-brand--logo-only {
    gap: 10px;
  }
  .nav-brand--logo-only .nav-brand-name {
    display: inline;
    color: var(--fg);
  }
  .nav-brand--logo-only .lg {
    width: 36px;
    height: 22px;
  }
}
.nav-brand .lg svg { width: 100%; height: 100%; fill: currentColor; }
.nav-brand .dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan-deep);
  margin-left: 4px;
  animation: pulse 2.4s ease-in-out infinite;
}
.nav.on-cyan .nav-brand .dot { background: var(--cyan-deep); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.4); }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  flex: 1;
  justify-content: center;
  grid-column: 2;
}
.nav-links a {
  position: relative;
  opacity: 0.78;
  transition: opacity var(--t-fast);
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 1.5px;
  background: currentColor;
  transition: right var(--t-base);
}
.nav-links a:hover::after { right: 0; }

.nav-right {
  display: contents;
}

.nav-right .lang-switch {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.nav-right .btn-ghost {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

@media (min-width: 901px) {
  .nav {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding: 10px 12px 10px 22px;
  }
  .nav-brand--logo-only { justify-self: auto; }
  .nav-links {
    display: flex;
    grid-column: auto;
  }
  .nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .nav-right .lang-switch,
  .nav-right .btn-ghost {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
  }
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(10, 22, 40, 0.05);
  border-radius: var(--radius-pill);
  padding: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}
.nav.on-cyan .lang-switch { background: rgba(10, 22, 40, 0.06); }
.lang-switch button {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  opacity: 0.6;
  font-weight: 500;
  transition: opacity var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.lang-switch button.active {
  background: var(--fg);
  color: var(--bg-pure);
  opacity: 1;
}
.nav.on-cyan .lang-switch button.active { background: var(--fg); color: #fff; }

/* ----------------- Buttons ----------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform var(--t-base), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-base), color var(--t-fast);
}
.btn .arr { display: inline-block; transition: transform var(--t-base); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary {
  background: var(--fg);
  color: #fff;
  box-shadow: 0 6px 24px -6px rgba(10, 22, 40, 0.25);
}
.btn-primary:hover { background: var(--cyan-deep); }

.btn-white {
  background: #fff;
  color: var(--fg);
  box-shadow: 0 6px 24px -6px rgba(10, 22, 40, 0.2);
}
.btn-white:hover { background: var(--cyan-deep); color: #fff; }

.btn-ghost {
  background: rgba(10, 22, 40, 0.04);
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(10, 22, 40, 0.08); border-color: var(--border-strong); }

.nav.on-cyan .btn-ghost {
  background: rgba(10, 22, 40, 0.06);
  color: var(--fg);
  border-color: rgba(10, 22, 40, 0.14);
}
.nav.on-cyan .btn-ghost:hover { background: rgba(10, 22, 40, 0.1); border-color: rgba(10, 22, 40, 0.22); }

.btn-outline-white {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn-outline-white:hover { background: #fff; color: var(--cyan-deep); border-color: #fff; }

.hero .btn-outline-white {
  border-color: rgba(10, 22, 40, 0.45);
  color: var(--fg);
}
.hero .btn-outline-white:hover {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}

.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ----------------- Hero ----------------- */

.hero {
  min-height: 100svh;
  max-height: 100svh;
  padding-top: 96px;
  padding-bottom: 56px;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  color: var(--fg);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-hero-radial);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Watermark logo */
.hero-watermark {
  position: absolute;
  right: -40%;
  top: 50%;
  transform: translateY(-50%);
  width: 140%;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
  animation: watermarkDrift 18s ease-in-out infinite;
}
.hero-watermark svg { width: 100%; height: auto; fill: var(--fg); }
@keyframes watermarkDrift {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-52%) scale(1.02); }
}
@media (min-width: 901px) {
  .hero:not(.hero--page) {
    padding-top: 108px;
    padding-bottom: 52px;
  }
  .hero-watermark {
    right: -8%;
    width: 75%;
    max-width: 1200px;
    opacity: 0.18;
  }
}

/* Floating shapes & code */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.fl-parallax {
  position: absolute;
  will-change: transform;
}
.hero-decor--interactive .fl-parallax {
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fl {
  position: relative;
  color: rgba(10, 22, 40, 0.42);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  animation: floatY 8s ease-in-out infinite;
}
.fl svg { width: 28px; height: 28px; stroke: rgba(10, 22, 40, 0.42); fill: none; stroke-width: 1.6; }
@media (min-width: 901px) {
  .fl { color: rgba(10, 22, 40, 0.35); }
  .fl svg { stroke: rgba(10, 22, 40, 0.35); }
}
.fl-parallax.f-1 { top: 12%; left: 8%; }
.fl-parallax.f-2 { top: 18%; left: 38%; }
.fl-parallax.f-2 .fl { animation-delay: -2s; }
.fl-parallax.f-3 { top: 22%; right: 30%; }
.fl-parallax.f-3 .fl { animation-delay: -4s; }
.fl-parallax.f-4 { top: 8%; right: 18%; }
.fl-parallax.f-4 .fl { animation-delay: -1s; font-size: 13px; }
.fl-parallax.f-5 { top: 55%; left: 4%; }
.fl-parallax.f-5 .fl { animation-delay: -3s; }
.fl-parallax.f-6 { top: 40%; left: 30%; }
.fl-parallax.f-6 .fl { animation-delay: -5s; }
.fl-parallax.f-7 { top: 60%; right: 26%; }
.fl-parallax.f-7 .fl { animation-delay: -2.5s; }
.fl-parallax.f-8 { bottom: 22%; left: 14%; }
.fl-parallax.f-8 .fl { animation-delay: -6s; }
.fl-parallax.f-9 { bottom: 28%; right: 12%; }
.fl-parallax.f-9 .fl { animation-delay: -3.5s; }
.fl-parallax.f-9 .fl { font-size: 13px; }
.fl-parallax.f-10 { bottom: 12%; left: 42%; }
.fl-parallax.f-10 .fl { animation-delay: -1.5s; }
.fl-parallax.f-11 { top: 30%; right: 6%; }
.fl-parallax.f-11 .fl { animation-delay: -4.5s; }
.fl-parallax.f-12 { top: 70%; left: 48%; }
.fl-parallax.f-12 .fl { animation-delay: -5.5s; font-size: 13px; }
.fl-parallax.f-13 { top: 14%; right: 42%; }
.fl-parallax.f-13 .fl { animation-delay: -0.8s; }
.fl-parallax.f-14 { bottom: 38%; right: 38%; }
.fl-parallax.f-14 .fl { animation-delay: -2.8s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
}
.hero:not(.hero--page) .hero-inner {
  flex: 0 1 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(10, 22, 40, 0.08);
  border: 1px solid rgba(10, 22, 40, 0.18);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  backdrop-filter: blur(8px);
  margin-bottom: 20px;
}
.hero:not(.hero--page) .hero-eyebrow {
  margin-bottom: 16px;
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan-deep);
  box-shadow: 0 0 8px var(--cyan-deep);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  color: var(--fg);
  max-width: 1100px;
}
.hero:not(.hero--page) .hero-title {
  margin-bottom: 16px;
  line-height: 0.96;
}
.hero-title .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}
.hero-title .word {
  display: inline-block;
  animation: wordRise 1s cubic-bezier(0.16, 0.84, 0.32, 1);
}
.hero-title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--cyan-deep);
  padding-right: 0.05em;
}
@keyframes wordRise {
  0%   { opacity: 0; transform: translateY(102%); }
  20%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-divider {
  width: 80px;
  height: 1.5px;
  background: rgba(10, 22, 40, 0.28);
  margin: 0 0 16px;
}
.hero:not(.hero--page) .hero-divider {
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 100%;
  margin: 0 0 24px;
  font-weight: 500;
}
.hero:not(.hero--page) .hero-sub {
  margin-bottom: 20px;
}
.hero-sub .mono {
  font-family: var(--font-mono);
  color: var(--cyan-deep);
  font-weight: 500;
}
@media (min-width: 769px) {
  .hero-sub {
    font-size: 18px;
    line-height: 1.55;
    color: var(--fg-hero-muted);
    max-width: 480px;
    margin-bottom: 24px;
  }
  .hero:not(.hero--page) .hero-sub {
    font-size: 17px;
    margin-bottom: 22px;
  }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.hero-ctas .btn { justify-content: center; width: 100%; }
@media (min-width: 769px) {
  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    width: auto;
  }
  .hero-ctas .btn { width: auto; }
}

.hero-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: rgba(10, 22, 40, 0.65);
}
.hero-scroll .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.55), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll .line::after {
  content: "";
  position: absolute;
  top: -40px; left: 0;
  width: 100%; height: 40px;
  background: linear-gradient(180deg, transparent, var(--fg), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@media (min-width: 769px) {
  .hero-scroll {
    bottom: 36px;
    font-size: 10px;
    color: var(--fg-hero-dim);
  }
  .hero-scroll .line {
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.45), transparent);
  }
}
@keyframes scrollPulse {
  0% { top: -40px; }
  100% { top: 80px; }
}

/* ----------------- Section common ----------------- */

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.section-tag::before {
  content: "/";
  color: var(--cyan-bright);
  font-weight: 700;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  max-width: 900px;
}
.section-title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--cyan-deep);
}
.section-title em.light {
  color: var(--fg-muted);
}

.section-lead {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 640px;
  line-height: 1.55;
  margin: 0 0 64px;
}

.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ----------------- Marquee ----------------- */

.marquee {
  overflow: hidden;
  padding: 20px 0;
  background: var(--fg);
  color: #fff;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 16s linear infinite;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (min-width: 769px) {
  .marquee-track {
    animation-duration: 28s;
  }
}
.marquee-track > span { display: inline-flex; align-items: center; gap: 48px; flex-shrink: 0; }
.marquee-track .star { color: var(--cyan-bright); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----------------- Stats ----------------- */

.stats {
  padding: 80px 0;
  background: var(--bg-pure);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  width: 100%;
}
.stats-grid > div {
  padding: 28px 20px;
  border-left: 0;
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stats-grid > div:nth-child(-n+2) { border-top: 0; }
@media (min-width: 769px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .stats-grid > div {
    padding: 32px 24px;
    border-top: 0;
    border-left: 1px solid var(--border);
  }
  .stats-grid > div:first-child {
    border-left: 0;
  }
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 10vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: var(--fg);
}
.stat-num .suf { font-size: 28px; color: var(--cyan-deep); font-weight: 500; }
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 14px;
  text-align: center;
  max-width: 16ch;
}

/* ----------------- Services ----------------- */

.services-section {
  background: var(--bg-pure);
  padding-top: 64px;
}
@media (min-width: 769px) {
  .services-section { padding-top: 120px; }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 901px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

.service-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
@media (min-width: 901px) {
  .service-card {
    padding: 40px;
  }
}
@media (hover: hover) {
  .service-card:hover {
    border-color: transparent;
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
  }
  .service-card:hover::before { transform: scaleX(1); }
}

.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--cyan-deep);
  margin-bottom: 22px;
}
.service-title {
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 18px;
  padding-right: 58px;
  color: var(--fg);
}
@media (min-width: 901px) {
  .service-title { padding-right: 64px; }
}
.service-desc {
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0 0 28px;
  font-size: 15.5px;
}
.service-list {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--fg-soft);
}
.service-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--grad-accent);
  flex-shrink: 0;
  transform: rotate(45deg);
}

.service-icon {
  position: absolute;
  top: 24px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cyan-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-base);
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--cyan-deep); fill: none; stroke-width: 1.6; }
@media (min-width: 901px) {
  .service-icon {
    top: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
  .service-icon svg { width: 24px; height: 24px; }
}
@media (hover: hover) {
  .service-card:hover .service-icon { background: var(--cyan-deep); }
  .service-card:hover .service-icon svg { stroke: #fff; }
}

/* ----------------- Portfolio ----------------- */

.portfolio-section { background: var(--bg-pure); padding-top: 56px; }
@media (min-width: 769px) {
  .portfolio-section { padding-top: 80px; }
}

.portfolio-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}
.portfolio-header .section-title {
  font-size: clamp(32px, 9vw, 48px);
  max-width: 100%;
  margin-bottom: 0;
}
@media (min-width: 769px) {
  .portfolio-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 64px;
  }
  .portfolio-header .section-title {
    font-size: clamp(40px, 5vw, 72px);
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
}

.work-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface-soft);
  overflow: hidden;
  aspect-ratio: 16/11;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
@media (min-width: 641px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .work-card { aspect-ratio: 4/5; grid-column: auto; }
}
@media (min-width: 901px) {
  .portfolio-grid { grid-template-columns: repeat(6, 1fr); }
  .work-card.span-3 { grid-column: span 3; aspect-ratio: 16/10; }
  .work-card.span-2 { grid-column: span 2; aspect-ratio: 4/4; }
  .work-card.span-4 { grid-column: span 4; aspect-ratio: 16/8; }
}

@media (hover: hover) {
  .work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
}

.work-thumb { position: absolute; inset: 0; }
.work-thumb.gradient-1 { background: linear-gradient(135deg, #14d8c2 0%, #67e8f9 100%); }
.work-thumb.gradient-2 { background: linear-gradient(135deg, #0a1a2e 0%, #134e4a 50%, #0d9488 100%); }
.work-thumb.gradient-3 { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #f59e0b 100%); }
.work-thumb.gradient-4 { background: linear-gradient(135deg, #fce7f3 0%, #f472b6 100%); }
.work-thumb.gradient-5 { background: linear-gradient(135deg, #e0f2fe 0%, #a5f3fc 50%, #67e8f9 100%); }
.work-thumb.gradient-6 { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #5b21b6 100%); }

.case-list-visual.gradient-1 { background: linear-gradient(135deg, #14d8c2 0%, #67e8f9 100%); }
.case-list-visual.gradient-2 { background: linear-gradient(135deg, #0a1a2e 0%, #134e4a 50%, #0d9488 100%); }
.case-list-visual.gradient-3 { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #f59e0b 100%); }
.case-list-visual.gradient-4 { background: linear-gradient(135deg, #fce7f3 0%, #f472b6 100%); }
.case-list-visual.gradient-5 { background: linear-gradient(135deg, #e0f2fe 0%, #a5f3fc 50%, #67e8f9 100%); }
.case-list-visual.gradient-6 { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #5b21b6 100%); }

.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(255,255,255,0.04) 8px 9px);
}

.work-mock {
  position: absolute;
  inset: 18px 16px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  padding: 8px;
  overflow: hidden;
}
@media (min-width: 641px) {
  .work-mock {
    inset: 28px;
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 10px;
  }
}
.work-thumb.gradient-3 .work-mock,
.work-thumb.gradient-5 .work-mock {
  border-color: rgba(10, 22, 40, 0.35);
  color: rgba(10, 22, 40, 0.55);
}

.work-meta {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}
@media (min-width: 641px) {
  .work-meta { left: 24px; right: 24px; bottom: 22px; gap: 12px; }
}
.work-meta > div:first-child {
  min-width: 0;
  flex: 1;
}
.work-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
  color: #fff;
}
.work-cat {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.78);
}
@media (min-width: 641px) {
  .work-title { font-size: 18px; }
  .work-cat {
    font-size: 10px;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
  }
}
.work-thumb.gradient-3 ~ .work-meta .work-title,
.work-thumb.gradient-5 ~ .work-meta .work-title { color: var(--fg); }
.work-thumb.gradient-3 ~ .work-meta .work-cat,
.work-thumb.gradient-5 ~ .work-meta .work-cat { color: rgba(10, 22, 40, 0.6); }

.work-arrow {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
@media (min-width: 641px) {
  .work-arrow { width: 38px; height: 38px; }
}
@media (hover: hover) {
  .work-card:hover .work-arrow { background: #fff; transform: rotate(-45deg); }
  .work-card:hover .work-arrow svg { stroke: var(--fg); }
}
.work-arrow svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 1.8; }

.work-thumb.gradient-3 ~ .work-meta .work-arrow,
.work-thumb.gradient-5 ~ .work-meta .work-arrow {
  background: rgba(10, 22, 40, 0.08);
  border-color: rgba(10, 22, 40, 0.18);
}
.work-thumb.gradient-3 ~ .work-meta .work-arrow svg,
.work-thumb.gradient-5 ~ .work-meta .work-arrow svg { stroke: var(--fg); }

/* ----------------- Testimonials ----------------- */

.testimonials-section {
  background: linear-gradient(180deg, var(--bg-pure) 0%, var(--cyan-tint) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 901px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.testimonial {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 0;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
@media (min-width: 901px) {
  .testimonial { padding: 40px 36px; min-height: 300px; }
}
@media (hover: hover) {
  .testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
}

.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.4;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  height: 30px;
}
.testimonial p {
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.testimonial .person {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
  font-size: 13px;
}
.person-info .nm { font-size: 15px; font-weight: 500; color: var(--fg); }
.person-info .rl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--fg-dim); margin-top: 2px; }

/* ----------------- FAQ ----------------- */

.faq-section {
  background: var(--cyan-tint);
  scroll-margin-top: 100px;
}

.faq-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 901px) {
  .faq-wrap { grid-template-columns: 1.1fr 2fr; gap: 80px; }
}

.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-bottom: 1px solid rgba(10, 22, 40, 0.1);
  padding: 22px 0;
}
.faq-item:first-child { border-top: 1px solid rgba(10, 22, 40, 0.1); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg);
  transition: color var(--t-fast);
}
@media (min-width: 769px) {
  .faq-q { gap: 24px; font-size: 19px; }
}
@media (hover: hover) {
  .faq-q:hover { color: var(--cyan-deep); }
}

.faq-icon {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-base), transform var(--t-base);
}
.faq-item.open .faq-icon { background: var(--cyan-deep); border-color: var(--cyan-deep); transform: rotate(45deg); }
.faq-icon::before {
  content: ""; position: absolute;
  width: 12px; height: 1.5px;
  background: var(--fg);
  transition: background var(--t-base);
}
.faq-icon::after {
  content: ""; position: absolute;
  width: 1.5px; height: 12px;
  background: var(--fg);
  transition: opacity var(--t-base), background var(--t-base);
}
.faq-item.open .faq-icon::after { opacity: 0; }
.faq-item.open .faq-icon::before { background: #fff; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.6;
  transition: max-height var(--t-slow), padding var(--t-base), opacity var(--t-base);
  opacity: 0;
}
.faq-item.open .faq-a {
  max-height: 320px;
  padding-top: 18px;
  opacity: 1;
}

/* ----------------- Contact ----------------- */

.contact-section {
  background: var(--bg-pure);
  scroll-margin-top: 100px;
}

.contact-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1a2e 0%, #0d2240 60%, #0a1a2e 100%);
  color: #fff;
}
@media (min-width: 901px) {
  .contact-card { padding: 80px; }
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.contact-card-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.contact-card-deco .lg-mark {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  opacity: 0.16;
}
.contact-card-deco .lg-mark svg { width: 100%; fill: #fff; }

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  z-index: 2;
}
@media (min-width: 901px) {
  .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}

.contact-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 24px 0 24px;
  color: #fff;
}
.contact-title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--cyan-bright);
}
.contact-lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 36px;
  max-width: 480px;
}
.contact-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.contact-tag::before {
  content: "/";
  color: #fff;
  font-weight: 700;
}

.contact-channels { display: flex; flex-direction: column; gap: 12px; }
.channel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  transition: background var(--t-fast), transform var(--t-base), border-color var(--t-fast);
  color: #fff;
}
.channel:hover { background: rgba(45, 212, 191, 0.15); border-color: rgba(45, 212, 191, 0.4); transform: translateX(4px); }
.channel-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.channel-icon svg { width: 20px; height: 20px; stroke: var(--cyan-bright); fill: none; stroke-width: 1.7; }
.channel-icon--wa svg.wa-icon {
  width: 22px;
  height: 22px;
  fill: var(--cyan-bright);
  stroke: none;
}
.channel-text { flex: 1; min-width: 0; }
.channel-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); margin-bottom: 4px; }
.channel-value { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.channel-arr { flex-shrink: 0; opacity: 0.85; }

/* ----------------- Footer ----------------- */

.footer {
  background: var(--fg);
  color: #fff;
  padding: 72px 0 28px;
  position: relative;
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  opacity: 0.06;
  pointer-events: none;
}
.footer-watermark svg { width: 100%; fill: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}
@media (min-width: 641px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (min-width: 901px) {
  .footer {
    padding: 100px 0 36px;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
  }
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: #fff; }

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: color var(--t-fast);
}
.footer-link-btn:hover { color: #fff; }

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.footer-bottom-links a,
.footer-bottom-links .footer-link-btn {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom-links a:hover,
.footer-bottom-links .footer-link-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-brand { max-width: 380px; }
.footer-brand .nav-brand { color: #fff; font-size: 16px; }
.footer-brand .nav-brand .dot { background: var(--cyan-bright); }
.footer-brand .tag { color: rgba(255, 255, 255, 0.6); font-size: 14px; line-height: 1.55; margin: 18px 0 0; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  justify-content: flex-start;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 2;
}
@media (min-width: 769px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }
}

/* ----------------- WhatsApp floating ----------------- */

body.has-cookie-ui .wa-float {
  bottom: calc(18px + var(--cookie-banner-offset, 0px));
}
@media (max-width: 768px) {
  body.has-cookie-ui.has-cookie-banner .wa-float {
    --cookie-banner-offset: 120px;
  }
}
body.has-cookie-ui.has-cookie-preferences .wa-float {
  bottom: 18px;
}

.wa-float {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 80;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.55);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--wa);
  opacity: 0.35;
  animation: waPulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0% { transform: scale(0.85); opacity: 0.45; }
  100% { transform: scale(1.35); opacity: 0; }
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .wa-icon {
  width: 30px;
  height: 30px;
  color: #fff;
  display: block;
}

@media (min-width: 769px) {
  .wa-float { bottom: 24px; right: 24px; width: 56px; height: 56px; }
}

/* ----------------- Reveal animations ----------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 0.84, 0.32, 1), transform 0.9s cubic-bezier(0.16, 0.84, 0.32, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

/* ----------------- Utility ----------------- */

.text-cyan { color: var(--cyan-deep); }

/* ----------------- Nav dropdown & mobile menu ----------------- */

.nav-dropdown {
  position: relative;
}
.nav-dropdown--desktop { display: none; }
.nav-services-mobile,
.nav-pages-mobile {
  display: none;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}
.nav-mobile-group-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 6px;
  padding: 0;
}
.nav-mobile-group-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-service-link,
.nav-page-link {
  position: relative;
  display: block;
  opacity: 0.9;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  padding: 11px 0;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-service-link::after,
.nav-page-link::after {
  display: none;
}
.nav-service-link {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.82;
  padding: 9px 0;
}
.nav-service-link:hover,
.nav-page-link:hover {
  opacity: 1;
  color: var(--cyan-deep);
}
.nav-contact-mobile {
  display: none;
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.nav-contact-desktop {
  display: inline-flex;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  opacity: 0.78;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity var(--t-fast);
}
.nav-dropdown-trigger:hover { opacity: 1; }
.nav-dropdown-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t-fast);
}
.nav-dropdown.is-open .nav-dropdown-trigger svg { transform: rotate(180deg); }

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 10px;
  min-width: 240px;
  z-index: 200;
  pointer-events: none;
}
.nav-dropdown-panel-inner {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-hover);
}
.nav-dropdown.is-open .nav-dropdown-panel {
  display: block;
}
.nav-dropdown-panel-inner a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  opacity: 1;
  white-space: nowrap;
}
.nav-dropdown-panel-inner a:hover {
  background: var(--cyan-tint);
  color: var(--cyan-deep);
}

@media (min-width: 901px) {
  .nav-links {
    display: flex !important;
  }
  .nav-dropdown--desktop {
    display: block;
  }
  .nav-services-mobile,
  .nav-contact-mobile {
    display: none !important;
  }
  /* display:contents para que los links de página entren al flex del nav */
  .nav-pages-mobile {
    display: contents !important;
  }
  .nav-pages-mobile .nav-mobile-group-label {
    display: none;
  }
  .nav-pages-mobile .nav-mobile-group-list {
    display: contents;
  }
  .nav-page-link {
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.78;
  }
  .nav-page-link::after {
    display: block;
  }
  .nav-page-link:hover {
    opacity: 1;
  }
  .nav-contact-desktop {
    display: inline-flex;
  }
}

.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: rgba(10, 22, 40, 0.05);
  border-radius: var(--radius-sm);
  cursor: pointer;
  grid-column: 3;
  justify-self: end;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav--open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav-burger span:nth-child(2) { opacity: 0; }
.nav--open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-right .nav-contact-desktop {
    display: none !important;
  }
  .nav.nav--open {
    border-radius: var(--radius-lg);
    align-items: stretch;
    max-height: calc(100svh - 32px);
    overflow-y: auto;
  }
  .nav.nav--open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    grid-column: 1 / -1;
    padding: 4px 0 0;
    width: 100%;
  }
  .nav.nav--open .nav-services-mobile,
  .nav.nav--open .nav-pages-mobile {
    display: flex;
    padding: 12px 0;
  }
  .nav.nav--open .nav-services-mobile {
    padding-top: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  .nav.nav--open .nav-pages-mobile {
    padding-top: 12px;
    padding-bottom: 4px;
  }
  .nav.nav--open .nav-contact-mobile {
    display: inline-flex;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .nav.nav--open .nav-dropdown--desktop {
    display: none;
  }
  .nav.nav--open .nav-right {
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
  }
  .nav.nav--open .nav-right .lang-switch {
    grid-column: auto;
  }
}
@media (min-width: 901px) {
  .nav-burger { display: none; }
}

/* ----------------- Internal pages ----------------- */

.site-main {
  padding-top: 0;
  min-height: 60vh;
}

/* Page hero = same shell as home hero */
.hero--page {
  min-height: auto;
  max-height: none;
  display: block;
  padding-top: 120px;
  padding-bottom: 64px;
}
@media (min-width: 901px) {
  .hero--page {
    padding-top: 150px;
    padding-bottom: 80px;
  }
}
.hero-title--page {
  font-size: clamp(36px, 7vw, 88px);
  max-width: 14ch;
}
.hero-title--light { color: #fff; }
.hero-sub--light { color: rgba(255, 255, 255, 0.88); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-hero-muted);
}
.breadcrumbs a:hover { color: var(--cyan-deep); }
.bc-sep { opacity: 0.4; margin: 0 2px; }
.bc-current { color: var(--fg-soft); }

.page-section {
  padding: 64px 0;
}
@media (min-width: 769px) {
  .page-section { padding: 100px 0; }
}
.page-section--tint {
  background: var(--surface-soft);
}
.page-offerings { padding-top: 64px; }
.page-cta-section { padding-bottom: 80px; }
.page-stats { padding: 48px 0 64px; }
.page-stats .values-row { justify-content: center; }

.offerings-as-services .service-card {
  min-height: 0;
}
.offerings-as-services .service-desc {
  margin-bottom: 0;
}
.offerings-as-services .service-list {
  margin-top: 20px;
}
.offering-tags-list li::before {
  content: "→";
  color: var(--cyan-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  flex-shrink: 0;
}
/* ----------------- Scroll timeline (cómo trabajamos) ----------------- */

.timeline-section {
  padding: 80px 0 100px;
  background: var(--bg-pure);
  border-top: 1px solid var(--border);
}
@media (min-width: 769px) {
  .timeline-section { padding: 120px 0 160px; }
}
.timeline-lead { margin-bottom: 56px; max-width: 640px; }

.timeline-section .section-tag,
.timeline-section .section-title,
.timeline-section .timeline-lead {
  max-width: 900px;
}

.timeline {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
}

.timeline-track {
  position: relative;
}
.timeline-rail {
  position: absolute;
  left: var(--rail-left, 24px);
  top: var(--rail-top, 0);
  height: var(--rail-height, 100%);
  width: 0;
  pointer-events: none;
  transform: translateX(-50%);
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--border);
  border-radius: 2px;
}
.timeline-line-fill {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  transform: translateX(-50%);
  background: var(--grad-accent);
  border-radius: 3px;
  transition: height 0.12s ease-out;
  box-shadow: 0 0 14px rgba(13, 148, 136, 0.4);
}

.timeline-steps {
  display: flex;
  flex-direction: column;
}

.timeline-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px 24px;
  align-items: start;
  min-height: clamp(140px, 22vh, 260px);
  padding: clamp(12px, 3vh, 24px) 0;
}
@media (min-width: 769px) {
  .timeline-step {
    grid-template-columns: 56px 1fr;
    gap: 20px 32px;
    min-height: clamp(160px, 24vh, 280px);
  }
}

.timeline-marker {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-pure);
  border: 2px solid var(--border-strong);
  z-index: 2;
  transition: transform var(--t-base), border-color var(--t-base), background var(--t-base), box-shadow var(--t-base);
}
.timeline-step.is-active .timeline-dot,
.timeline-step.is-past .timeline-dot {
  border-color: var(--cyan-deep);
  background: var(--cyan-bright);
  box-shadow: 0 0 0 6px var(--cyan-tint);
}
.timeline-step.is-active .timeline-dot {
  transform: scale(1.25);
}

.timeline-step-num {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  transition: color var(--t-fast);
}
.timeline-step.is-active .timeline-step-num,
.timeline-step.is-past .timeline-step-num {
  color: var(--cyan-deep);
}

.timeline-body {
  padding-top: 4px;
  opacity: 0.38;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.16, 0.84, 0.32, 1), transform 0.55s cubic-bezier(0.16, 0.84, 0.32, 1);
}
.timeline-step.is-active .timeline-body {
  opacity: 1;
  transform: translateY(0);
}
.timeline-step.is-past .timeline-body {
  opacity: 0.58;
  transform: translateY(0);
}

.timeline-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  line-height: 1.15;
}
.timeline-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 52ch;
}

/* Paso 05 — ciclo iterativo (banner centrado) */
.timeline-dot--loop {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--cyan-deep);
  background: var(--cyan-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-deep);
  box-shadow: 0 0 0 5px var(--cyan-tint);
}
.timeline-dot--loop svg {
  width: 16px;
  height: 16px;
}
.timeline-step--loop.is-active .timeline-dot--loop {
  transform: scale(1.15);
}

.timeline-loop-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-top: 40px;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--cyan-tint) 0%, var(--bg-pure) 100%);
  border: 1px solid rgba(13, 148, 136, 0.2);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 769px) {
  .timeline-loop-banner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 28px;
    padding: 36px 40px;
    margin-top: 48px;
  }
}
.timeline-loop-banner-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  color: var(--cyan-deep);
}
.timeline-loop-banner-icon svg,
.timeline-sync-icon {
  width: 100%;
  height: 100%;
}
.timeline-loop-banner-text {
  flex: 1;
  min-width: 0;
}
.timeline-loop-banner-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--cyan-deep);
  letter-spacing: -0.02em;
}
.timeline-loop-banner-desc {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 42ch;
}
@media (min-width: 769px) {
  .timeline-loop-banner-desc { max-width: none; }
}
.timeline-loop-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
@media (min-width: 769px) {
  .timeline-loop-chips { justify-content: flex-start; }
}
.timeline-loop-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-pure);
  border: 1px solid var(--border);
  color: var(--fg-muted);
}
.timeline-loop-chip--back {
  color: var(--cyan-deep);
  border-color: var(--cyan-deep);
  background: var(--cyan-tint);
  font-weight: 600;
}
.timeline-loop-chip--back::before {
  content: "↺ ";
}

.timeline-loop-banner.is-animating .timeline-loop-svg {
  transform-origin: center;
  animation: timeline-loop-spin 12s linear infinite;
}
.timeline-loop-chip {
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.timeline-loop-chip.is-active {
  border-color: var(--cyan-deep);
  color: var(--cyan-deep);
  background: var(--cyan-tint);
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.timeline-loop-chip.is-done {
  border-color: rgba(13, 148, 136, 0.35);
  color: var(--cyan-deep);
  opacity: 0.72;
}
.timeline-loop-chip--back.is-active {
  animation: timeline-loop-chip-glow 1.1s ease-in-out;
}
.timeline-loop-progress {
  height: 3px;
  margin-top: 14px;
  border-radius: var(--radius-pill);
  background: rgba(13, 148, 136, 0.12);
  overflow: hidden;
}
.timeline-loop-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan-bright));
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes timeline-loop-spin {
  to { transform: rotate(360deg); }
}
@keyframes timeline-loop-chip-glow {
  0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.35); }
  70% { box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

/* ----------------- Team ----------------- */

.team-section {
  padding: 80px 0;
  background: var(--bg-pure);
  border-top: 1px solid var(--border);
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}
@media (min-width: 641px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
.team-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: #faf8f5;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
@media (min-width: 769px) {
  .team-card { text-align: left; padding: 36px 32px; }
}
@media (hover: hover) {
  .team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
  }
}
.team-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 769px) {
  .team-avatar { margin: 0 0 20px; }
}
.team-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.team-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.team-roles li {
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg-muted);
  padding-left: 0;
}
.team-roles li::before {
  content: "· ";
  color: var(--cyan-deep);
  font-weight: 700;
}

/* ----------------- Page themes (identidad por sección) ----------------- */

/* Servicios — cyan (default) */
.hero--service { background: var(--grad-hero); }

/* Casos — mismo fondo que el home (gradiente cyan + superficie clara) */
.page-cases,
.site-main--cases {
  background: var(--bg);
}
.page-cases .cases-index-section {
  background: var(--bg);
}

/* Carreras — estética tipo casos: hero oscuro compacto + cuerpo claro */

/* Nosotros — editorial cálido */
.hero--about {
  background: linear-gradient(180deg, #faf8f5 0%, #f3efe8 100%);
  color: var(--fg);
}
.hero--about .hero-watermark { opacity: 0.06; }
.hero--about .hero-divider { background: var(--border-strong); }

.about-editorial {
  padding: 72px 0 48px;
  background: #faf8f5;
}
.about-editorial .section-title {
  margin-bottom: 40px;
}
.about-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
@media (min-width: 641px) {
  .about-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 901px) {
  .about-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
.about-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
@media (min-width: 901px) {
  .about-card { padding: 32px 28px; }
}
@media (hover: hover) {
  .about-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
  }
}
.about-card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--cyan-deep);
  margin-bottom: 18px;
}
.about-card-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--fg);
}
.about-card-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-muted);
}
.about-values-band {
  padding: 56px 0 80px;
  background: var(--bg-pure);
  border-top: 1px solid var(--border);
}
.about-values-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin: 0 0 24px;
  text-align: center;
}

/* Caso individual — narrativa */
.case-story-section {
  padding: 80px 0;
  background: var(--bg-pure);
}
.case-story {
  display: grid;
  gap: 24px;
  max-width: 900px;
}
@media (min-width: 769px) {
  .case-story { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.case-story-block {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-soft);
}
.case-story-block--accent {
  background: var(--cyan-tint);
  border-color: rgba(13, 148, 136, 0.2);
}
.case-story-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 16px;
}
.case-story-block p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-soft);
}
.case-results-section {
  padding: 64px 0 100px;
  background: var(--fg);
  color: #fff;
}
.case-results-section .section-title {
  color: #fff;
  margin-bottom: 40px;
}
.case-results-section .section-title em { color: var(--cyan-bright); }
.case-results-section .case-results li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

/* Carreras — hero oscuro + secciones claras (como casos) */
.page-careers,
.site-main--careers {
  background: var(--bg);
}
.hero--careers {
  background: var(--fg);
  color: #fff;
  min-height: auto;
  padding-bottom: 56px;
}
.hero--careers::before,
.hero--careers::after {
  opacity: 0.35;
}
.hero--careers .hero-watermark {
  opacity: 0.08;
}
.hero--careers .hero-watermark svg { fill: #fff; }
.hero--careers .hero-eyebrow,
.hero--careers .hero-title,
.hero--careers .hero-sub,
.hero--careers .breadcrumbs { color: inherit; }
.hero--careers .hero-eyebrow .pulse { background: var(--cyan-bright); }
.hero--careers .hero-divider {
  background: linear-gradient(90deg, var(--cyan-bright), transparent);
  height: 2px;
}
.hero--careers .breadcrumbs a:hover { color: var(--cyan-bright); }
.hero--careers .bc-current { color: rgba(255, 255, 255, 0.7); }
.hero--careers .hero-ctas {
  flex-wrap: wrap;
  margin-top: 8px;
}

.careers-perks {
  padding: 64px 0;
  background: var(--bg);
}
.careers-perks-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 769px) {
  .careers-perks-grid { grid-template-columns: repeat(3, 1fr); }
}
.careers-perk {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-pure);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.careers-perk-icon {
  display: block;
  font-size: 18px;
  color: var(--cyan-deep);
  margin-bottom: 16px;
}
.careers-perk h3 {
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--fg);
}
.careers-perk p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
}

.careers-apply-banner {
  padding: 56px 0;
  background: var(--fg);
  color: #fff;
}
.careers-apply-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
@media (min-width: 769px) {
  .careers-apply-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }
}
.careers-apply-inner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.careers-apply-inner h2 em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--cyan-bright);
}
.careers-apply-inner p {
  margin: 0;
  max-width: 42ch;
  opacity: 0.8;
  line-height: 1.55;
}

.careers-steps {
  padding: 72px 0;
  background: var(--bg-pure);
  overflow: hidden;
}
.careers-steps-title {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 40px;
  color: var(--fg);
  text-align: center;
}
@media (min-width: 769px) {
  .careers-steps-title {
    margin-bottom: 48px;
  }
}

.careers-process-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -24px;
  padding: 0 24px 8px;
}
.careers-process-scroll::-webkit-scrollbar {
  display: none;
}
@media (min-width: 769px) {
  .careers-process-scroll {
    overflow: visible;
    margin: 0;
    padding: 0;
  }
}

.careers-process-track {
  position: relative;
  min-width: 100%;
  padding-top: 4px;
}
@media (min-width: 769px) {
  .careers-process-track {
    padding-top: 8px;
  }
}

.careers-process-line {
  position: absolute;
  top: 22px;
  left: 40px;
  right: 40px;
  height: 2px;
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 769px) {
  .careers-process-line {
    top: 24px;
    left: 12%;
    right: 12%;
  }
}
.careers-process-line-dash {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(10, 22, 40, 0.22) 0,
    rgba(10, 22, 40, 0.22) 6px,
    transparent 6px,
    transparent 12px
  );
}
.careers-process-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--cyan-deep);
  border-radius: 1px;
  opacity: 0.9;
  will-change: width;
}

.careers-process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
  min-width: min(100%, 560px);
}
@media (min-width: 769px) {
  .careers-process-steps {
    min-width: 100%;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .careers-process-steps {
    min-width: 720px;
    justify-content: flex-start;
    gap: 28px;
    padding-right: 24px;
  }
}

.careers-process-step {
  --focus: 0;
  --reach: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
@media (max-width: 768px) {
  .careers-process-step {
    flex: 0 0 150px;
  }
}

.careers-process-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(10, 22, 40, 0.14);
  background: var(--bg-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-dim);
  flex-shrink: 0;
  transform: scale(calc(0.96 + var(--focus) * 0.06));
  opacity: calc(0.55 + var(--focus) * 0.45);
  border-color: rgba(10, 22, 40, calc(0.18 - var(--reach) * 0.1));
  box-shadow: 0 0 0 calc(var(--focus) * 5px) rgba(45, 212, 191, calc(var(--focus) * 0.35));
  background: color-mix(
    in srgb,
    var(--bg-pure) calc((1 - var(--focus)) * 100%),
    var(--cyan-deep) calc(var(--focus) * 100%)
  );
  color: color-mix(
    in srgb,
    var(--fg-dim) calc((1 - var(--focus)) * 100%),
    #fff calc(var(--focus) * 100%)
  );
}

.careers-process-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 18ch;
  opacity: calc(0.72 + var(--focus) * 0.28);
  transform: translateY(calc((1 - var(--focus)) * 4px));
}
@media (min-width: 769px) {
  .careers-process-text {
    font-size: 15px;
    max-width: 22ch;
  }
}

.careers-roles {
  padding: 80px 0 120px;
  background: var(--bg);
}
.careers-roles-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 40px;
  color: var(--fg);
}
.careers-roles-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 769px) {
  .careers-roles-grid { grid-template-columns: repeat(2, 1fr); }
}
.careers-role-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-pure);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
@media (hover: hover) {
  .careers-role-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(13, 148, 136, 0.25);
  }
}
.careers-role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.careers-role-meta span:first-child {
  color: var(--cyan-deep);
  background: var(--cyan-tint);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.careers-role-meta span:last-child {
  color: var(--fg-muted);
}
.careers-role-card h3 {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--fg);
}
.careers-role-card p {
  flex: 1;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-muted);
}
.careers-role-card .btn-sm {
  align-self: flex-start;
}

.values-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.value-pill {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg-pure);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}

.careers-process {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 560px;
}
.careers-process li {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--bg-pure);
  border: 1px solid var(--border);
  font-size: 15px;
  counter-increment: step;
  position: relative;
  padding-left: 48px;
}
.careers-process { counter-reset: step; }
.careers-process li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-deep);
  font-weight: 600;
}

.roles-list {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
@media (min-width: 769px) {
  .roles-list { grid-template-columns: repeat(2, 1fr); }
}
.role-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}
.role-type {
  color: var(--cyan-deep);
  background: var(--cyan-tint);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.role-title { font-size: 20px; margin: 0 0 10px; }
.role-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.6; margin: 0 0 20px; }

.cases-index-section {
  padding: 48px 0 100px;
  background: var(--bg);
}
@media (min-width: 769px) {
  .cases-index-section {
    padding: 64px 0 140px;
  }
}
.cases-index-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 28px;
}

/* Listado completo de casos (página casos.html) */
.cases-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case-list-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-pure);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
@media (min-width: 769px) {
  .case-list-card {
    grid-template-columns: minmax(200px, 36%) 1fr;
    min-height: 200px;
  }
}
@media (hover: hover) {
  .case-list-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
  }
}
.case-list-visual {
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
@media (min-width: 769px) {
  .case-list-visual { min-height: 100%; }
}
.case-list-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 8px, rgba(255,255,255,0.05) 8px 9px);
}
.case-list-visual-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  max-width: 16ch;
  line-height: 1.35;
}
.case-list-visual.gradient-3 .case-list-visual-label,
.case-list-visual.gradient-5 .case-list-visual-label {
  color: rgba(10, 22, 40, 0.55);
}
.case-list-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 22px;
  gap: 8px;
}
@media (min-width: 769px) {
  .case-list-body { padding: 32px 36px; }
}
.case-list-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}
.case-list-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
.case-list-summary {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-muted);
  flex: 1;
}
.case-list-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cyan-deep);
}
.case-list-card:hover .case-list-cta .arr {
  transform: translate(3px, -3px);
}
.case-list-cta .arr {
  transition: transform var(--t-fast);
}

/* Mosaico solo en home */
.portfolio-grid--featured {
  width: 100%;
}

.case-hero-full.gradient-1 { background: linear-gradient(135deg, #14d8c2 0%, #67e8f9 100%); }
.case-hero-full.gradient-2 { background: linear-gradient(135deg, #0a1a2e 0%, #134e4a 50%, #0d9488 100%); }
.case-hero-full.gradient-3 { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #f59e0b 100%); color: var(--fg); }
.case-hero-full.gradient-3 .hero-title--light,
.case-hero-full.gradient-3 .hero-sub--light { color: var(--fg); }
.case-hero-full.gradient-4 { background: linear-gradient(135deg, #fce7f3 0%, #f472b6 100%); }
.case-hero-full.gradient-5 { background: linear-gradient(135deg, #e0f2fe 0%, #a5f3fc 50%, #67e8f9 100%); color: var(--fg); }
.case-hero-full.gradient-5 .hero-title--light,
.case-hero-full.gradient-5 .hero-sub--light { color: var(--fg-soft); }
.case-hero-full.gradient-6 { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #5b21b6 100%); }

.case-hero-full {
  position: relative;
  padding: 120px 0 72px;
  overflow: hidden;
  color: #fff;
}
.case-hero-full .hero-watermark {
  opacity: 0.14;
  right: -20%;
}
.case-hero-full .hero-watermark svg { fill: #fff; }
.case-hero-full-inner {
  position: relative;
  z-index: 2;
}
.case-hero-full .breadcrumbs { color: rgba(255, 255, 255, 0.65); }
.case-hero-full .breadcrumbs a:hover { color: #fff; }
.case-hero-full .hero-eyebrow { color: rgba(255, 255, 255, 0.9); }
.case-hero-full .pulse { background: #fff; }

.case-content {
  display: grid;
  gap: 14px;
}
@media (min-width: 901px) {
  .case-content {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .case-results-block { grid-column: 1 / -1; }
}
.case-block-card { min-height: 0; }
.case-results {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
@media (min-width: 641px) {
  .case-results { grid-template-columns: repeat(3, 1fr); }
}
.case-results li {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: var(--shadow-card);
}

/* Linked cards on home */
.service-card-wrap,
.work-card-wrap {
  display: block;
  height: 100%;
}
.service-card--link,
.work-card-wrap > .work-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}
.work-card-wrap > .work-card {
  display: grid;
}
@media (hover: hover) {
  .service-card--link:hover,
  .work-card-wrap > .work-card:hover {
    transform: translateY(-6px);
  }
}
.service-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan-deep);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.service-card--link:hover .service-more { opacity: 1; }

/* ----------------- Contact page (igual que home: tarjeta oscura) ----------------- */

.site-main--contact,
.page-contact {
  background: var(--bg);
}

.page-contact-main {
  padding: 108px 0 80px;
  background: var(--bg);
  scroll-margin-top: 100px;
}
@media (min-width: 901px) {
  .page-contact-main {
    padding: 132px 0 100px;
  }
}

.contact-card--page {
  padding: 32px 22px;
}
@media (min-width: 901px) {
  .contact-card--page {
    padding: 56px 64px;
  }
}
.contact-card--page .contact-card-deco .lg-mark {
  right: -8%;
  width: 55%;
  opacity: 0.14;
}

.contact-grid--page {
  align-items: start;
  gap: 36px;
}
@media (min-width: 901px) {
  .contact-grid--page {
    grid-template-columns: 1fr 1.12fr;
    gap: 56px;
    align-items: center;
  }
}

.contact-page-form {
  position: relative;
  z-index: 2;
}

.contact-page-aside {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.contact-page-aside .contact-lead {
  margin-bottom: 16px;
}
.contact-page-note {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}
.contact-page-aside .contact-channels {
  margin-top: auto;
}

@media (max-width: 900px) {
  .contact-grid--page {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .contact-page-aside .contact-title {
    font-size: clamp(32px, 8vw, 44px);
  }
  .contact-page-aside .contact-channels {
    margin-top: 8px;
  }
}
.contact-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-form-steps {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  max-width: 280px;
}
.contact-form-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.contact-form-steps {
  gap: 28px;
}
.contact-form-step-dot:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  width: 20px;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
}
.contact-form-step-dot.is-done:not(:last-child)::after {
  background: rgba(45, 212, 191, 0.45);
}
.contact-form-step-dot.is-active {
  background: var(--cyan-deep);
  border-color: var(--cyan-deep);
  color: #fff;
}
.contact-form-step-dot.is-done {
  border-color: rgba(45, 212, 191, 0.5);
  color: var(--cyan-bright);
}
.contact-form-step-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}
.contact-form-step-panel[hidden] {
  display: none !important;
}
.contact-form-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.contact-form-sub {
  margin: 0 0 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  max-width: 36ch;
}
.contact-page-form .contact-form-title {
  font-size: clamp(20px, 2.5vw, 26px);
}
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.contact-form-grid--fields {
  gap: 14px;
}
@media (min-width: 641px) {
  .contact-form-grid--fields {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-field--full {
  grid-column: 1 / -1;
}
.contact-field span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--cyan-deep);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}
.contact-field select {
  appearance: none;
  cursor: pointer;
}
.contact-field textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.contact-form-back {
  flex-shrink: 0;
}
.contact-form-next {
  width: 100%;
  justify-content: center;
  margin-left: auto;
}
.contact-form-actions:has(.contact-form-back) .contact-form-next {
  width: auto;
  flex: 1;
  min-width: 140px;
}
@media (min-width: 641px) {
  .contact-form-next {
    width: auto;
    flex: 0 1 auto;
    margin-left: auto;
  }
}
.contact-form-success {
  text-align: center;
  padding: 24px 8px;
}
.contact-form-success-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #fff;
}
.contact-form-success-text {
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 24px;
  line-height: 1.5;
}
.contact-form-error {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  font-size: 14px;
  line-height: 1.45;
}
.contact-field-honey {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.contact-form-next:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.role-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

/* ----------------- Cookie consent ----------------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
}
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 901px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}
.cookie-banner-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.cookie-banner-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 62ch;
}
.cookie-banner-desc a {
  color: var(--cyan-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn-config {
  border: 1px solid var(--border);
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}
.cookie-panel {
  width: 100%;
  max-width: 480px;
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-pure);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.cookie-panel-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
}
.cookie-panel-lead {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-soft);
}
.cookie-pref-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-pref-item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
}
.cookie-pref-item.is-locked {
  opacity: 0.92;
}
.cookie-pref-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.cookie-pref-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
}
.cookie-pref-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}
.cookie-pref-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-muted);
}
.cookie-pref-head input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan-deep);
  cursor: pointer;
}
.cookie-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-panel-foot {
  margin: 16px 0 0;
  font-size: 13px;
}
.cookie-panel-foot a {
  color: var(--cyan-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----------------- Legal / terms page ----------------- */

.site-main--terms,
.page-legal {
  background: var(--bg-pure);
}
.legal-section {
  padding: 48px 0 100px;
}
@media (min-width: 769px) {
  .legal-section { padding: 64px 0 120px; }
}
.legal-layout {
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 220px 1fr;
    gap: 64px;
    align-items: start;
  }
}
.legal-toc {
  position: sticky;
  top: 100px;
}
.legal-toc-label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.legal-toc nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-toc a {
  font-size: 13px;
  line-height: 1.4;
  color: var(--fg-soft);
  transition: color var(--t-fast);
}
.legal-toc a:hover {
  color: var(--cyan-deep);
}
.legal-updated {
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  line-height: 1.5;
}
.legal-prose {
  max-width: 68ch;
}
.legal-block {
  scroll-margin-top: 108px;
  margin-bottom: 40px;
}
.legal-block-title {
  margin: 0 0 14px;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.legal-block p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-soft);
}
.legal-cookie-list {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
}
.legal-cookie-list dt {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  margin-top: 12px;
}
.legal-cookie-list dt:first-child { margin-top: 0; }
.legal-cookie-list dd {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-soft);
}
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
