/* ALAMANO Web V3 - Sistema Visual Cinematografico de Elite
 * Arquitectura CSS3 con @layer, contraste WCAG AA/AAA, transicion @view-transition,
 * escenario fijo multi-video, menu movil accesible, cotizador interactivo y soporte reducido de movimiento.
 */
@layer reset, tokens, base, stage, chrome, layout, components, sections, responsive, motion;

@view-transition {
  navigation: auto;
}

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
  }
  html {
    scroll-behavior: smooth;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
  }
  body {
    margin: 0;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3, h4, p, figure, dl, dd, ol, ul {
    margin: 0;
    padding: 0;
  }
  ol, ul {
    list-style: none;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  img, video {
    display: block;
    max-width: 100%;
  }
  button, input, select, textarea {
    font: inherit;
    color: inherit;
  }
  button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
  }
}

@layer tokens {
  :root {
    --ink: #07101e;
    --ink-2: #0d182b;
    --ink-3: #13233d;
    --paper: #f5f3ee;
    --mist: rgba(245, 243, 238, 0.82);
    --dim: rgba(245, 243, 238, 0.58);
    --line: rgba(245, 243, 238, 0.16);
    --line-strong: rgba(245, 243, 238, 0.28);
    --emerald: #00d084;
    --emerald-bright: #2ef0a8;
    --emerald-deep: #042116;
    --amber: #ff9500;
    --amber-bright: #ffb03a;
    --amber-deep: #241200;
    --danger: #ff7b61;
    --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --sans: "Plus Jakarta Sans", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --pad: clamp(20px, 6vw, 108px);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
  }
}

@layer base {
  body {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 1.02rem;
    line-height: 1.62;
  }
  :focus-visible {
    outline: 2px solid var(--emerald);
    outline-offset: 4px;
    border-radius: 6px;
  }
  em {
    font-style: italic;
    color: var(--emerald);
  }
  em.amber-em {
    color: var(--amber);
  }
  .skip-link {
    position: fixed;
    top: -120px;
    left: 16px;
    z-index: 90;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--emerald);
    color: var(--emerald-deep);
    font-weight: 700;
    transition: top 0.2s ease;
  }
  .skip-link:focus {
    top: 16px;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .num {
    font-variant-numeric: tabular-nums;
  }
}

@layer stage {
  .stage {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    z-index: 0;
    overflow: hidden;
    background: var(--ink);
    pointer-events: none;
  }
  .stage-layers {
    position: absolute;
    inset: 0;
  }
  .stage-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.95s var(--ease);
    background-color: var(--ink);
  }
  .stage-layer.is-active {
    opacity: 1;
  }
  .stage-layer video {
    position: absolute;
    left: 0;
    top: -6%;
    width: 100%;
    height: 112%;
    object-fit: cover;
    object-position: 50% 42%;
    transform: translate3d(0, calc((var(--p, 0) - 0.5) * 6%), 0);
    will-change: transform;
  }
  .veil {
    position: absolute;
    inset: 0;
    transition: opacity 0.85s var(--ease);
  }
  .v-base {
    background:
      radial-gradient(ellipse at 72% 38%, rgba(7, 16, 30, 0.14) 0%, rgba(7, 16, 30, 0.72) 78%),
      linear-gradient(180deg, rgba(7, 16, 30, 0.72) 0%, rgba(7, 16, 30, 0.34) 28%, rgba(7, 16, 30, 0.68) 64%, rgba(7, 16, 30, 0.96) 100%);
  }
  .v-all {
    background: var(--ink);
    opacity: var(--veil, 0.18);
  }
  .v-left,
  .v-right {
    opacity: 0;
  }
  .grain {
    position: absolute;
    inset: 0;
    opacity: 0.065;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  }
}

