@charset "UTF-8";
/* ============================================================
   Design tokens — light, minimal, premium
   ============================================================ */
:root {
  /* Surfaces — warm cream ladder (separates chapters by value, no boxes) */
  --bg: #ffffff;
  --bg-alt: #f6f5f2;
  --bg-tint: #faf9f7;
  --bg-deep: #efece6;
  --card: #fffdfa;
  /* Warm light — the "breath of light" (desaturated honey, never toast) */
  --glow-warm: rgba(244, 239, 231, 0.55);
  --glow-honey: rgba(231, 210, 170, 0.30);
  /* Ink & text */
  --ink: #15120f;
  --ink-2: #3c3833;
  --muted: #6c665f;
  --muted-2: #767068;
  /* Accent (from the SX logo) */
  --accent: #e10600;
  --accent-hover: #c20500;
  --accent-soft: rgba(225, 6, 0, 0.08);
  /* Lines */
  --line: rgba(21, 18, 15, 0.12);
  --line-soft: rgba(21, 18, 15, 0.07);
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(21, 18, 15, 0.04);
  --shadow-md: 0 18px 40px -24px rgba(21, 18, 15, 0.30);
  --shadow-lg: 0 30px 60px -30px rgba(21, 18, 15, 0.28);
  /* Silk palette — promoted from the hero so honey is an active 2nd hue,
     not a third grey. Reused for shadows, watermarks and the red thread. */
  --silk-cream: #f6f1e9;
  --silk-honey: #d8b074;
  --thread-red: #e10600;
  /* Warm, honey-tinted, directional shadows (offset down-left to imply the
     hero's top-right afternoon light) — "paper floating over cream". */
  --shadow-warm-sm: -2px 3px 10px -4px rgba(120, 92, 48, 0.18);
  --shadow-warm-md: -6px 14px 34px -18px rgba(120, 92, 48, 0.30);
  --shadow-warm-lg: -10px 30px 60px -28px rgba(120, 92, 48, 0.34);
  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 0.84, 0.28, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1); /* big editorial reveals */
  --ease-back: cubic-bezier(0.34, 1.32, 0.5, 1); /* settle — NON-text only */
  --dur-fast: 200ms;
  --dur-base: 420ms;
  --dur-reveal: 640ms;
  --dur-print: 1000ms; /* title "prints upward" */
  /* Layout */
  --max-width: 1200px;
  /* Fluid type scale — 6 non-overlapping roles with real gaps + weight
     contrast (Hero 600 / Display-standfirst 500 / Section-h2 600 / h3 / lead / body). */
  --t-hero: clamp(2.6rem, 1.45rem + 4.6vw, 5rem);
  --t-display: clamp(1.95rem, 1.35rem + 2.4vw, 3rem);
  --t-h2: clamp(1.7rem, 1.3rem + 1.7vw, 2.45rem);
  --t-h3: clamp(1.2rem, 1.05rem + 0.55vw, 1.4rem);
  --t-lead: clamp(1.18rem, 1.02rem + 0.7vw, 1.5rem);
  --t-body: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  --t-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --t-stat: clamp(2.6rem, 1.7rem + 3vw, 3.7rem);
}

/* ============================================================
   Reset
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.section-inner {
  width: min(90%, 1200px);
  margin-inline: auto;
}

/* Small uppercase eyebrow / section label with a short red rule. */
.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.accent {
  color: var(--accent);
  font-style: normal;
}

/* Editorial standfirst — the argument whispered LOUDER: one family, set at
   display scale, lighter weight than the headings, upright, with the red
   accent doing the emphasis. No serif, no italic. */
.lead {
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* One continuous numbering system — every number on the site shares the same
   tabular rhythm, so the eye feels a single index from hero to footer. */
.stat-num,
.card-number,
.tech-n,
.step-num,
.principle-num,
.field-index,
.footer-index {
  font-variant-numeric: tabular-nums slashed-zero;
  font-feature-settings: "tnum" 1, "zero" 1;
}

/* ============================================================
   Scroll reveal (paired with the IntersectionObserver in main.js)
   ============================================================ */
.fade-in {
  opacity: 1;
  transform: none;
}

.reveal-enabled .fade-in {
  opacity: 0;
  transform: translateY(46px) scale(0.985);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  /* Curved stagger inside a group (JS sets --i per child); 0 when unset. */
  transition-delay: calc(var(--i, 0) * 0.06s);
}

.reveal-enabled .fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* Title reveal "por máscara" — the headline prints upward like a film title.
   clip-path on the whole element is bilingual-safe (textContent swaps untouched). */
.reveal-enabled .fade-in.as-mask {
  transform: translateY(52px);
  clip-path: inset(0 0 115% 0);
  transition: opacity 820ms var(--ease-out), transform 900ms var(--ease-out), clip-path 900ms var(--ease-out);
}

.reveal-enabled .fade-in.as-mask.is-visible {
  transform: none;
  clip-path: inset(0 0 -8% 0);
}

/* Body reveal with a soft de-focus that settles. */
.reveal-enabled .fade-in.as-blur {
  filter: blur(6px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out), filter var(--dur-reveal) var(--ease-out);
}

.reveal-enabled .fade-in.as-blur.is-visible {
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal-enabled .fade-in {
    opacity: 1;
    transform: none;
  }
}
/* Skip link — accesibilidad (WCAG 2.4.1 Bypass Blocks): salta el header directo al contenido. */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3.5rem;
  z-index: 2000;
  padding: 0.65rem 1.1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-md);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  width: 100%;
  min-height: 80px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 10px clamp(20px, 5vw, 56px);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.brand-mark {
  width: 54px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast) var(--ease);
}

.brand-mark:hover {
  transform: translateY(-1px) rotate(-1deg);
}

.brand-image-frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.6vw, 38px);
}

