@charset "utf-8";

/* =========================================
   0. TIPOGRAFÍA Y RESET BÁSICO
   ========================================= */
@font-face {
    font-family: "D-DINE";
    src: url("fonts/D-DINE.otf") format("opentype");
    font-display: swap;
}

@font-face {
    font-family: "Google Sans Display Regular";
    src: url("fonts/google-sans-display-regular.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Google Sans Display Bold";
    src: url("fonts/google-sans-display-bold.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Google Sans Display Medium";
    src: url("fonts/google-sans-display-medium.woff2") format("woff2");
    font-display: swap;
}

:root {
    --accent: #2f6fe4;
    --accent-strong: #174ea6;
    --accent-bright: #79a2ff;
    --accent-rgb: 47, 111, 228;
    --accent-strong-rgb: 23, 78, 166;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Google Sans Display Regular", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #202124;
    background-color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

.sr-only {
    position: absolute;
    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;
    top: 8px;
    left: 8px;
    z-index: 3000;
    padding: 10px 14px;
    border-radius: 4px;
    background: #202124;
    color: #fff;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-strong);
    outline-offset: 3px;
}

/* =========================================
   1. NAVBAR / NAVEGACIÓN
   ========================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent; /* transparente al inicio */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: transparent;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.94);
    padding: 15px 0;
    border-bottom-color: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 3000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 300;
    font-family: "Google Sans Display Medium", sans-serif;
    letter-spacing: 2px;
    position: relative;
    color: var(--accent);
    text-decoration: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: none;
}

.quote-logo {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 20px;
}

.quote-logo p {
    color: #DADCE0;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Colores cuando hay scroll */
nav.scrolled .logo {
    color: var(--accent);
}

nav.scrolled .nav-links a {
    color: #565656;
}

nav.scrolled .nav-links a::before {
    background: transparent;
}

nav.scrolled .menu-toggle span {
    background: #202124;
}

/* --- Menú hamburguesa / mobile toggle --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #000;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* --- Links navegación --- */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #565656;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

/* Línea decorativa a la izquierda del link */
.nav-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.3s ease;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 0px;
}

.nav-links a.active {
    font-weight: 600;
    color: var(--accent-strong) !important;
}

/* =========================================
   2. HERO (SECCIÓN PRINCIPAL)
   ========================================= */
.hero {
    background: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 112px 40px 72px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(32, 33, 36, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 33, 36, .035) 1px, transparent 1px);
    background-size: 46px 46px;
    pointer-events: none;
    opacity: .72;
    -webkit-mask-image: linear-gradient(180deg, transparent 3%, #000 38%, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 3%, #000 38%, #000 72%, transparent 100%);
}

.hero::after {
    display: none;
}

section[id] {
    scroll-margin-top: 76px;
}

@media (min-width: 769px) {
    section[id] {
        scroll-margin-top: 59px;
    }
}

.hero-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp .8s ease;
    position: relative;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: #565656;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    justify-content: center;
}

.hero-kicker::before {
    content: '';
    width: 34px;
    height: 2px;
    background: var(--accent);
}

.hero-principle {
    font-family: "D-DINE", sans-serif;
    color: var(--accent);
    font-size: 13px;
    line-height: 1;
    letter-spacing: .12em;
}

.hero h1 {
    max-width: 1080px;
    margin: 0 auto 28px;
    color: #202124;
    font-size: clamp(48px, 5.3vw, 78px);
    font-weight: 300;
    letter-spacing: -.045em;
    line-height: 1.02;
    text-wrap: pretty;
}

.hero .subtitle {
    max-width: 820px;
    margin: 0 auto 36px;
    font-size: 18px;
    color: #565656;
    font-weight: 300;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 142px;
    padding: 13px 24px;
    border: 1px solid var(--accent);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.hero-cta-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 30px rgba(var(--accent-rgb), .22);
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, .82);
    color: var(--accent-strong);
}

.hero-cta:hover {
    transform: translateY(-2px);
}

.hero-cta-primary:hover {
    background: var(--accent-strong);
    box-shadow: 0 18px 34px rgba(var(--accent-strong-rgb), .28);
}

.hero-cta-secondary:hover {
    background: #fff;
}

.hero-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 38px;
    padding: 0;
    list-style: none;
    color: #5f6368;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-trust li {
    position: relative;
}

.hero-trust li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -16px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-50%);
}

/* =========================================
   3. SECCIÓN SERVICIOS
   ========================================= */

.services {
    padding: 0;
    position: relative;
    -webkit-font-smoothing: antialiased;
    color: #202124;
    background: #fff;
}

.services-intro {
    width: min(100%, 1280px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: clamp(56px, 7vw, 112px);
    padding: 132px 48px 112px;
}

.services-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding-top: 10px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
}

.services-label span:last-child {
    color: #9aa0a6;
    font-family: "D-DINE", sans-serif;
    font-size: 9px;
    letter-spacing: .18em;
}

.services-intro-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr);
    align-items: center;
    gap: clamp(48px, 6vw, 88px);
}

.services-title {
    max-width: 700px;
    color: #202124;
    font-size: clamp(50px, 5.3vw, 74px);
    font-weight: 300;
    letter-spacing: -.045em;
    line-height: .98;
    text-wrap: balance;
}

.services-intro-copy > p {
    max-width: 430px;
    padding-left: 28px;
    border-left: 1px solid rgba(var(--accent-rgb), .65);
    color: #565656;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
}