@layer chrome {
  .progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 40;
    background: linear-gradient(90deg, var(--emerald), var(--amber));
    transform-origin: 0 50%;
    transform: scaleX(var(--p, 0));
  }

  .top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px var(--pad);
    transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
    border-bottom: 1px solid transparent;
  }
  .top.solid {
    background: rgba(7, 16, 30, 0.86);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--line);
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
  }
  .brand img {
    height: 40px;
    width: auto;
    border-radius: 10px;
  }
  .brand-txt b {
    display: block;
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: 0.14em;
    line-height: 1;
  }
  .brand-txt b span {
    color: var(--amber);
  }
  .brand-txt small {
    display: block;
    margin-top: 5px;
    font-size: 0.56rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--dim);
    line-height: 1;
    white-space: nowrap;
  }

  .nav {
    display: none;
  }
  .top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(7, 16, 30, 0.72);
    color: var(--paper);
    transition: border-color 0.25s ease, background 0.25s ease;
  }
  .menu-btn:hover {
    border-color: var(--emerald);
    background: rgba(0, 208, 132, 0.12);
  }

  /* Menú móvil deslizable */
  .drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(3, 8, 16, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
  .drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    width: min(340px, 88vw);
    background: rgba(9, 20, 38, 0.97);
    border-left: 1px solid var(--line);
    padding: 22px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(104%);
    transition: transform 0.38s var(--ease), visibility 0s linear 0.38s;
  }
  .drawer.open {
    visibility: visible;
    transform: translateX(0);
    transition: transform 0.38s var(--ease), visibility 0s linear 0s;
  }
  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
  .drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: var(--mist);
  }
  .drawer-close:hover {
    border-color: var(--emerald);
    color: var(--paper);
  }
  .drawer-group-title {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 8px;
  }
  .drawer-links {
    display: grid;
    gap: 4px;
  }
  .drawer-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--mist);
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .drawer-links a:hover,
  .drawer-links a[aria-current="page"] {
    background: rgba(0, 208, 132, 0.12);
    color: var(--paper);
  }
  .drawer-links a span {
    color: var(--emerald);
    font-size: 0.86rem;
  }

  /* HUD de video y control de audio */
  .video-hud {
    position: fixed;
    left: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 22;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(7, 16, 30, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: var(--mist);
    font-size: 0.76rem;
    box-shadow: 0 14px 36px -14px rgba(0, 0, 0, 0.85);
    transition: opacity 0.4s ease, border-color 0.25s ease;
  }
  .video-hud:hover {
    border-color: rgba(0, 208, 132, 0.45);
  }
  .hud-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    flex-shrink: 0;
    animation: blink 2.2s ease-in-out infinite;
  }
  .hud-label {
    display: none;
    max-width: 210px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.64rem;
    color: var(--dim);
  }
  .hud-slate {
    display: none;
    padding-left: 10px;
    border-left: 1px solid var(--line);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--paper);
  }
  .audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(0, 208, 132, 0.16);
    border: 1px solid rgba(0, 208, 132, 0.42);
    color: var(--paper);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
  }
  .audio-btn:hover {
    background: var(--emerald);
    color: var(--emerald-deep);
  }
  .audio-btn[aria-pressed="true"] {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--amber-deep);
  }
  @keyframes blink {
    50% { opacity: 0.3; }
  }

  /* Botón flotante de Manito AI */
  .flota {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 22;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 6px 6px;
    border-radius: 999px;
    border: 1px solid rgba(0, 208, 132, 0.45);
    background: rgba(7, 16, 30, 0.9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: var(--paper);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.88);
    transition: border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
  }
  .flota:hover {
    border-color: var(--emerald);
    transform: translateY(-2px);
    box-shadow: 0 20px 44px -12px rgba(0, 208, 132, 0.45);
  }
  .flota-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
  }
  .flota-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--emerald);
    background: var(--ink-2);
  }
  .flota-avatar::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--emerald);
    animation: pulse 2.4s ease-out infinite;
  }
  .flota-texto em {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 400;
  }

  /* Riel de capítulos en escritorio */
  .rail {
    display: none;
  }
}