.main-nav a {
  color: var(--ink-2);
  font-size: var(--t-small);
  font-weight: 500;
  position: relative;
  padding-block: 4px;
  transition: color var(--dur-fast) var(--ease);
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: right 0.26s var(--ease-out);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  right: 0;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-toggle {
  min-width: 70px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-2);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.language-toggle:hover {
  border-color: var(--ink-2);
}

.language-toggle .is-active {
  color: var(--ink);
}

.language-divider {
  color: var(--line);
}

/* Buttons */
.header-btn,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.header-btn {
  min-height: 38px;
  padding: 0 20px;
  font-size: var(--t-small);
  color: #fff;
  background: var(--accent);
}

.header-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
  width: 42px;
  height: 38px;
  display: none;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease);
}

.menu-toggle[aria-expanded=true] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded=true] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ============================================================
   Shared section scaffolding
   ============================================================ */
.content-section {
  padding: clamp(76px, 9vw, 132px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(44px, 5vw, 68px);
}

.section-heading h2 {
  margin-top: 22px;
  font-size: var(--t-h2);
}

.section-heading p {
  max-width: 60ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: var(--t-body);
  line-height: 1.7;
}

/* Button colour variants (base lives in _header.scss) */
.btn-primary {
  min-height: 52px;
  padding: 0 28px;
  font-size: var(--t-body);
  color: #fff;
  background: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  min-height: 52px;
  padding: 0 26px;
  font-size: var(--t-body);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-lg {
  min-height: 58px;
  padding: 0 34px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(620px, 94vh, 1000px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(96px, 16vh, 200px) 0 clamp(72px, 12vh, 140px);
  background: var(--bg-deep);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero .eyebrow {
  margin-bottom: 26px;
}

.hero h1 {
  max-width: 16ch;
  margin-bottom: clamp(34px, 4.5vh, 54px);
  font-size: var(--t-hero);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.hero-sub {
  max-width: 50ch;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: clamp(1.06rem, 0.98rem + 0.5vw, 1.28rem);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* staggered boot reveal */
.reveal-enabled .hero-inner > .fade-in:nth-child(1) {
  transition-delay: 60ms;
}

.reveal-enabled .hero-inner > .fade-in:nth-child(2) {
  transition-delay: 150ms;
}

.reveal-enabled .hero-inner > .fade-in:nth-child(3) {
  transition-delay: 240ms;
}

.reveal-enabled .hero-inner > .fade-in:nth-child(4) {
  transition-delay: 330ms;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 44px);
}

.stat {
  padding-left: clamp(18px, 2vw, 28px);
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat-num {
  display: block;
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-size: var(--t-stat);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 14px;
  max-width: 22ch;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: 1.5;
}

/* ============================================================
   APPROACH
   ============================================================ */
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(36px, 6vw, 96px);
  row-gap: 44px;
  margin-top: 32px;
}

.approach-lead {
  max-width: 38ch;
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-style: normal;
  font-size: var(--t-display);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.approach-principles {
  display: flex;
  flex-direction: column;
}

.principle {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 6px 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.principle:first-child {
  border-top: 0;
  padding-top: 0;
}

.principle-num {
  grid-row: 1/span 2;
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

.principle dt {
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--ink);
}

.principle dd {
  color: var(--muted);
  font-size: var(--t-body);
  line-height: 1.65;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section {
  background: var(--bg-deep);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: clamp(24px, 2.4vw, 34px);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  /* lift + warm honey halo (never grey) — the same afternoon light */
  box-shadow: var(--shadow-lg), 0 24px 60px -26px rgba(214, 170, 104, 0.5);
  border-color: var(--line);
}

.service-card:hover::before,
.service-card:focus-within::before {
  transform: scaleX(1);
}

.card-number {
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted-2);
  transition: color var(--dur-fast) var(--ease);
}

.service-card:hover .card-number,
.service-card:focus-within .card-number {
  color: var(--accent);
}

.service-card h3 {
  margin-top: auto;
  padding-top: 36px;
  margin-bottom: 12px;
  font-size: var(--t-h3);
  font-weight: 600;
}

.service-card p {
  color: var(--muted);
  font-size: var(--t-small);
  line-height: 1.6;
}

/* ============================================================
   TECH STACK — index · category + descriptor · tech chips
   ============================================================ */
.technologies-section {
  background: var(--bg-tint);
}

.technology-list {
  border-top: 1px solid var(--line);
}

.technology-row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: clamp(38px, 4vw, 60px) minmax(170px, 0.78fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(26px, 3vw, 40px) clamp(10px, 1.5vw, 22px);
  margin-inline: clamp(-10px, -1.5vw, -22px) 0;
  border-bottom: 1px solid var(--line);
}

/* Warm cream-honey wash that sweeps in from the left on hover. */
.technology-row::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--glow-warm), transparent 72%);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.technology-row:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Oversized, outlined index numeral — inks red on hover (page index system) */
.tech-n {
  align-self: start;
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(155, 149, 141, 0.55);
  transition: color var(--dur-base) var(--ease), -webkit-text-stroke-color var(--dur-base) var(--ease);
}

.technology-row:hover .tech-n {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}

.tech-head h3 {
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 600;
}

.tech-desc {
  margin-top: 8px;
  max-width: 34ch;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: 1.55;
}

/* Tech items as premium pills */
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: var(--shadow-warm-sm);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.tech-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--silk-honey);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.tech-chip:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
  background: var(--card);
  box-shadow: var(--shadow-warm-md), 0 14px 30px -18px rgba(214, 170, 104, 0.6);
}

.tech-chip:hover::before {
  background: var(--accent);
  transform: scale(1.3);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(18px, 2vw, 32px);
  position: relative;
  padding-top: 30px;
}

.process-list::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.process-item {
  position: relative;
}

.process-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--muted-2);
  transform: translateY(-50%);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.process-item:first-child::before {
  background: var(--accent);
  border-color: var(--accent);
}

.step-num {
  display: block;
  margin-bottom: 14px;
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.process-item h3 {
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  font-weight: 600;
}

.process-item p {
  color: var(--muted);
  font-size: var(--t-small);
  line-height: 1.65;
}

/* ============================================================
   GUARANTEES
   ============================================================ */
.guarantees-section {
  background: var(--bg-alt);
}

.guarantees-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  column-gap: clamp(40px, 6vw, 96px);
  row-gap: 44px;
}

.guarantees-aside p {
  max-width: 22ch;
  margin-top: 22px;
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-size: var(--t-display);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.guarantees-list {
  list-style: none;
}

.guarantees-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  padding: clamp(18px, 2vw, 26px) 0;
  border-top: 1px solid var(--line);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  color: var(--ink-2);
}

.guarantees-list li::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2L9.5 3.6' fill='none' stroke='%23e10600' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transform: translateY(3px);
}

.guarantees-quote {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.guarantees-quote p {
  max-width: 34ch;
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-style: normal;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.guarantees-quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--muted);
}

/* ============================================================
   FINAL CTA — a warm, LIGHT, premium closing panel (centered)
   No dark slab; the same afternoon light as the rest of the page.
   ============================================================ */
.cta-section {
  padding: clamp(40px, 6vw, 76px) 0;
}

.cta-inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(24px, 3vw, 40px);
  padding: clamp(52px, 7vw, 104px) clamp(30px, 5vw, 72px);
  /* warm cream panel with a honey corner glow + a whisper of red ember */
  background: radial-gradient(58% 110% at 86% 6%, var(--glow-honey), transparent 60%), radial-gradient(46% 90% at 12% 98%, rgba(225, 6, 0, 0.05), transparent 60%), linear-gradient(165deg, var(--card), var(--bg-alt));
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  box-shadow: var(--shadow-warm-lg), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* A warm sheen that breathes in as the panel arrives (driven by --enter). */
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(72% 120% at 50% 0%, rgba(216, 176, 116, 0.16), transparent 70%);
  pointer-events: none;
}

