/* ═══════════════════════════════════════
   RESET & VARIABLES
   ═══════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #F2EFE9;
    --bg-accent: #1E3A5F;
    --text: #1C1F26;
    --text-muted: #4A4F5A;
    --accent: #3869AB;
    --accent-hover: #2C5478;
    --accent-deep: #78B7EE;
    --border: rgba(107, 114, 128, 0.15);
    --border-strong: rgba(107, 114, 128, 0.25);
    --font-display: 'Jost', 'Futura', 'Helvetica Neue', sans-serif;
    --font-body: 'Jost', 'Futura', 'Helvetica Neue', sans-serif;
    --font-brand: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --container: 1400px;
    --gutter: clamp(1.5rem, 4vw, 4rem);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    background-color: var(--bg);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    background-attachment: fixed;
    color: var(--text);
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    font-weight: 300;
    line-height: 1.7;
    cursor: auto;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

html.cursor-ready body {
    cursor: none;
}

html.cursor-ready a,
html.cursor-ready button {
    cursor: none;
}

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

/* ═══════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════ */
.cursor {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    opacity: 0;
}

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

.cursor.is-hovering {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--accent);
}

/* ═══════════════════════════════════════
   GRAIN & ATMOSPHERE
   ═══════════════════════════════════════ */
/* Grain texture moved to body background-image to avoid
   a fixed overlay layer that breaks Safari 26 Liquid Glass */

/* ═══════════════════════════════════════
   SCROLL PROGRESS
   ═══════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-hover));
    z-index: 10001;
}

/* ═══════════════════════════════════════
   CONTAINER & UTILITIES
   ═══════════════════════════════════════ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.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: 1rem;
    left: var(--gutter);
    padding: 0.75rem 1.2rem;
    background: var(--bg);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transform: translateY(-160%);
    opacity: 0;
    z-index: 10002;
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

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

.label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.label::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
    flex-shrink: 0;
}

.section-padding {
    padding: clamp(6rem, 14vh, 12rem) 0;
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.section-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
}

.section-media__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.section-media--contact .section-media__image {
    object-position: 58% 44%;
}

.section-media--work .section-media__image {
    object-position: center 42%;
}

.section-media--projects .section-media__image {
    object-position: center top;
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    background-color: transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.is-scrolled {
    background-color: rgba(242, 239, 233, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.nav.menu-open {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    min-height: clamp(46px, 5vw, 60px);
    height: auto;
    overflow: visible;
}

.nav__logo {
    display: flex;
    align-items: center;
    grid-column: 1;
    justify-self: start;
    transition: opacity 0.3s ease;
}

.nav__logo:hover {
    opacity: 0.75;
}

.nav__logo-img {
    height: clamp(48px, 4.8vw, 62px);
    width: auto;
}

.nav__ig {
    display: flex;
    align-items: center;
    margin-left: auto;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.nav__ig svg {
    width: clamp(27px, 3vw, 33px);
    height: clamp(27px, 3vw, 33px);
    fill: currentColor;
}

.nav__links {
    display: flex;
    gap: clamp(2rem, 3vw, 3rem);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    list-style: none;
}

.nav__links a {
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    transition: color 0.4s ease;
}

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

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.5s var(--ease-out);
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__menu-btn {
    display: none;
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* Mobile Menu */
.mobile-menu[hidden] {
    display: none;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s var(--ease-out), visibility 0s linear 0.6s;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition-delay: 0s;
}

.mobile-menu__links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu__links a {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--text);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s ease;
}

.mobile-menu.is-open .mobile-menu__links a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__links li:nth-child(1) a { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(2) a { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(3) a { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(4) a { transition-delay: 0.25s; }

.mobile-menu__links a:hover {
    color: var(--accent);
    letter-spacing: 0.04em;
}

.mobile-menu__links a.is-current {
    color: var(--accent);
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Image overlay to blend with site palette */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg);
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
}

/* Ambient glow */
.hero::before {
    content: '';
    position: absolute;
    top: 15%;
    left: -10%;
    width: 55%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(62, 109, 148, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    width: 100%;
    position: relative;
}

.hero__content {
    --hero-cta-anchor: 76%;
    position: relative;
    z-index: 2;
    padding-top: clamp(7.5rem, 10vh, 9rem);
    padding-bottom: clamp(4rem, 8vh, 6rem);
}

.hero__heading {
    margin-bottom: 2.5rem;
}

.hero-line {
    display: inline-block;
    overflow: hidden;
    vertical-align: baseline;
    padding-bottom: 0.3em;
}

.hero-line__inner {
    display: block;
    transform: translateY(110%);
    animation: heroReveal 1.4s var(--ease-out) forwards;
}

.hero-line:nth-child(1) .hero-line__inner {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    animation-delay: 0.3s;
}

.hero-line:nth-child(2) .hero-line__inner {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(3.2rem, 6.5vw, 6rem);
    line-height: 1;
    letter-spacing: -0.01em;
    animation-delay: 0.5s;
    color: var(--accent);
}

@keyframes heroReveal {
    to { transform: translateY(0); }
}

.hero__descriptor {
    width: min(28rem, 42vw);
    max-width: 100%;
    margin-left: 0;
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    line-height: 1.6;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.9s forwards;
    text-align: left;
}

.hero__desc-accent {
    display: block;
    width: 2.5rem;
    height: 1px;
    margin: 0 0 1rem;
    background: rgba(56, 105, 171, 0.7);
}

.hero__desc-punch {
    margin: 0;
    font-style: italic;
    font-weight: 400;
    font-size: 1.1em;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--text);
}

.hero__cta {
    display: inline-block;
    margin-top: 2rem;
    margin-left: var(--hero-cta-anchor);
    padding: 0.9rem 2.5rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 1.1s forwards;
}

.hero__cta:hover {
    background: var(--accent);
    color: #fff;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.6; }
}

/* Geometric accent */
.hero__geo {
    position: absolute;
    right: -4%;
    top: 14%;
    left: auto;
    bottom: auto;
    transform: translate(0, 0);
    width: clamp(338px, 33.8vw, 532px);
    aspect-ratio: 1;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1.5s var(--ease-out) 0.6s forwards;
    pointer-events: none;
}

.hero__geo-ring {
    position: absolute;
    inset: 0;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    animation: geoSpin 40s linear infinite;
}

.hero__geo-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%);
}

.hero__geo-ring--inner {
    inset: 25%;
    border-style: dashed;
    border-color: var(--border);
    animation-direction: reverse;
    animation-duration: 30s;
}

.hero__geo-ring--inner::before {
    display: none;
}

.hero__geo-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
}


@keyframes geoSpin {
    to { transform: rotate(360deg); }
}

.hero__brand-mark {
    display: none;
}

.hero__scroll {
    position: absolute;
    bottom: 3rem;
    right: var(--gutter);
    left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 1.2s forwards;
    z-index: 2;
}

.hero__scroll-line {
    width: 40px;
    height: 1px;
    background: var(--border-strong);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    will-change: transform;
    animation: scrollLine 2.5s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    50.01% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hero__scroll-text {
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════
   KEYWORDS BAR
   ═══════════════════════════════════════ */
.keywords {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
    overflow: hidden;
    background: rgba(56, 105, 171, 0.04);
    font-family: var(--font-brand);
}

.keywords__track {
    display: flex;
    width: max-content;
    animation: keywordsScroll 30s linear infinite;
}

.keywords__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.keywords__item {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    white-space: nowrap;
    padding: 0 2rem;
}

.keywords__sep {
    width: 4px;
    height: 4px;
    background: var(--accent);
    opacity: 0.55;
    flex-shrink: 0;
    transform: rotate(45deg);
}

@keyframes keywordsScroll {
    to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════ */
.services {
    border-bottom: 1px solid var(--border);
    font-family: var(--font-brand);
    position: relative;
    isolation: isolate;
}

.services::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg) 0%, rgba(232, 228, 221, 0.6) 50%, var(--bg) 100%);
    pointer-events: none;
    z-index: 0;
}

.services > :not(.section-media) {
    position: relative;
    z-index: 1;
}

.services-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
    margin-bottom: clamp(3rem, 6vh, 5rem);
}

.services-showcase__title {
    margin-top: 0.9rem;
    max-width: 22ch;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.8vw, 4.1rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--text);
}