.services-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(480px, 1fr);
    align-items: start;
    border-top: 1px solid #e3e3e3;
}

.services-content {
    background: #fff;
}

.service-panel {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-items: center;
    padding: 96px clamp(40px, 7vw, 112px);
    border-bottom: 1px solid #e3e3e3;
    background: #fff;
}

.service-panel-inner {
    width: 100%;
    max-width: 610px;
    margin-left: auto;
}

.service-index {
    display: block;
    margin-bottom: 34px;
    color: var(--accent);
    font-family: "D-DINE", sans-serif;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.service-name {
    max-width: 590px;
    margin-bottom: 24px;
    color: #202124;
    font-size: clamp(42px, 4.5vw, 68px);
    font-weight: 300;
    letter-spacing: -.045em;
    line-height: 1.03;
    text-wrap: balance;
}

.service-tagline {
    margin-bottom: 14px;
    color: #777;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .2em;
    line-height: 1.3;
    text-transform: uppercase;
}

.service-text {
    max-width: 560px;
    margin-bottom: 32px;
    color: #565656;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.7;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 142px;
    min-height: 48px;
    padding: 13px 24px;
    border: 1px solid var(--accent);
    border-radius: 3px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.service-cta:hover {
    background: var(--accent-strong);
    box-shadow: 0 14px 28px rgba(var(--accent-strong-rgb), .2);
    transform: translateY(-2px);
}

.service-mobile-visual {
    display: none;
}

.services-visual {
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    position: sticky;
    top: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 75% 22%, rgba(var(--accent-rgb), .22), transparent 34%),
        linear-gradient(145deg, #1d1d1d, #0d0d0d 72%);
}

.services-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 80%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 22%, #000 80%, transparent);
}

.services-visual-meta {
    position: absolute;
    top: 84px;
    right: 36px;
    left: 36px;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: rgba(255, 255, 255, .7);
    font-family: "D-DINE", sans-serif;
    font-size: 9px;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .65);
}

.service-visual-stack {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    position: relative;
}

.service-visual-card {
    grid-area: 1 / 1;
    inset: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
    background: #202020;
    opacity: 0;
    clip-path: inset(10% 9% 10% 9%);
    transform: translateY(10%) scale(1.035);
    transition: clip-path .85s cubic-bezier(.22, .72, .2, 1), transform .85s cubic-bezier(.22, .72, .2, 1), opacity .55s ease, filter .55s ease;
    filter: grayscale(.65) brightness(.62);
}

.service-visual-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .4), transparent 24%, transparent 62%, rgba(0, 0, 0, .68)),
        linear-gradient(90deg, rgba(0, 0, 0, .14), transparent 32%, rgba(0, 0, 0, .08));
}

.service-visual-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.025);
    transition: transform .8s cubic-bezier(.22, .72, .2, 1);
}

.service-visual-card figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 72px 36px 30px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .82));
    color: #fff;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .72);
    z-index: 2;
}

.service-visual-card figcaption span {
    color: var(--accent-bright);
    font-family: "D-DINE", sans-serif;
}

.service-visual-card.is-active {
    z-index: 3;
    opacity: 1;
    filter: none;
    clip-path: inset(0);
    transform: translateY(0) scale(1);
}

.service-visual-card.is-active img {
    transform: scale(1);
}

.service-visual-card.is-before {
    z-index: 1;
    opacity: 0;
    clip-path: inset(8% 7% 8% 7%);
    transform: translateY(-10%) scale(1.035);
}

.service-visual-card.is-after {
    z-index: 2;
}

.services-visual-counter {
    position: absolute;
    right: 36px;
    bottom: 28px;
    z-index: 5;
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: rgba(255, 255, 255, .38);
    font-family: "D-DINE", sans-serif;
    font-size: 11px;
    letter-spacing: .14em;
}

.services-visual-counter [data-service-current] {
    color: #fff;
    font-size: 28px;
}

/* =========================================
   4. PROCESO
   ========================================= */

.process {
    padding: 120px 20px;
    background: #f7f7f5;
    color: #202124;
}

.process-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.process-header {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) 1.2fr;
    column-gap: 64px;
    align-items: end;
    margin-bottom: 54px;
}

.process-label {
    grid-column: 1 / -1;
    margin-bottom: 14px;
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
}

.process-title {
    max-width: 470px;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 300;
    letter-spacing: -.04em;
    line-height: 1.05;
    text-wrap: balance;
}

.process-desc {
    max-width: 560px;
    color: #565656;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    padding: 0;
    background: #dadce0;
    border: 1px solid #dadce0;
    list-style: none;
}

.process-step {
    min-height: 290px;
    padding: 28px 24px;
    background: #fff;
}

.process-number {
    display: block;
    margin-bottom: 72px;
    color: var(--accent);
    font-family: "D-DINE", sans-serif;
    font-size: 13px;
    letter-spacing: .12em;
}

.process-step h3 {
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -.02em;
}

.process-step p {
    color: #5f6368;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.65;
}

.process-cta {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    margin-top: 32px;
    padding: 12px 20px;
    border-bottom: 2px solid var(--accent);
    color: #202124;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease, transform .2s ease;
}

.process-cta:hover {
    color: var(--accent-strong);
    transform: translateX(4px);
}

/* =========================================
   5. CONTACTO
   ========================================= */

.contact {
    background: #fff;
    padding: 120px 21px;
    position: relative;
    color: #202124;
    -webkit-font-smoothing: antialiased;
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    row-gap: 39px;
}