.cta-text {
  max-width: 36ch;
}

.cta-text h2 {
  margin-inline: auto;
  max-width: 22ch;
  font-size: var(--t-display);
  color: var(--ink);
}

.cta-text p {
  max-width: 54ch;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: var(--t-body);
  line-height: 1.65;
}

.cta-section .btn-primary {
  position: relative;
  white-space: nowrap;
}

/* The one solid red of the page, with a soft breathing ember behind it. */
.cta-section .btn-primary::after {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(225, 6, 0, 0.42), transparent 72%);
  filter: blur(22px);
  opacity: 0.35;
  animation: ctaGlow 12s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% {
    opacity: 0.22;
  }
  50% {
    opacity: 0.55;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta-section .btn-primary::after {
    animation: none;
  }
}
.contact-section {
  padding: clamp(76px, 9vw, 132px) 0;
  background: var(--bg-tint);
}

.contact-intro {
  max-width: 720px;
  margin-bottom: clamp(44px, 5vw, 64px);
}

.contact-intro h2 {
  margin-top: 22px;
  font-size: var(--t-display);
}

.contact-intro p {
  max-width: 52ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: var(--t-body);
  line-height: 1.7;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: start;
  gap: clamp(36px, 5vw, 72px);
}

/* ── Form ─────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* A fine red line draws itself under the focused field. */
.form-field::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-out);
  pointer-events: none;
}

.form-field:focus-within::after {
  transform: scaleX(1);
}

.form-field label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink-2);
}

/* Field index ties the form into the page's one numbering system. */
.field-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.form-field:focus-within .field-index {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px) scale(1.04);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-body);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted-2);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--muted-2);
  box-shadow: 0 8px 24px -14px rgba(214, 170, 104, 0.6);
}

.form-submit {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 12px;
  margin-top: 4px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-body);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.form-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-submit b {
  transition: transform var(--dur-fast) var(--ease);
}

.form-submit:hover b {
  transform: translate(3px, -3px);
}

.form-note {
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: 1.6;
}

/* ── Contact card ─────────────────────────────────────── */
.contact-card {
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--bg);
  box-shadow: var(--shadow-md);
}

.contact-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
}

.contact-card-header h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
}

.contact-card-header p {
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--t-small);
}

.contact-methods {
  padding: 10px 14px 6px;
}

.contact-methods a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease);
}

.contact-methods a:last-child {
  border-bottom: 0;
}

.contact-method-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--accent);
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.contact-method-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-method-icon--line svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-method-icon--line .solid-dot {
  fill: currentColor;
  stroke: none;
}

.contact-methods a > span:nth-child(2) {
  min-width: 0;
}

.contact-methods small,
.contact-methods strong {
  display: block;
}

.contact-methods small {
  margin-bottom: 3px;
  font-size: var(--t-small);
  color: var(--muted);
}

.contact-methods strong {
  overflow-wrap: anywhere;
  font-size: var(--t-body);
  font-weight: 600;
}

.contact-methods a > b {
  color: var(--accent);
  transition: transform var(--dur-fast) var(--ease);
}

.contact-methods a:hover .contact-method-icon {
  transform: rotate(-6deg) scale(1.06);
  background: var(--accent);
  color: #fff;
}

.contact-methods a:hover > b {
  transform: translate(3px, -3px);
}

/* Estado del envío del formulario (Web3Forms) — también accesible vía aria-live */
.form-status {
  margin-top: 0.85rem;
  font-size: var(--t-small);
  line-height: 1.5;
  font-weight: 500;
}
.form-status:empty {
  margin: 0;
}
.form-status.is-pending {
  color: var(--muted);
}
.form-status.is-ok {
  color: #2e7d32;
}
.form-status.is-warn {
  color: var(--accent);
}

/* ============================================================
   Legal pages (privacy, terms)
   ============================================================ */
.legal-page {
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 120px);
}

.legal-wrap {
  max-width: 820px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: var(--t-small);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}

.legal-back:hover {
  color: var(--accent);
}

.legal-head {
  margin-bottom: 28px;
}

.legal-head h1 {
  margin-top: 18px;
  font-size: var(--t-display);
}

.legal-meta {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: var(--t-small);
}

.legal-note {
  margin-bottom: 44px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--bg-tint);
}