.services-showcase__lead {
    max-width: 620px;
    margin-top: 1.5rem;
    font-size: clamp(0.94rem, 1.05vw, 1.08rem);
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.85;
}

.services-showcase__panel {
    position: relative;
    padding: clamp(1.5rem, 2.8vw, 2.3rem);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(56, 105, 171, 0.04) 100%);
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}
.services-showcase__panel:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 105, 171, 0.25);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.services-showcase__panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(80px, 16vw, 130px);
    height: 1px;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.8s var(--ease-out) 0.1s;
}
.services-showcase.is-visible .services-showcase__panel::before {
    transform: scaleX(1);
}

.services-showcase__panel-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Panel paths — "choose your path" blocks */
.panel-paths {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}
.panel-path {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1.1rem;
    text-decoration: none;
    color: var(--text);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: rotate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                translate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease;
}
/* Idle float — alternating, subtle, like pack-mini */
.panel-path:nth-child(1) { rotate: -1deg; animation: panelPathFloat 3.4s ease-in-out infinite; }
.panel-path:nth-child(3) { rotate: 1deg;  animation: panelPathFloat 3s ease-in-out 0.5s infinite; }
@keyframes panelPathFloat {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -3px; }
}
.panel-paths:hover .panel-path {
    animation-play-state: paused;
    rotate: 0deg;
}
.panel-path:hover {
    translate: 0 -6px;
    scale: 1.02;
    box-shadow: 0 14px 36px rgba(56, 105, 171, 0.18);
    z-index: 2;
}
.panel-path:active {
    scale: 0.98;
    transition-duration: 0.1s;
}
.panel-path__num {
    font-family: var(--font-brand);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--accent);
    background: rgba(56, 105, 171, 0.08);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease, scale 0.3s ease;
}
.panel-path:hover .panel-path__num {
    background: var(--accent);
    color: #fff;
    scale: 1.08;
}
.panel-path__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.panel-path__title {
    font-family: var(--font-brand);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.2;
}
.panel-path__desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.panel-path__arrow {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity 0.3s ease, color 0.3s ease, translate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}
.panel-path:hover .panel-path__arrow {
    opacity: 1;
    color: var(--accent);
    translate: 4px 0;
}

/* Divider between paths — diamond motif */
.panel-paths__divider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.panel-paths__line {
    flex: 1;
    height: 1px;
    background: var(--border-strong);
}
.panel-paths__or {
    width: 7px;
    height: 7px;
    background: var(--accent);
    transform: rotate(45deg);
    opacity: 0.35;
    flex-shrink: 0;
    font-size: 0;
    overflow: hidden;
}

/* Secondary extras */
.panel-extras {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}
.panel-extra {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.5;
}
.panel-extra__marker {
    color: var(--accent);
    font-weight: 500;
    margin-right: 0.3rem;
}

/* Stagger reveal */
@keyframes panelPathSlideIn {
    from { opacity: 0; transform: translateX(-15px); }
    to   { opacity: 1; transform: translateX(0); }
}
.services-showcase.is-visible .panel-path:nth-child(1) {
    animation: panelPathSlideIn 0.5s var(--ease-out) 0.15s both;
}
.services-showcase.is-visible .panel-paths__divider {
    animation: panelPathSlideIn 0.4s var(--ease-out) 0.3s both;
}
.services-showcase.is-visible .panel-path:nth-child(3) {
    animation: panelPathSlideIn 0.5s var(--ease-out) 0.4s both;
}
.services-showcase.is-visible .panel-extras {
    animation: panelPathSlideIn 0.4s var(--ease-out) 0.55s both;
}

.services-showcase__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.8rem;
}

.services-showcase__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-family: var(--font-brand);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.services-showcase__cta:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px) scale(1.03);
}
.services-showcase__cta:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.services-showcase__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-brand);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.services-showcase__link::after {
    content: '→';
}

.services-teaser-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: clamp(1rem, 2vw, 2rem);
}

.services-teaser {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(1.5rem, 2.8vw, 2.3rem);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.4s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.services-teaser::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.services-teaser:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 105, 171, 0.25);
}

.services-teaser--packs {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(56, 105, 171, 0.05) 100%);
}

.services-teaser--packs::before {
    background: radial-gradient(circle at top right, rgba(56, 105, 171, 0.1), transparent 42%);
}

.services-teaser--alacarte {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(30, 58, 95, 0.04) 100%);
}

.services-teaser--alacarte::before {
    background: radial-gradient(circle at bottom left, rgba(30, 58, 95, 0.08), transparent 44%);
}

.services-teaser__eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.services-teaser__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    max-width: 24ch;
    text-wrap: balance;
}

.services-teaser__desc {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: clamp(0.86rem, 0.94vw, 0.94rem);
    font-weight: 300;
    line-height: 1.78;
    max-width: 52ch;
}

.services-teaser__list {
    display: grid;
    gap: 0.95rem;
    margin-top: 1.5rem;
}

.services-teaser__item {
    display: block;
    padding-top: 0.95rem;
    border-top: 1px solid var(--border);
}

.services-teaser__item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.services-teaser__item span {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.65;
}

