/* ===============================================
   KREIA - NUEVO DISEÑO AUDAZ Y VISUAL
   =============================================== */

:root {
  --bg: #070707;
  --bg-soft: #10100f;
  --bg-panel: #171512;
  --text: #f7f3ed;
  --muted: #a89f96;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 111, 0, 0.48);
  --orange: #FF6F00;
  --orange-bright: #FF6F00;
  --orange-dark: #FF6F00;
  --cream: #fff4e8;
  --graphite: #23201c;
  --success: #8ff2bd;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 50px 150px rgba(0, 0, 0, 0.56);
  --max: 1280px;
  --page-gutter: clamp(20px, 4vw, 64px);
  --block-x: clamp(22px, 3.2vw, 56px);
  --section-y: clamp(76px, 8vw, 124px);
  --section-y-compact: clamp(56px, 6vw, 88px);
  --hero-y: clamp(64px, 7vw, 96px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 111, 0, 0.18), transparent 35rem),
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.08), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 16px;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p, h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}

p {
  color: var(--muted);
}

h1, h2, h3 {
  color: var(--text);
}

/* ============ HEADER & NAVIGATION ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 7, 0.85);
  backdrop-filter: blur(20px);
  transition: all 300ms ease;
}

.nav {
  width: min(100% - 40px, var(--max));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: -0.8px;
  font-size: 1.28rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(50%) sepia(98%) saturate(3271%) hue-rotate(2deg) brightness(105%) contrast(103%) drop-shadow(0 0 16px rgba(255, 111, 0, 0.52));
}

.brand-word {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  transition: color 200ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--orange-bright);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  transition: width 220ms ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: all 200ms ease;
}

.menu-toggle:hover {
  border-color: var(--orange);
  background: rgba(255, 111, 0, 0.1);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
  transition: all 300ms ease;
}

/* ============ BUTTONS ============ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: -0.4px;
  cursor: pointer;
  transition: all 200ms ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.button:hover {
  transform: translateY(-3px);
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.32), transparent);
  transform: translateX(-120%);
  transition: transform 480ms ease;
}

.button:hover::before {
  transform: translateX(120%);
}

.button.primary {
  background: var(--orange);
  color: #160a02;
  box-shadow: 0 16px 48px rgba(255, 111, 0, 0.32);
  font-weight: 950;
}

.button.primary:hover {
  background: var(--orange-bright);
  box-shadow: 0 20px 60px rgba(255, 111, 0, 0.48);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--line);
  color: var(--text);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--orange);
}

.button.text-link {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  color: var(--orange-bright);
  font-weight: 700;
  text-transform: none;
  font-size: 0.96rem;
}

.button.magnetic {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ============ SECTIONS ============ */

.section, .hero, .page-hero {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0 60px;
}

.hero > * {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -2px;
  font-weight: 950;
  margin-bottom: 28px;
  font-family: var(--font);
}

.hero h1 strong {
  background: linear-gradient(135deg, var(--orange), var(--orange-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 950;
}

.hero p {
  font-size: 1.18rem;
  line-height: 1.75;
  max-width: 680px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.signal {
  min-height: 110px;
  padding: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.08), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(16px);
  transition: all 250ms ease;
}

.signal:hover {
  border-color: var(--orange);
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.14), rgba(255, 255, 255, 0.06));
}

.signal strong {
  display: block;
  font-size: 1.64rem;
  color: var(--orange-bright);
  margin-bottom: 8px;
}

.signal span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ============ HERO VISUAL ============ */

.hero-visual {
  position: relative;
  min-height: 680px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 65% 35%, rgba(255, 111, 0, 0.16), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    var(--bg-panel);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: floatHero 6s ease-in-out infinite;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

.orbit-symbol {
  position: absolute;
  width: 140px;
  top: 40px;
  right: 40px;
  opacity: 0.95;
  filter: brightness(0) saturate(100%) invert(50%) sepia(98%) saturate(3271%) hue-rotate(2deg) brightness(105%) contrast(103%) drop-shadow(0 12px 40px rgba(255, 111, 0, 0.54));
  animation: spinSlow 18s linear infinite;
}

.workflow-board {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  display: grid;
  gap: 12px;
}

.board-top {
  position: absolute;
  top: 32px;
  left: 32px;
  right: 160px;
  display: grid;
  gap: 12px;
}

.board-title {
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -1px;
}

.board-title span {
  color: var(--orange);
}

.pipeline {
  display: grid;
  gap: 10px;
}

.pipeline-step {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  transition: all 200ms ease;
}

.pipeline-step:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--orange);
}

.step-dot {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 111, 0, 0.18);
  border: 1px solid rgba(255, 111, 0, 0.4);
  color: var(--orange);
  font-weight: 950;
  font-size: 1.1rem;
}

.step-label {
  font-weight: 800;
  color: var(--text);
}

.step-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.status {
  color: var(--success);
  font-weight: 850;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.floating-metrics {
  position: absolute;
  top: 280px;
  left: 32px;
  right: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.metric-card strong {
  display: block;
  font-size: 2rem;
  color: var(--orange-bright);
  line-height: 1;
  margin-bottom: 6px;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ============ CONTENT SECTIONS ============ */

.section {
  padding: 100px 0;
}

.section.compact {
  padding: 70px 0;
}

.section.dark-band {
  width: min(100% - 40px, calc(var(--max) + 100px));
  margin: 120px auto;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 111, 0, 0.12), transparent 35rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    var(--bg-soft);
  padding: 100px 0;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.3);
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 60px;
}

.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -1px;
  font-weight: 950;
  margin-bottom: 0;
}

.section-head p {
  font-size: 1.04rem;
  margin-bottom: 0;
}

.page-hero {
  padding: 100px 0 50px;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.page-hero p {
  max-width: 700px;
  font-size: 1.12rem;
  line-height: 1.8;
}

/* ============ CARDS & GRID ============ */

.grid {
  display: grid;
  gap: 20px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(18px);
  transition: all 280ms ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 111, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.3);
}

.card h3 {
  font-size: 1.48rem;
  line-height: 1.3;
  margin-bottom: 14px;
  font-weight: 850;
}

.card p {
  margin-bottom: 0;
  line-height: 1.7;
}

.card-number {
  display: inline-block;
  font-size: 4rem;
  font-weight: 950;
  color: rgba(255, 111, 0, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.service-kicker {
  display: inline-block;
  color: var(--orange-bright);
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

/* ============ SERVICE LAB ============ */

.service-lab {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  align-items: stretch;
}

.service-tabs {
  display: grid;
  gap: 14px;
}

.service-tab {
  min-height: 140px;
  padding: 22px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  cursor: pointer;
  transition: all 240ms ease;
  position: relative;
  overflow: hidden;
}

.service-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--orange);
  transform: scaleY(0);
  transition: transform 240ms ease;
}

.service-tab:hover,
.service-tab.is-active {
  transform: translateX(8px);
  border-color: rgba(255, 111, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.2), rgba(255, 255, 255, 0.05));
  box-shadow: 0 16px 60px rgba(255, 111, 0, 0.1);
}