.legal-note p {
  color: var(--ink-2);
  font-size: var(--t-body);
  line-height: 1.65;
}

.legal-body section {
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
}

.legal-body section:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-body h2 {
  margin-bottom: 14px;
  font-size: var(--t-h3);
  font-weight: 600;
}

.legal-body p {
  color: var(--muted);
  font-size: var(--t-body);
  line-height: 1.75;
}

.legal-body p + p {
  margin-top: 14px;
}

.legal-body ul {
  margin-top: 14px;
  padding-left: 0;
  list-style: none;
}

.legal-body li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: var(--t-body);
  line-height: 1.7;
}

.legal-body li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.legal-inline-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   Footer legal links
   ============================================================ */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal a {
  color: var(--muted);
  font-size: var(--t-small);
  transition: color var(--dur-fast) var(--ease);
}

.footer-legal a:hover {
  color: var(--accent);
}

/* ============================================================
   Consent checkbox (contact form)
   ============================================================ */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: 1.5;
  cursor: pointer;
}

.form-consent input[type=checkbox] {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-consent a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   Cookie / data notice
   ============================================================ */
.cookie-notice {
  position: fixed;
  left: clamp(14px, 4vw, 28px);
  bottom: clamp(14px, 4vw, 28px);
  z-index: 1100;
  width: min(420px, 100% - 28px);
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.cookie-notice.is-visible {
  opacity: 1;
  transform: none;
}

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

.cookie-notice p {
  color: var(--muted);
  font-size: var(--t-small);
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}

.cookie-link {
  color: var(--accent);
  font-size: var(--t-small);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-accept {
  margin-left: auto;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-small);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.cookie-accept:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.site-footer {
  padding: clamp(56px, 7vw, 84px) 0 28px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}

.footer-brand .brand-mark {
  width: 72px;
  height: 62px;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) 1fr 1.2fr;
  gap: 56px;
  padding-bottom: 44px;
}

.footer-brand .brand-mark {
  width: 60px;
  height: 52px;
}

.footer-brand p {
  max-width: 36ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: 1.7;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-nav h3,
.footer-contact h3 {
  margin-bottom: 8px;
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-nav a,
.footer-contact > a:not(.whatsapp-link) {
  position: relative;
  color: var(--muted);
  font-size: var(--t-small);
  transition: color var(--dur-fast) var(--ease);
}

.footer-nav a:hover,
.footer-contact > a:not(.whatsapp-link):hover {
  color: var(--ink);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #07170d;
  font-size: var(--t-small);
  font-weight: 600;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.whatsapp-link:hover {
  background: #1fb955;
  transform: translateY(-2px);
}

.whatsapp-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: var(--t-small);
}

.footer-place {
  color: var(--muted-2);
}

/* ============================================================
   LUMEN EDITORIAL — cinematic systems (light/premium)
   The "breath of light", the red thread, the self-drawn seal.
   ============================================================ */
/* ── Global scroll-progress: one red thread from top to bottom ── */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 2000;
  transform: scaleX(var(--scroll, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  pointer-events: none;
  will-change: transform;
}

/* ============================================================
   HERO — full-bleed cinematic IMAGE (real, generated), light/premium
   The still is always present; the Kling video plays on top when ready.
   A cream scrim keeps the bold dark headline crisp on the left while the
   warm window/desk stays cinematic on the right — the page stays LIGHT.
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(620px, 94vh, 1000px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(112px, 17vh, 210px) 0 clamp(80px, 12vh, 150px);
  background: var(--bg-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* interactive cursor parallax on the whole media layer */
  transform: translate(calc(var(--hx, 0) * -12px), calc(var(--hy, 0) * -9px));
  transition: transform 900ms var(--ease-out);
}

.hero-media > * {
  position: absolute;
  inset: 0;
}

/* Cinematic camera move (Ken-Burns): a continuous slow push-in + drift.
   Real, obvious motion — and it costs zero credits. */
.hero-img {
  z-index: 0;
  inset: -9%;
  background: url("../img/hero/hero-estudio.jpg?v=4") center right/cover no-repeat;
  animation: heroKen 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroKen {
  from {
    transform: scale(1.04) translate(0%, 0%);
  }
  to {
    transform: scale(1.19) translate(-2.4%, -1.6%);
  }
}
.hero-particles {
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.hero-scrim {
  z-index: 2;
  background: linear-gradient(95deg, rgba(247, 243, 236, 0.95) 0%, rgba(247, 243, 236, 0.8) 26%, rgba(247, 243, 236, 0.32) 48%, rgba(247, 243, 236, 0.05) 66%, transparent 80%), linear-gradient(180deg, transparent 58%, rgba(239, 236, 230, 0.9) 100%);
}

@media (max-width: 760px) {
  .hero-video {
    display: none;
  }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(247, 243, 236, 0.9) 0%, rgba(247, 243, 236, 0.55) 44%, rgba(239, 236, 230, 0.92) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img {
    animation: none;
    transform: scale(1.04);
  }
}
.hero-inner {
  position: relative;
  z-index: 2;
}

/* The accent words — same confident sans as the headline, just in red.
   (Dropped the italic-serif treatment; it read fussy at hero scale.) */
.hero h1 .accent {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* Scroll cue — a thin line with a red drop that falls on a loop. */
.hero-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vh, 34px);
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-cue-line {
  position: relative;
  width: 1px;
  height: clamp(34px, 5vh, 50px);
  overflow: hidden;
  background: linear-gradient(var(--line), transparent);
}

.hero-cue-line::after {
  content: "";
  position: absolute;
  inset: -40% 0 auto 0;
  height: 40%;
  background: var(--accent);
  animation: cueDrop 2.6s var(--ease-out) infinite;
}

@keyframes cueDrop {
  0% {
    transform: translateY(-120%);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateY(360%);
    opacity: 0;
  }
}
/* ============================================================
   NUMBER-CURSOR — the index number at the viewport centre lights red
   ============================================================ */
.principle .principle-num,
.process-item .step-num {
  color: var(--muted-2);
  transition: color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.principle.is-active .principle-num {
  color: var(--accent);
  transform: translateX(4px);
}

/* ============================================================
   PROCESS — the red dot travels the timeline with the scroll
   ============================================================ */
.process-progress {
  position: absolute;
  top: 5px;
  left: 0;
  height: 1px;
  width: 100%;
  z-index: 1;
  transform: scaleX(var(--pp, 0));
  transform-origin: left center;
  background: var(--accent);
  pointer-events: none;
}

.process-dot {
  position: absolute;
  top: 5px;
  left: clamp(0px, var(--pp, 0) * 100%, 100%);
  width: 11px;
  height: 11px;
  z-index: 3;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
  transform: translate(-50%, -50%);
  opacity: var(--pp-shown, 0);
  transition: opacity var(--dur-base) var(--ease);
  pointer-events: none;
}

.process-item.is-active .step-num {
  color: var(--accent);
}

.process-item::before {
  transition: border-color var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}

.process-item.is-active::before {
  background: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   SIGNATURE SEAL — a single red stroke that writes itself, once
   ============================================================ */
.signature {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signature-mark {
  width: clamp(150px, 22vw, 196px);
  height: auto;
  color: var(--accent);
  overflow: visible;
}

.signature-path {
  stroke-dasharray: var(--sig-len, 640);
  stroke-dashoffset: var(--sig-len, 640);
}

.reveal-enabled .signature.is-visible .signature-path {
  animation: signDraw 1.5s var(--ease-out) 0.15s forwards;
}

@keyframes signDraw {
  to {
    stroke-dashoffset: 0;
  }
}
.signature cite {
  font-style: normal;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--muted);
}

/* ============================================================
   Body reveal "blur-in" applied to cards & rows without HTML changes
   ============================================================ */
.reveal-enabled .service-card.fade-in,
.reveal-enabled .technology-row.fade-in {
  filter: blur(6px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out), filter var(--dur-reveal) var(--ease-out);
}

.reveal-enabled .service-card.fade-in.is-visible,
.reveal-enabled .technology-row.fade-in.is-visible {
  filter: blur(0);
}

/* ============================================================
   Reduced motion — calm everything to instant, keep it legible
   ============================================================ */
/* ============================================================
   HERO AURORA — soft warm light blobs that drift across the hero
   ============================================================ */
.hero-aurora {
  position: absolute;
  inset: -20%;
  z-index: 1;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  will-change: transform;
}

.aurora-1 {
  width: 46%;
  height: 62%;
  top: -8%;
  left: 56%;
  background: radial-gradient(closest-side, rgba(238, 206, 150, 0.5), transparent 72%);
  animation: drift1 22s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 44%;
  height: 54%;
  top: 28%;
  left: -8%;
  background: radial-gradient(closest-side, rgba(245, 223, 205, 0.55), transparent 72%);
  animation: drift2 27s ease-in-out infinite alternate;
}

.aurora-3 {
  width: 34%;
  height: 44%;
  top: 52%;
  left: 58%;
  background: radial-gradient(closest-side, rgba(225, 6, 0, 0.06), transparent 70%);
  animation: drift3 31s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-13%, 9%) scale(1.16);
  }
}
@keyframes drift2 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(15%, -7%) scale(1.12);
  }
}
@keyframes drift3 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-9%, -11%) scale(1.22);
  }
}
/* ============================================================
   MARQUEE — an infinite ribbon of services (constant motion)
   ============================================================ */
.marquee {
  overflow: hidden;
  padding: clamp(16px, 2.4vw, 30px) 0;
  border-block: 1px solid var(--line-soft);
  background: var(--bg-tint);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.marquee-item {
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.4rem, 0.9rem + 2.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  padding: 0 clamp(22px, 3vw, 46px);
}

.marquee-item.is-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--muted-2);
  text-stroke: 1px var(--muted-2);
}