/* Showcase — card deck unfold on hover */
.services-teaser__showcase {
    position: relative;
    height: 145px;
    margin-top: 1.3rem;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.015) 100%);
    border-radius: 10px;
    overflow: hidden;
    transition: background 0.5s ease;
}
.services-teaser--packs:hover .services-teaser__showcase {
    background: radial-gradient(circle at 50% 50%, rgba(56, 105, 171, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
}
.showcase-card {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.55rem 0.9rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 72%;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Default: tight overlapping deck */
.showcase-card:nth-child(1) { top: 15px; left: 8px;  z-index: 1; transform: rotate(-1deg); }
.showcase-card:nth-child(2) { top: 35px; left: 14px; z-index: 2; }
.showcase-card:nth-child(3) { top: 55px; left: 20px; z-index: 3; transform: rotate(0.5deg); }
/* Hover: dramatic unfold with spring */
.services-teaser--packs:hover .showcase-card:nth-child(1) {
    top: 2px; left: 2px;
    transform: rotate(-3deg) translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}
.services-teaser--packs:hover .showcase-card:nth-child(2) {
    top: 48px; left: 40px;
    transform: scale(1.06);
    box-shadow: 0 14px 40px rgba(56, 105, 171, 0.18);
}
.services-teaser--packs:hover .showcase-card:nth-child(3) {
    top: 96px; left: 78px;
    transform: rotate(3deg) translateY(4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}
/* Scroll reveal: stagger from right */
@keyframes showcaseSlideIn {
    from { opacity: 0; transform: translateX(25px) rotate(2deg); }
    to { opacity: 1; transform: translateX(0) rotate(0); }
}
.services-teaser.is-visible .showcase-card {
    animation: showcaseSlideIn 0.6s var(--ease-out) both;
}
.services-teaser.is-visible .showcase-card:nth-child(1) { animation-delay: 0.1s; }
.services-teaser.is-visible .showcase-card:nth-child(2) { animation-delay: 0.25s; }
.services-teaser.is-visible .showcase-card:nth-child(3) { animation-delay: 0.4s; }
.showcase-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}
.showcase-card__name {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
}
.showcase-card__sub {
    font-size: 0.6rem;
    color: var(--text-muted);
}
.showcase-card__price {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.showcase-card--accent .showcase-card__price {
    color: var(--accent);
    font-size: 1.1rem;
}
@media (max-width: 480px) {
    .services-teaser__showcase { height: 130px; }
    .showcase-card { width: 78%; padding: 0.45rem 0.75rem; }
    .showcase-card:nth-child(2) { top: 44px; left: 22px; }
    .showcase-card:nth-child(3) { top: 88px; left: 44px; }
    .showcase-card__name { font-size: 0.75rem; }
    .showcase-card__price { font-size: 0.88rem; }
    .showcase-card--accent .showcase-card__price { font-size: 0.95rem; }
}

/* Packs showcase — floating cards with continuous motion */
.services-teaser__packs-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 1.3rem;
    background: radial-gradient(circle at 40% 40%, rgba(0, 0, 0, 0.035) 0%, rgba(0, 0, 0, 0.012) 100%);
    border-radius: 12px;
    padding: 0.8rem;
    transition: background 0.5s ease;
    min-height: 145px;
}
.services-teaser--alacarte:hover .services-teaser__packs-showcase {
    background: radial-gradient(circle at 40% 40%, rgba(56, 105, 171, 0.06) 0%, rgba(0, 0, 0, 0.018) 100%);
}
.pack-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 3px solid transparent;
    /* Individual transform properties for clean hover transitions */
    transition: rotate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                translate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                border-left 0.3s ease;
}
/* Rotation as CSS property (not in animation — survives hover) */
.pack-mini:nth-child(1) { rotate: -2deg; }
.pack-mini:nth-child(2) { rotate: 1.5deg; }
.pack-mini:nth-child(3) { rotate: 1deg; }
.pack-mini:nth-child(4) { rotate: -1.5deg; }
/* Float animation: translate only (no rotate) */
@keyframes packFloat {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -3px; }
}
.pack-mini:nth-child(1) { animation: packFloat 3s ease-in-out infinite; }
.pack-mini:nth-child(2) { animation: packFloat 3.4s ease-in-out 0.4s infinite; }
.pack-mini:nth-child(3) { animation: packFloat 2.8s ease-in-out 0.8s infinite; }
.pack-mini:nth-child(4) { animation: packFloat 3.2s ease-in-out 1.2s infinite; }
/* Hover: pause float, transition rotate→0, lift via translate */
.services-teaser--alacarte:hover .pack-mini {
    animation-play-state: paused;
    rotate: 0deg;
    translate: 0 -5px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.services-teaser--alacarte:hover .pack-mini:nth-child(1) { transition-delay: 0s; }
.services-teaser--alacarte:hover .pack-mini:nth-child(2) { transition-delay: 0.07s; }
.services-teaser--alacarte:hover .pack-mini:nth-child(3) { transition-delay: 0.14s; }
.services-teaser--alacarte:hover .pack-mini:nth-child(4) { transition-delay: 0.21s; }
.services-teaser--alacarte:hover .pack-mini--accent {
    box-shadow: 0 12px 32px rgba(56, 105, 171, 0.2);
    border-left: 3px solid var(--accent);
    translate: 0 -6px;
    scale: 1.03;
}
.pack-mini__name {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}
.pack-mini__price {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    white-space: nowrap;
}
.pack-mini--accent .pack-mini__price {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
}
@media (max-width: 480px) {
    .services-teaser__packs-showcase { padding: 0.4rem; gap: 3px; }
    .pack-mini { padding: 0.4rem 0.55rem; }
    .pack-mini__name { font-size: 0.68rem; }
    .pack-mini__price { font-size: 0.75rem; }
}
/* Mobile: touch press feedback (no hover) */
@media (hover: none) {
    .services-teaser:active .showcase-card {
        transform: scale(0.96) !important;
        transition-duration: 0.12s;
    }
    .services-teaser:active .pack-mini {
        scale: 0.96;
        transition-duration: 0.12s;
    }
}
/* Reduced motion: no animations, no float, no rotation */
@media (prefers-reduced-motion: reduce) {
    .showcase-card {
        animation: none !important;
        transform: none !important;
    }
    .pack-mini {
        animation: none !important;
        rotate: 0deg !important;
        translate: none !important;
        scale: none !important;
    }
}

.services-teaser__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.6rem;
}

.services-teaser__chips span {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.services-teaser--alacarte .services-teaser__chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-content: start;
    grid-auto-flow: dense;
}

.services-teaser--alacarte .services-teaser__chips span {
    min-height: 2.85rem;
    justify-content: center;
    text-align: center;
    padding-inline: 1rem;
}

.services-teaser--alacarte .services-teaser__chips span:nth-child(4n + 2),
.services-teaser--alacarte .services-teaser__chips span:nth-child(4n + 3) {
    grid-column: span 2;
}

.services-teaser__tax {
    font-size: 0.6rem;
    color: var(--text-muted);
    opacity: 0.7;
    font-style: italic;
}

.services-teaser__footer {
    margin-top: auto;
    padding-top: 1.8rem;
    font-family: var(--font-brand);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ═══════════════════════════════════════
   NUESTROS TRABAJOS
   ═══════════════════════════════════════ */
.projects {
    position: relative;
    isolation: isolate;
}

.projects::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-accent) 100%);
    pointer-events: none;
    z-index: 1;
}

.projects > .container {
    position: relative;
    z-index: 1;
}

.projects__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem 2rem;
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vh, 4rem);
}

.projects__title {
    margin-top: 0.9rem;
    max-width: 22ch;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.4vw, 3.7rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--text);
    text-wrap: balance;
}

.projects__lead {
    max-width: 22ch;
    color: var(--text-muted);
    font-size: clamp(0.86rem, 0.98vw, 1rem);
    font-weight: 300;
    line-height: 1.7;
    text-align: left;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    align-items: start;
}

.project-card {
    min-height: 0;
}

.project-card__link {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1.25rem, 2.4vw, 1.8rem);
    border: 1px solid rgba(56, 105, 171, 0.18);
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(10px);
    color: var(--text);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), border-color 0.3s ease, background 0.3s ease, box-shadow 0.4s ease;
}

.project-card__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(92px, 14vw, 136px);
    height: 1px;
    background: var(--accent);
}

.project-card__link:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 105, 171, 0.32);
    box-shadow: 0 24px 48px rgba(30, 58, 95, 0.08);
}

.project-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.project-card__eyebrow {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.project-card__title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.2vw, 2.1rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text);
}

.project-card__title-meta {
    font-family: var(--font-brand);
    font-size: 0.55em;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
    flex: 0 0 auto;
}

.project-card__zoom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(56, 105, 171, 0.2);
    background: rgba(56, 105, 171, 0.06);
    font-family: var(--font-brand);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

.project-card__desc {
    color: var(--text-muted);
    font-size: clamp(0.86rem, 0.94vw, 0.95rem);
    font-weight: 300;
    line-height: 1.76;
    max-width: 46ch;
}

.project-card__media {
    margin-top: auto;
    border: 1px solid rgba(28, 31, 38, 0.08);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 18px 38px rgba(30, 58, 95, 0.06);
    overflow: hidden;
}

.project-card__image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s var(--ease-out);
}

.project-card__link:hover .project-card__image {
    transform: scale(1.025);
}

.project-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-card__footer span {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(56, 105, 171, 0.2);
    background: rgba(56, 105, 171, 0.06);
    font-family: var(--font-brand);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ═══════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════ */
.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 24, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.25rem);
    border: 1px solid rgba(120, 183, 238, 0.22);
    background: rgba(242, 239, 233, 0.9);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.lightbox__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lightbox__title {
    font-family: var(--font-brand);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.lightbox__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(56, 105, 171, 0.22);
    background: rgba(255, 255, 255, 0.58);
    color: var(--text);
    font-family: var(--font-brand);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lightbox__image {
    width: 100%;
    max-height: min(82vh, 920px);
    object-fit: contain;
    display: block;
    background: rgba(255, 255, 255, 0.7);
}

.services__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: clamp(3rem, 7vh, 6rem);
    flex-wrap: wrap;
    gap: 1rem;
}

.services__title {
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 500;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    line-height: 1.15;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Accordion blocks layout — 2×2 with diagonal dividers */
.services__blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
}

/* Diagonal vertical divider */
.services__blocks::before {
    content: '';
    position: absolute;
    top: -1%;
    left: 50%;
    width: 1px;
    height: 102%;
    background: var(--border-strong);
    transform: rotate(1.5deg);
    transform-origin: top center;
    z-index: 2;
    pointer-events: none;
}

/* Diagonal horizontal divider — top set dynamically via --row-split */
.services__blocks::after {
    content: '';
    position: absolute;
    left: -1%;
    top: var(--row-split, 50%);
    width: 102%;
    height: 1px;
    background: var(--border-strong);
    transform: rotate(-0.8deg);
    transform-origin: center left;
    z-index: 2;
    pointer-events: none;
}

/* Block wrapper */
.svc-block {
    border: none;
    border-radius: 0;
    overflow: hidden;
    padding: clamp(0.5rem, 1vw, 0.8rem);
    transition: background 0.4s ease;
    position: relative;
}

.svc-block:hover {
    background: rgba(62, 109, 148, 0.03);
}