/* Header de contacto */
.contact-header {
    max-width: 900px;
}

.contact-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 16px;
    display: inline-block;
}

.contact-title {
    font-size: clamp(32px, 2vw, 40px);
    font-weight: 100;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #202020;
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #565656;
    font-weight: 300;
    max-width: 640px;
}

/* Layout de tarjetas */
.contact-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Tarjeta base */
.contact-card {
    background: #fff;
    border-radius: 9px;
    padding: 32px 32px 40px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.05),
        0 2px 4px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
}

.contact-card-info {
    min-height: 450px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-block {
    display: grid;
    grid-template-columns: 140px 1fr;
    row-gap: 4px;
    column-gap: 12px;
    align-items: start;
}

.contact-block-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    color: #6c757d;
    line-height: 1.4;
    position: relative;
}

.contact-block-value {
    font-size: 16px;
    line-height: 1.5;
    color: #202020;
    font-weight: 300;
    word-break: break-word;
}

.contact-block-email {
    grid-template-columns: 1fr;
    row-gap: 6px;
}

a.contact-block-value {
    text-decoration-color: rgba(var(--accent-strong-rgb), .35);
    text-underline-offset: 3px;
}

a.contact-block-value:hover {
    color: var(--accent-strong);
}

.contact-note {
    font-size: 12px;
    line-height: 1.6;
    color: #6c757d;
    font-weight: 400;
    border-left: 2px solid var(--accent);
    padding-left: 12px;
    max-width: 360px;
}

/* Formulario */
.contact-card-form {
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form {
    width: 100%;
}

.selected-service {
    margin-bottom: 24px;
    padding: 10px 12px;
    border-left: 2px solid var(--accent);
    background: #f7f7f5;
    color: #3c4043;
    font-size: 12px;
    line-height: 1.5;
}

/* Campo flotante */
.floating-field {
    position: relative;
    margin-bottom: 32px;
}

.floating-field input,
.floating-field textarea {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    padding: 16px 14px 14px;
    color: #202020;
    font-weight: 400;
    outline: none;
    transition: all .2s ease;
    box-shadow:
        inset 0 0 0 rgba(0,0,0,0),
        0 0 0 rgba(0,0,0,0);
}

.floating-field textarea {
    resize: none;
    min-height: 110px;
}

.floating-field input:focus,
.floating-field textarea:focus {
    border-color: var(--accent);
}

/* Label flotante */
.floating-field label {
    position: absolute;
    left: 14px;
    top: 16px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6c757d;
    background: transparent;
    padding: 0;
    line-height: 1;
    pointer-events: none;
    transition: all .2s ease;
    font-weight: 500;
}

/* Cuando hay foco o valor escrito */
.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown) + label,
.floating-field textarea:focus + label,
.floating-field textarea:not(:placeholder-shown) + label {
    top: -9px;
    left: 10px;
    background: #ffffff;
    padding: 4px 6px;
    font-size: 10px;
    border-radius: 3px;
    color: var(--accent-strong);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Botón enviar */
.contact-submit-btn {
    display: block;
    margin: 0 auto;
    background: var(--accent);
    border: none;
    border-radius: 3px;
    padding: 16px 21px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: all .25s ease;
    box-shadow:
        0 20px 30px rgba(255,64,86,0.2),
        0 4px 8px rgba(0,0,0,0.2);
}

.contact-submit-btn:hover {
    background: var(--accent-strong);
    box-shadow:
        0 20px 30px rgba(var(--accent-strong-rgb),0.2),
        0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-3px);
}

.contact-privacy {
    margin: 0 0 20px 30px;
    color: #565656;
    font-size: 12px;
    line-height: 1.5;
}

.contact-privacy a {
    color: var(--accent-strong);
    text-underline-offset: 2px;
}

.privacy-consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin: -8px 0 8px;
    color: #3f3f3f;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.55;
}

.privacy-consent input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--accent);
    cursor: pointer;
}

.privacy-consent input:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb), .35);
    outline-offset: 3px;
}

.privacy-consent a {
    color: var(--accent-strong);
    text-underline-offset: 2px;
}

/* Estado de envío */
.form-status {
    margin-top: 16px;
    font-size: 12px;
    font-weight: 400;
    color: #6c757d;
    min-height: 16px;
    line-height: 1.4;
}

/* =========================================
   5. FOOTER
   ========================================= */

.site-footer {
    background: #000;
    color: #fff;
    padding: 24px 20px;
    position: relative;
    z-index: 100;
    font-family: "Google Sans Display Regular", -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between; /* distribuye bien los tres grupos */
    gap: 20px;
}

/* Botón redondo izquierdo */
.footer-btn {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.07);
    color: #fff;
    font-size: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    line-height: 9px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.footer-btn:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,.8);
    color: var(--accent-bright);
}

/* opcional: ajustar tamaño de los íconos dentro de los botones */
.footer-btn svg {
    width: 18px;
    height: 18px;
}

/* Links centro */
.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.footer-links a {
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #d0d0d0;
    text-transform: uppercase;
    transition: color .2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
}

.footer-links a:hover {
    color: var(--accent-bright);
}

/* Copyright derecha */
.footer-copy {
    text-align: right;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #d0d0d0;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.floating-whatsapp {
    display: none;
}

/* Página 404 */
.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    background:
        linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.96)),
        radial-gradient(circle at 15% 20%, rgba(var(--accent-rgb),.22), transparent 38%),
        radial-gradient(circle at 85% 80%, rgba(32,33,36,.15), transparent 35%);
}

