/* ==========================================================================
   Luminia. Estudio de diseño y desarrollo web.
   A single dark visual world: night navy ground, light as the material.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Ground */
  --ink-0: #030817;
  --ink-1: #060E22;
  --ink-2: #061027;
  --ink-3: #0A1431;
  --ink-4: #0E1A3E;
  --indigo: #1E2447;
  --indigo-2: #2D3470;

  /* Surface ladder: depth comes from a lighter surface and a hairline, not a glow */
  --surface-1: #0B1535;
  --surface-2: #0F1B42;
  --surface-3: #14214D;

  /* Light */
  --mist: #61699F;
  --mist-1: #7A82B6;
  --mist-2: #969ECF;
  --peri: #7D89DB;
  --lav: #A6AEF0;
  --lav-2: #C9CEF7;
  --paper: #F1F2F7;
  --glint: #FBFBFF;
  --text-2: #C3C8EC;
  --placeholder: var(--mist-1);

  /* Semantic (kept apart from the accent) */
  --ok: #8FE3C0;
  --error: #FF9BAE;

  --line: rgba(166, 174, 240, 0.13);
  --line-strong: rgba(166, 174, 240, 0.26);
  --shade: rgba(1, 4, 14, 0.9);

  /* Type */
  --f-display: 'Cabinet Grotesk', 'Host Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'Host Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* Monospace only for code, so the platform face is enough */
  --f-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;

  --fs-hero: clamp(3rem, min(0.2rem + 11vw, 18.5svh), 11rem);
  --fs-h2: clamp(2.35rem, 1.2rem + 4.1vw, 5.4rem);
  --fs-lead: clamp(1.125rem, 1.03rem + 0.4vw, 1.3125rem);
  --fs-body: 1.0625rem;
  /* Display steps under the H2 (phone to 1440 px): 28 to 56, 24 to 40, 22 to 28 */
  --fs-d3: clamp(1.75rem, 1.1rem + 2.67vw, 3.5rem);
  --fs-d4: clamp(1.5rem, 1.13rem + 1.52vw, 2.5rem);
  --fs-h3: clamp(1.375rem, 1.24rem + 0.57vw, 1.75rem);

  /* Space */
  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1320px;
  /* Top and bottom padding of every section: 64 px on phones, 126 at 1440, 136 max */
  --section: clamp(4rem, 2rem + 6.5vw, 8.5rem);
  --nav-h: 64px;

  /* Shape: interactive = pill, panels = 24, cards and browser mockups = 20, fields = 14 */
  --r-field: 14px;
  --r-shell: 30px;
  --r-core: 24px;
  --r-window: 20px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink-1);
  /* Locking the scroll for the menu keeps the scrollbar's space, so the
     page underneath never reflows */
  scrollbar-gutter: stable;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink-1);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }

::selection { background: rgba(166, 174, 240, 0.34); color: var(--glint); }
html { scrollbar-color: var(--indigo-2) var(--ink-1); }
input, textarea { caret-color: var(--lav); }
/* Autofill keeps the field colours instead of the browser's yellow */
input:-webkit-autofill, textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(166, 174, 240, 0.2), inset 0 0 0 100px var(--surface-2);
  transition: background-color 9999s;
}
input:-webkit-autofill:focus, textarea:-webkit-autofill:focus { box-shadow: inset 0 0 0 2px var(--lav), inset 0 0 0 100px var(--surface-2); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-1);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.4s var(--ease-out);
}
.skip-link:focus { transform: translateY(env(safe-area-inset-top, 0px)); }

.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.section { padding-block: var(--section); position: relative; }

.section-head {
  display: grid;
  gap: 24px;
  max-width: 62rem;
  margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.section-title {
  font-family: var(--f-display);
  font-weight: 650;
  font-size: var(--fs-h2);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
  padding-bottom: 0.06em;
}

.section-intro {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--mist-2);
  max-width: 54ch;
  text-wrap: pretty;
}

/* Split text lines: SplitText wraps each line in a clipping mask. Extra room
   at the bottom keeps descenders (g, j, p, q, y) from being cut. */
.split-line-mask { padding-bottom: 0.16em; margin-bottom: -0.16em; }
/* Reduced motion: every decorative loop stops where it is */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }

.skip-inline {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 5;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-1);
  font-weight: 600;
  font-size: 0.9375rem;
  transform: translateY(-140%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.2s;
}
.skip-inline:focus { transform: none; opacity: 1; }

.round-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease-spring), box-shadow 0.3s;
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { background: var(--paper); color: var(--ink-1); box-shadow: none; }
.round-btn:active { transform: scale(0.94); }
.round-btn:disabled { opacity: 0.35; pointer-events: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --h: 58px;
  --icon: 42px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--h);
  padding: 0 calc((var(--h) - var(--icon)) / 2) 0 26px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s var(--ease-spring), background-color 0.35s, color 0.35s, box-shadow 0.5s var(--ease-out);
}
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }
[data-magnetic] { translate: var(--mx, 0px) var(--my, 0px); }

.btn-primary {
  background: var(--paper);
  color: var(--ink-1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 26px -14px rgba(1, 4, 14, 0.9);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 32%, rgba(166, 174, 240, 0.65) 46%, rgba(255, 255, 255, 0.95) 50%, rgba(166, 174, 240, 0.65) 54%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 1s var(--ease-out);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 #fff, 0 16px 32px -14px rgba(1, 4, 14, 1); }
.btn-primary:hover::before { transform: translateX(130%); }

.btn-icon {
  width: var(--icon);
  height: var(--icon);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--ink-1);
  color: var(--paper);
  overflow: hidden;
  transition: transform 0.6s var(--ease-spring);
}
.btn-icon svg { width: 18px; height: 18px; }
.btn:hover .btn-icon { transform: translateX(2px) scale(1.06); }
.btn:hover .btn-icon svg { animation: arrow-through 0.7s var(--ease-out); }
@keyframes arrow-through {
  0% { transform: translateX(0); }
  45% { transform: translateX(160%); opacity: 1; }
  46% { transform: translateX(-160%); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: translateX(0); }
}

.btn-ghost {
  padding: 0 26px;
  color: var(--paper);
  background: var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(241, 242, 247, 0.06);
}
.btn-ghost:hover { background: var(--surface-3); }

.btn-sm { --h: 48px; --icon: 36px; padding-left: 20px; font-size: 0.9375rem; }
.btn-sm.btn-ghost { padding: 0 20px; }
.btn-block { width: 100%; }

.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--lav);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(166, 174, 240, 0.4);
}
.link-btn:hover { text-decoration-color: var(--lav); }

/* --------------------------------------------------------------------------
   Navigation: floating glass pill
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) 0;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  position: relative;
  max-width: var(--maxw);
  height: var(--nav-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  background: rgba(7, 14, 36, 0.56);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 0 0 1px rgba(166, 174, 240, 0.14),
    inset 0 1px 0 rgba(241, 242, 247, 0.07),
    0 24px 60px -30px var(--shade);
  transition: transform 0.7s var(--ease-spring), background-color 0.4s;
}
.nav.is-hidden .nav-pill { transform: translateY(calc(-100% - 24px)); }
.nav.is-scrolled .nav-pill { background: rgba(6, 12, 32, 0.78); }

.nav-logo { display: flex; align-items: center; min-height: 44px; border-radius: 10px; }
.logo { height: 27px; width: auto; color: var(--paper); overflow: visible; }
.logo-idot { fill: var(--lav); }
.logo-dot { transform-box: fill-box; transform-origin: center; }
.nav-logo:hover .logo-dot { animation: dot-pulse 1.2s var(--ease-out); }
@keyframes dot-pulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.nav-links {
  position: relative;
  display: flex;
  gap: 2px;
  margin-inline: auto;
}
.nav-links a {
  position: relative;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--mist-2);
  transition: color 0.3s, background-color 0.3s;
}
.nav-links a:hover { color: var(--paper); background: rgba(166, 174, 240, 0.07); }
.nav-links a[aria-current='true'] { color: var(--paper); }
.nav-glint {
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--lav-2);
  opacity: 0;
  transform: translateX(var(--glint-x, 0px));
  transition: transform 0.6s var(--ease-spring), opacity 0.3s;
  pointer-events: none;
}
.nav-links.has-active .nav-glint { opacity: 1; }

.nav-cta { flex: none; }

/* Language: the same page in the other language, one tap away. EN and ES
   are language codes, not labels, so they stay in capitals. */
.nav-lang {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--mist-2);
  transition: color 0.3s, background-color 0.3s;
}
.nav-lang:hover { color: var(--paper); background: rgba(166, 174, 240, 0.07); }


.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  place-items: center;
  background: rgba(166, 174, 240, 0.08);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.45s var(--ease-spring);
}
.nav-toggle:active { transform: scale(0.92); transition-duration: 0.12s; }
.nav-toggle-lines { position: relative; width: 18px; height: 12px; display: block; }
.nav-toggle-lines i {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1.8px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform 0.55s var(--ease-spring);
}
.nav-toggle-lines i:first-child { transform: translateY(2px); }
.nav-toggle-lines i:last-child { transform: translateY(8.5px); }
.nav-toggle[aria-expanded='true'] .nav-toggle-lines i:first-child { transform: translateY(5.2px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-lines i:last-child { transform: translateY(5.2px) rotate(-45deg); }

/* Mobile menu overlay. It opens like an aperture from the button that calls
   it. The panel is solid, with no backdrop blur: blurring the whole page
   while the circle grew made phones stutter and Safari flicker. On its own
   layer, the growing circle only moves a mask; nothing is repainted. */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  align-items: end;
  align-items: safe end;
  padding: calc(env(safe-area-inset-top, 0px) + 100px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ink-1);
  clip-path: circle(0px at var(--ox, calc(100% - 44px)) var(--oy, 44px));
  transition: clip-path 0.45s var(--ease-inout);
  will-change: transform;
}
.menu.is-open {
  clip-path: circle(var(--or, 150vmax) at var(--ox, calc(100% - 44px)) var(--oy, 44px));
  transition: clip-path 0.7s var(--ease-out);
}
.menu-inner { display: grid; gap: 40px; }
.menu-links { display: grid; gap: 4px; }
/* clip, not hidden: a clipped box cannot scroll, so moving focus into the
   menu can never shift a link inside its mask */
.menu-links li { overflow: hidden; overflow: clip; }
.menu-links a {
  display: block;
  font-family: var(--f-display);
  font-weight: 650;
  font-size: clamp(2.6rem, 11vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  transform: translateY(105%);
  transition: transform 0.3s var(--ease-inout), color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
/* The links rise as the circle reaches them, one after another */
.menu.is-open .menu-links a { transform: translateY(0); transition: transform 0.75s var(--ease-out) 0.1s, color 0.3s; }
.menu.is-open .menu-links li:nth-child(2) a { transition-delay: 0.145s, 0s; }
.menu.is-open .menu-links li:nth-child(3) a { transition-delay: 0.19s, 0s; }
.menu.is-open .menu-links li:nth-child(4) a { transition-delay: 0.235s, 0s; }
.menu.is-open .menu-links li:nth-child(5) a { transition-delay: 0.28s, 0s; }
.menu.is-open .menu-links li:nth-child(6) a { transition-delay: 0.325s, 0s; }
.menu-links a:active { color: var(--lav); }
.menu-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--mist-2);
  font-size: 0.9375rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.3s var(--ease-inout);
}
.menu.is-open .menu-foot { opacity: 1; transform: none; transition: opacity 0.6s var(--ease-out) 0.35s, transform 0.8s var(--ease-out) 0.35s; }
.menu-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font-size: 1.125rem; }