/* Block header (number + title bar) */
.svc-block__header {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1.2rem, 2.5vw, 2rem);
    background: rgba(62, 109, 148, 0.03);
    border-bottom: 1px solid var(--border);
}

.svc-block__number {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.8rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(62, 109, 148, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.svc-block__title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--text);
}

.svc-block__badge {
    margin-left: auto;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    background: var(--accent);
    padding: 0.35rem 0.9rem;
    border-radius: 2px;
    white-space: nowrap;
}

/* Accordion item */
.svc-accordion {
    border-top: 1px solid var(--border);
}

.svc-accordion:first-child {
    border-top: none;
}

/* Accordion trigger button */
.svc-accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(1rem, 1.8vw, 1.4rem) clamp(1.2rem, 2.5vw, 2rem);
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0.01em;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.4s ease, color 0.3s ease;
    position: relative;
}

.svc-accordion__trigger:focus-visible {
    outline-offset: -2px;
}

.svc-accordion__trigger:hover {
    background: rgba(62, 109, 148, 0.04);
    color: var(--accent);
}

/* Plus/minus icon */
.svc-accordion__icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-left: 1.5rem;
}

.svc-accordion__icon::before,
.svc-accordion__icon::after {
    content: '';
    position: absolute;
    background: var(--accent);
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.35s ease;
}

.svc-accordion__icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

.svc-accordion__icon::after {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

/* Open state: rotate plus to minus */
.svc-accordion.is-open > .svc-accordion__trigger .svc-accordion__icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.svc-accordion:not(.svc-accordion--sub).is-open > .svc-accordion__trigger {
    color: var(--accent);
    background: rgba(56, 105, 171, 0.03);
}

/* Accordion panel (content) */
.svc-accordion__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}

.svc-accordion.is-open > .svc-accordion__panel {
    grid-template-rows: 1fr;
}

.svc-accordion__panel > .svc-accordion__body {
    overflow: hidden;
}

.svc-accordion__body {
    padding: 0 clamp(1.2rem, 2.5vw, 2rem) clamp(1.2rem, 2vw, 1.8rem);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}

.svc-accordion.is-open > .svc-accordion__panel > .svc-accordion__body {
    opacity: 1;
    transform: translateY(0);
}

.svc-accordion__text {
    color: var(--text-muted);
    font-size: clamp(0.84rem, 0.92vw, 0.92rem);
    line-height: 1.85;
    font-weight: 300;
}

/* Sub-accordions (nested, indented) */
.svc-accordion--sub {
    border-top: 1px solid var(--border);
    border-left: 2px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.svc-accordion--sub.is-open {
    border-left-color: rgba(56, 105, 171, 0.25);
    background: rgba(56, 105, 171, 0.015);
}

.svc-accordion--sub > .svc-accordion__trigger {
    font-size: clamp(0.8rem, 0.9vw, 0.88rem);
    color: var(--text-muted);
    padding: clamp(0.8rem, 1.2vw, 1rem) clamp(1.2rem, 2.5vw, 2rem);
    padding-left: clamp(1.4rem, 2.8vw, 2.2rem);
}

.svc-accordion--sub > .svc-accordion__trigger:hover {
    color: var(--accent);
}

.svc-accordion--sub.is-open > .svc-accordion__trigger {
    color: var(--accent);
    font-weight: 400;
}

.svc-accordion--sub .svc-accordion__icon {
    width: 10px;
    height: 10px;
}

.svc-accordion--sub .svc-accordion__body {
    padding-left: clamp(1.4rem, 2.8vw, 2.2rem);
}

.svc-accordion--sub .svc-accordion__text {
    font-size: clamp(0.8rem, 0.88vw, 0.88rem);
}

/* Staggered reveal for sub-accordions */
.svc-accordion--tier .svc-accordion--sub:nth-child(2) {
    transition-delay: 0.05s;
}
.svc-accordion--tier .svc-accordion--sub:nth-child(3) {
    transition-delay: 0.1s;
}
.svc-accordion--tier .svc-accordion--sub:nth-child(4) {
    transition-delay: 0.15s;
}

/* Price indicator */
.svc-block__price {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.4rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    padding: 0.5rem 1.2rem;
    background: rgba(56, 105, 171, 0.04);
    border: 1px solid rgba(56, 105, 171, 0.15);
    border-radius: 2px;
}

.svc-block__price::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
}

/* Tier comparison — stacked expandable */
.svc-tiers {
    display: flex;
    flex-direction: column;
    margin-top: 1.2rem;
}

.svc-accordion--tier {
    border: 1px solid var(--border);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.svc-accordion--tier + .svc-accordion--tier {
    margin-top: -1px;
}

.svc-accordion--tier.svc-tier--pro {
    border-color: rgba(56, 105, 171, 0.25);
    background: rgba(56, 105, 171, 0.04);
}

.svc-accordion--tier > .svc-accordion__trigger {
    padding: 1rem 1.2rem;
    align-items: flex-start;
    gap: 0.8rem;
}

.svc-accordion--tier.is-open > .svc-accordion__trigger {
    background: rgba(56, 105, 171, 0.02);
}

.svc-tier__info {
    flex: 1;
    min-width: 0;
}

.svc-tier__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.svc-tier--pro .svc-tier__label {
    color: var(--accent);
}

.svc-tier__desc {
    display: block;
    font-size: clamp(0.76rem, 0.85vw, 0.84rem);
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
}

.svc-tier__pricing {
    text-align: right;
    flex-shrink: 0;
}

.svc-tier__monthly {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-top: 0.15rem;
    white-space: nowrap;
}

.svc-tier__monthly--inline {
    display: inline-block;
    margin-top: 0;
    margin-left: 0.5rem;
}

.svc-accordion--tier .svc-accordion__body {
    padding: 0 1.2rem 1.2rem;
}

.svc-tier__includes-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.svc-tier__includes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.svc-tier__includes li {
    position: relative;
    padding-left: 1.1rem;
    font-size: clamp(0.8rem, 0.88vw, 0.88rem);
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.75;
}

.svc-tier__includes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 4px;
    height: 4px;
    background: var(--accent);
    opacity: 0.4;
    transform: rotate(45deg);
}

/* ─── Asesoría incluida banner ─── */
.services__included {
    margin-top: clamp(3rem, 6vh, 5rem);
    display: flex;
    align-items: flex-start;
    gap: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(1.5rem, 3vw, 2.2rem);
    background: var(--accent);
    color: #fff;
    border-radius: 2px;
}

.services__included-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 0.15rem;
    opacity: 0.8;
}

.services__included-title {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.1vw, 1.05rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.services__included-desc {
    font-size: clamp(0.78rem, 0.9vw, 0.9rem);
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.8;
}

/* ─── Servicios Individuales ─── */
.services__individual {
    margin-top: clamp(4rem, 8vh, 7rem);
    padding-top: clamp(3rem, 6vh, 5rem);
    border-top: 1px solid var(--border);
}

.services__individual-header {
    margin-bottom: clamp(2rem, 4vh, 3.5rem);
}

.services__individual-title {
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 500;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.services__individual-desc {
    color: var(--text-muted);
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 300;
    line-height: 1.7;
    max-width: 600px;
}

.services__individual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.2rem, 2vw, 2rem);
}

.services__individual-card {
    border: 1px solid var(--border);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.services__individual-card:hover {
    background: rgba(62, 109, 148, 0.03);
    border-color: var(--border-strong);
}

.services__individual-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0.5;
    display: block;
    margin-bottom: 0.8rem;
}

.services__individual-card-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 1.2rem;
    color: var(--text);
}

.services__individual-list {
    list-style: none;
    margin-bottom: 1.2rem;
}

.services__individual-list li {
    font-size: clamp(0.8rem, 0.9vw, 0.88rem);
    color: var(--text-muted);
    font-weight: 300;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.services__individual-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
    flex-shrink: 0;
}

.services__individual-list li:last-child {
    border-bottom: none;
}

/* Blue accent line on open primary accordion */
.svc-accordion:not(.svc-accordion--sub).is-open > .svc-accordion__trigger::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
}

/* ═══════════════════════════════════════
   PROCESS — Architectural Timeline
   ═══════════════════════════════════════ */
.work {
    position: relative;
    overflow: hidden;
    font-family: var(--font-brand);
    isolation: isolate;
    color: #fff;
}