.service-tab.is-active::before {
  transform: scaleY(1);
}

.service-tab.featured {
  min-height: 180px;
  border-color: rgba(255, 111, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.2), rgba(255, 255, 255, 0.05));
}

.service-tab span {
  display: block;
  color: var(--orange-bright);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.service-tab strong {
  display: block;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1.1;
  color: var(--text);
  font-weight: 850;
}

.service-tab small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.service-reveal {
  position: relative;
  min-height: 540px;
  padding: 50px;
  border: 1.5px solid rgba(255, 111, 0, 0.4);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 111, 0, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    var(--bg-panel);
  backdrop-filter: blur(24px);
  overflow: hidden;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-reveal::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 111, 0, 0.3), transparent 70%);
  pointer-events: none;
}

.service-reveal.is-switching {
  animation: switchReveal 300ms ease;
}

.service-reveal h3 {
  position: relative;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 18px;
  max-width: 680px;
}

.service-reveal > p {
  position: relative;
  max-width: 680px;
  font-size: 1.06rem;
}

.service-reveal-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.reveal-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 40px 0;
}

.reveal-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.reveal-grid strong {
  display: block;
  color: var(--orange-bright);
  font-weight: 850;
  margin-bottom: 8px;
}

/* ============ PROCESS ============ */

.process {
  display: grid;
  gap: 14px;
  counter-reset: process;
}

.process-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  transition: all 240ms ease;
}

.process-item:hover {
  border-color: rgba(255, 111, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.process-item::before {
  counter-increment: process;
  content: counter(process, decimal-leading-zero);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-bright));
  color: #160a02;
  font-weight: 950;
  font-size: 1.6rem;
}

.process-item h3 {
  font-size: 1.32rem;
  font-weight: 850;
  margin-bottom: 8px;
}

.process-item p {
  margin: 0;
  line-height: 1.7;
}

/* ============ CTA PANEL ============ */

.cta-panel {
  width: min(100% - 40px, var(--max));
  margin: 0 auto 120px;
  padding: 64px;
  border: 1.5px solid rgba(255, 111, 0, 0.3);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 111, 0, 0.2), transparent 30rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    var(--bg-soft);
  text-align: center;
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.35);
  transition: all 300ms ease;
}

.cta-panel:hover {
  border-color: rgba(255, 111, 0, 0.5);
  box-shadow: 0 50px 160px rgba(255, 111, 0, 0.1);
}

.cta-panel h2 {
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-panel p {
  max-width: 700px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
}

.section-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.section-end-cta {
  max-width: 920px;
  margin: 30px auto 0;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: center;
  border: 1px solid rgba(216, 216, 210, 0.14);
  border-left: 3px solid rgba(255, 111, 0, 0.72);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.section-end-cta h3 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.25;
  font-weight: 850;
}

.section-end-cta p {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.section-end-cta .service-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
  font-size: 0.68rem;
}

.section-end-cta .section-actions {
  grid-column: 2;
  grid-row: 2 / span 2;
  margin-top: 0;
  justify-content: flex-end;
}

/* ============ SYSTEM SCULPTURE ============ */

.system-sculpture {
  position: relative;
  min-height: 560px;
  border: 1.5px solid rgba(255, 111, 0, 0.3);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 111, 0, 0.14), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    var(--bg-panel);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.system-sculpture img {
  position: absolute;
  width: 200px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: brightness(0) saturate(100%) invert(50%) sepia(98%) saturate(3271%) hue-rotate(2deg) brightness(105%) contrast(103%) drop-shadow(0 0 50px rgba(255, 111, 0, 0.5));
  animation: spinSlow 20s linear infinite;
}

.system-core, .system-node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 100px;
  min-height: 46px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  font-weight: 900;
  font-size: 0.96rem;
}

.system-core {
  left: 50%;
  top: 50%;
  transform: translate(-50%, 100px);
  color: #160a02;
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 12px 40px rgba(255, 111, 0, 0.3);
}

.node-a { left: 12%; top: 22%; }
.node-b { right: 10%; top: 26%; }
.node-c { left: 16%; bottom: 20%; }
.node-d { right: 8%; bottom: 24%; }

/* ============ ARTICLES & BLOG ============ */

.article-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  transition: all 280ms ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.article-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 111, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.3);
}

.article-meta {
  display: inline-block;
  color: var(--orange-bright);
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.article-card h3 {
  font-size: 1.44rem;
  line-height: 1.3;
  margin-bottom: 12px;
  font-weight: 850;
}

.article-card p {
  margin: 0;
  line-height: 1.7;
}

/* ============ FORMS ============ */

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 200ms ease;
}

.chip:hover {
  border-color: var(--orange);
  background: rgba(255, 111, 0, 0.12);
}

.service-hero-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.demo-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 850;
  font-size: 0.98rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  transition: all 200ms ease;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.15);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

/* ============ FAQ ============ */

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
  user-select: none;
  transition: all 200ms ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.faq-item p {
  padding: 0 20px 20px;
  margin: 0;
  border-top: 1px solid var(--line);
  animation: expandFaq 200ms ease;
}

@keyframes expandFaq {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============ LEGAL + COOKIE CONSENT ============ */

.legal-page {
  max-width: 980px;
}

.legal-page h2 {
  margin-top: 38px;
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.legal-page h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-page ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.legal-note {
  padding: 18px;
  border: 1px solid rgba(255, 111, 0, 0.42);
  border-radius: 6px;
  background: rgba(255, 111, 0, 0.08);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.legal-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--orange) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.legal-table-scroll:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.legal-table-scroll .legal-table {
  min-width: 620px;
}

.legal-table-scroll.is-wide .legal-table {
  min-width: 760px;
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  padding: 16px;
  pointer-events: none;
}

.cookie-consent.is-visible {
  display: block;
}

.cookie-card {
  width: min(100%, 1040px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 20px;
  border: 1px solid rgba(216, 216, 210, 0.18);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.96);
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.cookie-summary h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.cookie-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.cookie-summary a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--orange-bright);
  font-weight: 800;
}

.cookie-options {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.cookie-options[hidden] {
  display: none;
}

.cookie-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.cookie-toggle strong,
.cookie-toggle small {
  display: block;
}

.cookie-toggle small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.45;
}

.cookie-toggle input {
  width: 22px;
  height: 22px;
  accent-color: var(--orange);
}

.cookie-toggle.is-disabled {
  opacity: 0.78;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-actions .button {
  min-height: 44px;
  box-shadow: none;
}

.cookie-actions .cookie-reject {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.58);
  color: #fecaca;
}

.cookie-actions .cookie-reject:hover {
  background: rgba(239, 68, 68, 0.24);
  border-color: rgba(252, 165, 165, 0.82);
}

.cookie-actions .cookie-config {
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.58);
  color: #bae6fd;
}