/* --------------------------------------------------------------------------
   Hero: the lens over the headline
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(660px, 100svh, 1060px);
  display: grid;
  align-items: center;
  padding-block: calc(var(--nav-h) + 72px) clamp(56px, 9vh, 96px);
  overflow: hidden;
  background: var(--ink-1);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--ink-1));
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 2; }




.hero-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--paper);
  max-width: 100%;
}
.hl { display: block; white-space: nowrap; overflow: clip; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hl-in { display: block; }
.hl-2 { padding-left: 0.92em; }
.lens-anchor { display: inline-block; }

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 36rem);
  gap: 32px;
  margin-top: clamp(30px, 5vh, 56px);
}
.hero-sub {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 34ch;
  text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* The lens */
.lens {
  --d: clamp(150px, min(26vw, 43svh), 420px);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  transform: translate3d(-999px, -999px, 0);
}
.lens.is-ready { opacity: 1; }
.lens-mag {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink-1);
}
.lens-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lens-clone {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: none;
}
.lens-clone .hero-title {
  color: var(--glint);
  text-shadow: -1.6px 0 0 rgba(125, 137, 219, 0.75), 1.6px 0 0 rgba(201, 206, 247, 0.55), 0 0 22px rgba(166, 174, 240, 0.45);
}
.lens-clone .hero-sub { color: var(--glint); }
.lens-glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(90% 90% at 30% 22%, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.07) 24%, transparent 42%),
    radial-gradient(closest-side, transparent 70%, rgba(166, 174, 240, 0.12) 86%, rgba(3, 8, 23, 0.55) 100%),
    radial-gradient(60% 40% at 70% 92%, rgba(166, 174, 240, 0.22), transparent 70%);
  box-shadow:
    inset 0 0 0 1px rgba(241, 242, 247, 0.34),
    inset 0 3px 2px -1px rgba(255, 255, 255, 0.55),
    inset 0 -10px 28px rgba(3, 8, 23, 0.55),
    0 40px 90px -30px rgba(1, 4, 14, 0.95),
    0 0 0 14px rgba(166, 174, 240, 0.035);
}
.lens-rim {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 210deg, rgba(166, 174, 240, 0.1), rgba(241, 242, 247, 0.85), rgba(125, 137, 219, 0.25), rgba(201, 206, 247, 0.7), rgba(166, 174, 240, 0.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.8;
}

.lens-hint {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 0.875rem/1 var(--f-body);
  color: var(--lav);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s;
}
.lens-hint::before {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lav));
}
.lens-hint.is-visible { opacity: 0.85; }
.lens-hint-touch { display: none; }
@media (pointer: coarse) {
  .lens-hint-fine { display: none; }
  .lens-hint-touch { display: inline; }
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(20px, 2.8vw, 36px);
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 20, 49, 0.4), rgba(6, 16, 39, 0.9));
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 10vw, 160px);
  z-index: 1;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink-1), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink-1), transparent); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  padding-right: clamp(22px, 3vw, 48px);
}
.mq-item {
  font-family: var(--f-display);
  font-weight: 650;
  font-size: clamp(2.3rem, 1rem + 4.6vw, 6.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--paper);
}
.mq-outline {
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(166, 174, 240, 0.6);
}
.mq-mark { width: clamp(26px, 2.8vw, 46px); height: clamp(26px, 2.8vw, 46px); }

/* --------------------------------------------------------------------------
   Manifesto: words light up as you read
   -------------------------------------------------------------------------- */
.manifesto { padding-block: var(--section); position: relative; }

.manifesto-text {
  position: relative;
  font-family: var(--f-display);
  font-weight: 550;
  font-size: var(--fs-d3);
  line-height: 1.12;
  letter-spacing: -0.032em;
  max-width: 21em;
  text-wrap: pretty;
}
.manifesto-text .w { color: var(--paper); }

.pill {
  position: relative;
  display: inline-block;
  width: 2.15em;
  height: 0.92em;
  margin: 0 0.1em;
  vertical-align: -0.1em;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-3), var(--ink-3));
  box-shadow: inset 0 0 0 1px rgba(166, 174, 240, 0.28);
}
.pill-see .pill-beam {
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(201, 206, 247, 0.85), transparent);
  transform: translateX(-89%) skewX(-20deg);
  animation: pill-sweep 3.2s var(--ease-inout) infinite;
}
.pill-see .pill-spot {
  position: absolute;
  right: 18%;
  top: 50%;
  width: 0.26em;
  height: 0.26em;
  border-radius: 50%;
  background: var(--glint);
  transform: translateY(-50%);
}
@keyframes pill-sweep { 0% { transform: translateX(-89%) skewX(-20deg); } 60%, 100% { transform: translateX(267%) skewX(-20deg); } }

.pill-click { background: linear-gradient(135deg, #A6AEF0, #7D89DB); }
.pill-click .pill-btn {
  position: absolute;
  left: 18%;
  top: 27%;
  width: 46%;
  height: 46%;
  border-radius: 999px;
  background: var(--ink-1);
  animation: pill-press 2.8s var(--ease-out) infinite;
}
.pill-click .pill-cursor {
  position: absolute;
  width: 0.3em;
  height: 0.36em;
  left: 58%;
  top: 44%;
  background: var(--glint);
  clip-path: polygon(0 0, 100% 62%, 55% 66%, 72% 100%, 56% 100%, 40% 70%, 0 90%);
  animation: pill-cursor 2.8s var(--ease-out) infinite;
}
@keyframes pill-cursor {
  0% { transform: translate(0.5em, 0.2em); }
  40%, 70% { transform: translate(-0.12em, -0.05em); }
  100% { transform: translate(0.5em, 0.2em); }
}
@keyframes pill-press {
  0%, 44% { transform: scale(1); }
  50% { transform: scale(0.84); background: var(--indigo); }
  58%, 100% { transform: scale(1); }
}
.pill-grow svg { position: absolute; inset: 14% 10%; width: 80%; height: 72%; overflow: visible; }
.pill-grow path {
  fill: none;
  stroke: var(--lav-2);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: pill-draw 3.4s var(--ease-out) infinite;
}
@keyframes pill-draw { 0% { stroke-dashoffset: 80; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -80; } }

/* --------------------------------------------------------------------------
   Services: an index you can open
   -------------------------------------------------------------------------- */
.svc-list { border-top: 1px solid var(--line); }
.svc { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.svc::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(125, 137, 219, 0.1) 42%, rgba(241, 242, 247, 0.09) 50%, rgba(125, 137, 219, 0.1) 58%, transparent 100%);
  transform: translateX(-105%);
}
.svc:hover::before { animation: svc-sweep 1.1s var(--ease-out); }
@keyframes svc-sweep { from { transform: translateX(-105%); } to { transform: translateX(105%); } }
.svc-row {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px clamp(20px, 4vw, 64px);
  padding-block: clamp(22px, 3.1vw, 40px);
  text-align: left;
  border-radius: 6px;
}
.svc-sum {
  max-width: 34ch;
  color: var(--mist-2);
  font-size: var(--fs-lead);
  line-height: 1.45;
  text-wrap: pretty;
  transition: color 0.4s;
}
.svc-row:hover .svc-sum, .svc.is-open .svc-sum { color: var(--text-2); }
.svc-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-d3);
  line-height: 1.02;
  letter-spacing: -0.038em;
  transition: transform 0.8s var(--ease-spring), color 0.4s;
}
.svc-row:hover .svc-name { transform: translateX(clamp(8px, 1.4vw, 22px)); }
.svc.is-open .svc-name { color: var(--lav-2); }
.svc-plus {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--lav-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform 0.7s var(--ease-spring), background-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.svc-plus svg { width: 20px; height: 20px; }
.svc-row:hover .svc-plus { box-shadow: inset 0 0 0 1px rgba(166, 174, 240, 0.6); }
.svc.is-open .svc-plus { transform: rotate(135deg); background: var(--paper); color: var(--ink-1); box-shadow: none; }
.svc-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s var(--ease-spring);
}
.svc.is-open .svc-detail { grid-template-rows: 1fr; }
.svc-detail-inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 52px;
  column-gap: clamp(20px, 4vw, 64px);
}
.svc-detail-body { grid-column: 2; display: grid; gap: 16px; padding-bottom: clamp(26px, 3vw, 40px); }
.svc-detail-body p { max-width: 44ch; color: var(--mist-2); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--lav-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* --------------------------------------------------------------------------
   Work: concept sites you can rename
   -------------------------------------------------------------------------- */
.work {
  position: relative;
  padding-block: max(0px, var(--section) - var(--nav-h) - 24px) max(0px, var(--section) - 36px);
}
.work-pin {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 3.4vh, 36px);
  padding-block: calc(var(--nav-h) + 24px) 36px;
  overflow: clip;
}
.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}
.work-head-copy { display: grid; gap: 12px; max-width: 58rem; }
.work-head .section-title { font-size: var(--fs-d3); }
.work-head .section-intro { max-width: 46ch; }

.namefield { width: min(100%, 380px); display: grid; gap: 10px; }
.namefield label { font-size: 0.875rem; font-weight: 500; color: var(--mist-2); }
.namefield-box { position: relative; }
.namefield input {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 62px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 20, 49, 0.78);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--paper);
  outline: none;
  transition: box-shadow 0.4s var(--ease-out);
}
.namefield input::placeholder { color: var(--placeholder); }
.namefield input:focus { box-shadow: inset 0 0 0 2px var(--lav); }