@layer layout {
  main {
    position: relative;
    z-index: 2;
  }
  .ch,
  .sec {
    position: relative;
    padding: 96px var(--pad) 72px;
  }
  .ch {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
  }
  .col,
  .wrap {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
  }
  .ch .col {
    max-width: 650px;
    margin-inline: 0;
  }
  .ch-hero {
    align-items: flex-end;
    padding-top: 118px;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .sub-hero {
    min-height: 92vh;
    min-height: 92svh;
    display: flex;
    align-items: flex-end;
    padding-top: 118px;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }
}

@layer components {
  .eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 18px;
  }
  .eyebrow::before {
    content: "";
    flex: 0 0 32px;
    height: 1px;
    background: currentColor;
    opacity: 0.75;
  }
  .eyebrow.is-amber {
    color: var(--amber);
  }
  h1, h2 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.015em;
    text-wrap: balance;
    text-shadow: 0 4px 36px rgba(7, 16, 30, 0.78);
  }
  h1 {
    font-size: clamp(3rem, 13vw, 4.5rem);
    line-height: 0.96;
  }
  h2 {
    font-size: clamp(2.25rem, 8.8vw, 3.25rem);
    line-height: 1.02;
  }
  h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.58rem;
    line-height: 1.15;
  }
  .lead {
    color: var(--mist);
    font-size: 1.05rem;
    max-width: 48ch;
    margin-top: 20px;
    text-shadow: 0 2px 18px rgba(7, 16, 30, 0.85);
  }
  .actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 28px;
  }

  /* Botones */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    min-height: 50px;
    padding: 0.72em 1.5em;
    border-radius: 999px;
    background: var(--emerald);
    color: var(--emerald-deep);
    font-weight: 700;
    font-size: 0.96rem;
    white-space: nowrap;
    transition: transform 0.28s var(--ease), background 0.25s ease, box-shadow 0.28s ease;
  }
  .btn:hover {
    background: var(--emerald-bright);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -14px rgba(0, 208, 132, 0.85);
  }
  .btn-amber {
    background: var(--amber);
    color: var(--amber-deep);
  }
  .btn-amber:hover {
    background: var(--amber-bright);
    box-shadow: 0 16px 36px -14px rgba(255, 149, 0, 0.85);
  }
  .btn-ink {
    background: var(--ink);
    color: var(--paper);
    min-height: 46px;
  }
  .btn-ink:hover {
    background: #132542;
    box-shadow: 0 14px 30px -12px rgba(7, 16, 30, 0.85);
  }
  .btn-ghost {
    background: rgba(7, 16, 30, 0.52);
    border: 1px solid var(--line-strong);
    color: var(--paper);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .btn-ghost:hover {
    background: rgba(245, 243, 238, 0.12);
    border-color: var(--emerald);
    box-shadow: none;
  }
  .btn-sm {
    min-height: 40px;
    padding: 0.45em 1.15em;
    font-size: 0.88rem;
  }
  .link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 600;
    padding: 0.45em 0;
    border-bottom: 1px solid var(--line-strong);
    transition: border-color 0.25s ease, color 0.25s ease;
  }
  .link::after {
    content: "\2192";
    transition: transform 0.28s var(--ease);
  }
  .link:hover {
    border-color: var(--emerald);
    color: var(--emerald);
  }
  .link:hover::after {
    transform: translateX(5px);
  }

  /* Tarjeta de cristal */
  .card {
    background: rgba(7, 16, 30, 0.82);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 22px 26px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  /* Barra de prueba inmediata */
  .proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
    line-height: 1.35;
    color: var(--paper);
    max-width: 600px;
  }
  .proof li {
    padding: 0 12px;
    border-left: 1px solid var(--line);
  }
  .proof li:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .proof small {
    display: block;
    margin-bottom: 5px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--emerald);
  }
  .proof strong {
    font-weight: 700;
    color: var(--paper);
  }

  /* Migas de pan */
  .migas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 22px;
    font-size: 0.8rem;
    color: var(--dim);
  }
  .migas a {
    border-bottom: 1px solid var(--line);
    transition: color 0.25s ease, border-color 0.25s ease;
  }
  .migas a:hover {
    color: var(--emerald);
    border-color: var(--emerald);
  }
  .migas [aria-current="page"] {
    color: var(--paper);
    font-weight: 600;
  }

  /* Listas editoriales numeradas */
  .why,
  .pasos {
    margin-top: 26px;
    border-top: 1px solid var(--line);
  }
  .why li,
  .pasos li {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 4px 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .why i,
  .pasos i {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--emerald);
    line-height: 1.45;
  }
  .why p,
  .pasos p {
    grid-column: 2;
    color: var(--mist);
    font-size: 0.95rem;
  }

  /* Lista de servicios / subpáginas */
  .svc-head {
    display: grid;
    gap: 16px;
    margin-bottom: 26px;
  }
  .svc-head p {
    color: var(--mist);
    font-size: 0.95rem;
    max-width: 42ch;
  }
  .svcs {
    display: grid;
    border-bottom: 1px solid var(--line);
  }
  .svc {
    display: grid;
    grid-template-columns: 2.4rem 1fr auto;
    align-items: baseline;
    gap: 4px 12px;
    padding: 18px 8px 18px 0;
    border-top: 1px solid var(--line);
    transition: background 0.3s ease;
  }
  .svc i {
    font-family: var(--serif);
    font-style: italic;
    color: var(--emerald);
    font-size: 1.1rem;
  }
  .svc b {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.52rem;
    line-height: 1.15;
    transition: transform 0.32s var(--ease);
  }
  .svc span {
    grid-column: 2;
    color: var(--dim);
    font-size: 0.88rem;
  }
  .svc::after {
    content: "\2192";
    grid-column: 3;
    grid-row: 1;
    color: var(--amber);
    opacity: 0.7;
    transition: transform 0.3s var(--ease), opacity 0.25s ease;
  }
  .svc:hover {
    background: linear-gradient(90deg, rgba(0, 208, 132, 0.12), rgba(0, 208, 132, 0) 75%);
  }
  .svc:hover b {
    transform: translateX(8px);
    color: var(--emerald-bright);
  }
  .svc:hover::after {
    opacity: 1;
    transform: translateX(5px);
  }

  /* Tarjetas visuales de catálogo de subpáginas (/servicios/) */
  .svc-cards {
    display: grid;
    gap: 20px;
    margin-top: 28px;
  }
  .svc-card {
    display: grid;
    grid-template-rows: 190px 1fr;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(7, 16, 30, 0.86);
    transition: transform 0.32s var(--ease), border-color 0.3s ease;
  }
  .svc-card:hover {
    transform: translateY(-4px);
    border-color: var(--emerald);
  }
  .svc-card-media {
    position: relative;
    overflow: hidden;
    background: var(--ink-2);
  }
  .svc-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
  }
  .svc-card:hover .svc-card-media img {
    transform: scale(1.05);
  }
  .svc-card-tag {
    position: absolute;
    left: 14px;
    bottom: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(7, 16, 30, 0.85);
    border: 1px solid rgba(0, 208, 132, 0.45);
    color: var(--emerald);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .svc-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .svc-card-body p {
    color: var(--mist);
    font-size: 0.92rem;
  }
  .svc-card-body .link {
    margin-top: auto;
    align-self: flex-start;
    padding-top: 10px;
  }

  /* Marcas / Viñetas */
  .marcas {
    margin-top: 22px;
    border-top: 1px solid var(--line);
  }
  .marcas li {
    position: relative;
    padding: 14px 0 14px 26px;
    border-bottom: 1px solid var(--line);
    color: var(--mist);
  }
  .marcas li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 1.38em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
  }

  /* Fichas de datos clave */
  .fichas {
    display: grid;
    gap: 14px;
    margin-top: 26px;
  }
  .ficha {
    background: rgba(7, 16, 30, 0.84);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
  }
  .ficha small {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 8px;
  }
  .ficha strong {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.05;
    color: var(--paper);
    margin-bottom: 8px;
  }
  .ficha p {
    color: var(--mist);
    font-size: 0.93rem;
  }

  /* Preguntas frecuentes */
  .faq {
    margin-top: 24px;
    border-top: 1px solid var(--line);
  }
  .faq details {
    border-bottom: 1px solid var(--line);
  }
  .faq summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 18px 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--serif);
    font-size: 1.38rem;
    line-height: 1.2;
  }
  .faq summary::-webkit-details-marker {
    display: none;
  }
  .faq summary::after {
    content: "+";
    font-family: var(--sans);
    font-size: 1.3rem;
    color: var(--emerald);
    transition: transform 0.28s var(--ease);
  }
  .faq details[open] summary::after {
    transform: rotate(45deg);
    color: var(--amber);
  }
  .faq details p {
    color: var(--mist);
    padding: 0 0 20px;
    max-width: 64ch;
  }

  /* Cuadro dúo texto + imagen/fotograma */
  .duo {
    display: grid;
    gap: 26px;
  }
  .txt p {
    color: var(--mist);
    margin-top: 14px;
    max-width: 60ch;
  }
  .foto img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--ink-2);
  }
  .foto figcaption {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.84rem;
    color: var(--dim);
  }
  .foto figcaption i {
    font-family: var(--serif);
    font-style: italic;
    color: var(--emerald);
  }

  /* Tabla limpia responsive */
  .table-wrap {
    margin-top: 22px;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(7, 16, 30, 0.78);
  }
  table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
    font-size: 0.92rem;
  }
  th, td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
  }
  th {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--emerald);
    background: rgba(13, 24, 43, 0.9);
  }
  tr:last-child td {
    border-bottom: 0;
  }
  td strong {
    color: var(--paper);
  }
}