.cookie-actions .cookie-config:hover {
  background: rgba(14, 165, 233, 0.24);
  border-color: rgba(186, 230, 253, 0.82);
}

.cookie-actions .cookie-accept {
  background: #FF6F00;
  border: 1px solid rgba(255, 168, 76, 0.82);
  color: #120801;
  box-shadow: 0 12px 34px rgba(255, 111, 0, 0.28);
}

.cookie-actions .cookie-accept:hover {
  background: #ff861f;
  border-color: rgba(255, 209, 158, 0.92);
}

.cookie-actions .cookie-save {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(134, 239, 172, 0.62);
  color: #bbf7d0;
}

.cookie-actions .cookie-save:hover {
  background: rgba(34, 197, 94, 0.28);
  border-color: rgba(187, 247, 208, 0.86);
}

/* ============ FOOTER ============ */

.site-footer {
  border-top: 1px solid var(--line);
  background: #050505;
  padding: 60px 0 40px;
}

.footer-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-inner h3 {
  font-size: 1rem;
  font-weight: 950;
  margin-bottom: 16px;
}

.footer-inner ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-inner a {
  color: var(--muted);
  transition: color 200ms ease;
}

.footer-inner a:hover {
  color: var(--orange-bright);
}

.footer-logo {
  width: clamp(168px, 14vw, 220px);
  height: auto;
  margin-bottom: 16px;
}

.footer-inner > div > p {
  margin: 0;
  line-height: 1.7;
}

/* ============ ANIMATIONS ============ */

@keyframes floatHero {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 16px 48px rgba(255, 111, 0, 0.32);
  }
  50% {
    box-shadow: 0 20px 70px rgba(255, 111, 0, 0.52);
  }
}

@keyframes switchReveal {
  from {
    opacity: 0.6;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1200px) {
  .nav {
    gap: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 0;
  }

  .hero-visual {
    min-height: 560px;
  }

  .service-lab {
    grid-template-columns: 1fr;
  }

  .reveal-grid {
    grid-template-columns: 1fr;
  }

  .grid.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .signal-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --max: 640px;
  }

  .nav {
    width: min(100% - 24px, var(--max));
    height: 70px;
    gap: 16px;
  }

  .nav-links,
  .nav-actions {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    background: rgba(12, 12, 11, 0.98);
    border: 1px solid var(--line);
    z-index: 30;
    border-radius: var(--radius);
  }

  .nav-links {
    top: 75px;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
  }

  .nav-actions {
    top: 280px;
    padding: 12px 16px;
  }

  .menu-open .nav-links,
  .menu-open .nav-actions {
    display: flex;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding: 50px 0;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .page-hero h1 {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .grid.three {
    grid-template-columns: 1fr;
  }

  .grid.two {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid > * {
    min-width: 0;
  }

  .hero-visual {
    min-height: 480px;
    border-radius: 20px;
  }

  .section {
    padding: 70px 0;
  }

  .cta-panel {
    padding: 40px;
  }

  .process-item {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }

  .process-item::before {
    width: 56px;
    height: 56px;
  }

  .button {
    min-height: 44px;
    padding: 10px 20px;
  }

  .section-head h2 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
  }

  .service-reveal {
    padding: 28px;
    min-height: auto;
  }

  .reveal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav {
    min-height: 64px;
    height: 64px;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .signal-row {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 400px;
  }

  .orbit-symbol {
    width: 100px;
    top: 20px;
    right: 20px;
  }

  .floating-metrics {
    top: auto;
    bottom: 20px;
  }

  .card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===============================================
   SEO RESOURCE: AUTOMATION AUDIT
   =============================================== */

.resource-hero {
  min-height: min(760px, 82vh);
  display: grid;
  align-content: center;
}

.resource-hero h1 {
  max-width: 14ch;
}

.resource-hero > p {
  max-width: 68ch;
}

.resource-signal {
  width: min(100%, 980px);
  margin-top: clamp(34px, 6vw, 74px);
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.58rem, 1vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(244, 244, 241, 0.68);
}

.resource-signal i {
  position: relative;
  height: 1px;
  background: rgba(255, 111, 0, 0.46);
}

.resource-signal i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  border: 1px solid #ff6f00;
  background: #050505;
  transform: translateY(-50%) rotate(45deg);
}

.resource-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}

.resource-article {
  max-width: 780px;
}

.resource-article > * + * {
  margin-top: 22px;
}

.resource-article h2 {
  margin-top: clamp(56px, 8vw, 96px);
  max-width: 19ch;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.96;
}

.resource-article p,
.resource-article li,
.resource-article dd {
  color: rgba(244, 244, 241, 0.7);
  line-height: 1.72;
}

.resource-lead {
  max-width: 66ch;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 111, 0, 0.48);
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
}

.audit-list {
  list-style: none;
  padding: 0;
  counter-reset: audit;
}

.audit-list li {
  counter-increment: audit;
  position: relative;
  min-height: 58px;
  padding: 16px 12px 16px 58px;
  border-bottom: 1px solid rgba(244, 244, 241, 0.12);
}

.audit-list li::before {
  content: counter(audit, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 0;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  color: #ff6f00;
}

.priority-table {
  border-top: 1px solid rgba(255, 111, 0, 0.7);
  border-bottom: 1px solid rgba(244, 244, 241, 0.16);
}

.priority-table [role="row"] {
  display: grid;
  grid-template-columns: 82px 1fr 1fr;
  gap: 18px;
  padding: 16px 10px;
  border-bottom: 1px solid rgba(244, 244, 241, 0.1);
  color: rgba(244, 244, 241, 0.72);
}

.priority-table [role="row"]:first-child {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff6f00;
}

.metric-definitions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(244, 244, 241, 0.12);
}

.metric-definitions div {
  min-width: 0;
  padding: 22px;
  background: #0e0e0e;
}

.metric-definitions dt {
  margin-bottom: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  color: #ff6f00;
  text-transform: uppercase;
}

.metric-definitions dd {
  margin: 0;
}

.resource-aside {
  position: sticky;
  top: 118px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(255, 111, 0, 0.62);
  background: #11100f;
}

.resource-aside h2 {
  margin: 16px 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.resource-aside p {
  margin-bottom: 24px;
  color: rgba(244, 244, 241, 0.68);
}

.article-card-featured {
  border-color: rgba(255, 111, 0, 0.72);
  background: linear-gradient(145deg, rgba(255, 111, 0, 0.15), rgba(14, 14, 14, 0.94) 58%);
}

@media (max-width: 900px) {
  .resource-layout {
    grid-template-columns: 1fr;
  }

  .resource-aside {
    position: static;
  }
}

@media (max-width: 620px) {
  .resource-hero {
    min-height: auto;
  }

  .resource-signal {
    grid-template-columns: auto 1fr;
  }

  .resource-signal i {
    display: none;
  }

  .priority-table [role="row"] {
    grid-template-columns: 42px 1fr;
  }

  .priority-table [role="row"] > :last-child {
    grid-column: 2;
  }

  .metric-definitions {
    grid-template-columns: 1fr;
  }
}

/* ===============================================
   CINEMATIC HARDCORE OVERRIDE
   =============================================== */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=JetBrains+Mono:wght@500;700&family=Oswald:wght@400;500;600;700&display=swap");

:root {
  --bg: #020202;
  --bg-soft: #080808;
  --bg-panel: #101010;
  --text: #f4f4f1;
  --muted: #aaa9a5;
  --line: rgba(220, 220, 214, 0.16);
  --line-strong: rgba(255, 111, 0, 0.58);
  --orange: #FF6F00;
  --orange-bright: #FF6F00;
  --silver: #d8d8d2;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 10px;
  --font: "Oswald", Arial, sans-serif;
}

body {
  background:
    linear-gradient(90deg, rgba(255, 111, 0, 0.07) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 78% 8%, rgba(255, 111, 0, 0.22), transparent 32rem),
    radial-gradient(circle at 15% 82%, rgba(216, 216, 210, 0.1), transparent 24rem),
    #020202;
  background-size: 72px 72px, auto, auto, auto;
  background-attachment: fixed;
  text-transform: none;
}

html {
  background: #020202;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.interactive-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.82;
  mix-blend-mode: screen;
}

main,
.site-footer {
  position: relative;
  z-index: 3;
}

.site-header {
  z-index: 20;
}

h1,
h2,
.board-title,
.cta-panel h2,
.page-hero h1,
.service-reveal h3 {
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-header {
  background: rgba(2, 2, 2, 0.82);
  border-bottom-color: rgba(255, 111, 0, 0.32);
}

.nav-links,
.button,
.service-kicker,
.article-meta,
.chip,
.status,
.reel-meta,
.hero-marquee,
.field label,
.choice-field legend,
.slot-field legend {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}

.button {
  border-radius: 4px;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.button.primary {
  background: var(--orange);
  color: #090909;
  box-shadow: 0 0 0 1px rgba(255, 111, 0, 0.7), 0 18px 54px rgba(255, 111, 0, 0.35);
}

.button.magnetic::after {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(255, 111, 0, 0.45);
  animation: ctaRing 2.6s ease-out infinite;
}

.hero {
  align-items: center;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  min-height: calc(100vh - 80px);
}

.hero h1 {
  font-size: clamp(4rem, 7.2vw, 7.4rem);
  max-width: 650px;
  text-shadow: 0 0 34px rgba(255, 111, 0, 0.12);
}

.hero > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.signal,
.card,
.article-card,
.service-tab,
.service-reveal,
.process-item,
.cta-panel,
.system-sculpture {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216, 216, 210, 0.08), rgba(255, 255, 255, 0.015)),
    #090909;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 70px rgba(0, 0, 0, 0.38);
}

.card::after,
.service-reveal::after,
.cta-panel::after,
.booking-form::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background:
    linear-gradient(var(--orange), var(--orange)) left top / 28px 1px no-repeat,
    linear-gradient(var(--orange), var(--orange)) left top / 1px 28px no-repeat,
    linear-gradient(var(--orange), var(--orange)) right bottom / 28px 1px no-repeat,
    linear-gradient(var(--orange), var(--orange)) right bottom / 1px 28px no-repeat;
  opacity: 0.55;
}

.cinematic-reel {
  border-radius: 10px;
  background: #020202;
  border-color: rgba(255, 111, 0, 0.62);
  animation: none;
  isolation: isolate;
}

.cinematic-reel > .orbit-symbol,
.cinematic-reel > .board-top,
.cinematic-reel > .floating-metrics,
.cinematic-reel > .workflow-board {
  display: none;
}

.reel-frame,
.reel-scrim {
  position: absolute;
  inset: 0;
}

.reel-frame {
  opacity: 0;
  background-image: var(--frame);
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.35) brightness(0.58);
  transform: scale(1.08);
  transition: opacity 900ms ease;
}