.work .container {
    position: relative;
    z-index: 2;
}

.work::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-accent);
    opacity: 0.78;
    pointer-events: none;
    z-index: 0;
}

.work::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

.work__header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vh, 5rem);
    position: relative;
}

.work__header .label {
    color: var(--accent-deep);
    justify-content: center;
}

.work__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.1;
    color: #fff;
    margin-top: 0.6rem;
    margin-bottom: 0.8rem;
}

.work__subtitle {
    font-size: clamp(0.88rem, 1vw, 1rem);
    color: rgba(255,255,255,0.5);
    font-weight: 300;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

/* ─── Process Grid ─── */
.process {
    --rail-y: clamp(42px, 5.5vw, 58px);
    --diamond-size: 12px;
    --stem-h: clamp(18px, 2.5vw, 26px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.8rem, 1.5vw, 1.5rem);
    position: relative;
}

/* ─── Connecting Rail ─── */
.process__rail {
    position: absolute;
    top: var(--rail-y);
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    z-index: 1;
    pointer-events: none;
}

.process__rail-track {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
}

.process__rail-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-deep));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.process.is-animated .process__rail-fill {
    transform: scaleX(1);
}

/* ─── Phase ─── */
.process__phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.process__phase-head {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: calc(var(--rail-y) + var(--diamond-size) / 2 + var(--stem-h) + 6px);
    flex-shrink: 0;
}

/* Oversized watermark */
.process__watermark {
    position: absolute;
    top: -0.15em;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 5.5vw, 5rem);
    font-weight: 300;
    color: rgba(255,255,255,0.06);
    line-height: 1;
    letter-spacing: -0.04em;
    pointer-events: none;
    user-select: none;
    transition: color 0.6s ease;
    white-space: nowrap;
}

.process__phase:hover .process__watermark {
    color: rgba(120, 183, 238, 0.12);
}

/* Diamond node */
.process__diamond {
    position: absolute;
    top: calc(var(--rail-y) - var(--diamond-size) / 2);
    left: 50%;
    width: var(--diamond-size);
    height: var(--diamond-size);
    background: var(--accent);
    transform: translateX(-50%) rotate(45deg);
    z-index: 3;
    box-shadow: 0 0 0 3px rgba(120, 183, 238, 0.15);
    transition: box-shadow 0.5s ease;
}

.process__phase:hover .process__diamond {
    box-shadow: 0 0 0 8px rgba(120, 183, 238, 0.12), 0 0 24px rgba(120, 183, 238, 0.25);
}

@keyframes diamondPulse {
    0% { box-shadow: 0 0 0 3px rgba(120, 183, 238, 0.15), 0 0 0 3px rgba(120, 183, 238, 0.4); }
    100% { box-shadow: 0 0 0 3px rgba(120, 183, 238, 0.15), 0 0 0 18px rgba(120, 183, 238, 0); }
}

.process__phase.is-pulsed .process__diamond {
    animation: diamondPulse 0.8s ease-out 1;
}

/* Vertical stem */
.process__stem {
    position: absolute;
    top: calc(var(--rail-y) + var(--diamond-size) / 2 + 2px);
    left: 50%;
    width: 1px;
    height: var(--stem-h);
    background: rgba(255,255,255,0.12);
    transform: translateX(-50%);
}

/* ─── Glass Card ─── */
.process__card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: clamp(1.4rem, 2.2vw, 2rem);
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s var(--ease-out), border-color 0.5s ease, box-shadow 0.5s ease;
}

/* Hover glow */
.process__card::before {
    content: '';
    position: absolute;
    inset: -60%;
    background: radial-gradient(circle at center, rgba(120, 183, 238, 0.1) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

/* Blueprint grid on hover */
.process__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(120, 183, 238, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 183, 238, 0.025) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

.process__phase:hover .process__card {
    transform: translateY(-6px);
    border-color: rgba(120, 183, 238, 0.2);
    box-shadow: 0 28px 72px rgba(0,0,0,0.25), 0 0 0 1px rgba(120, 183, 238, 0.08);
}

.process__phase:hover .process__card::before,
.process__phase:hover .process__card::after {
    opacity: 1;
}

.process__card > * {
    position: relative;
    z-index: 1;
}

.process__phase-label {
    font-family: var(--font-brand);
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-deep);
    display: block;
    margin-bottom: 0.55rem;
}

.process__phase-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    color: #fff;
    margin-bottom: 0.7rem;
    line-height: 1.2;
}

.process__phase-rule {
    width: 28px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 0.7rem;
    border-radius: 1px;
    opacity: 0.5;
    transition: width 0.4s var(--ease-out), opacity 0.3s ease;
}

.process__phase:hover .process__phase-rule {
    width: 50px;
    opacity: 0.8;
}

.process__phase-desc {
    font-family: var(--font-body);
    font-size: clamp(0.76rem, 0.85vw, 0.86rem);
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
    margin-bottom: 1rem;
    font-weight: 300;
}

/* ─── Process reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    .process__rail-fill {
        transition: none;
        transform: scaleX(1);
    }
    .process__phase.is-pulsed .process__diamond {
        animation: none;
    }
}

/* ═══════════════════════════════════════
   DIAGNOSTIC
   ═══════════════════════════════════════ */