.marquee-sep {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   HERO LIQUID LIGHT — real-time WebGL flow field (js/hero-shader.js)
   The poster is the always-present base layer (shown if WebGL is off,
   on phones, or under reduced-motion). The shader canvas renders the
   continuously-flowing honey/red light on top.
   ============================================================ */
.hero-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(60% 55% at 80% 16%, var(--glow-honey), transparent 64%), url("../img/hero/hero-poster.jpg") center/cover no-repeat;
  transform: scale(1.04);
}

.hero-shader {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.96;
  /* a whisper of cursor parallax on top of the in-shader pointer drift */
  transform: translate(calc(var(--hx, 0) * 8px), calc(var(--hy, 0) * 8px)) scale(1.04);
  transition: transform 700ms var(--ease-out);
  will-change: transform;
}

/* On phones and for reduced-motion, drop the canvas and show the still poster. */
@media (max-width: 720px) {
  .hero-shader {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-shader {
    display: none;
  }
}
/* ============================================================
   Reduced motion — calm everything to instant, keep it legible
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-light {
    animation: none;
  }
  .hero-cue-line::after {
    animation: none;
    opacity: 0;
  }
  .process-dot {
    display: none;
  }
  .aurora {
    animation: none;
  }
  .marquee-track {
    animation: none;
  }
  .hero-bg {
    transform: none;
  }
  .reveal-enabled .signature .signature-path {
    stroke-dashoffset: 0;
    animation: none;
  }
  .reveal-enabled .service-card.fade-in,
  .reveal-enabled .technology-row.fade-in {
    filter: none;
  }
  .reveal-enabled .cine-band-line.fade-in {
    clip-path: none;
    transition: opacity 200ms linear;
  }
}
/* ============================================================
   WHOLE-PAGE CINEMATIC SYSTEM — "the thread that signs the page"
   One red thread ties every chapter; each section performs on arrival;
   warm honey light gives the long cream scroll real depth.
   Driven by the per-section --enter / global --scroll bus in main.js.
   ============================================================ */
/* ---- The red thread spine: draws itself with the global --scroll ---- */
.page-thread {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(46px, 6vw, 96px);
  height: 100vh;
  z-index: 1;
  color: var(--thread-red);
  pointer-events: none;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 11%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 11%, #000 84%, transparent);
}

.page-thread-path {
  stroke-dasharray: var(--thread-len, 1400);
  stroke-dashoffset: calc(var(--thread-len, 1400) * (1 - var(--scroll, 0)));
  filter: drop-shadow(0 0 5px rgba(225, 6, 0, 0.28));
}

@media (max-width: 1100px) {
  .page-thread {
    display: none;
  }
}
/* ---- Each section's content rises gently as it enters (scroll-LINKED) ---- */
.reveal-enabled .content-section > .section-inner,
.reveal-enabled .stats-section > .section-inner {
  transform: translateY(calc((1 - var(--enter, 1)) * 24px));
}

/* ---- Every section heading "prints upward" like the hero title ----
   The wrapper only fades; the children carry the cinematic motion. */
.reveal-enabled .section-heading.fade-in,
.reveal-enabled .guarantees-aside.fade-in,
.reveal-enabled .stat.fade-in {
  transform: none;
}

/* Clip-print is only applied to elements whose OBSERVED .fade-in trigger is a
   NON-clipped wrapper — a directly-observed clipped element keeps an
   intersectionRatio of 0 and would never fire. So: section h2 (wrapper
   .section-heading) and the guarantees standfirst (wrapper .guarantees-aside).
   The Enfoque standfirst IS its own trigger, so it uses a plain rise (below). */
.reveal-enabled .section-heading h2,
.reveal-enabled .guarantees-aside p {
  clip-path: inset(0 0 112% 0);
  transform: translateY(0.42em);
  transition: clip-path var(--dur-print) var(--ease-expo) 110ms, transform var(--dur-print) var(--ease-expo) 110ms;
}

.reveal-enabled .section-heading.is-visible h2,
.reveal-enabled .guarantees-aside.is-visible p {
  clip-path: inset(0 0 -10% 0);
  transform: none;
}

/* Enfoque standfirst — a confident rise (no clip, so IO fires reliably). */
.reveal-enabled .approach-lead {
  transform: translateY(40px);
  transition: opacity var(--dur-print) var(--ease-expo), transform var(--dur-print) var(--ease-expo);
}

.reveal-enabled .approach-lead.is-visible {
  transform: none;
}

/* The heading's supporting paragraph fades up just after the h2 prints. */
.reveal-enabled .section-heading p {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-reveal) var(--ease-out) 300ms, transform var(--dur-reveal) var(--ease-out) 300ms;
}