.reel-frame-capture {
  --frame: url("assets/ai-capture-system.svg");
}

.reel-frame-whatsapp {
  --frame: url("assets/ai-whatsapp-flow.svg");
}

.reel-frame-booking {
  --frame: url("assets/ai-booking-map.svg");
}

.reel-frame-dashboard {
  --frame: url("assets/ai-simple-dashboard.svg");
}

.reel-frame.is-active {
  opacity: 1;
  animation: kenBurns 5s linear both;
}

.reel-scrim {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.22)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 44%, rgba(0, 0, 0, 0.35));
}

.reel-ui,
.reel-content,
.reel-progress,
.hero-marquee,
.reel-logo-strip {
  position: absolute;
  z-index: 3;
}

.reel-ui {
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reel-meta {
  display: flex;
  gap: 14px;
  color: var(--silver);
  font-size: 0.72rem;
}

.sound-toggle {
  width: 58px;
  height: 34px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255, 111, 0, 0.58);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.sound-toggle span {
  width: 4px;
  height: 10px;
  background: var(--orange);
  animation: equalizer 900ms ease-in-out infinite;
  animation-play-state: paused;
}

.sound-toggle span:nth-child(2) { animation-delay: 100ms; }
.sound-toggle span:nth-child(3) { animation-delay: 220ms; }
.sound-toggle span:nth-child(4) { animation-delay: 330ms; }
.sound-toggle.is-on span { animation-play-state: running; }

.reel-content {
  left: 32px;
  right: 32px;
  bottom: 88px;
  max-width: 620px;
}

.reel-content h2 {
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: 0.88;
  margin-bottom: 14px;
}

.reel-content p {
  max-width: 470px;
  color: var(--silver);
}

.reel-progress {
  left: 0;
  right: 0;
  bottom: 46px;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
}

.reel-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
}

.reel-progress span.is-running {
  animation: reelProgress 5s linear both;
}

.hero-marquee {
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 111, 0, 0.45);
  background: rgba(255, 111, 0, 0.92);
  color: #080808;
  font-weight: 900;
  white-space: nowrap;
}

.hero-marquee div {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.hero-marquee span {
  padding: 11px 30px;
}

.reel-logo-strip {
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 56px;
  display: grid;
  place-items: center;
  border-top: 1px solid rgba(255, 111, 0, 0.34);
  background: linear-gradient(180deg, rgba(2, 2, 2, 0.16), rgba(2, 2, 2, 0.68));
}

.reel-logo-strip img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 0.95;
  filter:
    drop-shadow(0 0 22px rgba(255, 111, 0, 0.42));
}

.choice-field,
.slot-field {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  border: 0;
}

.choice-field legend,
.slot-field legend {
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 800;
}

.choice-field {
  grid-template-columns: repeat(2, 1fr);
}

.choice-field legend,
.slot-field legend {
  grid-column: 1 / -1;
}