.error-content {
    width: min(720px, 100%);
    text-align: center;
}

.error-logo {
    display: inline-flex;
    flex-direction: column;
    margin-bottom: 60px;
}

.error-logo span {
    color: #9aa0a6;
    font-size: 10px;
    letter-spacing: 1px;
}

.error-code {
    margin-bottom: 14px;
    color: var(--accent);
    font-family: "D-DINE", sans-serif;
    font-size: 14px;
    letter-spacing: .28em;
}

.error-content h1 {
    margin-bottom: 20px;
    color: #202124;
    font-size: clamp(40px, 7vw, 68px);
    font-weight: 300;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.error-content > p:not(.error-code) {
    max-width: 560px;
    margin: 0 auto 32px;
    color: #5f6368;
    font-size: 16px;
    line-height: 1.7;
}

/* =========================================
   6. UTILIDADES / ANIMACIONES
   ========================================= */

/* Fade in / scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in.will-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accesibilidad: reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }

    .fade-in.will-animate {
        opacity: 1;
        transform: none;
    }
}

/* =========================================
   7. MEDIA QUERIES RESPONSIVE
   ========================================= */

/* Portátiles con poca altura útil */
@media (max-height: 800px) and (min-width: 901px) {
    .hero {
        padding-top: 96px;
        padding-bottom: 54px;
    }

    .hero h1 {
        font-size: clamp(44px, 4.7vw, 61px);
    }

}

/* Laptops / pantallas intermedias */
@media (max-width: 1200px) {
    .hero {
        padding-inline: 28px;
    }

    .services-intro {
        gap: 48px;
        padding: 100px 28px 80px;
    }

    .services-intro-copy {
        gap: 40px;
    }

    .service-panel {
        padding-inline: 48px;
    }

    .process {
        padding: 90px 16px;
    }

    .contact {
        padding: 90px 16px;
    }

    .contact-wrapper {
        row-gap: 32px;
    }
}

/* Tablets apaisado / pantallas medianas */
@media (max-width: 1000px) {
    .hero h1 {
        font-size: clamp(46px, 5.8vw, 62px);
    }

    .services-showcase {
        grid-template-columns: minmax(0, 1fr) minmax(440px, .95fr);
    }

    .service-panel {
        padding-inline: 36px;
    }

    .service-name {
        font-size: clamp(40px, 5vw, 56px);
    }

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

    .process-step {
        min-height: 260px;
    }
}

@media (max-width: 959px) {
    .services-intro {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 90px 24px 58px;
    }

    .services-label {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding-top: 0;
    }

    .services-intro-copy {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-intro-copy > p {
        max-width: 580px;
        padding-left: 20px;
    }

    .services-title {
        font-size: clamp(42px, 8vw, 62px);
    }

    .services-showcase {
        display: block;
    }

    .services-visual {
        display: none;
    }

    .service-panel {
        min-height: 0;
        padding: 56px 24px 64px;
    }

    .service-panel-inner {
        max-width: 720px;
        margin: 0 auto;
    }

    .service-mobile-visual {
        display: block;
        aspect-ratio: 1;
        margin: 0 0 38px;
        overflow: hidden;
        background: #171717;
    }

    .service-mobile-visual img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .service-name {
        max-width: 640px;
        font-size: clamp(40px, 7vw, 54px);
    }
}

/* Contacto: colapsa a 1 columna y ajustes de bloques */
@media (max-width: 900px) {
    .hero {
        padding-top: 120px;
    }

    .hero-shell {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero h1 {
        max-width: 720px;
        font-size: clamp(50px, 8vw, 70px);
    }

    .contact-panels {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-card {
        max-height: none; /* evita recortes en pantallas bajas */
        min-height: 0;
    }

    .contact-card-info {
        max-height: none;
    }

    .contact-card-form {
        max-height: none;
    }

    .contact-block {
        grid-template-columns: 120px 1fr;
    }
}

/* Móvil general */
@media (max-width: 768px) {
    /* NAV */
    .menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
    }

    .nav-container {
        padding: 0 16px;
    }

    nav {
        padding: 16px 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
		height: 100dvh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .nav-links a::before {
        display: none;
    }

    .nav-links a.active {
        position: relative;
    }

    .nav-links a.active::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 2px;
        background: #000;
    }

    /* HERO */
    .hero {
        min-height: auto;
        padding: 110px 18px 80px;
    }

    .hero::before {
        opacity: .72;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 52%, #000 100%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 52%, #000 100%);
    }

    .hero-content {
        max-width: 100%;
        padding: 0;
    }

    .hero-kicker {
        margin-bottom: 20px;
        font-size: 10px;
        letter-spacing: .11em;
    }

    .hero-kicker::before {
        width: 24px;
    }

    .hero-principle {
        font-size: 11px;
    }

    .hero h1 {
        font-size: clamp(42px, 10.5vw, 58px);
        line-height: 1.04;
    }

    .hero .subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .hero-actions {
        align-items: stretch;
    }

    .hero-cta {
        flex: 1 1 210px;
    }

    .hero-trust {
        gap: 8px 18px;
        font-size: 10px;
    }

    .hero-trust li:not(:last-child)::after {
        right: -11px;
    }

    /* SERVICIOS */
    .services-intro {
        padding: 80px 18px 48px;
    }

    .services-title {
        font-size: 42px;
    }

    .service-panel {
        padding: 42px 18px 58px;
    }

    .service-mobile-visual {
        margin-bottom: 32px;
    }

    .service-index {
        margin-bottom: 28px;
    }

    .service-name {
        font-size: 38px;
    }

    .service-text {
        font-size: 15px;
    }

    /* PROCESO */
    .process {
        padding: 80px 16px;
    }

    .process-header {
        grid-template-columns: 1fr;
        row-gap: 20px;
        margin-bottom: 36px;
    }

    .process-title {
        font-size: 34px;
    }

    .process-desc {
        font-size: 14px;
    }

    .process-step {
        min-height: 230px;
    }

    .process-number {
        margin-bottom: 48px;
    }

    /* CONTACTO */
    .contact {
        padding: 80px 16px;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-desc {
        font-size: 14px;
        max-width: 100%;
    }

    .contact-wrapper {
        row-gap: 32px;
    }

    .contact-card {
        padding: 24px 20px 28px;
    }

    .floating-field {
        margin-bottom: 24px;
    }

    .contact-submit-btn {
        width: 100%;
    }

    /* FOOTER */
    .footer-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        text-align: center;
    }

    .footer-btn {
        margin: 0;
    }

    .footer-links {
        order: 2;
        gap: 16px;
    }

    .footer-copy {
        order: 3;
        text-align: center;
        font-size: 10px;
        line-height: 1.4;
    }
}

/* Acceso rápido a WhatsApp en móviles */
@media (max-width: 768px){
    .floating-whatsapp {
        position: fixed;
        right: 18px;
        bottom: calc(20px + env(safe-area-inset-bottom));
        z-index: 900;
        display: grid;
        width: 52px;
        height: 52px;
        place-items: center;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 50%;
        background: #191919;
        color: #fff;
        box-shadow: 0 12px 24px rgba(0,0,0,.35);
        transition: opacity .2s ease, transform .2s ease;
    }

    .floating-whatsapp svg {
        width: 22px;
        height: 22px;
    }

    .floating-whatsapp:hover {
        color: var(--accent-bright);
        transform: translateY(-2px);
    }

    .floating-whatsapp.is-hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateY(12px);
    }
}

/* Teléfonos pequeños */
@media (max-width: 500px) {
    .hero {
        padding: 104px 16px 70px;
    }

    .hero h1 {
        margin-bottom: 22px;
        font-size: 40px;
    }

    .hero .subtitle {
        margin-bottom: 28px;
        line-height: 1.55;
    }

    .hero-trust {
        margin-top: 30px;
    }

    .process-title,
    .contact-title {
        font-size: 24px;
    }

    .services-title {
        font-size: 36px;
    }

    .service-name {
        font-size: 34px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        min-height: 0;
    }

    .process-number {
        margin-bottom: 32px;
    }

    .contact-block {
        grid-template-columns: 1fr;
    }

    .contact-block-label {
        padding-left: 0;
        margin-bottom: 2px;
    }

    .contact-block-value {
        font-size: 14px;
    }

    .site-footer {
        padding: 20px 16px;
    }

    .footer-links a {
        font-size: 11px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .footer-copy {
        font-size: 9px;
    }
}

/* Teléfonos ultra pequeños */
@media (max-width: 360px){
  .hero h1{ font-size:36px; }
  .nav-links a{ font-size:16px; }
  .service-panel{ padding-inline:16px; }
  .contact-card{ padding:22px 16px 24px; }
}

/* =========================================
   8. EXPERIENCIA CINEMATOGRÁFICA
   Inspirada en la navegación editorial de estudios de arquitectura.
   ========================================= */

.site-intro {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-content: center;
    gap: 18px;
    background: #151515;
    color: #fff;
    text-align: center;
    pointer-events: auto;
    animation: siteIntroExit .9s cubic-bezier(.76, 0, .24, 1) 1.35s forwards;
}

.site-intro-brand {
    font-family: "Google Sans Display Medium", sans-serif;
    font-size: clamp(24px, 3vw, 40px);
    letter-spacing: .34em;
    line-height: 1;
    transform: translateX(.17em);
    animation: introBrandIn .75s cubic-bezier(.22, .8, .2, 1) both;
}

.site-intro-line {
    width: min(280px, 52vw);
    height: 1px;
    margin: 0 auto;
    overflow: hidden;
    background: rgba(255, 255, 255, .16);
}

.site-intro-line span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent-bright);
    transform-origin: left;
    animation: introLine 1.05s cubic-bezier(.65, 0, .35, 1) .12s both;
}

.site-intro-meta {
    color: rgba(255, 255, 255, .52);
    font-family: "D-DINE", sans-serif;
    font-size: 9px;
    letter-spacing: .22em;
    opacity: 0;
    animation: introMetaIn .45s ease .5s forwards;
}

.scene-transition {
    position: fixed;
    inset: 0;
    z-index: 4500;
    background: #fff;
    clip-path: circle(0 at 50% 50%);
    opacity: 0;
    pointer-events: none;
}

.scene-transition.is-active {
    opacity: 1;
    clip-path: circle(145vmax at 50% 50%);
    transition: clip-path .78s cubic-bezier(.76, 0, .24, 1);
}

.scene-transition.is-revealing {
    opacity: 0;
    transition: opacity .34s ease;
}

.cursor-follower {
    display: none;
}

@keyframes introBrandIn {
    from { opacity: 0; letter-spacing: .55em; filter: blur(8px); }
    to { opacity: 1; letter-spacing: .34em; filter: blur(0); }
}

@keyframes introLine {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes introMetaIn {
    to { opacity: 1; }
}

@keyframes siteIntroExit {
    0% { transform: translateY(0); visibility: visible; }
    100% { transform: translateY(-102%); visibility: hidden; }
}

nav {
    padding: 26px 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: padding .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

nav.scrolled {
    padding: 15px 0;
    border-bottom-color: rgba(32, 33, 36, .1);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
}

.nav-container {
    padding: 0 clamp(22px, 4.8vw, 72px);
}

.logo {
    color: #fff;
    z-index: 1001;
}

.quote-logo p {
    color: rgba(255, 255, 255, .52);
    font-size: 9px;
    letter-spacing: .16em;
}

nav.scrolled .logo {
    color: var(--accent);
}

nav.scrolled .quote-logo p {
    color: #9aa0a6;
}

.menu-toggle span {
    background: #fff;
}

nav.scrolled .menu-toggle span,
.menu-toggle.active span {
    background: #202124;
}

.nav-links {
    gap: clamp(16px, 2.3vw, 42px);
}

.nav-links a,
.nav-links a.active {
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    transition: color .3s ease, opacity .3s ease;
}

.nav-links a.active {
    color: #fff !important;
}

.nav-links a::before {
    right: 0;
    bottom: -8px;
    left: 0;
    top: auto;
    width: 100%;
    height: 1px;
    background: var(--accent-bright);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s cubic-bezier(.76, 0, .24, 1);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
    transform: scaleX(1);
    transform-origin: left;
}

nav.scrolled .nav-links a {
    color: #565656;
}

nav.scrolled .nav-links a::before {
    background: var(--accent);
}

nav.scrolled .nav-links a.active {
    color: var(--accent-strong) !important;
}

.hero {
    display: block;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #111;
    color: #fff;
}

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

.hero-gallery,
.hero-slide,
.hero-slide img,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-gallery {
    z-index: -3;
}

.hero-cosmos {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    opacity: .92;
    pointer-events: none;
    transition: opacity .65s ease;
}

.hero.is-changing .hero-cosmos {
    opacity: .5;
}

.cosmos-plane {
    --cosmos-x: 0px;
    --cosmos-y: 0px;
    position: absolute;
    inset: 0;
    transform: translate3d(var(--cosmos-x), var(--cosmos-y), 0);
    will-change: transform;
}

.cosmos-plane::before,
.cosmos-plane::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: .24;
    pointer-events: none;
}

.cosmos-plane::before {
    width: 62vw;
    max-width: 920px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: translate(-50%, -50%) rotate(-8deg);
}

.cosmos-plane::after {
    width: 1px;
    height: min(54vh, 560px);
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: translate(-50%, -50%) rotate(-8deg);
}

.hero-slide {
    overflow: hidden;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.05s ease, transform 1.4s cubic-bezier(.22, .72, .2, 1);
}

.hero-slide img {
    display: block;
    object-fit: cover;
    transform: scale(1.08);
    filter: saturate(.72) contrast(1.03);
    transition: transform 8s cubic-bezier(.18, .7, .2, 1), filter 1s ease;
}

.hero-slide.is-active {
    z-index: 2;
    opacity: 1;
    transform: scale(1);
}

.hero-slide.is-active img {
    transform: scale(1.015);
    filter: saturate(.82) contrast(1.04);
}

.hero-slide.is-leaving {
    z-index: 1;
    opacity: 0;
    transform: scale(.975);
}

.hero-shade {
    z-index: -1;
    background:
        radial-gradient(circle at 50% 48%, rgba(0, 0, 0, .06) 0 20%, rgba(0, 0, 0, .27) 54%, rgba(0, 0, 0, .66) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .46), rgba(0, 0, 0, .06) 32%, rgba(0, 0, 0, .2) 68%, rgba(0, 0, 0, .62));
}

.cosmos-sun,
.cosmos-orbit,
.cosmos-planet {
    position: absolute;
    top: 50%;
    left: 50%;
}

.cosmos-sun {
    z-index: 2;
    width: 15px;
    height: 15px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .035), 0 0 34px rgba(121, 162, 255, .2);
    transform: translate(-50%, -50%);
}