.reveal-enabled .section-heading.is-visible p {
  opacity: 1;
  transform: none;
}

/* ---- The eyebrow's red rule draws itself (every chapter "draws the thread") ---- */
.reveal-enabled .eyebrow::before,
.reveal-enabled .section-label::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 640ms var(--ease-out) 60ms;
}

.reveal-enabled .eyebrow.is-visible::before,
.reveal-enabled .section-label.is-visible::before,
.reveal-enabled .section-heading.is-visible .section-label::before,
.reveal-enabled .guarantees-aside.is-visible .section-label::before {
  transform: scaleX(1);
}

/* ============================================================
   STATS — numbers rise behind a mask + a honey→red hairline wipes in
   ============================================================ */
.stat {
  position: relative;
}

.reveal-enabled .stat-num {
  display: block;
  clip-path: inset(0 0 110% 0);
  transform: translateY(0.32em);
  transition: clip-path 760ms var(--ease-expo) calc(var(--i, 0) * 90ms + 60ms), transform 760ms var(--ease-expo) calc(var(--i, 0) * 90ms + 60ms);
}

.reveal-enabled .stat.is-visible .stat-num {
  clip-path: inset(0 0 -12% 0);
  transform: none;
}

.stat::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--silk-honey), var(--thread-red) 80%);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0.75;
  transition: transform 720ms var(--ease-out) calc(var(--i, 0) * 90ms + 240ms);
}

.reveal-enabled .stat.is-visible::after {
  transform: scaleX(1);
}

/* ============================================================
   SERVICES — diagonal cascade (left col from -x, right col from +x)
   + oversized outlined index numerals that ink red on hover
   ============================================================ */
.reveal-enabled .service-card.fade-in {
  transform: translateY(44px) translateX(calc(var(--dir, 0) * 38px)) scale(0.99);
}

.reveal-enabled .service-card.fade-in.is-visible {
  transform: none;
}

.service-card .card-number {
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(155, 149, 141, 0.6);
  transition: color var(--dur-base) var(--ease), -webkit-text-stroke-color var(--dur-base) var(--ease);
}

.service-card:hover .card-number,
.service-card:focus-within .card-number {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}