.work-rail { position: relative; display: flex; justify-content: flex-end; min-height: 52px; margin-bottom: -8px; }
.work-nav { display: flex; gap: 10px; }
.work.is-pinned .work-nav { display: none; }
.work.is-pinned .work-rail { min-height: 0; margin: 0; }
.work-track-wrap {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  scrollbar-width: thin;
  scrollbar-color: var(--indigo-2) transparent;
  padding-bottom: 18px;
}
.work-track-wrap::-webkit-scrollbar { height: 6px; }
.work-track-wrap::-webkit-scrollbar-thumb { background: var(--indigo-2); border-radius: 6px; }
.work-track-wrap .work-item, .work-track-wrap .work-end { scroll-snap-align: start; }
.work.is-pinned .work-track-wrap { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
/* Pinned, the gallery is exactly one screen tall and the cards take their
   size from the height that is left, so the text under each card always
   fits, whatever the screen. */
.work.is-pinned .work-pin { height: 100svh; }
.work.is-pinned .work-track-wrap { flex: 1 1 auto; min-height: 0; container-type: size; display: flex; align-items: center; }
.work.is-pinned .work-item { width: max(290px, min(56vw, calc((100cqh - 112px) * 1.6), 980px)); }
.work-track {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 52px);
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
}
.work.is-pinned .work-track { will-change: transform; }
.work-item { width: max(290px, min(56vw, calc((100svh - 360px) * 1.6), 980px)); flex: none; display: grid; gap: 12px; }

.browser {
  position: relative;
  border-radius: var(--r-window);
  overflow: hidden;
  background: var(--surface-1);
  box-shadow:
    inset 0 0 0 1px rgba(166, 174, 240, 0.16),
    0 50px 110px -50px rgba(1, 4, 14, 1),
    0 0 0 1px rgba(3, 8, 23, 0.6);
}

.browser-bar {
  position: relative;
  z-index: 2;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: var(--surface-2);
  box-shadow: inset 0 -1px 0 rgba(166, 174, 240, 0.1);
}
.browser-dots { display: flex; gap: 6px; flex: none; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--indigo-2); }
.browser-url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  max-width: 360px;
  height: 25px;
  margin-inline: auto;
  padding-inline: 12px;
  border-radius: 8px;
  background: rgba(6, 14, 34, 0.85);
  font: 400 0.8125rem/1 var(--f-body);
  color: var(--mist-2);
  white-space: nowrap;
  overflow: hidden;
}
.browser-url svg { width: 11px; height: 11px; opacity: 0.8; }
.browser-url > span { overflow: hidden; text-overflow: ellipsis; }

.concept {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  container-type: inline-size;
  font-family: var(--f-body);
  line-height: 1.3;
  letter-spacing: 0;
}
.concept span, .concept i { display: block; }
.concept .js-brand { display: inline; }