.choice-field input,
.slot-field input {
  position: absolute;
  opacity: 0;
}

.choice-field span,
.slot-field span {
  display: block;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.choice-field input:checked + span,
.slot-field input:checked + span {
  border-color: var(--orange);
  background: rgba(255, 111, 0, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 111, 0, 0.3);
}

.slot-field strong {
  display: block;
  color: var(--orange-bright);
}

.field:has([data-legacy-area]) {
  display: none;
}

.booking-form {
  position: relative;
}

.toast-confirm {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  max-width: 360px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 111, 0, 0.62);
  border-radius: 6px;
  background: rgba(8, 8, 8, 0.94);
  color: var(--text);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(140%);
  transition: transform 320ms ease;
}

.toast-confirm.is-visible {
  transform: translateY(0);
}

@keyframes kenBurns {
  from { transform: scale(1.05) translateY(0); }
  to { transform: scale(1.17) translateY(18px); }
}

@keyframes reelProgress {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes equalizer {
  0%, 100% { height: 8px; }
  50% { height: 24px; }
}

@keyframes ctaRing {
  from { opacity: 0.6; transform: scale(0.86); }
  to { opacity: 0; transform: scale(1.28); }
}

@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 16vw, 5.2rem);
  }

  .reel-content {
    bottom: 78px;
  }

  .choice-field {
    grid-template-columns: 1fr;
  }

}

/* ===============================================
   CLARITY + CONVERSION PASS
   =============================================== */

.brand {
  position: relative;
  gap: 14px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(255, 111, 0, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.12), rgba(255, 255, 255, 0.035));
}

.brand-mark {
  width: 34px;
  height: 34px;
  padding: 4px;
  border-radius: 7px;
  background: #FF6F00;
  filter: drop-shadow(0 0 18px rgba(255, 111, 0, 0.45));
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.45rem, 5.55vw, 6.05rem);
}

.hero p,
.page-hero p,
.section-head p,
.card p,
.process-item p,
.service-reveal > p,
.reveal-grid p,
.footer-inner p {
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.72;
}

.signal strong,
.card-number {
  color: var(--orange);
  text-shadow: 0 0 20px rgba(255, 111, 0, 0.25);
}

.reel-frame {
  filter: contrast(1.18) brightness(0.82) saturate(0.9);
}

.reel-content h2 {
  max-width: 560px;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
}

.service-tab.featured {
  min-height: 210px;
  border-width: 2px;
  transform: translateX(0);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 111, 0, 0.34), transparent 42%),
    linear-gradient(135deg, rgba(255, 111, 0, 0.22), rgba(255, 255, 255, 0.04)),
    #0b0b0b;
}

.service-tab.featured::after {
  content: "Sistema principal";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 111, 0, 0.55);
  border-radius: 4px;
  color: var(--orange);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.service-tab:not(.featured) {
  opacity: 0.86;
}

.service-reveal {
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.service-reveal:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 140px rgba(255, 111, 0, 0.12), 0 32px 120px rgba(0, 0, 0, 0.44);
}

.service-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(216, 216, 210, 0.075), rgba(255, 255, 255, 0.018)), #090909;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 111, 0, 0.44);
}

.client-flow {
  position: relative;
  min-height: 620px;
  border: 1px solid rgba(255, 111, 0, 0.36);
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 111, 0, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
    #070707;
}

.client-flow::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(255, 111, 0, 0.32);
  border-radius: 50%;
  animation: rotateFlow 24s linear infinite;
}

.flow-card,
.flow-core {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(216, 216, 210, 0.18);
  border-radius: 8px;
  background: rgba(9, 9, 9, 0.86);
  backdrop-filter: blur(14px);
}

.flow-card {
  width: min(42%, 240px);
  padding: 16px;
  transition: transform 260ms ease, border-color 260ms ease;
}

.flow-card:hover {
  transform: translateY(-7px) scale(1.02);
  border-color: var(--orange);
}

.flow-card span {
  color: var(--orange);
  font-family: "JetBrains Mono", monospace;
  font-weight: 900;
}

.flow-card strong {
  display: block;
  margin: 8px 0 5px;
  color: var(--text);
  font-size: 1.05rem;
}

.flow-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.flow-in { left: 7%; top: 10%; }
.flow-ai { right: 7%; top: 17%; }
.flow-team { left: 9%; bottom: 15%; }
.flow-close { right: 8%; bottom: 11%; }

.flow-core {
  left: 50%;
  top: 50%;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-color: rgba(255, 111, 0, 0.62);
  box-shadow: 0 0 80px rgba(255, 111, 0, 0.18);
}

.flow-core img {
  width: 72px;
  filter: brightness(0) saturate(100%) invert(49%) sepia(91%) saturate(3297%) hue-rotate(1deg) brightness(104%) contrast(106%);
}

.flow-core strong {
  color: var(--silver);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
}

.demo-form {
  border-color: rgba(255, 111, 0, 0.55);
  background:
    radial-gradient(circle at 90% 5%, rgba(255, 111, 0, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.018)),
    #080808;
}

.demo-form h2 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.95;
  margin-bottom: 8px;
}

.demo-form::before {
  content: "Sin compromiso. Respuesta por correo.";
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 111, 0, 0.5);
  border-radius: 4px;
  color: var(--orange);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.process-item {
  transform-origin: center left;
}

.process-item:hover {
  transform: translateX(8px);
}

.card,
.article-card,
.service-card,
.process-item,
.signal {
  will-change: transform;
}

@keyframes rotateFlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
  .hero h1 {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .hero h1 {
    font-size: clamp(3rem, 13.5vw, 4.65rem);
  }

  .services-lab-section .section-head h2::after {
    display: block;
    margin-top: 6px;
  }

  .client-flow {
    min-height: auto;
    display: grid;
    gap: 12px;
    padding: 20px;
  }

  .client-flow::before {
    display: none;
  }

  .flow-card,
  .flow-core {
    position: static;
    width: 100%;
    transform: none;
  }

  .flow-core {
    height: 130px;
    order: -1;
  }
}

/* ===============================================
   FINAL UX REFINEMENTS
   =============================================== */

.brand {
  padding: 8px;
  border-color: rgba(255, 111, 0, 0.4);
}

.brand::before,
.brand::after {
  display: none;
}

.brand-mark {
  width: 58px;
  height: 58px;
  padding: 7px;
}

.nav {
  height: 88px;
}

.services-lab-section .section-head h2::after {
  content: none;
}

.card,
.article-card,
.service-card,
.process-item,
.service-tab,
.service-reveal,
.cta-panel,
.demo-form {
  padding: clamp(24px, 3vw, 42px);
}

.signal {
  padding: clamp(22px, 2.4vw, 34px);
}

.card-number {
  margin-bottom: 22px;
}

.card h3,
.service-card h3,
.process-item h3 {
  margin-bottom: 14px;
}

.reveal-grid div {
  padding: clamp(20px, 2vw, 30px);
}