/* Warm "paper floating over cream" — honey-tinted directional shadow at rest. */
.service-card {
  box-shadow: var(--shadow-warm-sm), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.service-card:hover,
.service-card:focus-within {
  box-shadow: var(--shadow-warm-lg), 0 26px 60px -28px rgba(214, 170, 104, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* ============================================================
   TECH ROWS — a red underline draws left→right + label slides from the gutter
   ============================================================ */
.reveal-enabled .technology-row::before {
  content: "";
  position: absolute;
  left: clamp(10px, 1.5vw, 20px);
  right: clamp(10px, 1.5vw, 20px);
  bottom: -1px;
  height: 1px;
  z-index: 1;
  background: var(--thread-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 720ms var(--ease-out) calc(var(--i, 0) * 70ms);
}

.reveal-enabled .technology-row.is-visible::before {
  transform: scaleX(1);
}

.reveal-enabled .technology-row .tech-n,
.reveal-enabled .technology-row h3 {
  transform: translateX(-14px);
  opacity: 0;
  transition: transform 640ms var(--ease-out) calc(var(--i, 0) * 70ms + 120ms), opacity 640ms var(--ease-out) calc(var(--i, 0) * 70ms + 120ms);
}

.reveal-enabled .technology-row.is-visible .tech-n,
.reveal-enabled .technology-row.is-visible h3 {
  transform: none;
  opacity: 1;
}

/* The descriptor fades up just behind its title. */
.reveal-enabled .technology-row .tech-desc {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms var(--ease-out) calc(var(--i, 0) * 70ms + 220ms), transform 600ms var(--ease-out) calc(var(--i, 0) * 70ms + 220ms);
}

.reveal-enabled .technology-row.is-visible .tech-desc {
  opacity: 1;
  transform: none;
}

/* The chips cascade in once the row's red underline has drawn. */
.reveal-enabled .technology-row .tech-chip {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-back);
}

.reveal-enabled .technology-row.is-visible .tech-chip {
  opacity: 1;
  transform: none;
}

.reveal-enabled .technology-row .tech-chip:nth-child(1) {
  transition-delay: 300ms;
}

.reveal-enabled .technology-row .tech-chip:nth-child(2) {
  transition-delay: 360ms;
}

.reveal-enabled .technology-row .tech-chip:nth-child(3) {
  transition-delay: 420ms;
}

.reveal-enabled .technology-row .tech-chip:nth-child(4) {
  transition-delay: 480ms;
}

.reveal-enabled .technology-row .tech-chip:nth-child(5) {
  transition-delay: 540ms;
}

.technology-row .tech-n,
.process-item .step-num,
.principle .principle-num {
  font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.5rem);
  letter-spacing: -0.02em;
}

/* ============================================================
   WARM DEPTH — ghost silk watermarks echo the hero down the page
   (one source image, low opacity, multiply — never a 2nd WebGL context)
   ============================================================ */
.approach-section,
.guarantees-section {
  position: relative;
  overflow: hidden;
}

.approach-section > .section-inner,
.guarantees-section > .section-inner {
  position: relative;
  z-index: 1;
}

.approach-section::before,
.guarantees-section::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: url("../img/hero/hero-flow.jpg") center/cover no-repeat;
  opacity: 0.07;
  filter: saturate(0.55) blur(2px);
  mix-blend-mode: multiply;
}

.approach-section::before {
  top: -8%;
  right: -6%;
  width: 48%;
  height: 78%;
  -webkit-mask-image: radial-gradient(62% 60% at 72% 30%, #000, transparent 72%);
  mask-image: radial-gradient(62% 60% at 72% 30%, #000, transparent 72%);
}

.guarantees-section::before {
  bottom: -10%;
  left: -6%;
  width: 46%;
  height: 80%;
  transform: scaleX(-1);
  -webkit-mask-image: radial-gradient(60% 60% at 30% 70%, #000, transparent 72%);
  mask-image: radial-gradient(60% 60% at 30% 70%, #000, transparent 72%);
}

/* ============================================================
   CTA — the hairline grid intensifies as the dark band arrives
   ============================================================ */
.cta-inner::before {
  opacity: calc(0.3 + 0.7 * var(--enter, 1));
}

/* ============================================================
   Reduced motion — settle every new effect to its static end-state
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .page-thread-path {
    stroke-dashoffset: 0;
  }
  .reveal-enabled .content-section > .section-inner,
  .reveal-enabled .stats-section > .section-inner {
    transform: none;
  }
  .reveal-enabled .section-heading h2,
  .reveal-enabled .approach-lead,
  .reveal-enabled .guarantees-aside p {
    clip-path: none;
    transform: none;
  }
  .reveal-enabled .section-heading p {
    opacity: 1;
    transform: none;
  }
  .reveal-enabled .eyebrow::before,
  .reveal-enabled .section-label::before {
    transform: scaleX(1);
  }
  .reveal-enabled .stat-num {
    clip-path: none;
    transform: none;
  }
  .stat::after {
    transform: scaleX(1);
  }
  .reveal-enabled .service-card.fade-in {
    transform: none;
  }
  .reveal-enabled .technology-row::before {
    transform: scaleX(1);
  }
  .reveal-enabled .technology-row .tech-n,
  .reveal-enabled .technology-row h3,
  .reveal-enabled .technology-row .tech-desc,
  .reveal-enabled .technology-row .tech-chip {
    transform: none;
    opacity: 1;
  }
  .cta-inner::before {
    opacity: 1;
  }
}
/* ============================================================
   CINEMATIC IMAGE BANDS — full-bleed generated visuals between chapters,
   with a scroll-linked parallax drift (driven by the --enter bus).
   ============================================================ */
.cine-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(440px, 66vh, 760px);
  display: flex;
  align-items: center;
  padding: clamp(72px, 11vh, 150px) 0;
}

.cine-band-img {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: translateY(calc((var(--enter, 0.5) - 0.5) * -70px)) scale(1.1);
  will-change: transform;
}

.cine-band-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cine-band--light .cine-band-scrim {
  background: linear-gradient(92deg, rgba(247, 243, 236, 0.92) 0%, rgba(247, 243, 236, 0.62) 34%, rgba(247, 243, 236, 0.12) 58%, transparent 76%);
}

.cine-band-inner {
  position: relative;
  z-index: 2;
}

.cine-band-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.cine-band-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.cine-band-line {
  max-width: 20ch;
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.cine-band-line .accent {
  color: var(--accent);
}

/* Editorial WIPE-in for the band line — a deliberate break from the page-wide
   fade-up so the cinematic moments feel hand-directed, not templated. */
.reveal-enabled .cine-band-line.fade-in {
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1000ms var(--ease-expo), opacity 700ms var(--ease-out);
}

.reveal-enabled .cine-band-line.fade-in.is-visible {
  clip-path: inset(0 0 0 0);
}

/* ============================================================
   PRODUCT SHOWCASE — the generated device render, split with copy
   ============================================================ */
.showcase {
  background: var(--bg);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.showcase-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16/11;
  box-shadow: var(--shadow-warm-lg), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 1.4s var(--ease-out);
}

.showcase:hover .showcase-media img {
  transform: scale(1.09);
}

.showcase-copy h2 {
  font-size: var(--t-h2);
  margin: 18px 0 16px;
}

.showcase-copy p {
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--t-body);
  line-height: 1.7;
}

@media (max-width: 820px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .cine-band-line {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cine-band-img {
    transform: scale(1.1);
  }
}
/* ============================================================
   MICRO-INTERACTIONS — richer hover/interaction across the page
   ============================================================ */
/* Nav links: a red underline draws in on hover */
.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--ease-out);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

/* Service cards: an arrow slides in on hover + a soft honey sheen sweeps across */
.service-card {
  background: linear-gradient(152deg, var(--card) 0%, #fbf6ee 100%);
}

.service-card::after {
  content: "→";
  position: absolute;
  top: clamp(22px, 2.2vw, 32px);
  right: clamp(22px, 2.2vw, 32px);
  z-index: 2;
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease-out);
}

.service-card:hover::after,
.service-card:focus-within::after {
  opacity: 1;
  transform: none;
}

/* Tech rows: nudge the whole row right on hover (on top of the wash) */
.technology-row {
  transition: transform var(--dur-base) var(--ease);
}

.technology-row:hover {
  transform: translateX(8px);
}

/* Stat numbers: a subtle pop on hover */
.stat-num {
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease);
  transform-origin: left bottom;
}

.stat:hover .stat-num {
  transform: scale(1.05);
  color: var(--accent);
}

/* Header CTA + buttons: a gentle press feedback */
.header-btn {
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.header-btn:hover {
  transform: translateY(-2px);
}

.header-btn:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .main-nav a::after {
    transition: none;
  }
  .technology-row:hover {
    transform: none;
  }
  .stat:hover .stat-num {
    transform: none;
  }
}
/* ============================================================
   SERVICE CARDS — now a visual grid: bespoke image banner + body
   ============================================================ */
.service-card {
  padding: 0;
  min-height: 0;
}

.service-card-media {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--bg-deep);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1s var(--ease-out);
}

.service-card:hover .service-card-media img,
.service-card:focus-within .service-card-media img {
  transform: scale(1.08);
}

/* a hairline that draws across under the image on hover */
.service-card-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}

.service-card:hover .service-card-media::after,
.service-card:focus-within .service-card-media::after {
  transform: scaleX(1);
}

.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(20px, 2.2vw, 30px);
}