.work-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.work-meta h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.work-meta p { margin-top: 4px; color: var(--mist-2); font-size: 0.9375rem; }
.concept-chip {
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
  font: 500 0.8125rem/1 var(--f-body);
  color: var(--lav-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.work-end {
  width: clamp(280px, 30vw, 440px);
  flex: none;
  align-self: center;
  display: grid;
  gap: 20px;
  justify-items: start;
  padding: clamp(26px, 3vw, 44px);
}
.work-end-title {
  font-family: var(--f-display);
  font-weight: 650;
  font-size: var(--fs-d3);
  line-height: 1;
  letter-spacing: -0.04em;
}
.work-end-text { color: var(--mist-2); }

.work-progress {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(100% - 2 * var(--gutter), var(--maxw));
  height: 1px;
  translate: -50% 0;
  background: var(--line);
}
.work-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--lav);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.work:not(.is-pinned) .work-progress { display: none; }

/* Concept 1: asador */
.concept-brasa {
  background: radial-gradient(120cqw 70cqw at 72% 120%, #4A1906 0%, #1E0D07 46%, #120907 100%);
  color: #F6E7D8;
}
.cb-glow {
  position: absolute;
  left: 30%;
  bottom: -26cqw;
  width: 90cqw;
  height: 50cqw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 120, 50, 0.6), rgba(255, 70, 20, 0.2) 55%, transparent);
  animation: cb-flicker 3.4s ease-in-out infinite;
}
@keyframes cb-flicker {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.04); }
  55% { opacity: 0.75; transform: scale(0.98); }
  80% { opacity: 0.95; transform: scale(1.02); }
}
.cb-sparks i {
  position: absolute;
  bottom: 8cqw;
  width: 0.45cqw;
  height: 0.45cqw;
  border-radius: 50%;
  background: #FFC48A;
  box-shadow: 0 0 1cqw 0.2cqw rgba(255, 106, 43, 0.9);
  opacity: 0;
  animation: cb-spark 4.6s linear infinite;
}
.cb-sparks i:nth-child(1) { left: 48%; animation-delay: 0s; }
.cb-sparks i:nth-child(2) { left: 56%; animation-delay: 0.6s; }
.cb-sparks i:nth-child(3) { left: 63%; animation-delay: 1.4s; }
.cb-sparks i:nth-child(4) { left: 70%; animation-delay: 2.1s; }
.cb-sparks i:nth-child(5) { left: 78%; animation-delay: 0.9s; }
.cb-sparks i:nth-child(6) { left: 84%; animation-delay: 2.8s; }
.cb-sparks i:nth-child(7) { left: 60%; animation-delay: 3.4s; }
.cb-sparks i:nth-child(8) { left: 74%; animation-delay: 3.9s; }
.cb-sparks i:nth-child(9) { left: 52%; animation-delay: 2.4s; }
.cb-sparks i:nth-child(10) { left: 88%; animation-delay: 1.8s; }
@keyframes cb-spark {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(-6cqw, -42cqw); opacity: 0; }
}
.cb-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.6cqw 4cqw;
  font-size: 1.35cqw;
}
.cb-logo {
  font-family: 'Big Shoulders', var(--f-display);
  font-weight: 800;
  font-size: 2.3cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cb-links { display: flex !important; gap: 3cqw; opacity: 0.8; }
.cb-btn { background: #FF5B1F; color: #1A0C07; padding: 1.1cqw 2.2cqw; border-radius: 99px; font-weight: 600; }
.cb-hero { position: absolute; z-index: 2; left: 4cqw; right: 4cqw; bottom: 9.5cqw; }
.cb-kicker { font-size: 1.45cqw; letter-spacing: 0.02em; color: #FFB067; }
.cb-title {
  margin-top: 0.6cqw;
  font-family: 'Big Shoulders', var(--f-display);
  font-weight: 900;
  font-size: calc(var(--fit, 1) * 27cqw);
  line-height: 0.8;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #F9EADB;
}
.cb-row { display: flex !important; justify-content: space-between; align-items: flex-end; gap: 4cqw; margin-top: 2cqw; }
.cb-lead { font-size: 1.55cqw; line-height: 1.45; max-width: 40cqw; opacity: 0.86; }
.cb-hours { display: grid !important; gap: 0.3cqw; font-size: 1.3cqw; text-align: right; }
.cb-hours em { font-style: normal; color: #FFB067; }
.cb-hours b { font-weight: 500; }
.cb-menu {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex !important;
  gap: 4.5cqw;
  padding: 1.7cqw 4cqw;
  border-top: 1px solid rgba(246, 231, 216, 0.14);
  font-size: 1.25cqw;
  white-space: nowrap;
  opacity: 0.72;
}

/* Concept 2: aceite */
.concept-olea { background: #ECEFE1; color: #1F2A12; }
.co-nav { display: flex !important; align-items: center; justify-content: space-between; padding: 2.4cqw 4cqw; font-size: 1.35cqw; }
.co-logo { font-family: 'Young Serif', Georgia, serif; font-size: 2.5cqw; letter-spacing: -0.01em; }
.co-links { display: flex !important; gap: 3cqw; }
.co-cart { display: flex !important; align-items: center; gap: 0.6cqw; }
.co-cart b {
  display: grid;
  place-items: center;
  width: 2.1cqw;
  height: 2.1cqw;
  border-radius: 50%;
  background: #1F2A12;
  color: #ECEFE1;
  font-size: 1.1cqw;
}
.co-body {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  height: calc(100% - 7.4cqw);
  padding: 0 4cqw 2cqw;
}
.co-tag {
  display: inline-block !important;
  font-size: 1.15cqw;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7cqw 1.3cqw;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px rgba(31, 42, 18, 0.3);
}
.co-title { font-family: 'Young Serif', Georgia, serif; font-size: 6.3cqw; line-height: 1; letter-spacing: -0.025em; margin: 2cqw 0 1.6cqw; }
.co-lead { font-size: 1.6cqw; line-height: 1.45; max-width: 34cqw; color: #43522F; }
.co-buy { display: flex !important; align-items: center; gap: 2.2cqw; margin-top: 3cqw; }
.co-price { font-family: 'Young Serif', Georgia, serif; font-size: 3cqw; }
.co-btn { background: #1F2A12; color: #DCEA74; padding: 1.3cqw 2.4cqw; border-radius: 99px; font-size: 1.4cqw; font-weight: 600; }
.co-visual { position: relative; height: 100%; display: grid !important; place-items: center; }
.co-halo {
  position: absolute;
  width: 36cqw;
  height: 36cqw;
  border-radius: 50%;
  background: #E2EB9E;
  animation: co-breathe 6s ease-in-out infinite;
}
@keyframes co-breathe { 50% { transform: scale(1.06); } }
.co-bottle {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  animation: co-float 6s ease-in-out infinite;
  filter: drop-shadow(0 2.4cqw 2.2cqw rgba(31, 42, 18, 0.35));
}
@keyframes co-float { 50% { transform: translateY(-1.4cqw) rotate(-1.5deg); } }
.co-cap { width: 4.4cqw; height: 3.2cqw; background: #1F2A12; border-radius: 0.6cqw 0.6cqw 0.3cqw 0.3cqw; }
.co-neck { width: 3.4cqw; height: 5cqw; background: linear-gradient(90deg, #56662A, #A5B946 45%, #56662A); }
.co-glass {
  position: relative;
  width: 14.5cqw;
  height: 27cqw;
  border-radius: 4cqw 4cqw 2cqw 2cqw;
  overflow: hidden;
  background: linear-gradient(90deg, #4B5A1F, #A2B640 32%, #CFE05E 50%, #8EA236 70%, #45541C);
}
.co-shine {
  position: absolute;
  left: 16%;
  top: 7%;
  width: 11%;
  height: 86%;
  border-radius: 99px;
  background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.04));
}
.co-label {
  position: absolute;
  left: 1.5cqw;
  right: 1.5cqw;
  top: 8.5cqw;
  bottom: 5cqw;
  display: grid !important;
  place-content: center;
  gap: 0.6cqw;
  text-align: center;
  background: #F4F6EA;
  border-radius: 0.9cqw;
}
.co-label-name { font-family: 'Young Serif', Georgia, serif; font-size: calc(var(--fit, 1) * 3.4cqw); line-height: 1.2; color: #1F2A12; overflow-wrap: anywhere; }
.co-label small { display: block; font-size: 0.9cqw; letter-spacing: 0.16em; text-transform: uppercase; color: #56662A; }
.co-olive {
  position: absolute;
  width: 4.4cqw;
  height: 3.1cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #B3C652, #4F601D 72%);
  animation: co-float 5s ease-in-out infinite;
}
.co-olive.o1 { left: 10%; top: 18%; rotate: -24deg; }
.co-olive.o2 { right: 8%; top: 40%; rotate: 18deg; animation-delay: -2s; }
.co-olive.o3 { left: 20%; bottom: 12%; rotate: 8deg; animation-delay: -3.4s; background: radial-gradient(circle at 34% 30%, #6E7A3A, #28300F 72%); }

/* Concept 3: arquitectura */
.concept-vertice { background: #D8D8D2; color: #121212; }
.cv-nav {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 2.3cqw 4cqw;
  font-family: var(--f-body);
  font-size: 1.3cqw;
  box-shadow: inset 0 -1px 0 rgba(18, 18, 18, 0.2);
}
.cv-logo { display: flex !important; align-items: baseline; gap: 1.2cqw; }
.cv-logo b { font-family: var(--f-body); font-weight: 800; font-size: 1.9cqw; letter-spacing: -0.03em; }
.cv-logo em { font-style: normal; opacity: 0.6; }
.cv-links { display: flex !important; gap: 3cqw; }
.cv-grid {
  position: relative;
  display: grid !important;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: 1fr auto;
  height: calc(100% - 6.6cqw);
  padding: 3.2cqw 4cqw 3cqw;
  gap: 2cqw;
}
.cv-title {
  align-self: start;
  font-family: var(--f-body);
  font-weight: 800;
  font-size: 5.4cqw;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.cv-model { grid-row: 1 / span 2; grid-column: 2; position: relative; display: grid !important; place-items: center; }
.cv-model svg { width: 100%; height: 100%; overflow: visible; }
.cv-meta {
  align-self: end;
  display: flex !important;
  gap: 3cqw;
  font-size: 1.3cqw;
  color: #3D3D3A;
}
.cv-meta span:first-child::before {
  content: '';
  display: inline-block;
  width: 1cqw;
  height: 1cqw;
  margin-right: 0.8cqw;
  border-radius: 50%;
  background: #E5402A;
  vertical-align: -0.1cqw;
}
.cv-index {
  position: absolute;
  left: 4cqw;
  top: 21cqw;
  display: grid !important;
  gap: 0.9cqw;
  font-size: 1.35cqw;
  color: #3D3D3A;
}
.cv-index span { position: relative; padding-left: 1.9cqw; }
.cv-index .is-on { color: #121212; font-weight: 600; }
.cv-index .is-on::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.9cqw;
  height: 0.9cqw;
  margin-top: -0.45cqw;
  border-radius: 50%;
  background: #A8261A;
}


/* Concept 4: surf */
.concept-marea { background: linear-gradient(180deg, #FFE5CB 0%, #FFC6A2 42%, #FF9B7B 64%, #F48468 100%); color: #0A2F38; }
.cm-sun {
  position: absolute;
  left: 60%;
  top: 40%;
  width: 22cqw;
  height: 22cqw;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF6E6 0 38%, rgba(255, 241, 214, 0.55) 56%, transparent 72%);
  animation: cm-sun 8s ease-in-out infinite;
}
@keyframes cm-sun { 50% { transform: translateY(1.2cqw) scale(1.04); } }
.cm-waves { position: absolute; left: -12%; bottom: 0; width: 124%; height: 40%; }
.cm-w { animation: cm-wave 7s ease-in-out infinite alternate; }
.cm-w1 { fill: #1D6170; }
.cm-w2 { fill: #0F4755; animation-duration: 5.4s; animation-direction: alternate-reverse; }
.cm-w3 { fill: #082E38; animation-duration: 4.2s; }
@keyframes cm-wave { from { transform: translateX(-3.5%); } to { transform: translateX(3.5%); } }
.cm-nav {
  position: relative;
  z-index: 2;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 2.4cqw 4cqw;
  font-size: 1.35cqw;
  font-weight: 500;
}
.cm-logo { font-family: var(--f-display); font-weight: 800; font-size: 2.4cqw; letter-spacing: -0.03em; }
.cm-links { display: flex !important; gap: 3cqw; margin-left: auto; margin-right: 3cqw; }
.cm-btn { background: #0A2F38; color: #FFE5CB; padding: 1.1cqw 2.2cqw; border-radius: 99px; font-weight: 600; }
.cm-hero { position: absolute; z-index: 2; left: 4cqw; top: 11cqw; max-width: 60cqw; }
.cm-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: calc(var(--fit, 1) * 18cqw);
  line-height: 0.82;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.cm-lead { font-size: 1.7cqw; line-height: 1.45; max-width: 36cqw; margin-top: 2.2cqw; }
.cm-live {
  display: inline-flex !important;
  gap: 2.2cqw;
  margin-top: 2.4cqw;
  padding: 1.2cqw 2cqw;
  border-radius: 1.4cqw;
  background: rgba(255, 255, 255, 0.5);
  font-size: 1.3cqw;
}
.cm-live em { font-style: normal; opacity: 0.7; }

/* --------------------------------------------------------------------------
   Process: a site that assembles itself
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  position: relative;
  padding: clamp(28px, 4.5vh, 48px) 0 clamp(28px, 4.5vh, 48px) 34px;
  min-height: 34vh;
  display: grid;
  align-content: center;
  gap: 10px;
}
.step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.step::after {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--indigo-2);
  transform: translateY(-50%);
  outline: 1px solid transparent;
  outline-offset: 3px;
  transition: background-color 0.5s, outline-color 0.5s;
}
.step h3 { color: var(--mist-1); transition: color 0.5s var(--ease-out); }
.step p { color: var(--mist-1); transition: color 0.5s var(--ease-out); }
.step.is-active h3 { color: var(--paper); }
.step.is-active p { color: var(--text-2); }
.step.is-active::after { background: var(--glint); outline: 1px solid var(--lav); outline-offset: 3px; }
.step-time { font: 600 0.875rem/1 var(--f-body); font-variant-numeric: tabular-nums; color: var(--mist-2); }
.step.is-active .step-time { color: var(--lav); }
.step h3 {
  font-family: var(--f-display);
  font-weight: 650;
  font-size: var(--fs-d4);
  line-height: 1;
  letter-spacing: -0.035em;
}
.step p { max-width: 40ch; }
.step-btn { text-align: left; letter-spacing: inherit; border-radius: 4px; transition: color 0.3s; }
/* The whole row is the target, not just the word */
.step-btn::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.step:not(.is-active) .step-btn:hover { color: var(--lav-2); }
.step-btn:focus-visible { outline: none; }
.step-btn:focus-visible::after { outline: 2px solid var(--lav); outline-offset: 2px; }
@keyframes step-in { from { opacity: 0; transform: translateY(-4px); } }

.process-stage {
  position: sticky;
  top: calc(50svh - min(24vw, 250px));
  display: grid;
  gap: 16px;
}
.process-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 30px; }
.process-caption { font: 500 0.875rem/1.3 var(--f-body); color: var(--mist-2); }
/* The launch is confirmed beside the caption, never on top of the site */
.launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(143, 227, 192, 0.1);
  color: var(--ok);
  font: 600 0.8125rem/1 var(--f-body);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-spring);
}
.launch-pill svg { width: 14px; height: 14px; }
.process-stage[data-stage='5'] .launch-pill { opacity: 1; transform: none; }

.mock { position: relative; }
.mock-browser { background: var(--surface-1); }
.mock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font: 600 0.75rem/1 var(--f-body);
  color: var(--ok);
  background: rgba(143, 227, 192, 0.1);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s, transform 0.5s var(--ease-spring);
}
.mock-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.mock[data-stage='5'] .mock-status { opacity: 1; transform: scale(1); }

.mock-viewport {
  position: relative;
  aspect-ratio: 16 / 10.4;
  overflow: hidden;
  background: #E9EDF4;
}
.mock-frame {
  container-type: inline-size;
  position: relative;
  width: 100%;
  height: 100%;
  margin-inline: auto;
  background: #FBFCFB;
  overflow: hidden;
  /* Intentional layout animation: the demo shows content reflowing */
  transition: width 1.1s var(--ease-inout), transform 1.1s var(--ease-inout), box-shadow 0.6s, opacity 0.5s;
}
.mock.is-narrow .mock-frame { width: 44%; transform: translateX(-52%); box-shadow: 0 0 0 1px rgba(15, 59, 55, 0.15), 0 20px 50px -20px rgba(15, 59, 55, 0.4); }

.ms { position: relative; height: 100%; padding: 0 4cqw 4cqw; color: #0F3B37; font-family: var(--f-body); line-height: 1.3; transition: opacity 0.6s; }
.ms span, .ms i { display: block; }
.ms-nav { display: flex; align-items: center; justify-content: space-between; padding: 3cqw 0; font-size: 1.8cqw; position: relative; z-index: 1; }
.ms-logo { display: flex !important; align-items: center; gap: 1cqw; font-family: var(--f-display); font-weight: 700; font-size: 3cqw; letter-spacing: -0.03em; }
.ms-logo i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: conic-gradient(from 200deg, #FF8A6B, #FFC7A8, #7FD1BE, #FF8A6B); }
.ms-links { display: flex !important; gap: 3cqw; }
.ms-btn { background: #0E5E57; color: #FBFCFB; padding: 1.3cqw 2.6cqw; border-radius: 99px; font-weight: 600; }
.ms-hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr 1fr; gap: 4cqw; align-items: center; margin-top: 1.5cqw; }
.ms-tag { display: inline-block !important; font-size: 1.55cqw; color: #0E5E57; background: #D6F1E9; padding: 0.8cqw 1.6cqw; border-radius: 99px; }
.ms-title { font-family: var(--f-display); font-weight: 700; font-size: 6.4cqw; line-height: 1; letter-spacing: -0.045em; margin: 2cqw 0 1.6cqw; }
.ms-lead { font-size: 1.95cqw; line-height: 1.45; color: #3C5E5A; max-width: 44cqw; }
.ms-cta { display: inline-block !important; margin-top: 3cqw; background: #FF8A6B; color: #2A130B; padding: 1.7cqw 3cqw; border-radius: 99px; font-weight: 600; font-size: 1.85cqw; }
.ms-book {
  display: grid !important;
  gap: 1.9cqw;
  padding: 3cqw;
  border-radius: 3cqw;
  background: #FFFFFF;
  box-shadow: 0 3cqw 6cqw -3cqw rgba(15, 59, 55, 0.3), inset 0 0 0 1px #E4EEEB;
}
.ms-book-title { font-weight: 600; font-size: 2cqw; }
.ms-days, .ms-slots { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 1.1cqw; }
.ms-slots { grid-template-columns: repeat(3, 1fr); }
.ms-days span, .ms-slots span {
  text-align: center;
  padding: 1.1cqw 0;
  border-radius: 1.4cqw;
  box-shadow: inset 0 0 0 1px #DCE8E5;
  font-size: 1.55cqw;
}
.ms-days .is-on, .ms-slots .is-on { background: #0E5E57; color: #FFFFFF; box-shadow: none; }
.ms-confirm { text-align: center; background: #0F3B37; color: #FFFFFF; border-radius: 99px; padding: 1.5cqw; font-size: 1.75cqw; font-weight: 600; }
.ms-services { position: relative; z-index: 1; display: flex !important; gap: 1.6cqw; margin-top: 4cqw; flex-wrap: wrap; }
.ms-services span { box-shadow: inset 0 0 0 1px #CFE3DE; border-radius: 99px; padding: 1cqw 2cqw; font-size: 1.7cqw; }
.ms-photo { position: absolute !important; right: -8cqw; top: 6cqw; width: 48cqw; height: 48cqw; z-index: 0; }
.ms-photo-shape { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, #D6F1E9 0%, rgba(214, 241, 233, 0.4) 45%, transparent 70%); }

@container (max-width: 560px) {
  .ms { padding: 0 5cqw 5cqw; }
  .ms-nav { padding: 5cqw 0; font-size: 3.6cqw; }
  .ms-logo { font-size: 6cqw; }
  .ms-logo i { width: 5cqw; height: 5cqw; }
  .ms-links { display: none !important; }
  .ms-btn { padding: 2.4cqw 4.4cqw; }
  .ms-hero { grid-template-columns: 1fr; gap: 6cqw; }
  .ms-tag { font-size: 3.2cqw; padding: 1.6cqw 3cqw; }
  .ms-title { font-size: 11.5cqw; margin: 4cqw 0 3cqw; }
  .ms-lead { font-size: 4cqw; max-width: none; }
  .ms-cta { font-size: 3.8cqw; padding: 3.2cqw 5.4cqw; margin-top: 5cqw; }
  .ms-book { padding: 5cqw; border-radius: 5cqw; gap: 3.4cqw; }
  .ms-book-title { font-size: 4cqw; }
  .ms-days span, .ms-slots span { font-size: 3.2cqw; padding: 2.2cqw 0; border-radius: 2.6cqw; }
  .ms-confirm { font-size: 3.6cqw; padding: 3cqw; }
  .ms-services { display: none !important; }
}

/* Stage 1: the brief */
.mock-notes { position: absolute; inset: 0; pointer-events: none; }
.note {
  position: absolute;
  display: grid;
  gap: 0.4em;
  width: 30%;
  padding: 3.2% 3.4%;
  border-radius: 10px;
  font-size: clamp(0.62rem, 0.4rem + 0.5vw, 0.95rem);
  line-height: 1.3;
  color: #1B2240;
  background: #FFFFFF;
  box-shadow: 0 18px 40px -18px rgba(14, 26, 62, 0.45), inset 0 0 0 1px rgba(14, 26, 62, 0.06);
  opacity: 0;
  transform: translateY(18px) rotate(var(--r, 0deg)) scale(0.96);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-spring);
}
.note b { font: 600 0.8em/1 var(--f-body); color: #4F5BB8; }
.note.n1 { left: 8%; top: 14%; --r: -3deg; }
.note.n2 { left: 36%; top: 42%; --r: 2deg; transition-delay: 0.08s; }
.note.n3 { left: 62%; top: 16%; --r: -1.5deg; transition-delay: 0.16s; }
.mock-wave {
  position: absolute;
  left: 8%;
  bottom: 12%;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  opacity: 0;
  transition: opacity 0.5s;
}
.mock-wave i { width: 4px; height: 100%; border-radius: 4px; background: var(--peri); animation: wave-bar 1.1s ease-in-out infinite; }
.mock-wave i:nth-child(2n) { animation-delay: -0.3s; }
.mock-wave i:nth-child(3n) { animation-delay: -0.6s; }
.mock-wave i:nth-child(5n) { animation-delay: -0.8s; }
@keyframes wave-bar { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.mock[data-stage='1'] .note { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)) scale(1); }
.mock[data-stage='1'] .mock-wave { opacity: 1; }
.mock[data-stage='1'] .ms { opacity: 0; }

/* Stage 2: wireframe */
.ms .mx, .ms .mbox { transition: color 0.6s, background-color 0.6s, box-shadow 0.6s, border-radius 0.6s, opacity 0.6s; }
.mock[data-stage='2'] .ms .mx {
  color: transparent !important;
  background: #DDE2EA !important;
  box-shadow: none !important;
  border-radius: 6px;
}
.mock[data-stage='2'] .ms .ms-logo i { background: #C7CEDA; }
.mock[data-stage='2'] .ms .mbox { background: #F3F5F8 !important; box-shadow: inset 0 0 0 1.5px #C3CAD6 !important; }
.mock[data-stage='2'] .ms-photo { opacity: 0; }
.mock[data-stage='2'] .mock-frame { background: #FFFFFF; }

/* Stage 4: code + responsive */
.mock-code {
  position: absolute;
  right: 4%;
  top: 50%;
  width: 44%;
  translate: 0 -50%;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(8, 14, 34, 0.94);
  box-shadow: 0 24px 60px -24px rgba(1, 4, 14, 0.9), inset 0 0 0 1px rgba(166, 174, 240, 0.2);
  font: 400 clamp(0.58rem, 0.4rem + 0.35vw, 0.78rem)/1.55 var(--f-mono);
  color: var(--lav-2);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-spring);
  pointer-events: none;
}
.mock-code span { display: block; white-space: nowrap; }
.mock-code b { color: var(--lav); font-weight: 500; }
.mock-code em { color: var(--ok); font-style: normal; }
.mock[data-stage='4'].is-narrow .mock-code { opacity: 1; transform: translateY(0); }

/* Stage 5: launch */
.mock-launch { position: absolute; inset: 0; pointer-events: none; }
.mock-launch-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(14, 94, 87, 0.5);
  opacity: 0;
  transform: scale(0.2);
}
.mock[data-stage='5'] .mock-launch-ring { animation: launch-ring 1.6s var(--ease-out) forwards; }
@keyframes launch-ring { 0% { opacity: 1; transform: scale(0.2); } 100% { opacity: 0; transform: scale(3.2); } }

/* --------------------------------------------------------------------------
   Why: bento with live proof
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  border-top: 1px solid var(--line);
}
.bento-cell {
  grid-column: span 12;
  border-bottom: 1px solid var(--line);
}
.bento-core {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding-block: clamp(28px, 3.4vw, 48px);
}
.bento-copy h3 {
  font-family: var(--f-display);
  font-weight: 650;
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.bento-copy p { margin-top: 8px; color: var(--mist-2); max-width: 44ch; }

@media (min-width: 900px) {
  .b-speed { grid-column: span 7; grid-row: span 2; }
  .b-custom { grid-column: span 5; }
  .b-resp { grid-column: span 5; }
  .b-cms { grid-column: span 5; }
  .b-chat { grid-column: span 7; }
  .b-custom, .b-resp, .b-chat { border-left: 1px solid var(--line); }
  .b-custom .bento-core, .b-resp .bento-core, .b-chat .bento-core { padding-left: clamp(28px, 3.4vw, 48px); }
  .b-speed .bento-core, .b-cms .bento-core { padding-right: clamp(28px, 3.4vw, 48px); }
}

.speed-visual { display: grid; justify-items: center; gap: 24px; padding-top: 8px; }
/* The dial that fills as the page weight counts up. Kept with its glow at the
   owner's request: the one lit element outside the signature moments. */
.speed-dial { position: relative; width: min(100%, 440px); }
.speed-gauge { display: block; width: 100%; height: auto; overflow: visible; }
.gauge-track { fill: none; stroke: rgba(166, 174, 240, 0.12); stroke-width: 14; stroke-linecap: round; }
.gauge-fill {
  fill: none;
  stroke: url(#gauge-grad);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 8px rgba(166, 174, 240, 0.8));
}
.speed-number {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--f-body);
  font-weight: 750;
  font-size: clamp(2.75rem, 0.9rem + 6.2vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.speed-number small { font-size: clamp(1rem, 0.5rem + 1.9vw, 2.4rem); color: var(--lav); letter-spacing: -0.02em; }

.custom-visual { position: relative; height: 170px; }
.cu {
  position: absolute;
  inset: 0;
  background: var(--indigo);
  clip-path: inset(var(--t) calc(100% - var(--l) - var(--w)) calc(100% - var(--t) - var(--h)) var(--l) round var(--r, 12px));
  transition: clip-path 1.2s var(--ease-spring), background-color 1s;
}
.custom-visual .c1 { --l: 0%; --t: 0%; --w: 31%; --h: 46%; }
.custom-visual .c2 { --l: 34.5%; --t: 0%; --w: 31%; --h: 46%; }
.custom-visual .c3 { --l: 69%; --t: 0%; --w: 31%; --h: 46%; }
.custom-visual .c4 { --l: 0%; --t: 54%; --w: 31%; --h: 46%; }
.custom-visual .c5 { --l: 34.5%; --t: 54%; --w: 31%; --h: 46%; }
.custom-visual .c6 { --l: 69%; --t: 54%; --w: 31%; --h: 46%; }
.custom-visual.is-custom .c1 { --l: 0%; --t: 0%; --w: 58%; --h: 100%; --r: 22px; background: var(--lav); }
.custom-visual.is-custom .c2 { --l: 62%; --t: 0%; --w: 38%; --h: 30%; --r: 60px; background: var(--indigo-2); }
.custom-visual.is-custom .c3 { --l: 62%; --t: 36%; --w: 17%; --h: 28%; --r: 60px; background: var(--paper); }
.custom-visual.is-custom .c4 { --l: 83%; --t: 36%; --w: 17%; --h: 28%; --r: 8px; background: var(--peri); }
.custom-visual.is-custom .c5 { --l: 62%; --t: 70%; --w: 38%; --h: 30%; --r: 12px; background: var(--indigo); }
.custom-visual.is-custom .c6 { --l: 8%; --t: 64%; --w: 26%; --h: 18%; --r: 60px; background: rgba(6, 14, 34, 0.55); }

.resp-visual { display: grid; place-items: center; height: 170px; }
.resp-frame {
  container-type: inline-size;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px rgba(166, 174, 240, 0.4);
  padding: 8px;
  overflow: hidden;
  background: rgba(6, 14, 34, 0.5);
  /* Intentional layout animation: the demo shows the page reflowing */
  animation: resp-cycle 8s var(--ease-inout) infinite;
}
@keyframes resp-cycle {
  0%, 22% { width: 100%; }
  33%, 55% { width: 64%; }
  66%, 88% { width: 34%; }
  100% { width: 100%; }
}
.resp-site { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.resp-site i { display: block; border-radius: 6px; background: var(--indigo); }
.resp-site .r-nav { grid-column: 1 / -1; height: 10px; background: rgba(166, 174, 240, 0.3); }
.resp-site .r-hero { grid-column: 1 / -1; height: 62px; background: var(--peri); }
.resp-site .r-card { height: 48px; }
@container (max-width: 300px) {
  .resp-site { grid-template-columns: 1fr 1fr; }
  .resp-site .r-card:last-child { grid-column: 1 / -1; height: 26px; }
  .resp-site .r-hero { height: 72px; }
}
@container (max-width: 170px) {
  .resp-site { grid-template-columns: 1fr; }
  .resp-site .r-hero { height: 58px; }
  .resp-site .r-card { height: 22px; }
}

.cms-visual { display: grid; place-items: center; height: 170px; }
.cms-panel {
  width: min(100%, 330px);
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink-3);
  box-shadow: 0 30px 60px -30px rgba(1, 4, 14, 0.9);
}
.cms-label { font: 600 0.8125rem/1.2 var(--f-body); color: var(--indigo-2); }
.cms-field {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px var(--peri);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
}
.cms-caret { width: 1.5px; height: 20px; margin-left: 2px; background: var(--indigo-2); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* Wide enough for its longest label, so "Publicando…" never resizes it */
.cms-publish {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.75rem;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink-3);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.875rem;
  transition: transform 0.25s var(--ease-out), background-color 0.3s;
}
.cms-publish.is-pressed { transform: scale(0.94); }
.cms-publish.is-done { background: var(--ok); color: var(--ink-1); }

/* The typing dots and the reply share one slot, so the reply takes the
   dots' place and the conversation never moves */
.chat-visual { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; row-gap: 10px; min-height: 170px; }
.bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-spring);
}
.b-them { justify-self: start; transform-origin: 0% 100%; background: var(--surface-3); color: var(--paper); border-bottom-left-radius: 6px; }
.b-us { justify-self: end; transform-origin: 100% 100%; background: var(--lav); color: var(--ink-3); border-bottom-right-radius: 6px; font-weight: 500; }
.b-typing, .b-reply { grid-area: 2 / 1; align-self: start; }
.b-typing { display: flex; gap: 4px; padding: 14px 16px; }
.b-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--indigo-2); animation: typing 1s ease-in-out infinite; }
.b-typing i:nth-child(2) { animation-delay: 0.15s; }
.b-typing i:nth-child(3) { animation-delay: 0.3s; }
.chat-visual:not(.s2) .b-typing i { animation-play-state: paused; }
@keyframes typing { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }
.chat-visual.s1 .b-them, .chat-visual.s2 .b-them, .chat-visual.s3 .b-them { opacity: 1; transform: none; }
.chat-visual.s2 .b-typing { opacity: 1; transform: none; }
.chat-visual.s3 .b-typing { opacity: 0; transform: scale(0.85); transition-duration: 0.25s; }
.chat-visual.s3 .b-reply { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Pricing calculator
   -------------------------------------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 4.5vw, 72px);
  align-items: start;
}
.calc-controls { display: grid; gap: clamp(34px, 4vw, 48px); min-width: 0; }
.calc-group { display: grid; gap: 16px; }
.calc-group legend, .calc-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 1.0625rem;
}
.calc-label { margin-bottom: 0; }
.calc-label output { font: 650 1.375rem/1 var(--f-display); letter-spacing: -0.02em; color: var(--lav); font-variant-numeric: tabular-nums; }
.calc-hint { font-size: 0.9375rem; color: var(--mist-2); }

.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.type-card { position: relative; display: block; cursor: pointer; }
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card-body {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 20px;
  border-radius: 20px;
  background: rgba(10, 20, 49, 0.6);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.4s var(--ease-out), background-color 0.4s, transform 0.4s var(--ease-spring);
}
.type-card:hover .type-card-body { box-shadow: inset 0 0 0 1px var(--line-strong); }
.type-card input:checked + .type-card-body {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--lav);
}
.type-card input:focus-visible + .type-card-body { outline: 2px solid var(--lav); outline-offset: 3px; }
.type-name { font-family: var(--f-display); font-weight: 650; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.02em; }
.type-desc { color: var(--mist-2); font-size: 0.9375rem; line-height: 1.4; }
.type-from { margin-top: 6px; font: 600 0.9375rem/1.2 var(--f-body); font-variant-numeric: tabular-nums; color: var(--lav); }
.type-check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--ink-1);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.5s var(--ease-spring);
}
.type-check svg { width: 13px; height: 13px; opacity: 0; transition: opacity 0.2s; }
.type-card input:checked ~ .type-check { background: var(--paper); box-shadow: none; transform: scale(1.05); }
.type-card input:checked ~ .type-check svg { opacity: 1; }

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  cursor: pointer;
  --p: 21%;
}
.range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--lav) 0 var(--p), rgba(166, 174, 240, 0.16) var(--p) 100%);
}
.range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(166, 174, 240, 0.16); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--lav); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--glint);
  box-shadow: 0 0 0 1px rgba(3, 8, 23, 0.35), 0 4px 10px -2px rgba(1, 4, 14, 0.7);
  transition: box-shadow 0.3s;
}
.range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--glint);
  box-shadow: 0 0 0 1px rgba(3, 8, 23, 0.35), 0 4px 10px -2px rgba(1, 4, 14, 0.7);
}
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--ink-1), 0 0 0 5px var(--lav); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--ink-1), 0 0 0 5px var(--lav); }
[data-pages-group].is-off { opacity: 0.4; pointer-events: none; }

.extras { display: flex; flex-wrap: wrap; gap: 10px; }
/* What the tapped extra includes. The space is always there, so the
   controls below never jump when the text changes. */
.x-note { margin-top: 16px; min-height: 3em; font-size: 0.9375rem; line-height: 1.5; color: var(--mist-1); }
@media (max-width: 720px) { .x-note { min-height: 4.5em; } }
.x-note b { font-weight: 600; color: var(--paper); }
.x-note.is-new { color: var(--mist-2); animation: note-in 0.5s var(--ease-out); }
@keyframes note-in { from { opacity: 0; transform: translateY(6px); } }
.x-chip, .chip { position: relative; cursor: pointer; }
.x-chip input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.x-chip span, .chip span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--lav-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  /* Selecting wipes the paper fill in from the left; unselecting wipes it out */
  background-image: linear-gradient(var(--paper), var(--paper));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 100%;
  transition: background-size 0.55s var(--ease-out), color 0.25s 0.12s, box-shadow 0.3s, transform 0.4s var(--ease-spring);
}
.x-chip small { font: 500 0.8125rem var(--f-body); font-variant-numeric: tabular-nums; color: var(--mist-2); transition: color 0.3s; }
.x-chip:hover span, .chip:hover span { box-shadow: inset 0 0 0 1px rgba(166, 174, 240, 0.55); }
.x-chip input:checked + span, .chip input:checked + span {
  background-size: 100% 100%;
  color: var(--ink-1);
  box-shadow: none;
  transition: background-size 0.55s var(--ease-out), color 0.2s 0.06s, box-shadow 0.3s, transform 0.4s var(--ease-spring);
  animation: chip-pop 0.5s var(--ease-spring);
}
@keyframes chip-pop { 0% { transform: scale(0.94); } 55% { transform: scale(1.04); } 100% { transform: scale(1); } }
.x-chip input:checked + span small { color: var(--indigo-2); }
.x-chip input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--lav); outline-offset: 3px; }
.x-chip:active span, .chip:active span { transform: scale(0.97); }

.switch { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
  position: relative;
  width: 52px;
  height: 30px;
  flex: none;
  border-radius: 999px;
  background: rgba(166, 174, 240, 0.14);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.35s;
}
.switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lav-2);
  transition: transform 0.5s var(--ease-spring), background-color 0.3s, box-shadow 0.3s;
}
.switch input:checked + .switch-track { background: var(--peri); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(22px); background: var(--glint); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--lav); outline-offset: 3px; }
.switch-text em { font: 600 0.9375rem var(--f-body); font-style: normal; font-variant-numeric: tabular-nums; color: var(--lav); margin-left: 6px; }