.cosmos-sun::before,
.cosmos-sun::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cosmos-sun::before {
    width: 4px;
    height: 4px;
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, .9);
}

.cosmos-sun::after {
    width: 31px;
    height: 31px;
    border: 1px dotted rgba(255, 255, 255, .22);
    animation: cosmosPulse 5s ease-in-out infinite;
}

.cosmos-orbit {
    z-index: 1;
    border: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(var(--orbit-tilt));
}

.cosmos-orbit::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: conic-gradient(
        from 0deg,
        rgba(255, 255, 255, .76) 0deg,
        rgba(255, 255, 255, 0) 12deg,
        rgba(255, 255, 255, 0) 132deg,
        rgba(255, 255, 255, .025) 154deg,
        rgba(255, 255, 255, .11) 218deg,
        rgba(255, 255, 255, .34) 292deg,
        rgba(255, 255, 255, .64) 344deg,
        rgba(255, 255, 255, .76) 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 100%);
    mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 100%);
    opacity: .88;
    transform: rotate(var(--trail-angle, 0deg));
    transform-origin: 50% 50%;
    will-change: transform;
}

.cosmos-orbit--mercury {
    --orbit-tilt: 0deg;
    width: min(19vw, 23vh, 218px);
    height: min(19vw, 23vh, 218px);
}