@layer sections {
  /* Galería horizontal real de Coche (pin en escritorio) */
  .ch-gallery {
    display: block;
    padding-left: 0;
    padding-right: 0;
  }
  .ch-gallery .col {
    padding: 0 var(--pad);
    max-width: none;
  }
  .gallery-head {
    display: grid;
    gap: 20px;
    margin-bottom: 26px;
  }
  .manito-badge {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .manito-badge img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--emerald);
    background: var(--ink-2);
  }
  .manito-badge b {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.1;
  }
  .manito-badge span {
    font-size: 0.82rem;
    color: var(--dim);
  }
  .track {
    display: flex;
    gap: 16px;
    padding: 6px var(--pad) 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .track::-webkit-scrollbar {
    display: none;
  }
  .shot {
    flex: 0 0 auto;
    width: 72vw;
    max-width: 310px;
    scroll-snap-align: center;
  }
  .shot img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--ink-2);
  }
  .shot figcaption {
    display: flex;
    gap: 10px;
    margin-top: 11px;
    font-size: 0.88rem;
    color: var(--mist);
  }
  .shot figcaption i {
    font-family: var(--serif);
    font-style: italic;
    color: var(--emerald);
  }
  .hint {
    margin: 12px var(--pad) 0;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
  }

  /* Cotizador interactivo de tarifas */
  .calc {
    margin-top: 26px;
    background: rgba(7, 16, 30, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .calc-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 5px;
    border-radius: 14px;
    background: rgba(245, 243, 238, 0.06);
    border: 1px solid var(--line);
    margin-bottom: 20px;
  }
  .calc-tab {
    min-height: 44px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--mist);
    transition: background 0.25s ease, color 0.25s ease;
  }
  .calc-tab[aria-selected="true"] {
    background: var(--emerald);
    color: var(--emerald-deep);
  }
  .calc-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 10px;
  }
  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
  }
  .chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 46px;
    padding: 9px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(245, 243, 238, 0.04);
    color: var(--mist);
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
  }
  .chip small {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--dim);
  }
  .chip:hover {
    border-color: rgba(0, 208, 132, 0.6);
    color: var(--paper);
  }
  .chip[aria-pressed="true"] {
    background: rgba(0, 208, 132, 0.18);
    border-color: var(--emerald);
    color: var(--paper);
  }
  .chip[aria-pressed="true"] small {
    color: var(--emerald-bright);
  }
  .calc-row {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
  }
  .calc-select {
    width: 100%;
    min-height: 48px;
    padding: 0.68em 0.9em;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #0d1a2f;
    color: var(--paper);
  }
  .calc-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--mist);
    cursor: pointer;
  }
  .calc-check input {
    width: 19px;
    height: 19px;
    accent-color: var(--emerald);
  }
  .calc-result {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.14), rgba(255, 149, 0, 0.1));
    border: 1px solid rgba(0, 208, 132, 0.35);
  }
  .calc-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
  }
  .calc-price {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 7vw, 3.2rem);
    line-height: 1;
    color: var(--emerald-bright);
  }
  .calc-meta {
    font-size: 0.86rem;
    color: var(--mist);
  }

  /* Boleto Fundadores (objeto editorial) */
  .ticket-wrap {
    margin-top: 28px;
    max-width: 470px;
    transform: rotate(-1.2deg);
    filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.58));
  }
  .ticket {
    --stub: 144px;
    position: relative;
    background: #f6f2ea;
    color: var(--ink);
    border-radius: 20px;
    -webkit-mask:
      radial-gradient(circle 12px at 0 calc(100% - var(--stub)), #0000 96%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle 12px at 100% calc(100% - var(--stub)), #0000 96%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle 12px at 0 calc(100% - var(--stub)), #0000 96%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle 12px at 100% calc(100% - var(--stub)), #0000 96%, #000) right / 51% 100% no-repeat;
  }
  .ticket-top {
    padding: 26px 26px 22px;
  }
  .ticket small {
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #077b50;
  }
  .ticket h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.04;
    margin: 10px 0 16px;
    color: var(--ink);
  }
  .steps {
    display: grid;
    gap: 8px;
    font-size: 0.92rem;
    color: rgba(7, 16, 30, 0.84);
  }
  .steps li {
    display: flex;
    gap: 10px;
  }
  .steps i {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 700;
    color: #924c00;
  }
  .ticket-stub {
    height: var(--stub);
    padding: 16px 26px 20px;
    border-top: 2px dashed rgba(7, 16, 30, 0.24);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
  }
  .ticket-stub p {
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(7, 16, 30, 0.72);
  }

  /* Pulso de seguridad / SOS */
  .pulse {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--emerald);
    flex: 0 0 auto;
  }
  .pulse::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid var(--emerald);
    animation: pulse 2.2s ease-out infinite;
  }
  @keyframes pulse {
    from { transform: scale(0.5); opacity: 0.95; }
    to { transform: scale(1.6); opacity: 0; }
  }
  .ch-sos .eyebrow::before {
    display: none;
  }

  /* Formulario de Pre-registro */
  .book {
    margin-top: 26px;
    background: rgba(7, 16, 30, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px 20px 26px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .fields {
    display: grid;
    gap: 14px;
  }
  .field label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--dim);
    margin-bottom: 6px;
  }
  .field input,
  .field select,
  .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.7em 0.92em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(245, 243, 238, 0.05);
    color: var(--paper);
    transition: border-color 0.22s ease, background 0.22s ease;
  }
  .field select option {
    background: #0d182b;
    color: var(--paper);
  }
  .field textarea {
    min-height: 82px;
    resize: vertical;
  }
  .field input:focus,
  .field select:focus,
  .field textarea:focus {
    outline: none;
    border-color: var(--emerald);
    background: rgba(0, 208, 132, 0.08);
  }
  .field input[aria-invalid="true"],
  .field select[aria-invalid="true"] {
    border-color: var(--danger);
  }
  .consent {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 0.84rem;
    color: var(--mist);
    cursor: pointer;
  }
  .consent input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--emerald);
  }
  .consent a {
    color: var(--emerald);
    border-bottom: 1px solid rgba(0, 208, 132, 0.45);
  }
  .hp {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .send {
    width: 100%;
    margin-top: 18px;
  }
  .send[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }
  .msg {
    min-height: 1.4em;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #ffb8a8;
  }
  .done .check {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--emerald);
    color: var(--emerald-deep);
    margin-bottom: 16px;
  }
  .done.done-warn .check {
    background: var(--amber);
    color: var(--amber-deep);
  }
  .site-footer {
    position: relative;
    z-index: 2;
    padding: 0 var(--pad) 96px;
  }
  .site-footer-inner {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    background: rgba(7, 16, 30, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .site-footer-inner .foot {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .done h3 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  .done p {
    color: var(--mist);
    font-size: 0.94rem;
    margin-top: 10px;
  }
  .done-summary {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(245, 243, 238, 0.04);
    font-size: 0.86rem;
    color: var(--mist);
    white-space: pre-line;
  }

  /* Simulador de comandos de voz (subpágina Manito AI) */
  .voice-demo {
    margin-top: 24px;
    display: grid;
    gap: 14px;
  }
  .voice-quote {
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 208, 132, 0.35);
    background: rgba(0, 208, 132, 0.08);
    color: var(--paper);
    font-family: var(--serif);
    font-size: 1.45rem;
    line-height: 1.25;
  }
  .voice-reply {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(7, 16, 30, 0.86);
    color: var(--mist);
    font-size: 0.94rem;
  }
  .voice-reply strong {
    color: var(--amber);
  }

  /* Contacto y pie institucional */
  .info {
    margin-top: 32px;
    border-top: 1px solid var(--line);
  }
  .info div {
    display: grid;
    grid-template-columns: 6.4rem 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .info dt {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dim);
    padding-top: 0.25em;
  }
  .info dd {
    color: var(--mist);
    font-size: 0.94rem;
  }
  .info a {
    border-bottom: 1px solid var(--line);
    transition: color 0.25s ease, border-color 0.25s ease;
  }
  .info a:hover {
    color: var(--emerald);
    border-color: var(--emerald);
  }
  .foot {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--dim);
  }
  .foot-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .foot-brand img {
    height: 30px;
    width: auto;
    border-radius: 6px;
  }
  .foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  .foot-links a {
    border-bottom: 1px solid var(--line);
  }
  .foot-links a:hover {
    color: var(--emerald);
    border-color: var(--emerald);
  }
}