.calc-summary {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}
.summary-core {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-core);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.summary-kicker { font: 600 1rem/1.2 var(--f-body); color: var(--lav-2); }
.calc-mini { display: none; }
.summary-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.28em;
  font-family: var(--f-body);
  font-weight: 750;
  font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.summary-dash, .summary-from { font-weight: 500; font-size: 0.5em; color: var(--mist-2); letter-spacing: 0; }
.summary-to { display: inline-flex; align-items: baseline; column-gap: 0.28em; }
.summary-cur { font-size: 0.6em; color: var(--lav-2); }
/* English puts the euro sign first (€900), right against the figure */
.summary-price .summary-cur:not(:last-child) { margin-right: -0.2em; }
/* More pages than the calculator covers: a starting price, then a quote */
.summary-from { display: none; }
.calc.is-quote .summary-from { display: inline; }
.calc.is-quote .summary-to { display: none; }
.summary-tax { margin-top: -8px; color: var(--mist-2); font-size: 0.9375rem; }
.summary-tax span:not(:empty)::before { content: ' · '; }
.summary-facts { display: grid; gap: 14px; padding-block: 18px 6px; border-top: 1px solid var(--line); }
.summary-facts div { display: grid; gap: 4px; }
.summary-facts dt { font-size: 0.8125rem; color: var(--mist-2); }
.summary-facts dd { font-weight: 500; line-height: 1.45; }
.summary-note { font-size: 0.8125rem; line-height: 1.5; color: var(--mist-2); }