.diagnostic {
    background: #fff;
    text-align: center;
}
.diagnostic__header {
    max-width: 720px;
    margin: 0 auto clamp(2.5rem, 5vh, 4rem);
}
.diagnostic__heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}
.diagnostic__heading em {
    color: var(--accent);
    font-style: italic;
}
.diagnostic__lead {
    font-size: clamp(0.95rem, 1.05vw, 1.05rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.diagnostic__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    max-width: 980px;
    margin: 0 auto clamp(2.5rem, 5vh, 4rem);
}

.diagnostic__step {
    background: #fff;
    border-radius: 10px;
    padding: 1.4rem 1.3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: rotate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                translate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease;
}
.diagnostic__step:nth-child(1) { rotate: -1deg; animation: diagnosticStepFloat 3.4s ease-in-out infinite; }
.diagnostic__step:nth-child(2) { rotate: 0;     animation: diagnosticStepFloat 3s   ease-in-out 0.3s infinite; }
.diagnostic__step:nth-child(3) { rotate: 1deg;  animation: diagnosticStepFloat 3.2s ease-in-out 0.6s infinite; }
@keyframes diagnosticStepFloat {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -3px; }
}
.diagnostic__steps:hover .diagnostic__step {
    animation-play-state: paused;
    rotate: 0;
}
.diagnostic__step:hover {
    translate: 0 -6px;
    scale: 1.02;
    box-shadow: 0 14px 36px rgba(56, 105, 171, 0.18);
    z-index: 2;
}
.diagnostic__step-num {
    font-family: var(--font-brand);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--accent);
    background: rgba(56, 105, 171, 0.08);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    transition: background 0.3s ease, color 0.3s ease, scale 0.3s ease;
}
.diagnostic__step:hover .diagnostic__step-num {
    background: var(--accent);
    color: #fff;
    scale: 1.08;
}
.diagnostic__step-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
}
.diagnostic__step-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.diagnostic__cta {
    display: flex;
    justify-content: center;
}
.diagnostic__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.4rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-brand);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: background 0.3s ease, translate 0.3s var(--ease-out), box-shadow 0.3s ease;
    box-shadow: 0 4px 14px rgba(56, 105, 171, 0.25);
}
.diagnostic__btn:hover {
    background: var(--accent-hover);
    translate: 0 -2px;
    box-shadow: 0 8px 22px rgba(56, 105, 171, 0.35);
}

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

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact {
    color: var(--text);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.contact::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

/* Ambient glow in contact */
.contact::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 45%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(62, 109, 148, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(260px, 31rem);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    position: relative;
    z-index: 1;
}

.contact__intro {
    display: grid;
    grid-template-columns: clamp(104px, 9.5vw, 148px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 1.9vw, 1.65rem);
    padding: clamp(1.2rem, 2.2vw, 1.9rem);
    border: 1px solid rgba(56, 105, 171, 0.16);
    background: rgba(242, 239, 233, 0.68);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.contact__intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(88px, 14vw, 132px);
    height: 1px;
    background: var(--accent);
}

/* ─── Logo seal ─── */
.contact__logo {
    width: min(100%, clamp(104px, 9.5vw, 148px));
    height: auto;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.contact__logo:hover {
    opacity: 1;
}

/* ─── Text block ─── */
.contact__text {
    align-self: center;
    min-width: 0;
    max-width: 32rem;
    padding-left: clamp(1rem, 1.8vw, 1.5rem);
    border-left: 1px solid rgba(56, 105, 171, 0.14);
}

.contact__question {
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: var(--text);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.contact__heading {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.85rem, 4vw, 4.75rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    color: var(--bg-accent);
}

.contact__subtext {
    margin-top: 1.5rem;
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
    max-width: 480px;
}

/* ─── Form System ─── */
.contact__form-system {
    width: min(100%, 31rem);
    justify-self: end;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

/* Channel buttons — stacked vertically */
.contact__channel-btns {
    display: none;
    flex-direction: column;
}

.contact__channel-btn {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: clamp(0.9rem, 1.2vw, 1.08rem) clamp(1rem, 1.45vw, 1.2rem);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: color 0.4s ease, background 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact__channel-btn:focus-visible {
    outline-offset: -3px;
}

.contact__channel-btn:hover {
    color: var(--text);
    background: rgba(56, 105, 171, 0.06);
}

.contact__channel-btn.is-active {
    color: var(--accent);
    background: rgba(56, 105, 171, 0.08);
}

.contact__channel-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.contact__channel-btn:hover svg,
.contact__channel-btn.is-active svg {
    opacity: 1;
}

/* Arrow indicator */
.contact__channel-btn::after {
    content: '\2192';
    margin-left: auto;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}

.contact__channel-btn.is-active::after {
    opacity: 0.6;
    transform: translateX(0);
}

/* ─── Form panel — accordion ─── */
.contact__form-panel {
    display: grid;
    grid-template-rows: 1fr;
}

.contact__form-wrap {
    overflow: hidden;
}

.contact__form-body {
    padding: clamp(1.2rem, 2vw, 1.8rem) clamp(1.5rem, 2.5vw, 2rem) clamp(1.5rem, 2.5vw, 2rem);
    opacity: 1;
    transform: translateY(0);
}

/* ─── Form fields ─── */
.contact__form {
    display: flex;
    flex-direction: column;
}

.contact__field {
    border-bottom: 1px solid var(--border);
    transition: border-color 0.25s ease;
}

.contact__field:focus-within {
    border-bottom-color: var(--accent);
}

.contact__label {
    display: block;
    padding-top: 1rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact__input,
.contact__textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    padding: 0.45rem 0 1rem;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.contact__input:focus,
.contact__textarea:focus {
    color: var(--text);
}

.contact__input:focus-visible,
.contact__textarea:focus-visible {
    outline: none;
    box-shadow: inset 0 -2px 0 var(--accent);
}

.contact__textarea {
    resize: none;
    min-height: 70px;
    line-height: 1.6;
}

.contact__privacy-notice {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.8rem;
    opacity: 0.8;
}
.contact__privacy-notice a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(56, 105, 171, 0.2);
}

.contact__submit {
    align-self: flex-start;
    margin-top: 1.3rem;
    padding: 0.9rem 2.2rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.contact__submit:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.contact__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact__submit--sending {
    pointer-events: none;
}

.contact__submit--success {
    border-color: #2e7d32;
    color: #2e7d32;
    pointer-events: none;
}

.contact__submit--error {
    border-color: #c62828;
    color: #c62828;
}

.contact__fallback {
    display: none;
    flex-wrap: wrap;
    gap: 0.9rem;
    padding: 0 1.5rem 1.5rem;
}

.contact__fallback-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease;
}

.contact__fallback-link:hover {
    background: var(--accent);
    color: #fff;
}

html.contact-ready .contact__channel-btns {
    display: flex;
}

html.contact-ready .contact__form-panel {
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

html.contact-ready .contact__form-panel.is-open {
    grid-template-rows: 1fr;
}

html.contact-ready .contact__form-body {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}

html.contact-ready .contact__form-panel.is-open .contact__form-body {
    opacity: 1;
    transform: translateY(0);
}

html.contact-ready .contact__form {
    display: none;
}

html.contact-ready .contact__form.is-active {
    display: flex;
}

html.contact-ready .contact__fallback.is-visible,
html.no-js .contact__fallback {
    display: flex;
}

html.no-js .contact__channel-btns {
    display: none;
}

html.no-js .contact__form + .contact__form {
    margin-top: 1.5rem;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
    background: var(--bg);
    padding: 3rem 0;
    border-top: 1px solid var(--accent);
    border-image: linear-gradient(90deg, var(--accent), transparent 60%) 1;
    font-family: var(--font-brand);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer__logo {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    position: relative;
}

.footer__logo::before {
    content: '—';
    position: relative;
    margin-right: 0.6rem;
    color: var(--accent);
    font-style: normal;
    opacity: 0.4;
}

.footer__copy {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 300;
}

.footer__legal {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}
.footer__legal a {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer__legal a:hover {
    color: var(--accent);
}

/* Legal pages */
.legal {
    padding-top: clamp(8rem, 14vh, 12rem);
}
.legal__container {
    max-width: 800px;
}
.legal__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.legal__update {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: clamp(2.5rem, 5vh, 4rem);
    font-style: italic;
}
.legal__container h2 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    font-weight: 500;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.legal__container h2:first-of-type {
    border-top: none;
    padding-top: 0;
}
.legal__container h3 {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.legal__container p {
    font-size: clamp(0.86rem, 0.95vw, 0.94rem);
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}
.legal__container ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.legal__container ul li {
    position: relative;
    padding-left: 1rem;
    font-size: clamp(0.86rem, 0.95vw, 0.94rem);
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.3rem;
}
.legal__container ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 4px;
    height: 4px;
    background: var(--accent);
    transform: rotate(45deg);
    opacity: 0.5;
}
.legal__container a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(56, 105, 171, 0.2);
    transition: border-color 0.3s ease;
}
.legal__container a:hover {
    border-color: var(--accent);
}
.legal__container strong {
    color: var(--text);
    font-weight: 500;
}
.legal__table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.82rem;
}
.legal__table th,
.legal__table td {
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    line-height: 1.6;
}
.legal__table th {
    font-family: var(--font-brand);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
}
.legal__table code {
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.04);
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
}

.footer__social {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.footer__social a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.footer__social svg {
    width: clamp(1.3rem, 2vw, 1.6rem);
    height: clamp(1.3rem, 2vw, 1.6rem);
    fill: currentColor;
    flex-shrink: 0;
}

html.no-js .cursor {
    display: none !important;
}

html.no-js .mobile-menu {
    display: none !important;
}

html.no-js .nav__links {
    display: flex !important;
}

html.no-js .nav__menu-btn {
    display: none !important;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero__geo {
        width: clamp(280px, 35vw, 420px);
    }

    .services-showcase {
        grid-template-columns: 1fr;
    }

    .services-showcase__title {
        max-width: 14ch;
    }

    .services-teaser-grid {
        grid-template-columns: 1fr 1fr;
    }

    .projects__intro {
        grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
        align-items: end;
    }

    .projects__lead {
        max-width: 24ch;
        justify-self: end;
    }

    .projects__title {
        max-width: none;
    }

    /* Process grid: 2-col on tablet */
    .process {
        grid-template-columns: repeat(2, 1fr);
    }
    .process__rail { display: none; }
    .process__phase-head { height: auto; margin-bottom: 0.5rem; }
    .process__watermark { position: relative; top: auto; left: auto; transform: none; font-size: 2.5rem; }
    .process__diamond { position: relative; top: auto; left: auto; transform: rotate(45deg); margin: 0.4rem auto; }
    .process__stem { display: none; }

    .services__blocks {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }

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

    .svc-block {
        border: 1px solid var(--border);
        padding: 0;
    }
}

@media (max-width: 768px) {
    body, a, button,
    html.cursor-ready body,
    html.cursor-ready a,
    html.cursor-ready button {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    .nav__links {
        display: flex;
        gap: 1.5rem;
    }

    .nav__links a {
        font-size: 0.65rem;
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 5rem;
        align-items: flex-start;
        padding-bottom: 3rem;
        background-position: center 40%;
    }

    .hero::after {
        opacity: 0.92;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-content: center;
        min-height: calc(100vh - 8rem);
        min-height: calc(100dvh - 8rem);
        position: relative;
    }

    .hero__geo {
        width: clamp(250px, 55vw, 350px);
        opacity: 0.18;
        animation: none;
        right: auto;
        top: auto;
        left: 50%;
        bottom: 0;
        transform: translate(-50%, 30%);
    }

    .hero__content {
        text-align: center;
        padding-top: 0.6rem;
    }

    .hero__heading {
        margin-bottom: 1.5rem;
    }

    .hero__brand-mark {
        position: static;
        display: block;
        margin: 0 auto 1.1rem;
        width: clamp(90px, 26.25vw, 135px);
        height: auto;
        opacity: 0.2;
        left: auto;
        bottom: auto;
    }

    .hero-line:nth-child(1) .hero-line__inner {
        font-size: clamp(2.4rem, 11vw, 3.5rem);
    }

    .hero-line:nth-child(2) .hero-line__inner {
        font-size: clamp(2.6rem, 12vw, 3.8rem);
    }

    .hero__descriptor {
        width: auto;
        text-align: center;
        margin: 0 auto;
        max-width: 360px;
        font-size: clamp(1rem, 3.8vw, 1.1rem);
        left: auto;
        transform: none;
    }

    .hero__cta {
        margin-left: 0;
    }

    .hero::after {
        font-size: clamp(12rem, 55vw, 20rem);
        right: 50%;
        transform: translate(50%, -55%);
        opacity: 0.03;
    }

    .hero__scroll {
        display: none;
    }

    /* Mobile process: single column */
    .process {
        grid-template-columns: 1fr;
        gap: clamp(1.2rem, 3vw, 1.8rem);
    }
    .process__rail { display: none; }
    .process__phase-head { height: auto; margin-bottom: 0.3rem; }
    .process__watermark { position: relative; top: auto; left: auto; transform: none; font-size: 2.8rem; }
    .process__diamond { position: relative; top: auto; left: auto; transform: rotate(45deg); margin: 0.3rem auto; }
    .process__stem { display: none; }
    .process__card { max-width: 420px; margin: 0 auto; }
    .process__phase-title { font-size: clamp(1.2rem, 5vw, 1.6rem); }

    .projects__title {
        max-width: 15ch;
    }

    .project-card__header {
        flex-direction: column;
    }

    .contact.section-padding {
        padding-top: clamp(3rem, 6vh, 4.5rem);
        padding-bottom: clamp(4rem, 8vh, 5.5rem);
    }

    .services__blocks {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .svc-block__header {
        padding: 1rem 1.2rem;
    }

    .svc-block__badge {
        display: none;
    }

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

    .svc-accordion__trigger {
        padding: 1rem 1.2rem;
    }

    .svc-accordion__body {
        padding: 0 1.2rem 1.2rem;
    }

    .svc-accordion--tier > .svc-accordion__trigger {
        flex-wrap: wrap;
        padding: 0.8rem 1rem;
        gap: 0.4rem;
    }

    .svc-tier__info {
        flex-basis: calc(100% - 2rem);
    }

    .svc-tier__pricing {
        text-align: left;
        flex-basis: 100%;
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
    }

    .svc-accordion--tier > .svc-accordion__trigger > .svc-accordion__icon {
        position: absolute;
        top: 0.9rem;
        right: 1rem;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        text-align: center;
    }

    .contact__intro {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1.25rem;
    }

    .contact__logo {
        justify-self: center;
        width: 158px;
    }

    .contact__text {
        padding-left: 0;
        border-left: none;
    }

    .contact__heading {
        font-size: clamp(3rem, 13vw, 5rem);
    }

    .contact__form-system {
        width: 100%;
        justify-self: stretch;
        text-align: left;
    }

    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .services-showcase__title,
    .services-teaser__title {
        max-width: none;
    }

    .services-showcase__title {
        font-size: clamp(1.95rem, 10vw, 3.1rem);
    }

    .services-showcase__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .services-showcase__cta {
        width: 100%;
    }

    .services-teaser-grid {
        grid-template-columns: 1fr;
    }

    .services-teaser--alacarte .services-teaser__chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-teaser--alacarte .services-teaser__chips span:nth-child(n) {
        grid-column: auto;
    }

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

    .projects__intro {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .projects__title {
        max-width: none;
        font-size: clamp(1.95rem, 10vw, 3.1rem);
    }

    .projects__lead {
        max-width: none;
        justify-self: start;
    }

    .project-card__desc {
        max-width: none;
    }

    .lightbox__dialog {
        padding: 0.85rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.8rem 0;
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 1px solid transparent;
    }

    .nav.is-scrolled,
    .nav.menu-open {
        background-color: rgba(242, 239, 233, 0.94);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom-color: rgba(30, 58, 95, 0.08);
    }

    .nav__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        column-gap: 0.4rem;
        min-height: 3rem;
        height: auto;
    }

    html.nav-ready .nav__links {
        display: none;
    }

    html.nav-ready .nav__menu-btn {
        display: inline-flex;
        grid-column: 3;
        grid-row: 1;
        align-items: center;
        justify-content: center;
        justify-self: end;
        gap: 0.7rem;
        min-height: 42px;
        min-width: 5.6rem;
        padding: 0 0.75rem;
        border: 1px solid rgba(30, 58, 95, 0.12);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.5);
        font-size: 0.68rem;
        letter-spacing: 0.18em;
        order: initial;
    }

    html.nav-ready .nav__menu-btn::before {
        content: '';
        width: 15px;
        height: 11px;
        flex-shrink: 0;
        border-top: 1px solid currentColor;
        border-bottom: 1px solid currentColor;
        background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
        opacity: 0.85;
    }

    html.nav-ready .nav__menu-btn[aria-expanded="true"] {
        color: var(--accent);
        border-color: rgba(56, 105, 171, 0.22);
        background: rgba(56, 105, 171, 0.08);
    }

    .nav__ig {
        grid-column: 1;
        grid-row: 1;
        margin-left: 0;
        justify-self: start;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(30, 58, 95, 0.12);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.5);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
        order: initial;
    }

    .nav__ig svg {
        width: 22px;
        height: 22px;
    }

    .nav__logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        position: static;
        transform: none;
        order: initial;
    }

    .nav__logo-img {
        height: 48px;
    }

    .projects__lead {
        max-width: none;
    }

    .project-card__link {
        gap: 1rem;
        padding: 1rem;
    }

    .project-card__footer span {
        width: 100%;
        justify-content: center;
    }

    .lightbox {
        padding: 0.75rem;
    }

    .lightbox__topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .lightbox__close {
        width: 100%;
    }
}

/* ═══════════════════════════════════════
   LARGE SCREENS (1440px+)
   ═══════════════════════════════════════ */
@media (min-width: 1440px) {
    :root {
        --container: 1500px;
    }

    /* Hero — tame the heading size, better proportions */
    .hero-line:nth-child(1) .hero-line__inner {
        font-size: 6.5rem;
    }

    .hero-line:nth-child(2) .hero-line__inner {
        font-size: 7rem;
    }


    .hero__descriptor {
        max-width: 440px;
        font-size: 1rem;
    }

    .hero__cta {
        padding: 1rem 3rem;
        font-size: 0.75rem;
    }

    /* Services — more breathing room */
    .svc-block {
        padding: clamp(0.8rem, 1.2vw, 1.2rem);
    }

    .svc-block__header {
        padding: 1.5rem 2rem;
    }

    .svc-block__title {
        font-size: 1.55rem;
    }

    .svc-accordion__trigger {
        padding: 1.4rem 2rem;
        font-size: 0.95rem;
    }

    .svc-accordion__body {
        padding: 0 2rem 1.8rem;
    }

    .svc-accordion__text {
        font-size: 0.92rem;
    }

    /* Process — more breathing room on wide screens */
    .process {
        gap: clamp(1.5rem, 2vw, 2rem);
    }
    .process__phase-title { font-size: 1.7rem; }
    .process__phase-desc { font-size: 0.92rem; }

    /* Contact — better proportions */
    .contact__heading {
        font-size: 5.2rem;
    }

    .contact__subtext {
        max-width: 540px;
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════
   EXTRA LARGE SCREENS (1800px+)
   ═══════════════════════════════════════ */
@media (min-width: 1800px) {
    :root {
        --container: 1600px;
        --gutter: 5rem;
    }

    .hero-line:nth-child(1) .hero-line__inner {
        font-size: 7.5rem;
    }

    .hero-line:nth-child(2) .hero-line__inner {
        font-size: 8rem;
    }

    .hero__descriptor {
        max-width: 480px;
    }

    .process {
        gap: 2.5rem;
    }
    .process__watermark { font-size: 5.5rem; }
    .process__phase-title { font-size: 1.8rem; }
}

/* ═══════════════════════════════════════
   SERVICIOS PAGE
   ═══════════════════════════════════════ */

/* ─── Active Nav Link ─── */
.nav__links a.is-current {
    color: var(--accent);
}

.nav__links a.is-current::after {
    width: 100%;
    opacity: 1;
}

/* ─── Services Hero ─── */
.svc-hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(8rem, 14vh, 12rem) 0 clamp(4rem, 8vh, 7rem);
}

.svc-hero__inner {
    display: block;
}

.svc-hero__heading {
    margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
}

.svc-hero__heading .hero-line__inner,
.svc-hero__heading .hero-line:nth-child(1) .hero-line__inner,
.svc-hero__heading .hero-line:nth-child(2) .hero-line__inner {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.svc-hero__heading .hero-line:nth-child(2) .hero-line__inner.svc-hero__heading--accent,
.svc-hero__heading--accent {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    font-family: var(--font-display);
}

.svc-hero__bottom {
    margin-top: clamp(1.5rem, 3vh, 2.5rem);
}

.svc-hero__bottom-content {
    min-width: 0;
}

.svc-hero__desc {
    font-size: clamp(0.88rem, 1vw, 1rem);
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}

.svc-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.svc-hero__cta {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2.2rem;
    border: 1px solid var(--text);
    font-family: var(--font-brand);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    transition: background 0.3s ease, color 0.3s ease;
}

.svc-hero__cta:hover {
    background: var(--text);
    color: var(--bg);
}

.svc-hero__cta--secondary {
    border-color: var(--accent);
    color: var(--accent);
}

.svc-hero__cta--secondary:hover {
    background: var(--accent);
    color: #fff;
}

/* ─── Section Divider ─── */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: clamp(2rem, 4vh, 3.5rem) var(--gutter);
}

.section-divider__line {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: var(--border-strong);
}

.section-divider__diamond {
    width: 8px;
    height: 8px;
    background: var(--accent);
    transform: rotate(45deg);
    opacity: 0.5;
    flex-shrink: 0;
}

/* ─── Servicios section spacing ─── */
.alacarte.section-padding {
    padding: clamp(3rem, 7vh, 6rem) 0;
}

/* ─── Asesoría Banner ─── */
.asesoria-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--accent);
    color: #fff;
    padding: clamp(3rem, 7vh, 5rem) 0;
}

.asesoria-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(56, 105, 171, 0.9) 0%, rgba(56, 105, 171, 0.82) 55%, rgba(28, 56, 96, 0.78) 100%);
    pointer-events: none;
    z-index: 0;
}

.section-media--asesoria .section-media__image {
    object-position: center 42%;
}

.asesoria-banner > :not(.section-media) {
    position: relative;
    z-index: 1;
}

.asesoria-banner__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: clamp(2rem, 4vh, 3rem);
}

.asesoria-banner__icon {
    flex-shrink: 0;
    opacity: 0.8;
}

.asesoria-banner__title {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.asesoria-banner__points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
}

.asesoria-banner__point-title {
    display: block;
    font-family: var(--font-brand);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.asesoria-banner__point-desc {
    font-size: clamp(0.82rem, 0.9vw, 0.9rem);
    line-height: 1.7;
    opacity: 0.75;
}

/* ─── A La Carte ─── */
.alacarte__header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vh, 4rem);
}