.cosmos-orbit--venus {
    --orbit-tilt: 0deg;
    width: min(34vw, 41vh, 374px);
    height: min(34vw, 41vh, 374px);
}

.cosmos-orbit--earth {
    --orbit-tilt: 0deg;
    width: min(48vw, 58vh, 520px);
    height: min(48vw, 58vh, 520px);
}

.cosmos-orbit--earth::before {
    background: conic-gradient(
        from 0deg,
        rgba(168, 195, 255, .86) 0deg,
        rgba(121, 162, 255, 0) 12deg,
        rgba(121, 162, 255, 0) 132deg,
        rgba(121, 162, 255, .025) 154deg,
        rgba(121, 162, 255, .12) 218deg,
        rgba(121, 162, 255, .38) 292deg,
        rgba(145, 180, 255, .72) 344deg,
        rgba(168, 195, 255, .86) 360deg
    );
}

.cosmos-orbit--mars {
    --orbit-tilt: 0deg;
    width: min(72vw, 86vh, 764px);
    height: min(72vw, 86vh, 764px);
}

.cosmos-planet {
    z-index: 3;
    display: block;
    width: var(--planet-size);
    height: var(--planet-size);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(255, 255, 255, .52);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .035);
    will-change: transform;
}

.cosmos-planet--mercury {
    --planet-size: 5px;
    background: rgba(255, 255, 255, .62);
}