/* --------------------------------------------------------------------------
   FAQ: every question visible, one answer open
   -------------------------------------------------------------------------- */
.faq-list {
  --rows: 7;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  column-gap: clamp(32px, 6vw, 104px);
  align-items: start;
}
.faq-q { grid-column: 1; }
.faq-qbtn {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  text-align: left;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.35;
  color: var(--mist-2);
  box-shadow: inset 0 -1px 0 var(--line);
  transition: color 0.3s;
}
.faq-qbtn:hover, .faq-qbtn[aria-expanded='true'] { color: var(--paper); }
.faq-qbtn svg { width: 18px; height: 18px; flex: none; color: var(--lav); transition: transform 0.5s var(--ease-spring), opacity 0.3s; }
.faq-ico-plus { display: none; }
.faq-ico-arrow { opacity: 0; transform: translateX(-6px); }
.faq-qbtn[aria-expanded='true'] .faq-ico-arrow { opacity: 1; transform: none; }
.faq-panel {
  grid-column: 2;
  grid-row: 1 / span var(--rows);
  position: sticky;
  top: calc(var(--nav-h) + 48px);
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s linear 0.3s;
}
.faq-panel.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.45s var(--ease-out) 0.05s, transform 0.7s var(--ease-out) 0.05s, visibility 0s;
}
.faq-big {
  margin-bottom: 20px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-d3);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.faq-a { color: var(--text-2); font-size: var(--fs-lead); line-height: 1.6; max-width: 46ch; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { overflow: hidden; }
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 110px);
  align-items: start;
}
.contact-copy { display: grid; gap: 24px; position: sticky; top: calc(var(--nav-h) + 50px); }
.contact-mail { display: grid; gap: 10px; margin-top: 10px; }
.contact-mail-label { font-size: 0.875rem; color: var(--mist-2); }
.contact-mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.contact-mail-link {
  position: relative;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-d4);
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--paper), var(--paper)) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.6s var(--ease-out);
  user-select: all;
}
.contact-mail-link:hover { background-size: 100% 1.5px; }
.contact-mail-link::after { content: ''; position: absolute; inset: 50% 0 auto; height: 44px; transform: translateY(-50%); }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lav-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.3s, color 0.3s;
}
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn:hover { background: rgba(166, 174, 240, 0.1); color: var(--paper); }