.service-tab {
  min-height: 154px;
  align-content: start;
}

.service-tab.is-active {
  border-color: var(--orange);
}

.service-tab.is-active small {
  color: var(--silver);
}

.page-hero,
.section {
  scroll-margin-top: 110px;
}

.kreia-engine {
  position: relative;
  min-height: 650px;
  border: 1px solid rgba(255, 111, 0, 0.45);
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 111, 0, 0.24), transparent 30%),
    radial-gradient(circle at 15% 20%, rgba(216, 216, 210, 0.14), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    #050505;
}

.kreia-engine::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 111, 0, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 111, 0, 0.12) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.engine-ring {
  position: absolute;
  inset: 16%;
  border: 1px dashed rgba(255, 111, 0, 0.5);
  border-radius: 50%;
  animation: rotateFlow 28s linear infinite;
}

.engine-ring::before,
.engine-ring::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 24px rgba(255, 111, 0, 0.8);
}

.engine-ring::before {
  left: 8%;
  top: 16%;
}

.engine-ring::after {
  right: 14%;
  bottom: 10%;
}

.engine-core,
.engine-node {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(216, 216, 210, 0.18);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.engine-core {
  left: 50%;
  top: 50%;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  text-align: center;
  transform: translate(-50%, -50%);
  border-color: rgba(255, 111, 0, 0.7);
}

.engine-core img {
  width: 74px;
  filter: brightness(0) saturate(100%) invert(49%) sepia(91%) saturate(3297%) hue-rotate(1deg) brightness(104%) contrast(106%);
}

.engine-core strong {
  display: block;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 2.4rem;
  line-height: 0.8;
}

.engine-core span,
.engine-node span {
  color: var(--orange);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.engine-node {
  width: min(40%, 250px);
  padding: 18px;
  transition: transform 260ms ease, border-color 260ms ease;
}

.engine-node:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
}

.engine-node strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  line-height: 1.22;
}

.engine-a { left: 7%; top: 10%; }
.engine-b { right: 7%; top: 16%; }
.engine-c { left: 9%; bottom: 13%; }
.engine-d { right: 7%; bottom: 10%; }

.engine-line {
  position: absolute;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0.7;
  transform-origin: center;
}

.line-a {
  left: 18%;
  right: 18%;
  top: 48%;
  transform: rotate(18deg);
}

.line-b {
  left: 18%;
  right: 18%;
  top: 52%;
  transform: rotate(-18deg);
}

@media (max-width: 768px) {
  .brand {
    padding: 6px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .nav {
    height: 72px;
  }

  .service-tabs {
    gap: 10px;
  }

  .service-tab {
    min-height: 78px;
    padding: 18px;
    overflow: hidden;
  }

  .service-tab small {
    display: none;
  }

  .service-tab.is-active {
    min-height: 150px;
    transform: none;
  }

  .service-tab.is-active small {
    display: block;
    margin-top: 12px;
  }

  .service-reveal {
    margin-top: 4px;
  }

  .service-tabs > .service-reveal {
    margin: 0 0 8px;
    padding: 22px;
    border-radius: 8px;
  }

  .service-tabs > .service-reveal h3 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .service-reveal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .service-reveal-actions .button {
    width: 100%;
    justify-content: center;
  }

  .section-end-cta {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .section-end-cta p,
  .section-end-cta .section-actions {
    grid-column: 1;
  }

  .section-end-cta .section-actions {
    grid-row: auto;
    justify-content: stretch;
  }

  .section-end-cta .button {
    width: 100%;
    justify-content: center;
  }

  .cookie-consent {
    padding: 10px;
  }

  .cookie-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 16px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-actions .button {
    width: 100%;
    justify-content: center;
  }

  .kreia-engine {
    min-height: auto;
    display: grid;
    gap: 12px;
    padding: 20px;
  }

  .engine-ring,
  .engine-line,
  .kreia-engine::before {
    display: none;
  }

  .engine-core,
  .engine-node {
    position: static;
    width: 100%;
    transform: none;
  }

  .engine-core {
    height: 150px;
  }
}

/* Hero centered transformation */
.hero.hero-centered {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 42px;
  padding-top: 76px;
}

.hero.hero-centered > div:first-child {
  align-items: center;
  width: 100%;
  max-width: 1180px;
}

.hero.hero-centered h1 {
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

.hero.hero-centered p {
  margin-left: auto;
  margin-right: auto;
}

.hero.hero-centered .hero-actions {
  justify-content: center;
}

.hero.hero-centered .cinematic-reel {
  width: min(100%, 1120px);
  min-height: 560px;
}

.transformation-strip {
  width: min(100%, 1120px);
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 46px;
}

.transform-card {
  position: relative;
  min-height: 220px;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid rgba(216, 216, 210, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    #080808;
  text-align: left;
  overflow: hidden;
}

.transform-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background:
    linear-gradient(currentColor, currentColor) left top / 34px 1px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 1px 34px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 34px 1px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 1px 34px no-repeat;
  opacity: 0.42;
}

.transform-card.before {
  color: rgba(216, 216, 210, 0.5);
  border-color: rgba(216, 216, 210, 0.16);
}

.transform-card.after {
  color: var(--orange);
  border-color: rgba(255, 111, 0, 0.58);
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 111, 0, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(255, 111, 0, 0.12), rgba(255, 255, 255, 0.02)),
    #080808;
}

.transform-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--orange);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transform-card.before span {
  color: var(--muted);
}

.transform-card strong {
  display: block;
  color: var(--text);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.transform-card p {
  max-width: none;
  margin-top: 18px;
  margin-bottom: 0;
  text-align: left;
}

.transform-arrow {
  width: 54px;
  display: grid;
  place-items: center;
  color: var(--orange);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 4rem;
  text-shadow: 0 0 28px rgba(255, 111, 0, 0.48);
}

@media (max-width: 900px) {
  .hero.hero-centered h1 {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .transformation-strip {
    grid-template-columns: 1fr;
  }

  .transform-arrow {
    width: 100%;
    height: 36px;
    transform: rotate(90deg);
  }

  .hero.hero-centered .cinematic-reel {
    min-height: 500px;
  }
}

@media (max-width: 520px) {
  .hero.hero-centered {
    padding-top: 44px;
  }

  .transform-card {
    min-height: auto;
  }

  .hero.hero-centered .cinematic-reel {
    min-height: 440px;
  }
}

/* Spacing system and proposal-style transformation */
.nav,
.section,
.hero,
.page-hero,
.cta-panel,
.footer-inner {
  width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), var(--max));
}

.hero {
  padding-top: var(--hero-y);
  padding-bottom: var(--section-y-compact);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section.compact {
  padding-top: var(--section-y-compact);
  padding-bottom: var(--section-y-compact);
}

.page-hero {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y-compact);
}

.section.dark-band {
  width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), calc(var(--max) + 100px));
  margin-top: var(--section-y);
  margin-bottom: var(--section-y);
  padding: var(--section-y) var(--block-x);
}