.cosmos-planet--venus {
    --planet-size: 8px;
    background: rgba(231, 225, 206, .66);
}

.cosmos-planet--earth {
    --planet-size: 10px;
    border-color: rgba(194, 216, 255, .95);
    background: var(--accent-bright);
    box-shadow: 0 0 0 4px rgba(121, 162, 255, .09), 0 0 16px rgba(121, 162, 255, .4);
}

.cosmos-planet--mars {
    --planet-size: 7px;
    background: rgba(217, 208, 196, .6);
}

.cosmos-moon-path {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: 50% 50%;
    animation: moonOrbit 7.2s linear infinite;
    will-change: transform;
}

.cosmos-moon-path::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(255, 255, 255, .62) 0deg,
        transparent 18deg,
        transparent 138deg,
        rgba(255, 255, 255, .04) 170deg,
        rgba(255, 255, 255, .2) 270deg,
        rgba(255, 255, 255, .54) 342deg,
        rgba(255, 255, 255, .62) 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 100%);
    mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 100%);
    opacity: var(--moon-trail-opacity, .72);
}

.cosmos-moon-path u {
    position: absolute;
    top: -2px;
    left: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 5px rgba(255, 255, 255, .65);
    transform: translateX(-50%);
}

.cosmos-moon-path--mars-inner {
    width: 21px;
    height: 21px;
    --moon-trail-opacity: .62;
    animation-duration: 4.8s;
    animation-delay: -1.35s;
}

.cosmos-moon-path--mars-outer {
    width: 33px;
    height: 33px;
    --moon-trail-opacity: .45;
    animation-duration: 8.6s;
    animation-delay: -4.2s;
    animation-direction: reverse;
}

.cosmos-moon-path--mars-inner u,
.cosmos-moon-path--mars-outer u {
    width: 2px;
    height: 2px;
    top: -1px;
    opacity: .82;
}


.hero-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: min(390px, calc(100% - 220px));
    text-align: center;
    transform: translate(-50%, -50%);
}

.hero-kicker {
    display: block;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .7);
    font-family: "D-DINE", sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.hero-kicker::before {
    display: none;
}

.hero-copy-stack {
    position: relative;
    min-height: clamp(108px, 11vw, 148px);
}

.hero-copy {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .52s ease, transform .7s cubic-bezier(.22, .72, .2, 1);
    pointer-events: none;
}

.hero-copy.is-active {
    opacity: 1;
    transform: translateY(0);
}

.hero-copy > span {
    display: block;
    margin-bottom: 12px;
    color: var(--accent-bright);
    font-family: "D-DINE", sans-serif;
    font-size: 10px;
    letter-spacing: .24em;
}

.hero-copy h1,
.hero-copy h2,
.hero h1 {
    max-width: 390px;
    margin: 0 auto;
    color: #fff;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 300;
    letter-spacing: -.035em;
    line-height: 1.02;
    text-wrap: balance;
    text-shadow: 0 10px 42px rgba(0, 0, 0, .32);
}

.hero-statement {
    max-width: 600px;
    margin: 24px auto 26px;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: .025em;
}

.hero-discover {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 20px auto 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}

.hero-discover svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .3s ease;
}

.hero-discover:hover {
    border-color: #fff;
    background: #fff;
    color: #202124;
    transform: translateY(-2px);
}

.hero-discover:hover svg {
    transform: translateY(2px);
}

.hero-directions {
    position: absolute;
    inset: 50% clamp(24px, 5.5vw, 84px) auto;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-direction {
    display: flex;
    width: min(17vw, 230px);
    min-height: 44px;
    align-items: center;
    gap: 18px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .78);
    font-family: "D-DINE", sans-serif;
    font-size: 9px;
    letter-spacing: .24em;
    text-transform: uppercase;
    pointer-events: auto;
}

.hero-direction::after {
    content: '';
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .12));
    transform-origin: left;
    transition: transform .35s ease;
}

.hero-direction-prev {
    flex-direction: row-reverse;
}

.hero-direction-prev::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .8));
    transform-origin: right;
}

.hero-direction:hover::after {
    transform: scaleX(.72);
}