.alacarte__title {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.alacarte__desc {
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
    color: var(--text-muted);
    max-width: 520px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

.alacarte__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.2rem, 2vw, 2rem);
    margin-bottom: clamp(4rem, 8vh, 7rem);
}

.alacarte__card {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 2.5vw, 2.2rem);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.3);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.alacarte__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.alacarte__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    font-size: 0.65rem;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 1rem;
}

.alacarte__card-title {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.alacarte__card-desc {
    font-size: clamp(0.82rem, 0.9vw, 0.9rem);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.alacarte__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
    flex-grow: 1;
}

.alacarte__list li {
    position: relative;
    padding-left: 1rem;
    font-size: clamp(0.78rem, 0.85vw, 0.85rem);
    color: var(--text-muted);
    line-height: 1.85;
}

.alacarte__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 4px;
    height: 4px;
    background: var(--accent);
    transform: rotate(45deg);
    opacity: 0.5;
}

.alacarte__price {
    display: block;
    font-family: var(--font-brand);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.alacarte__cta {
    font-family: var(--font-brand);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    transition: letter-spacing 0.3s ease;
}

.alacarte__cta:hover {
    letter-spacing: 0.2em;
}

/* ─── Closing CTA ─── */
.svc-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(2.5rem, 5vh, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
    border: 1px solid var(--border);
}

.svc-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(242, 239, 233, 0.92) 0%, rgba(242, 239, 233, 0.84) 45%, rgba(242, 239, 233, 0.9) 100%);
    pointer-events: none;
    z-index: 0;
}