.cta-panel {
  margin-top: var(--section-y-compact);
  margin-bottom: var(--section-y);
}

.site-footer {
  padding-top: var(--section-y-compact);
  padding-bottom: var(--section-y-compact);
}

.proposal-transform {
  gap: clamp(16px, 2.2vw, 28px);
  margin-top: clamp(42px, 5vw, 68px);
}

.proposal-transform .transform-card {
  min-height: 330px;
  padding: clamp(28px, 3.4vw, 48px);
}

.proposal-transform .transform-card strong {
  max-width: 13ch;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.proposal-transform .transform-card p {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.65;
}

.transform-metrics {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
}

.transform-metrics div {
  display: grid;
  grid-template-columns: minmax(82px, 0.32fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(216, 216, 210, 0.12);
}

.transform-metrics dt {
  color: currentColor;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.transform-metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.transform-card.after .transform-metrics dd {
  color: rgba(244, 244, 241, 0.82);
}

@media (max-width: 900px) {
  .proposal-transform .transform-card {
    min-height: auto;
  }

  .proposal-transform .transform-card strong {
    max-width: 16ch;
  }
}

@media (max-width: 560px) {
  :root {
    --page-gutter: 24px;
    --block-x: 18px;
    --section-y: 64px;
    --section-y-compact: 44px;
    --hero-y: 48px;
  }

  .nav,
  .section,
  .hero,
  .page-hero,
  .cta-panel,
  .footer-inner {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .transform-metrics div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .hero.hero-centered {
    gap: 30px;
  }

  .hero.hero-centered > div:first-child,
  .proposal-transform,
  .transformation-strip,
  .transform-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .hero.hero-centered h1 {
    max-width: 330px;
    font-size: clamp(2.1rem, 10.5vw, 2.75rem);
    line-height: 0.98;
  }

  .hero.hero-centered p {
    width: 100%;
    max-width: 330px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions,
  .section-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .section-actions .button {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .proposal-transform .transform-card {
    width: 100%;
    max-width: 100%;
    padding: 20px;
  }

  .proposal-transform .transform-card p {
    width: 100%;
    max-width: 285px;
    text-align: left;
  }

  .proposal-transform .transform-card strong {
    max-width: 10ch;
    font-size: clamp(1.55rem, 8.6vw, 2.15rem);
    line-height: 1;
  }

  .transform-metrics dd {
    max-width: 285px;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
  }
}

/* ===============================================
   KREIA ENTRY SIGNAL
   =============================================== */

html.entry-running,
html.entry-running body {
  overflow: hidden;
}

.entry-sequence {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  color: #f4f4f1;
  isolation: isolate;
  animation: entrySequenceEnd 1.65s linear both;
}

.entry-panel {
  position: absolute;
  inset-block: 0;
  z-index: 1;
  width: 50.2%;
  background: #020202;
  will-change: transform;
}

.entry-panel-left {
  left: 0;
  animation: entryPanelLeft 1.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.entry-panel-right {
  right: 0;
  animation: entryPanelRight 1.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.entry-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  background-image:
    linear-gradient(rgba(255, 111, 0, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 111, 0, 0.065) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, #000 0 28%, transparent 72%);
  animation: entryGrid 1.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.entry-network,
.entry-core,
.entry-label {
  position: absolute;
  z-index: 3;
}

.entry-network {
  inset: 0;
  animation: entryNetworkExit 1.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.entry-link {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(42vw, 540px);
  height: 1px;
  background: rgba(255, 111, 0, 0.72);
  box-shadow: 0 0 14px rgba(255, 111, 0, 0.42);
  transform: rotate(var(--entry-rotation)) scaleX(0);
  transform-origin: left center;
  opacity: 0;
  animation: entryLine 1.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.entry-link-1 {
  --entry-rotation: 0deg;
}

.entry-link-2 {
  --entry-rotation: 60deg;
  animation-delay: 45ms;
}

.entry-link-3 {
  --entry-rotation: 120deg;
  animation-delay: 90ms;
}

.entry-link-4 {
  --entry-rotation: 180deg;
  animation-delay: 30ms;
}

.entry-link-5 {
  --entry-rotation: 240deg;
  animation-delay: 75ms;
}

.entry-link-6 {
  --entry-rotation: 300deg;
  animation-delay: 120ms;
}

.entry-node {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 111, 0, 0.86);
  background: #020202;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.25);
  animation: entryNode 1.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.entry-node-1 {
  top: 50%;
  left: 91%;
}

.entry-node-2 {
  top: 86%;
  left: 71%;
  animation-delay: 45ms;
}

.entry-node-3 {
  top: 86%;
  left: 29%;
  animation-delay: 90ms;
}

.entry-node-4 {
  top: 50%;
  left: 9%;
  animation-delay: 30ms;
}

.entry-node-5 {
  top: 14%;
  left: 29%;
  animation-delay: 75ms;
}

.entry-node-6 {
  top: 14%;
  left: 71%;
  animation-delay: 120ms;
}

.entry-core {
  top: 50%;
  left: 50%;
  width: clamp(148px, 14vw, 210px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  animation: entryCoreExit 1.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.entry-core img {
  position: relative;
  z-index: 2;
  width: 100%;
  opacity: 0;
  filter:
    brightness(0)
    saturate(100%)
    invert(47%)
    sepia(96%)
    saturate(3451%)
    hue-rotate(3deg)
    brightness(105%)
    contrast(103%)
    drop-shadow(0 0 24px rgba(255, 111, 0, 0.5));
  clip-path: inset(50% 50% 50% 50%);
  animation: entryMark 1.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.entry-core-dot {
  position: absolute;
  z-index: 1;
  width: 8px;
  height: 8px;
  background: #ff6f00;
  box-shadow: 0 0 20px rgba(255, 111, 0, 0.9);
  animation: entryDot 1.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.entry-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 111, 0, 0.52);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.08);
  animation: entryRing 1.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.entry-ring-2 {
  animation-delay: 90ms;
}

.entry-ring-3 {
  animation-delay: 180ms;
}

.entry-label {
  left: 50%;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.61rem, 0.85vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
  animation: entryLabel 1.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.entry-label-top {
  top: calc(50% - clamp(94px, 10vw, 132px));
  color: #f4f4f1;
}

.entry-label-bottom {
  top: calc(50% + clamp(88px, 10vw, 126px));
  color: rgba(244, 244, 241, 0.58);
  animation-delay: 80ms;
}

@keyframes entrySequenceEnd {
  0%,
  96% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes entryPanelLeft {
  0%,
  68% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-101%);
  }
}

@keyframes entryPanelRight {
  0%,
  68% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(101%);
  }
}

@keyframes entryGrid {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }
  20%,
  58% {
    opacity: 1;
    transform: scale(1);
  }
  68%,
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes entryLine {
  0%,
  8% {
    opacity: 0;
    transform: rotate(var(--entry-rotation)) scaleX(0);
  }
  34%,
  56% {
    opacity: 1;
    transform: rotate(var(--entry-rotation)) scaleX(1);
  }
  68%,
  100% {
    opacity: 0;
    transform: rotate(var(--entry-rotation)) scaleX(1);
  }
}

@keyframes entryNode {
  0%,
  24% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25);
  }
  38%,
  58% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  68%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
}

@keyframes entryMark {
  0%,
  24% {
    opacity: 0;
    clip-path: inset(50% 50% 50% 50%);
    transform: scale(0.72) rotate(-8deg);
  }
  46%,
  62% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: scale(1) rotate(0);
  }
  70%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: scale(1.06);
  }
}

@keyframes entryDot {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  14%,
  28% {
    opacity: 1;
    transform: scale(1);
  }
  46%,
  100% {
    opacity: 0;
    transform: scale(4);
  }
}

@keyframes entryRing {
  0%,
  8% {
    opacity: 0;
    transform: scale(0.08);
  }
  36% {
    opacity: 0.72;
  }
  62%,
  100% {
    opacity: 0;
    transform: scale(1.85);
  }
}

@keyframes entryLabel {
  0%,
  28% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  42%,
  58% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  68%,
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
}

@keyframes entryNetworkExit {
  0%,
  64% {
    opacity: 1;
  }
  72%,
  100% {
    opacity: 0;
  }
}

@keyframes entryCoreExit {
  0%,
  64% {
    opacity: 1;
  }
  72%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 620px) {
  .entry-grid {
    background-size: 40px 40px;
  }

  .entry-link {
    width: 58vw;
  }

  .entry-node-1,
  .entry-node-4 {
    display: none;
  }

  .entry-label-bottom {
    font-size: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-sequence {
    display: none !important;
  }
}

/* ===============================================
   KREIA SCROLL JOURNEY
   =============================================== */

.scroll-journey {
  position: fixed;
  top: 50%;
  right: clamp(12px, 2vw, 30px);
  z-index: 90;
  display: grid;
  grid-template-rows: auto minmax(130px, 24vh) auto;
  justify-items: center;
  gap: 12px;
  color: rgba(244, 244, 241, 0.52);
  opacity: 0;
  transform: translateY(-50%) translateX(10px);
  transition:
    opacity 320ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.scroll-journey.is-ready {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.scroll-journey-label {
  max-width: 10ch;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.scroll-journey-track {
  position: relative;
  width: 1px;
  height: 100%;
  overflow: hidden;
  background: rgba(244, 244, 241, 0.18);
}

.scroll-journey-track::before,
.scroll-journey-track::after {
  content: "";
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(244, 244, 241, 0.35);
  background: #050505;
  transform: translateX(-50%) rotate(45deg);
}

.scroll-journey-track::before {
  top: 0;
}

.scroll-journey-track::after {
  bottom: 0;
}

.scroll-journey-progress {
  position: absolute;
  inset: 0;
  background: #ff6f00;
  box-shadow: 0 0 14px rgba(255, 111, 0, 0.62);
  transform: scaleY(var(--scroll-progress, 0));
  transform-origin: top;
  will-change: transform;
}

.scroll-journey-count {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.54rem;
  letter-spacing: 0.08em;
}

.scroll-journey-count strong {
  color: #ff6f00;
  font-size: 0.68rem;
}

.has-scroll-journey main {
  overflow: clip;
}

.scroll-scene {
  --scene-progress: 0;
  --scene-shift: 0px;
  position: relative;
  isolation: isolate;
}

.scroll-scene::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: min(76vw, 980px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 111, 0, 0.48), transparent);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.15);
  transform-origin: center;
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-scene.is-scene-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.scroll-reveal {
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(0, 44px, 0);
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 760ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-order, 0) * 65ms);
  will-change: opacity, filter, transform;
}

.scroll-reveal.is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.hero.scroll-scene .hero-visual {
  transform: translate3d(0, var(--scene-shift-far, 0), 0);
}

.scroll-scene .transformation-strip {
  transform: translate3d(0, var(--scene-shift-soft, 0), 0);
}

.scroll-scene.is-scene-active .section-head h2 {
  text-shadow: 0 0 34px rgba(255, 111, 0, 0.12);
}

.dark-band.scroll-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 111, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 111, 0, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  opacity: 0.48;
  transform: translate3d(0, var(--scene-shift-grid, 0), 0);
  pointer-events: none;
}

.process {
  position: relative;
}

.process::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  z-index: -1;
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 111, 0, 0.55), transparent);
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left;
  opacity: 0.72;
}

.scroll-scene .client-flow {
  transform: translate3d(0, var(--scene-shift-soft, 0), 0);
}

.cta-panel.scroll-scene {
  overflow: hidden;
}

.cta-panel.scroll-scene::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: -1;
  background: conic-gradient(
    from var(--page-angle, 0deg),
    transparent,
    rgba(255, 111, 0, 0.14),
    transparent 22%
  );
  transform: rotate(var(--page-angle, 0deg));
  pointer-events: none;
}

@media (max-width: 900px) {
  .scroll-journey {
    right: 8px;
  }

  .scroll-journey-label {
    display: none;
  }

  .scroll-journey-count {
    font-size: 0.48rem;
  }

  .scroll-journey-count span {
    display: none;
  }

  .process::after {
    top: 5%;
    bottom: 5%;
    left: 17px;
    width: 1px;
    height: 90%;
    background: linear-gradient(transparent, rgba(255, 111, 0, 0.55), transparent);
    transform: scaleY(var(--page-progress, 0));
    transform-origin: top;
  }
}

@media (max-width: 620px) {
  .scroll-journey {
    top: auto;
    right: 14px;
    bottom: 18px;
    grid-template: auto / 44px auto;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid rgba(244, 244, 241, 0.15);
    background: rgba(5, 5, 5, 0.84);
    transform: translateY(8px);
  }

  .scroll-journey.is-ready {
    transform: translateY(0);
  }

  .scroll-journey-track {
    width: 44px;
    height: 1px;
  }

  .scroll-journey-progress {
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: left;
  }

  .scroll-journey-track::before,
  .scroll-journey-track::after {
    top: 50%;
  }

  .scroll-journey-track::before {
    left: 0;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .scroll-journey-track::after {
    right: 0;
    left: auto;
    transform: translate(50%, -50%) rotate(45deg);
  }

  .scroll-journey-count {
    grid-column: 2;
    grid-row: 1;
  }

  .scroll-reveal {
    filter: none;
    transform: translate3d(0, 28px, 0);
  }

  .dark-band.scroll-scene::before {
    background-size: 40px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-journey {
    display: none;
  }

  .scroll-reveal,
  .scroll-reveal.is-revealed,
  .hero.scroll-scene .hero-visual,
  .scroll-scene .transformation-strip,
  .scroll-scene .client-flow {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}