.hero-foot {
    position: absolute;
    right: clamp(24px, 5.5vw, 84px);
    bottom: 34px;
    left: clamp(24px, 5.5vw, 84px);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.hero .hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .62);
    font-family: "D-DINE", sans-serif;
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero .hero-trust li:not(:last-child)::after {
    right: -17px;
    width: 3px;
    height: 3px;
}

.hero-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .62);
    font-family: "D-DINE", sans-serif;
    font-size: 10px;
    letter-spacing: .18em;
}

.hero-counter [data-hero-current] {
    color: #fff;
    font-size: 15px;
}

.hero-counter i {
    width: 48px;
    height: 1px;
    background: rgba(255, 255, 255, .62);
}

@keyframes cosmosPulse {
    0%, 100% { opacity: .28; transform: translate(-50%, -50%) scale(.92); }
    50% { opacity: .72; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes moonOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (hover: hover) and (pointer: fine) {
    body.has-custom-cursor,
    body.has-custom-cursor a,
    body.has-custom-cursor button {
        cursor: none;
    }

    .cursor-follower {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 4900;
        display: grid;
        width: 38px;
        height: 38px;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, .78);
        border-radius: 50%;
        mix-blend-mode: difference;
        opacity: 0;
        pointer-events: none;
        transform: translate3d(-50%, -50%, 0);
        transition: width .25s ease, height .25s ease, opacity .2s ease, border-color .25s ease;
        will-change: transform;
    }

    .cursor-follower.is-visible {
        opacity: 1;
    }

    .cursor-follower.is-interactive {
        width: 70px;
        height: 70px;
        border-color: #fff;
    }

    .cursor-follower span {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #fff;
    }
}

@media (max-height: 760px) and (min-width: 901px) {
    .hero-kicker {
        margin-bottom: 18px;
    }

    .hero-copy h1,
    .hero-copy h2,
    .hero h1 {
        font-size: clamp(38px, 4vw, 54px);
    }

    .hero-statement {
        margin-block: 16px 18px;
    }

    .cosmos-orbit--mars {
        width: min(72vw, 84vh, 700px);
        height: min(72vw, 84vh, 700px);
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 100svh;
        padding: 0;
    }

    .hero-stage {
        width: calc(100% - 48px);
    }

    .hero-cosmos {
        opacity: .8;
    }

    .cosmos-orbit--mercury {
        width: 29vmin;
        height: 29vmin;
    }

    .cosmos-orbit--venus {
        width: 53vmin;
        height: 53vmin;
    }

    .cosmos-orbit--earth {
        width: 74vmin;
        height: 74vmin;
    }

    .cosmos-orbit--mars {
        width: 110vmin;
        height: 110vmin;
    }

    .hero-directions {
        inset: auto 24px 118px;
        transform: none;
    }

    .hero-direction {
        width: auto;
    }

    .hero-direction::after {
        width: 34px;
    }

    .hero-foot {
        right: 24px;
        bottom: 30px;
        left: 24px;
    }

    .hero .hero-trust {
        display: none;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 17px 0;
    }

    .nav-container {
        padding: 0 16px;
    }

    .nav-links,
    nav.scrolled .nav-links {
        background: #fff;
    }

    .nav-links a,
    .nav-links a.active,
    nav.scrolled .nav-links a {
        color: #202124;
        font-size: 18px;
    }

    body.menu-open .logo {
        color: var(--accent);
    }

    body.menu-open .quote-logo p {
        color: #9aa0a6;
    }

    .hero-copy-stack {
        min-height: 142px;
    }

    .hero-copy h1,
    .hero-copy h2,
    .hero h1 {
        font-size: clamp(36px, 9.6vw, 48px);
        line-height: 1.04;
    }

    .hero-kicker {
        margin-bottom: 20px;
        font-size: 9px;
        letter-spacing: .18em;
    }

    .hero-copy > span {
        font-size: 9px;
        letter-spacing: .18em;
    }

    .hero-statement {
        max-width: 430px;
        margin: 18px auto 22px;
        font-size: 13px;
        line-height: 1.5;
    }

    .hero-direction span {
        display: none;
    }

    .hero-direction {
        min-width: 52px;
        min-height: 44px;
    }

    .hero-direction::after {
        width: 52px;
    }

    .hero-foot {
        justify-content: flex-end;
    }
}

@media (max-width: 500px) {
    .site-intro-meta {
        font-size: 8px;
        letter-spacing: .14em;
    }

    .hero-stage {
        top: 47%;
        width: calc(100% - 32px);
    }

    .hero-copy-stack {
        min-height: 138px;
    }

    .hero-copy h1,
    .hero-copy h2,
    .hero h1 {
        font-size: clamp(34px, 9.8vw, 44px);
    }

    .hero-statement {
        padding-inline: 12px;
    }

    .hero-directions {
        bottom: 108px;
    }

    .hero-cosmos {
        opacity: .72;
    }

    .cosmos-plane::before {
        width: 120vw;
    }

    .cosmos-plane::after {
        height: 68vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-intro {
        animation-duration: .01ms !important;
        animation-delay: .01ms !important;
    }

    .cosmos-sun::after,
    .cosmos-moon-path,
    .site-intro-brand,
    .site-intro-line span,
    .site-intro-meta {
        animation: none !important;
    }

    .cosmos-plane {
        transform: none !important;
    }

    .hero-slide,
    .hero-slide img,
    .hero-copy,
    .scene-transition {
        transition: none !important;
    }
}