.section-media--cta .section-media__image {
    object-position: 35% center;
}

.svc-cta > :not(.section-media) {
    position: relative;
    z-index: 1;
}

.svc-cta__inner {
    display: flex;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
    justify-content: center;
}

.svc-cta__logo {
    display: block;
    flex-shrink: 0;
    width: clamp(120px, 12vw, 180px);
    height: auto;
    opacity: 1;
}

.svc-cta__body {
    min-width: 0;
}

.svc-cta__heading {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.svc-cta__heading em {
    color: var(--accent);
}

.svc-cta__text {
    font-size: clamp(0.88rem, 1vw, 1rem);
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.svc-cta__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.svc-cta__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2.2rem;
    border: 1px solid var(--text);
    font-family: var(--font-brand);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    transition: background 0.3s ease, color 0.3s ease;
}

.svc-cta__btn:hover {
    background: var(--text);
    color: var(--bg);
}

.svc-cta__btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.svc-cta__btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* ─── Servicios Page Responsive ─── */
@media (max-width: 1024px) {
    .svc-hero__bottom-content {
        margin-top: 0;
        margin-right: 0;
    }

}

@media (max-width: 767px) {
    .svc-hero {
        min-height: auto;
        padding: clamp(9rem, 16vh, 13rem) 0 clamp(3rem, 6vh, 5rem);
    }

    .svc-hero__heading .hero-line__inner {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .svc-hero__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .svc-hero__bottom-content {
        margin-left: 0;
        margin-top: 0;
        margin-right: 0;
    }

    .asesoria-banner__points {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .alacarte__grid {
        grid-template-columns: 1fr;
        margin-bottom: clamp(2.25rem, 4vh, 3.5rem);
    }

    .svc-cta__inner {
        flex-direction: column;
        text-align: center;
        gap: 1.1rem;
    }

    .svc-cta__logo {
        width: clamp(144px, 36vw, 198px);
    }

    .svc-cta__text {
        margin-left: auto;
        margin-right: auto;
    }

    .svc-cta__heading {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (max-width: 480px) {
    .svc-hero__actions {
        flex-direction: column;
    }

    .svc-hero__cta {
        justify-content: center;
    }

    .svc-cta__actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ═══════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html { scroll-behavior: auto; }

    html.cursor-ready body,
    html.cursor-ready a,
    html.cursor-ready button {
        cursor: auto;
    }

    .cursor {
        display: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-line__inner {
        transform: none;
    }

    .keywords__track {
        animation: none;
    }

    .hero__geo-ring,
    .hero__geo-ring--inner,
    .hero__scroll-line::after {
        animation: none !important;
    }
}

@media (hover: none), (pointer: coarse) {
    html.cursor-ready body,
    html.cursor-ready a,
    html.cursor-ready button {
        cursor: auto;
    }

    .cursor {
        display: none !important;
    }

    body {
        background-attachment: scroll;
    }
}