.form { position: relative; border-radius: var(--r-core); overflow: hidden; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line); }

.about {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px 16px 16px;
  border-radius: 20px;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.about-photo { width: 80px; height: 80px; flex: none; border-radius: 16px; object-fit: cover; background: var(--surface-2); }
.about-copy { display: grid; gap: 2px; }
.about-name { font-family: var(--f-display); font-weight: 650; font-size: 1.25rem; letter-spacing: -0.02em; }
.about-role { font-size: 0.9375rem; color: var(--mist-2); }
.about-text { margin-top: 6px; font-size: 0.9375rem; color: var(--text-2); max-width: 44ch; }
.form-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.form-core { display: grid; gap: 24px; padding: clamp(24px, 3vw, 40px); }
.form-row { display: grid; gap: 24px; }
.form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field legend { font-size: 0.9375rem; font-weight: 500; color: var(--lav-2); }
.field legend { margin-bottom: 10px; }
.opt { color: var(--mist-2); font-weight: 400; }
.field input[type='text'], .field input[type='email'], .field input[type='tel'], .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-field);
  background: rgba(6, 14, 34, 0.7);
  box-shadow: inset 0 0 0 1px rgba(166, 174, 240, 0.2);
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  transition: box-shadow 0.3s var(--ease-out), background-color 0.3s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px rgba(166, 174, 240, 0.34); }
.field input:focus, .field textarea:focus { background: rgba(6, 14, 34, 0.9); box-shadow: inset 0 0 0 2px var(--lav); }
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 1.5px var(--error); }
.field-error { font-size: 0.875rem; color: var(--error); min-height: 0; }
.field-error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }








.check { display: flex; align-items: flex-start; gap: 12px; padding-block: 11px; cursor: pointer; font-size: 0.9375rem; color: var(--mist-2); line-height: 1.5; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--ink-1);
  transition: background-color 0.25s, box-shadow 0.25s;
}
.check-box svg { width: 14px; height: 14px; opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.4s var(--ease-spring); }
.check input:checked + .check-box { background: var(--lav-2); box-shadow: none; }
.check input:checked + .check-box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check-box { outline: 2px solid var(--lav); outline-offset: 3px; }
.check a { color: var(--lav-2); text-decoration: underline; text-underline-offset: 3px; }
.consent.is-invalid .check-box { box-shadow: inset 0 0 0 1.5px var(--error); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.form-note { font-size: 0.875rem; color: var(--mist-2); }
.btn.is-loading { pointer-events: none; opacity: 0.8; }
.btn.is-loading .btn-icon svg { animation: spin-light 0.9s linear infinite; }
@keyframes spin-light { to { transform: rotate(360deg); } }

.form-done {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(40px, 6vw, 80px) clamp(22px, 4vw, 48px);
  text-align: center;
  outline: none;
}
.form-done-burst {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(241, 242, 247, 0.95), rgba(166, 174, 240, 0.45) 45%, transparent 72%);
  pointer-events: none;
  animation: burst 1.6s var(--ease-out) forwards;
}
@keyframes burst { 0% { transform: scale(0.2); opacity: 1; } 100% { transform: scale(16); opacity: 0; } }
.form-done-title { position: relative; font-family: var(--f-display); font-weight: 650; font-size: clamp(1.9rem, 1.2rem + 2vw, 2.8rem); letter-spacing: -0.035em; line-height: 1.05; }
.form-done-text { position: relative; color: var(--mist-2); max-width: 42ch; }
.form-done-copy { position: relative; display: grid; gap: 12px; justify-items: center; width: 100%; }
.form-summary {
  width: 100%;
  max-height: 220px;
  overflow: auto;
  margin: 6px 0 0;
  padding: 14px 2px;
  border-block: 1px solid var(--line);
  font: 400 0.9375rem/1.6 var(--f-body);
  color: var(--text-2);
  text-align: left;
  white-space: pre-wrap;
  user-select: all;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  overflow: hidden;
  padding-top: var(--section);
  background: var(--ink-0);
  box-shadow: inset 0 1px 0 var(--line);
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 32px;
  align-items: start;
}
.footer-label { margin-bottom: 16px; font: 500 0.9375rem/1.2 var(--f-body); color: var(--mist-2); }
.footer-col ul { display: grid; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--lav-2); transition: color 0.3s; }
.footer-col a:hover { color: var(--glint); }
.footer-top-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.3s, color 0.3s, transform 0.6s var(--ease-spring);
}
.footer-top-btn svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.footer-top-btn:hover { background: var(--paper); color: var(--ink-1); transform: translateY(-4px); }
.footer-mark { margin-top: clamp(3.5rem, 7vw, 7rem); }
.footer-mark svg { width: 100%; height: auto; overflow: visible; }
.fm-word { fill: url(#fm-grad); }
.fm-dot { fill: var(--lav); filter: drop-shadow(0 0 1.2px rgba(166, 174, 240, 0.9)); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--mist-2);
}
/* The padding gives the small link a full-size touch area without moving the row */
.footer-lang {
  padding-block: 12px;
  margin-block: -12px;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s;
}
.footer-lang:hover { text-decoration-color: var(--lav); }

/* --------------------------------------------------------------------------
   Motion layer (motion.js). These rules are inert until the script
   adds the elements they style or the .has-motion class, and the script only
   runs when motion is allowed.
   -------------------------------------------------------------------------- */

/* Letters that roll to a fresh copy under the cursor */
.roll { display: inline-block; white-space: nowrap; }
.roll-c {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block: 0.2em;
  margin-block: -0.2em;
}
.roll-c > i {
  position: relative;
  display: block;
  font-style: normal;
  white-space: pre;
  transition: transform 0.65s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 12ms);
}
.roll-c > i::after {
  content: attr(data-c);
  position: absolute;
  left: 0;
  top: calc(100% + 0.3em);
  color: var(--roll-to, currentColor);
}
.roll-host:hover .roll-c > i,
.roll-host:focus-visible .roll-c > i { transform: translateY(calc(-100% - 0.3em)); }
.nav-links a, .btn-ghost { --roll-to: var(--paper); }
.footer-col a { --roll-to: var(--glint); }
.svc-name { --roll-to: var(--lav-2); }

/* Hero: the subtitle's words, and the scene leaving as you scroll */
.hero-sub .hw { display: inline-block; }
.has-motion .hero .hero-inner { translate: 0 calc(var(--exit, 0) * 16vh); }
.has-motion .hero .hl-1 { translate: calc(var(--exit, 0) * -5vw) 0; }
.has-motion .hero .hl-2 { translate: calc(var(--exit, 0) * 6vw) 0; }
.has-motion .hero .hero-bottom { opacity: calc(1 - var(--exit, 0) * 1.8); }
.has-motion .hero .hero-canvas, .has-motion .hero .lens-bg { opacity: calc(1 - var(--exit, 0) * 0.6); }
.has-motion .hero .hero-title { opacity: calc(1 - var(--exit, 0) * 0.7); }
/* The moving parts get their own layers, so scrolling never repaints them */
.has-motion .hero :is(.hero-inner, .hl) { will-change: translate; }
/* Touch screens: the same exit, run by the browser on the scroll itself
   (motion.js adds .exit-native where this is supported) */
.hero.exit-native { view-timeline: --hero-exit block; }
.hero.exit-native :is(.hero-inner, .hl-1, .hl-2, .hero-bottom, .hero-canvas, .lens-bg, .hero-title) {
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-timeline: --hero-exit;
  animation-range: exit 0% exit 100%;
}
.hero.exit-native .hero-inner { animation-name: hero-exit-sink; }
.hero.exit-native .hl-1 { animation-name: hero-exit-left; }
.hero.exit-native .hl-2 { animation-name: hero-exit-right; }
.hero.exit-native .hero-bottom { animation-name: hero-exit-out; }
.hero.exit-native :is(.hero-canvas, .lens-bg) { animation-name: hero-exit-dim; }
.hero.exit-native .hero-title { animation-name: hero-exit-fade; }
@keyframes hero-exit-sink { to { translate: 0 16vh; } }
@keyframes hero-exit-left { to { translate: -5vw 0; } }
@keyframes hero-exit-right { to { translate: 6vw 0; } }
@keyframes hero-exit-out { 55%, 100% { opacity: 0; } }
@keyframes hero-exit-dim { to { opacity: 0.4; } }
@keyframes hero-exit-fade { to { opacity: 0.3; } }

/* Reading line along the bottom of the nav pill */
.nav-progress {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(166, 174, 240, 0), var(--lav) 40%, var(--lav-2));
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0.7;
  pointer-events: none;
  will-change: transform;
}

/* Services: hairlines that draw themselves, contents that rise into them */
.has-motion .svc { border-bottom-color: transparent; }
.has-motion .svc::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
  transform-origin: 0 50%;
  transform: scaleX(var(--draw, 1));
  pointer-events: none;
}
.has-motion .svc-name, .has-motion .svc-sum { translate: 0 var(--ty, 0%); }
.has-motion .svc-plus { scale: var(--sc, 1); }
.svc:not(.is-open) .svc-row:hover .svc-plus { transform: rotate(90deg); }