@layer responsive {
  @media (min-width: 640px) {
    .fields {
      grid-template-columns: 1fr 1fr;
    }
    .fields .full {
      grid-column: 1 / -1;
    }
    .svc-cards {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 960px) {
    .v-left {
      background: linear-gradient(90deg, rgba(7, 16, 30, 0.92) 0%, rgba(7, 16, 30, 0.78) 34%, rgba(7, 16, 30, 0.34) 60%, rgba(7, 16, 30, 0.04) 82%);
    }
    .v-right {
      background: linear-gradient(270deg, rgba(7, 16, 30, 0.92) 0%, rgba(7, 16, 30, 0.78) 34%, rgba(7, 16, 30, 0.34) 60%, rgba(7, 16, 30, 0.04) 82%);
    }
    .stage[data-side="left"] .v-left,
    .stage[data-side="right"] .v-right {
      opacity: 1;
    }

    .top {
      padding-top: 18px;
      padding-bottom: 18px;
    }
    .brand img {
      height: 44px;
    }
    .nav {
      display: flex;
      align-items: center;
      gap: 24px;
      font-size: 0.88rem;
      color: var(--mist);
    }
    .nav a {
      position: relative;
      padding: 6px 0;
      transition: color 0.25s ease;
    }
    .nav a::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 2px;
      background: var(--emerald);
      transform: scaleX(0);
      transform-origin: 0 50%;
      transition: transform 0.35s var(--ease);
    }
    .nav a:hover,
    .nav a[aria-current="page"] {
      color: var(--paper);
    }
    .nav a:hover::after,
    .nav a[aria-current="page"]::after {
      transform: scaleX(1);
    }
    .menu-btn {
      display: none;
    }

    .rail {
      display: flex;
      flex-direction: column;
      position: fixed;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      z-index: 20;
    }
    .rail button {
      position: relative;
      display: flex;
      align-items: center;
      height: 24px;
      width: 42px;
    }
    .rail button::before {
      content: "";
      height: 2px;
      width: 12px;
      border-radius: 2px;
      background: var(--dim);
      transition: width 0.35s var(--ease), background 0.25s ease;
    }
    .rail button[aria-current="true"]::before {
      width: 28px;
      background: var(--emerald);
    }
    .rail button span {
      position: absolute;
      left: 40px;
      white-space: nowrap;
      font-size: 0.64rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--paper);
      background: rgba(7, 16, 30, 0.9);
      border: 1px solid var(--line);
      padding: 5px 11px;
      border-radius: 999px;
      opacity: 0;
      transform: translateX(-6px);
      pointer-events: none;
      transition: opacity 0.25s ease, transform 0.25s var(--ease);
    }
    .rail button:hover span,
    .rail button:focus-visible span {
      opacity: 1;
      transform: none;
    }

    .video-hud {
      left: auto;
      right: 26px;
      bottom: 82px;
    }
    .hud-label,
    .hud-slate {
      display: inline-block;
    }
    .flota {
      right: 26px;
      bottom: 22px;
    }

    .ch {
      padding: 124px var(--pad) 96px;
    }
    .ch .col {
      max-width: 630px;
    }
    .ch[data-side="right"] .col {
      margin-left: auto;
      max-width: 590px;
    }
    .ch[data-side="center"] .col {
      max-width: 980px;
      margin-inline: auto;
      text-align: center;
    }
    .ch[data-side="center"] .eyebrow {
      justify-content: center;
    }
    .ch[data-side="center"] .lead {
      margin-inline: auto;
    }
    .ch[data-side="center"] .actions {
      justify-content: center;
    }
    .ch[data-side="wide"] .col {
      max-width: 1120px;
      margin-inline: auto;
    }

    h1 {
      font-size: clamp(3.8rem, 6.4vw, 6.8rem);
    }
    h2 {
      font-size: clamp(2.6rem, 4vw, 4.2rem);
    }
    .ch-hero,
    .sub-hero {
      align-items: center;
      padding-bottom: 96px;
    }
    .ch-calm h2,
    .ch-sos h2 {
      font-size: clamp(3rem, 5.2vw, 5.4rem);
    }

    .card {
      padding: 40px 44px;
    }
    .svc-head {
      grid-template-columns: 1fr auto;
      align-items: end;
    }
    .svc-head p {
      text-align: right;
      max-width: 34ch;
    }
    .svcs {
      grid-template-columns: 1fr 1fr;
      column-gap: 56px;
    }
    .svc {
      grid-template-columns: 2.6rem 1fr auto;
      padding: 20px 10px 20px 0;
    }
    .svc-cards {
      grid-template-columns: repeat(3, 1fr);
    }
    .duo {
      grid-template-columns: 1.15fr 0.85fr;
      gap: 48px;
      align-items: center;
    }
    .fichas {
      grid-template-columns: repeat(3, 1fr);
    }
    .fichas.cols-4 {
      grid-template-columns: repeat(4, 1fr);
    }
    .pasos {
      display: grid;
      grid-template-columns: 1fr 1fr;
      column-gap: 44px;
    }

    /* Galería con pin en escritorio */
    .ch-gallery {
      padding: 0;
    }
    .ch-gallery .col {
      max-width: none;
      margin: 0;
    }
    .pin {
      position: sticky;
      top: 0;
      height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
      padding: 96px 0 44px;
    }
    .gallery-head {
      grid-template-columns: 1fr auto;
      align-items: end;
      margin-bottom: 30px;
    }
    .track {
      overflow: visible;
      gap: 24px;
      padding-top: 0;
      padding-bottom: 0;
      will-change: transform;
    }
    .shot {
      width: clamp(230px, min(22vw, 35vh), 330px);
      max-width: none;
    }
    .hint {
      display: none;
    }

    .ticket {
      --stub: 102px;
    }
    .ticket-stub {
      flex-direction: row;
      align-items: center;
      gap: 18px;
    }
    .ticket-stub p {
      max-width: 22ch;
    }
    .info div {
      grid-template-columns: 8rem 1fr;
    }
  }

  @media (max-width: 959px) {
    body {
      padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }
    .ch-hero,
    .sub-hero {
      padding-bottom: calc(108px + env(safe-area-inset-bottom));
    }
    .top {
      padding: 12px 16px;
    }
    .top-actions .btn {
      display: none;
    }
    .brand img {
      height: 36px;
    }
    .video-hud {
      left: 14px;
      bottom: calc(14px + env(safe-area-inset-bottom));
      padding: 4px;
      gap: 0;
    }
    .hud-dot,
    #audio-toggle-text {
      display: none;
    }
    .audio-btn {
      width: 42px;
      height: 42px;
      padding: 0;
      justify-content: center;
    }
    .flota {
      right: 14px;
      bottom: calc(14px + env(safe-area-inset-bottom));
      padding: 5px 14px 5px 5px;
      font-size: 0.86rem;
    }
  }
}