.service-card-body h3 {
  margin-top: 14px;
  padding-top: 0;
  margin-bottom: 10px;
}

/* the arrow now sits in the body's bottom-right */
.service-card::after {
  top: auto;
  bottom: clamp(20px, 2.2vw, 30px);
  right: clamp(20px, 2.2vw, 30px);
}

/* ============================================================
   STATS — a clean, designed band (NO generated texture; that read "AI").
   Richness comes from scale, structure and the red accent, not a gradient.
   ============================================================ */
.stats-section {
  background: var(--bg-alt);
}

.stats-row {
  position: relative;
}

.stat-num {
  font-size: clamp(3rem, 1.9rem + 3.8vw, 4.6rem);
  letter-spacing: -0.04em;
}

/* the dividing rule between stats becomes a crisp full-height hairline */
.stat {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* ============================================================
   VIDEO LAYERS — generated loop videos (boomerang = seamless).
   Each sits over its matching still, which stays as poster/fallback
   and the reduced-motion view. Hero + bands autoplay; cards play on hover.
   ============================================================ */
/* Hero: the loop video covers the still, drifting with the cursor parallax. */
.hero-video {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

/* Cine-bands: the video lives inside .cine-band-img so it inherits the
   scroll parallax transform; the bg image behind it is the fallback. */
.cine-band-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Service cards: a muted loop that fades in over the still on hover. */
.service-card-media .card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 520ms var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.service-card:hover .card-video,
.service-card:focus-within .card-video {
  opacity: 1;
}

/* keep the hover hairline + arrow above the video */
.service-card-media::after {
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .cine-band-video,
  .service-card-media .card-video {
    display: none;
  }
}
/* On touch / no-hover devices, never show the card videos (keep it light). */
@media (hover: none) {
  .service-card-media .card-video {
    display: none;
  }
}
/* ── Tablet ── */
@media (max-width: 1020px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .approach-grid,
  .guarantees-grid {
    grid-template-columns: 1fr;
  }
  .process-list {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 36px;
  }
}
/* ── Open the mobile nav + stack the wider layouts ── */
@media (max-width: 900px) {
  html {
    scroll-padding-top: 80px;
  }
  .site-header {
    grid-template-columns: auto 1fr;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 26px clamp(20px, 6vw, 56px) 30px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open {
    display: flex;
  }
  .header-actions {
    justify-self: end;
  }
  .menu-toggle {
    display: grid;
  }
  /* Process → vertical timeline */
  .process-list {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
  }
  .process-list::before {
    top: 0;
    bottom: 0;
    left: 4px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .process-item {
    padding: 22px 0 22px 32px;
  }
  .process-item::before {
    top: 30px;
    left: 0;
    transform: none;
  }
  /* Travelling dot follows the vertical timeline on tablet/mobile. */
  .process-progress {
    top: 0;
    left: 4px;
    width: 1px;
    height: 100%;
    transform: scaleY(var(--pp, 0));
    transform-origin: top center;
  }
  .process-dot {
    left: 4px;
    top: clamp(0px, var(--pp, 0) * 100%, 100%);
  }
  .cta-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
}
@media (max-width: 640px) {
  .site-header {
    min-height: 72px;
    padding: 8px 6%;
    gap: 14px;
  }
  .brand-mark {
    width: 50px;
    height: 44px;
  }
  .header-btn {
    display: none;
  }
  .hero {
    padding: 64px 0 56px;
  }
  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .stat:nth-child(even) {
    border-left: 1px solid var(--line);
    padding-left: clamp(18px, 5vw, 28px);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 0;
  }
  .technology-row {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    row-gap: 16px;
    column-gap: 16px;
  }
  .tech-head,
  .tech-chips {
    grid-column: 2;
  }
  .tech-n {
    font-size: 1.6rem;
  }
  .cta-inner {
    border-radius: 22px;
  }
  .cta-section .btn-primary {
    width: 100%;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/*# sourceMappingURL=main.css.map */