/* Work: tilt (motion.js) plus lean (main.js) on each window, and depth */
.work-item .browser { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--lean, 0deg))); }
/* Each site is its own layer, so drifting inside its window costs no repaint */
.has-motion .work-item .concept { scale: var(--cs, 1.05); will-change: transform; }
.has-motion .work-item :is(.cb-glow, .cm-sun) { --z: -1.2; }
.has-motion .work-item :is(.cb-nav, .co-nav, .cv-nav, .cm-nav, .cb-menu) { --z: 0.4; }
.has-motion .work-item :is(.cb-sparks, .cm-waves) { --z: 0.7; }
.has-motion .work-item :is(.cb-hero, .co-copy, .cv-title, .cv-index, .cv-meta, .cm-hero) { --z: 1.1; }
.has-motion .work-item :is(.co-visual, .cv-model) { --z: 2; }
.has-motion .work-item :is(.cb-glow, .cm-sun, .cb-nav, .co-nav, .cv-nav, .cm-nav, .cb-menu, .cb-sparks, .cm-waves, .cb-hero, .co-copy, .cv-title, .cv-index, .cv-meta, .cm-hero, .co-visual, .cv-model) {
  translate: calc(var(--px, 0) * var(--z, 0) * 1cqw) calc(var(--py, 0) * var(--z, 0) * 1cqw);
}
/* With a mouse the depth layers move under the cursor: give them their own layers */
@media (hover: hover) and (pointer: fine) {
  .has-motion .work-item :is(.cb-glow, .cm-sun, .cb-nav, .co-nav, .cv-nav, .cm-nav, .cb-menu, .cb-sparks, .cm-waves, .cb-hero, .co-copy, .cv-title, .cv-index, .cv-meta, .cm-hero, .co-visual, .cv-model) { will-change: translate; }
}

/* Process: a line down the steps, its tip on the reading line */
.has-motion .steps { position: relative; }
.has-motion .steps::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--peri), var(--lav-2));
  transform-origin: 50% 0;
  transform: scaleY(var(--sp, 0));
  pointer-events: none;
  z-index: 1;
}
.has-motion .step::after { z-index: 2; }

/* Why: the grid's hairlines draw themselves */
.has-motion .bento { position: relative; border-top-color: transparent; }
.has-motion .bento::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--line);
  transform-origin: 0 50%;
  transform: scaleX(var(--draw-top, 1));
  pointer-events: none;
}
.has-motion .bento-cell { position: relative; border-bottom-color: transparent; }
.has-motion .bento-cell::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--line);
  transform-origin: 0 50%;
  transform: scaleX(var(--draw, 1));
  pointer-events: none;
}

/* Pricing: rolling digits. The real figure stays in the page, visually hidden. */
.odo { display: inline-block; white-space: nowrap; }
.odo-d { position: relative; display: inline-block; clip-path: inset(0 -0.06em); }
.odo-ph { visibility: hidden; }
.odo-strip {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.9s var(--ease-out);
}
.odo-strip > span { display: block; }
.odo.is-instant .odo-strip { transition: none; }
.odo-src {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.calc-label output { display: inline-block; }

/* Pricing: one highlight glides to the chosen type */
.type-grid.has-glide { position: relative; }
.type-glide {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  border-radius: 20px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--lav);
  pointer-events: none;
}
.type-grid.has-glide .type-card { z-index: 1; }
.type-grid.has-glide .type-card input:checked + .type-card-body { background: transparent; box-shadow: inset 0 0 0 1.5px transparent; }

/* FAQ: a highlight glides to the open question */
.faq-list { position: relative; }
.faq-q { position: relative; z-index: 1; }
.faq-glide {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 14px;
  background: rgba(166, 174, 240, 0.06);
  box-shadow: inset 0 0 0 1px rgba(166, 174, 240, 0.14);
  opacity: 0;
  pointer-events: none;
}

/* Form: the label answers focus; fields that need attention shake */
.field > label { transition: color 0.3s, translate 0.5s var(--ease-spring); }
.field:focus-within > label { color: var(--glint); translate: 3px 0; }
.field.is-shake { animation: field-shake 0.5s var(--ease-out); }
@keyframes field-shake {
  0%, 100% { translate: 0 0; }
  18% { translate: -7px 0; }
  36% { translate: 6px 0; }
  54% { translate: -4px 0; }
  72% { translate: 2px 0; }
}

/* Back to top: the arrow rolls up and out while a second one rises into its
   place. Transitions, not keyframes, so it reverses smoothly mid-way. */
.footer-top-btn { position: relative; overflow: hidden; isolation: isolate; }
.ftb-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  transition: transform 0.7s var(--ease-out);
}
.ftb-arrow + .ftb-arrow { transform: translateY(40px); }
.footer-top-btn:hover .ftb-arrow { transform: translateY(-40px); }
.footer-top-btn:hover .ftb-arrow + .ftb-arrow { transform: translateY(0); }

/* Press ripple */
.round-btn, .copy-btn, .calc-mini { position: relative; overflow: hidden; isolation: isolate; }
.ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(166, 174, 240, 0.55), rgba(166, 174, 240, 0));
}

@media (min-width: 900px) {
  .has-motion :is(.b-custom, .b-resp, .b-chat) { border-left-color: transparent; }
  .has-motion :is(.b-custom, .b-resp, .b-chat)::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
    transform-origin: 50% 0;
    transform: scaleY(var(--draw, 1));
    pointer-events: none;
  }
}
@media (max-width: 960px) {
  .faq-glide { display: none; }
  .has-motion .steps::after { transition: transform 0.8s var(--ease-spring); }
  .has-motion .faq-panel .faq-a { opacity: 0; translate: 0 10px; transition: opacity 0.45s var(--ease-out) 0.1s, translate 0.6s var(--ease-out) 0.1s; }
  .has-motion .faq-panel.is-open .faq-a { opacity: 1; translate: 0 0; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-links a { padding: 10px 11px; }
}

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; margin-left: 0; }
  .nav-lang { margin-left: auto; }
  .nav-pill { padding-left: 18px; }

  .process-grid { grid-template-columns: 1fr; }
  /* Narrow screens: one self-contained block. The mockup sits on top and
     the steps below work like tabs; only the active step shows its text. */
  .process-stage { position: relative; top: auto; order: -1; }
  .steps { margin-top: 4px; }
  .step { min-height: 0; padding: 14px 0 14px 30px; gap: 6px; }
  .step p { display: none; }
  .step.is-active p { display: block; animation: step-in 0.5s var(--ease-out); }

  .calc { grid-template-columns: 1fr; }
  .calc-summary { position: relative; top: auto; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { position: relative; top: auto; }


  /* The whole bar is one tap target: running price above, the action below */
  .calc-mini {
    grid-column: 1 / -1;
    position: sticky;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 10px 10px 10px 22px;
    border-radius: 999px;
    /* Nearly opaque, so no backdrop blur: blurring the page under a fixed
       bar on every scrolled frame is expensive on phones */
    background: rgba(8, 15, 38, 0.95);
    box-shadow: inset 0 0 0 1px var(--line-strong), 0 16px 40px -18px rgba(1, 4, 14, 0.95);
    transition: opacity 0.3s var(--ease-out), transform 0.5s var(--ease-out);
  }
  .calc-mini.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
  .calc-mini-text { display: grid; gap: 3px; min-width: 0; }
  .calc-mini-price { font-family: var(--f-body); font-weight: 750; font-size: 1.25rem; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; color: var(--paper); }
  .calc-mini-price small { font-weight: 500; font-size: 0.75rem; color: var(--mist-2); letter-spacing: 0; }
  .calc-mini-price .summary-to { display: inline; }
  .calc-mini-price .summary-from { font-size: 0.75em; }
  .calc-mini-label { font-size: 0.875rem; font-weight: 600; line-height: 1.2; color: var(--lav); }
  .calc-mini-go { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink-1); transition: transform 0.5s var(--ease-spring); }
  .calc-mini-go svg { width: 18px; height: 18px; }
  .calc-mini:active .calc-mini-go { transform: scale(0.94); }

  .faq-list { grid-template-columns: 1fr; }
  .faq-panel {
    grid-column: 1;
    grid-row: auto;
    position: static;
    display: grid;
    grid-template-rows: 0fr;
    transform: none;
    transition: grid-template-rows 0.5s var(--ease-spring), opacity 0.3s, visibility 0s linear 0.5s;
  }
  .faq-panel.is-open { grid-template-rows: 1fr; transform: none; transition: grid-template-rows 0.5s var(--ease-spring), opacity 0.35s, visibility 0s; }
  .faq-panel-inner { overflow: hidden; }
  .faq-big { display: none; }
  .faq-a { padding: 6px 0 22px; }
  .faq-ico-arrow { display: none; }
  .faq-ico-plus { display: block; }
  .faq-qbtn[aria-expanded='true'] .faq-ico-plus { transform: rotate(45deg); }
}

@media (max-width: 720px) {
  :root { --nav-h: 58px; }
  .hero { min-height: auto; padding-block: calc(var(--nav-h) + 60px) 64px; }
  .hero-title { font-size: clamp(2.9rem, 14.4vw, 4.6rem); line-height: 0.94; }
  .hl { white-space: normal; }
  .hl-2 { padding-left: 0; }
  .hero-bottom { margin-top: 30px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .lens { --d: clamp(116px, 33vw, 150px); }
  .lens-hint { display: none; }

  .work { padding-block: var(--section); }
  .work-pin { min-height: auto; padding-block: 0; }
  .work-head .section-title { font-size: var(--fs-h2); }
  .work-track-wrap { scrollbar-width: none; padding-bottom: 0; }
  .work-track-wrap::-webkit-scrollbar { display: none; }
  .work-track { padding-inline: var(--gutter); }
  .work-item { width: 86vw; scroll-snap-align: center; }
  .work-end { width: 80vw; scroll-snap-align: center; padding: 20px 8px; }
  .work-progress { display: none; }

  .type-grid { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top-btn { grid-column: 2; grid-row: 1; justify-self: end; }
  .work-rail { display: none; }
  .svc-row { grid-template-columns: minmax(0, 1fr) auto; }
  .svc-sum { grid-column: 1; grid-row: 2; font-size: 1rem; }
  .svc-plus { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; }
  .svc-detail-inner { grid-template-columns: 1fr; }
  .svc-detail-body { grid-column: 1; }
  /* The mockup is 343 px wide here: notes get their own spots, and step 4
     shows the code on its own instead of on top of the site */
  .note { width: 44%; padding: 2.6% 3.2%; border-radius: 8px; font-size: 0.6875rem; }
  .note.n1 { left: 5%; top: 9%; }
  .note.n3 { left: 51%; top: 17%; }
  .note.n2 { left: 22%; top: 50%; }
  .mock-wave { left: 6%; bottom: 7%; height: 24px; gap: 4px; }
  .mock-wave i { width: 3px; }
  .mock[data-stage='4'] .mock-frame { opacity: 0; }
  .mock-code { left: 7%; right: 7%; width: auto; font-size: 0.6875rem; }
  .mock[data-stage='4'] .mock-code { opacity: 1; transform: translateY(0); }
}

@media (max-width: 420px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-top-btn { grid-column: auto; grid-row: auto; justify-self: start; }
}

/* --------------------------------------------------------------------------
   Reduced motion and transparency
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-property: opacity, color, background-color, border-color, box-shadow, outline-color, visibility !important;
    transition-duration: 0.2s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .resp-frame { width: 64%; }
  .pill-grow path { stroke-dashoffset: 0; }
  .form-done-burst, .pill-beam, .cb-sparks, .mock-launch-ring { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav-pill { background: #0A1431; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