@layer motion {
  .js [data-r] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: calc(var(--i, 0) * 75ms + 80ms);
  }
  .js .in [data-r],
  .js [data-r].in {
    opacity: 1;
    transform: none;
  }
  .js .split .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0.08em 0.1em 0.16em 0;
    margin: -0.08em -0.1em -0.16em 0;
  }
  .js .split .w > span {
    display: inline-block;
    transform: translateY(112%);
    transition: transform 1s var(--ease);
    transition-delay: calc(var(--w, 0) * 48ms);
  }
  .js .in .split .w > span {
    transform: none;
  }
  .split .pt {
    font-style: normal;
    color: var(--paper);
  }

  ::view-transition-old(root) {
    animation: vt-out 0.3s var(--ease) both;
  }
  ::view-transition-new(root) {
    animation: vt-in 0.48s var(--ease) both;
  }
  @keyframes vt-out {
    to { opacity: 0; transform: scale(0.985); }
  }
  @keyframes vt-in {
    from { opacity: 0; transform: translateY(22px); }
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *, *::before, *::after {
      animation: none !important;
      transition: none !important;
    }
    .js [data-r] {
      opacity: 1;
      transform: none;
    }
    .js .split .w > span {
      transform: none;
    }
    .stage-layer video {
      transform: none;
    }
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
      animation: none !important;
    }
  }
}
