/* Display: Outfit (~Hero). Body: DM Sans (~Canva Sans). Editorial titles: Fraunces (case-study serif accent, à la Metalab-style work pages). */
:root {
    --color-bg: #e7e8d8;
    --color-bg-alt: #e0e1d3;
    --color-surface: #f4f5ec;
    --color-primary: #607050;
    --color-primary-hover: #4d5c40;
    --color-sage: #8f9f82;
    --color-sage-muted: #b8c4ab;
    --color-text: #2c3228;
    --color-text-muted: #5a6354;
    --color-white: #ffffff;
    --color-dark-elevated: #4a5840;
    --color-accent-warm: #c17f6a;
    /* Tips page / enlace Tips (tema celeste) */
    --tips-celeste: #8ecae6;
    --tips-celeste-mid: #6eb8d4;
    --tips-celeste-deep: #4a9ebd;
    --tips-celeste-text: #0c2832;
    --color-border: rgba(96, 112, 80, 0.18);
    --shadow-sm: 0 2px 16px rgba(44, 50, 40, 0.05);
    --shadow-md: 0 20px 50px rgba(44, 50, 40, 0.1);
    --shadow-float: 0 24px 60px rgba(30, 35, 28, 0.18);
    --font-display: 'Outfit', 'Hero', system-ui, sans-serif;
    --font-body: 'DM Sans', 'Canva Sans', system-ui, sans-serif;
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --spacing-xs: 0.45rem;
    --spacing-sm: 0.85rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.75rem;
    --section-pad-y: clamp(2.35rem, 6.5vw, 4.75rem);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    /* Hero offset + scroll-padding (compact nav) */
    --nav-h: clamp(108px, 17vw, 158px);
    /* Space for fixed rail (desktop); 0 on narrow viewports */
    --layout-rail-inset: 0;
    --layout-edge-right: clamp(0.85rem, 2vw, 1.5rem);
    /* Section rhythm: deep anchor for footer/contact band */
    --section-bg-deep: #2a3228;
    --section-bg-deep-mid: #343d30;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.62;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.heading-serif {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-transform: none;
}

.heading-serif--dark {
    color: var(--color-primary);
    font-size: clamp(1.65rem, 3.8vw, 2.75rem);
}

.heading-serif--light {
    color: var(--color-surface);
    font-size: clamp(1.65rem, 3.8vw, 2.85rem);
}

.eyebrow {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent-warm);
    margin-bottom: 0.55rem;
}

.eyebrow--on-dark {
    color: rgba(247, 248, 240, 0.75);
}

.section-head {
    text-align: center;
    margin-bottom: clamp(1.25rem, 3.2vw, 2.25rem);
}

.section-head--left {
    text-align: left;
}

.section-head .heading-serif {
    margin-top: 0;
}

.container {
    width: min(92%, 1120px);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.container--editorial {
    width: min(94%, 1200px);
}

.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;
}

/* ——— Nav: brand + Tips + rail ——— */
.nav-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.2rem;
    padding: env(safe-area-inset-top, 0px) clamp(0.4rem, 1.6vw, 0.85rem) 0.03rem;
    min-height: 0;
    pointer-events: none;
    background: transparent;
    overflow: visible;
}

/* Dark green strip + soft fade at bottom (blur fades with mask) */
.nav-top::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: calc(100% + 32px);
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(45, 54, 38, 0.9) 0%,
        rgba(45, 54, 38, 0.35) 52%,
        transparent 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    mask-image: linear-gradient(to bottom, black 0%, black 46%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 46%, transparent 100%);
    transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.nav-top.scrolled::before {
    background: linear-gradient(
        to bottom,
        rgba(38, 46, 32, 0.94) 0%,
        rgba(38, 46, 32, 0.4) 50%,
        transparent 100%
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-top > * {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Language switcher (ES / IT / EN); URL ?lang= kept in sync via js/i18n/apply.js */
.lang-switcher {
    align-self: flex-start;
    margin-top: 0.42rem;
    margin-left: auto;
    flex-shrink: 0;
}

.lang-switcher__btns {
    display: inline-flex;
    gap: 0.28rem;
    flex-wrap: nowrap;
    align-items: center;
}

.lang-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    padding: 0.28rem 0.42rem 0.28rem 0.32rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(45, 54, 38, 0.5);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
        transform 0.15s ease;
}

/* Rounded flag chip (ES / IT stripes; UK Union Jack) */
.lang-switcher__flag {
    flex-shrink: 0;
    width: 1.28rem;
    height: 0.86rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.lang-switcher__flag-svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lang-switcher__flag-svg--uk {
    transform: scale(1.02);
    transform-origin: center;
}

.lang-switcher__code {
    min-width: 1.15em;
    text-align: left;
}

.lang-switcher__btn:hover {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(45, 54, 38, 0.72);
    color: #fff;
}

.lang-switcher__btn.is-active,
.lang-switcher__btn[aria-pressed='true'] {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.2);
}

.lang-switcher__btn.is-active .lang-switcher__flag,
.lang-switcher__btn[aria-pressed='true'] .lang-switcher__flag {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

@media (max-width: 520px) {
    .lang-switcher {
        margin-top: 0.32rem;
    }

    .lang-switcher__btn {
        font-size: 0.58rem;
        padding: 0.24rem 0.36rem 0.24rem 0.28rem;
        gap: 0.3rem;
    }

    .lang-switcher__flag {
        width: 1.15rem;
        height: 0.78rem;
        border-radius: 3px;
    }
}

/* Pill stays optically centered next to the tall logo */
.nav-top .nav-tips-corner {
    align-self: center;
}

.nav-top.scrolled .nav-tips-corner {
    background: linear-gradient(145deg, #a8daf0, var(--tips-celeste-mid));
    border-color: rgba(12, 40, 50, 0.12);
    color: var(--tips-celeste-text);
    text-shadow: none;
    box-shadow: 0 4px 18px rgba(20, 90, 115, 0.25);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    line-height: 1;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(0.9rem, 1.35vw, 1.12rem);
    letter-spacing: 0.055em;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.92;
    color: rgba(255, 255, 255, 0.88);
}

.nav-logo {
    display: block;
    width: clamp(92px, 12vw, 140px);
    height: clamp(92px, 12vw, 140px);
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.4));
}

.nav-brand-text {
    white-space: nowrap;
}

@media (max-width: 520px) {
    .nav-brand {
        font-size: 0.82rem;
        gap: 0.08rem;
    }

    .nav-brand-text {
        max-width: min(46vw, 12rem);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-logo {
        width: 80px;
        height: 80px;
    }
}

.nav-tips-corner {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: clamp(0.84rem, 2.35vw, 1.08rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--tips-celeste-text);
    padding: 0.42rem 1.15rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(12, 40, 50, 0.14);
    background: linear-gradient(160deg, #b8e3f5, var(--tips-celeste));
    box-shadow: 0 2px 14px rgba(20, 90, 115, 0.22);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-tips-corner:hover {
    background: linear-gradient(160deg, var(--tips-celeste-mid), var(--tips-celeste-deep));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 3px 16px rgba(30, 110, 140, 0.32);
}

/* Vertical section links — each item in its own oval */
.nav-rail {
    display: none;
    position: fixed;
    left: clamp(0.85rem, 2vw, 1.35rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.nav-rail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.28rem;
}

.nav-rail-list a {
    display: block;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    padding: 0.34rem 0.82rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(45, 54, 38, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-rail-list a:hover {
    color: #ffffff;
    background: rgba(45, 54, 38, 0.94);
    border-color: rgba(255, 255, 255, 0.38);
    transform: translateX(2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-rail-list a.active {
    color: #ffffff;
    font-weight: 700;
    background: rgba(38, 46, 32, 0.95);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.nav-rail-list a.nav-rail-tips {
    border-color: rgba(255, 255, 255, 0.45);
    font-size: clamp(0.78rem, 1.05vw, 0.92rem);
    font-weight: 700;
    letter-spacing: 0.11em;
    padding: 0.48rem 1.05rem;
    min-width: 5.5rem;
    text-align: center;
    color: var(--tips-celeste-text);
    background: linear-gradient(145deg, #b8e3f5, var(--tips-celeste));
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    box-shadow: 0 3px 18px rgba(20, 90, 115, 0.28);
}

.nav-rail-list a.nav-rail-tips:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(145deg, var(--tips-celeste-mid), var(--tips-celeste-deep));
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 22px rgba(30, 110, 140, 0.4);
}

.nav-rail-list a.nav-rail-tips.active {
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--tips-celeste-text);
    background: linear-gradient(145deg, #c5e9f7, #9fd8ef);
    box-shadow: 0 2px 18px rgba(20, 90, 115, 0.3);
}

/* Mobile / tablet: hamburger at left mid-screen */
.menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(45, 54, 38, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.28);
    position: fixed;
    left: clamp(0.85rem, 2vw, 1.25rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.menu-button:hover {
    background: rgba(45, 54, 38, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
}

.menu-button span {
    display: block;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-button.active {
    z-index: 1002;
    background: rgba(38, 46, 32, 0.96);
    border-color: rgba(255, 255, 255, 0.35);
}

.menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: linear-gradient(
        135deg,
        rgba(38, 46, 32, 0.97) 0%,
        rgba(45, 54, 38, 0.92) 100%
    );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-xs);
    padding-left: clamp(3.5rem, 10vw, 4.75rem);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.mobile-menu .nav-rail-list {
    gap: 0.42rem;
}

.mobile-menu .nav-rail-list a {
    font-size: 0.82rem;
    padding: 0.52rem 1.05rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.mobile-menu .nav-rail-list a:hover {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.32);
    border-color: rgba(255, 255, 255, 0.38);
}

.mobile-menu .nav-rail-list a.active {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(0, 0, 0, 0.38);
    color: #ffffff;
    font-weight: 700;
}

.mobile-menu .nav-rail-list a.nav-rail-tips {
    font-size: clamp(0.95rem, 3.2vw, 1.12rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.65rem 1.35rem;
    color: var(--tips-celeste-text);
    background: linear-gradient(145deg, #b8e3f5, var(--tips-celeste));
    border-color: rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    box-shadow: 0 3px 20px rgba(20, 90, 115, 0.3);
}

.mobile-menu .nav-rail-list a.nav-rail-tips:hover {
    background: linear-gradient(145deg, var(--tips-celeste-mid), var(--tips-celeste-deep));
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.mobile-menu .nav-rail-list a.nav-rail-tips.active {
    border-color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(145deg, #c5e9f7, #9fd8ef);
    color: var(--tips-celeste-text);
}

body.menu-open {
    overflow: hidden;
}

/* No rail inset: content uses normal centered containers; left padding only clears the hamburger */
@media (max-width: 899.98px) {
    :root {
        --layout-rail-inset: 0;
    }

    main .container,
    .main-footer .container {
        margin-left: auto;
        margin-right: auto;
        padding-left: max(var(--spacing-sm), 3.2rem);
    }

    .hero .hero-inner.container {
        margin-left: auto;
        margin-right: auto;
        padding-left: max(var(--spacing-sm), 3.2rem);
        padding-right: var(--spacing-sm);
    }
}

@media (min-width: 900px) {
    :root {
        /* Clear fixed rail pills (long labels + hover nudge); grows slightly with larger type */
        --layout-rail-inset: clamp(10.5rem, 14vw, 15.25rem);
    }

    .nav-rail {
        display: block;
    }

    .menu-button {
        display: none !important;
    }

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

    /* Full-bleed section backgrounds; content aligns to one column from the left */
    main .container {
        margin-left: var(--layout-rail-inset);
        margin-right: var(--layout-edge-right);
        margin-top: 0;
        margin-bottom: 0;
        width: auto;
        max-width: min(1200px, calc(100vw - var(--layout-rail-inset) - var(--layout-edge-right)));
    }

    .main-footer .container {
        margin-left: var(--layout-rail-inset);
        margin-right: var(--layout-edge-right);
        margin-top: 0;
        margin-bottom: 0;
        width: auto;
        max-width: min(1120px, calc(100vw - var(--layout-rail-inset) - var(--layout-edge-right)));
    }
}

/* ——— Hero (video bg + layered type + portrait) ——— */
.hero {
    width: 100%;
    min-height: min(100vh, 960px);
    min-height: min(100dvh, 960px);
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-h) + clamp(0.35rem, 1.5vh, 1.25rem));
    padding-bottom: clamp(2.5rem, 7vh, 5rem);
    padding-left: 0;
    padding-right: 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

/* Hero lives outside main so video is full-bleed; same horizontal column as main */
@media (min-width: 900px) {
    .hero .hero-inner.container {
        margin-left: var(--layout-rail-inset);
        margin-right: var(--layout-edge-right);
        margin-top: 0;
        margin-bottom: 0;
        width: auto;
        max-width: min(1240px, calc(100vw - var(--layout-rail-inset) - var(--layout-edge-right)));
        padding-left: var(--spacing-sm);
        min-height: min(72dvh, 620px);
        align-content: center;
    }
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    min-height: 100%;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    max-width: none;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        rgba(22, 26, 20, 0.88) 0%,
        rgba(35, 42, 32, 0.62) 38%,
        rgba(55, 68, 48, 0.38) 68%,
        rgba(96, 112, 80, 0.22) 100%
    );
}

.hero-mega {
    position: absolute;
    left: 50%;
    top: 44%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: clamp(3.25rem, 16vw, 10rem);
    font-weight: 500;
    font-style: italic;
    letter-spacing: -0.03em;
    line-height: 0.9;
    color: rgba(255, 255, 255, 0.055);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

@media (min-width: 900px) {
    .hero-mega {
        left: auto;
        right: clamp(2%, 6vw, 12%);
        top: 52%;
        transform: translateY(-50%);
        font-size: clamp(4.25rem, 10vw, 7.5rem);
    }
}

.hero-inner {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: center;
    position: relative;
    z-index: 3;
}

@media (min-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(300px, 42%);
        gap: clamp(2.25rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
        align-items: center;
    }
}

.hero-copy {
    text-align: center;
}

@media (min-width: 900px) {
    .hero-copy {
        text-align: left;
    }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6.5vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.028em;
    line-height: 1.04;
    text-transform: none;
    color: #fafbf6;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
    margin: 0 0 0.75rem;
    position: relative;
    z-index: 1;
}

.hero-role {
    font-family: var(--font-display);
    font-size: clamp(0.68rem, 1.1vw, 0.76rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: rgba(247, 248, 240, 0.72);
    margin: 0 0 1.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    max-width: min(22rem, 100%);
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 900px) {
    .hero-role {
        margin-left: 0;
        margin-right: 0;
    }
}

.hero-tagline {
    font-size: clamp(1.02rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.84);
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.25);
    max-width: min(38rem, 100%);
    margin: 0 auto 0.85rem;
    font-weight: 400;
    line-height: 1.68;
}

@media (min-width: 900px) {
    .hero-tagline {
        margin-left: 0;
        margin-right: 0;
    }
}

.hero-subline {
    font-size: clamp(0.82rem, 1.15vw, 0.92rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(247, 248, 240, 0.78);
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.2);
    max-width: min(38rem, 100%);
    margin: 0 auto 1.65rem;
    line-height: 1.5;
}

@media (min-width: 900px) {
    .hero-subline {
        margin-left: 0;
        margin-right: 0;
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.05rem 2.25rem;
    min-height: 3.35rem;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(0.88rem, 1.05vw, 1.02rem);
    letter-spacing: 0.11em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    border: 2px solid var(--color-primary);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.25rem;
}

@media (min-width: 900px) {
    .hero-actions {
        justify-content: flex-start;
    }
}

/* Hero CTAs: larger tap targets + glass / outline variants */
.hero .cta-button--hero {
    gap: 0.55rem;
    padding: 1.12rem 2.5rem;
    min-height: 3.55rem;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
}

.hero .cta-button--hero:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.78);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
}

/* WhatsApp primary CTA — subtle brand cue */
.hero .cta-button--whatsapp {
    background: rgba(37, 211, 102, 0.14);
    border-color: rgba(144, 238, 168, 0.55);
    color: #f4fff8;
}

.hero .cta-button--whatsapp:hover {
    background: rgba(37, 211, 102, 0.26);
    border-color: rgba(180, 255, 200, 0.85);
    color: #fff;
}

.cta-whatsapp-icon {
    flex-shrink: 0;
    width: 1.35em;
    height: 1.35em;
    margin-top: 1px;
}

.hero .cta-button--hero-secondary {
    padding: 1.12rem 2.35rem;
    min-height: 3.55rem;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: none;
}

.hero .cta-button--hero-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.hero-contact-mini {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-contact-mini {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem 1.35rem;
        align-items: center;
        justify-content: flex-start;
    }
}

.hero-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: rgba(250, 251, 246, 0.82);
    font-size: clamp(0.9rem, 1.25vw, 1.05rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.hero-contact-link:hover {
    color: #fff;
    opacity: 1;
}

.hero .icon-circle {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.94);
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    flex-shrink: 0;
}

.hero-portrait {
    display: flex;
    justify-content: center;
    order: -1;
}

@media (min-width: 900px) {
    .hero-portrait {
        order: 0;
        justify-content: flex-end;
    }
}

.hero-portrait-ring {
    position: relative;
    width: min(72vw, 300px);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(96, 112, 80, 0.45) 100%
    );
    box-shadow:
        0 20px 56px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.14) inset;
    transform: translateZ(0);
}

@media (min-width: 900px) {
    .hero-portrait-ring {
        width: min(100%, 340px);
    }
}

.hero-portrait-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(35, 40, 32, 0.55);
}

.hero-portrait-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 0 48px 20px rgba(44, 50, 40, 0.42);
}

.hero-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    display: block;
}

/* ——— Sections ——— */
section {
    padding: var(--section-pad-y) 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-dark {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.92);
}

.section-dark--soft {
    background: linear-gradient(165deg, var(--color-dark-elevated) 0%, var(--color-primary) 45%, #556648 100%);
}

.section-dark .heading-serif--light {
    color: #f6f7f0;
}

/* Light sections: soft lift (timeline / education vs flat body) */
.section-light-wash {
    background: linear-gradient(
        188deg,
        var(--color-surface) 0%,
        var(--color-bg) 42%,
        var(--color-bg-alt) 100%
    );
}

/* Dark sections: services = bright olive band; contact = deeper “anchor” vs testimonial mid-tones */
.services-section.section-dark {
    background: linear-gradient(
        158deg,
        var(--color-primary) 0%,
        var(--color-dark-elevated) 52%,
        #505b44 100%
    );
}

.contact-section.section-dark {
    background: linear-gradient(
        172deg,
        var(--section-bg-deep) 0%,
        var(--section-bg-deep-mid) 22%,
        var(--color-dark-elevated) 55%,
        var(--color-primary) 100%
    );
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* About */
.about-content {
    display: grid;
    gap: var(--spacing-md);
    align-items: start;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1.25fr 1fr;
        gap: clamp(1.35rem, 3.5vw, 2.5rem);
        align-items: end;
    }
}

.about-text p {
    font-size: 1.02rem;
    line-height: 1.68;
    color: var(--color-text);
    max-width: 38rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

@media (max-width: 500px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
}

.about-stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: clamp(1rem, 2.2vw, 1.35rem);
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.about-stat-value {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5.5vw, 3.35rem);
    font-weight: 800;
    color: var(--color-primary);
    display: block;
    line-height: 1;
    letter-spacing: -0.03em;
}

.about-stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    max-width: 12rem;
}

/* Services — Metalab-style link rows */
.services-split {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: start;
}

@media (min-width: 900px) {
    .services-split {
        grid-template-columns: 0.95fr 1.05fr;
        align-items: center;
    }
}

.services-intro {
    font-size: 0.98rem;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.78);
    max-width: 26rem;
    margin-top: var(--spacing-sm);
}

.service-links {
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.service-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.25s ease, opacity 0.25s ease;
}

.service-link-row:hover {
    padding-left: 0.35rem;
    opacity: 0.95;
}

.service-link-row:hover .service-link-arrow {
    transform: translate(3px, -3px);
    color: var(--color-surface);
}

.service-link-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.service-link-title {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

.service-link-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    max-width: 26rem;
}

.service-link-arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.25s ease, color 0.25s ease;
}

/* Path flow — scroll vertical por etapa (pin) + zigzag horizontal */
.path-flow-pin {
    position: relative;
    min-height: calc(var(--path-flow-pin-steps, 4) * 100dvh);
}

.path-flow-pin__sticky {
    position: sticky;
    top: var(--nav-h);
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100dvh - var(--nav-h));
    padding-block: 0.5rem 0.85rem;
}

.path-flow.path-flow--horizontal.path-flow--zigzag {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.path-flow--horizontal {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .path-flow__viewport {
        order: 1;
    }

    .path-flow__progress {
        order: 2;
        gap: 0.5rem;
        padding: 0.35rem 0 0.2rem;
    }

    .path-flow__progress-dot {
        width: 9px;
        height: 9px;
    }

    .path-flow__hint {
        order: 3;
    }
}

/* Use full width beside the nav rail so more steps fit; horizontal scroll when there are many cards */
@media (min-width: 900px) {
    .path-flow-pin__sticky > .container.container--editorial {
        max-width: none;
        width: calc(100vw - var(--layout-rail-inset) - var(--layout-edge-right));
    }
}

.path-flow__viewport {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto;
    outline: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 112, 80, 0.45) transparent;
    scroll-padding-inline: var(--spacing-sm);
}

.path-flow__viewport::-webkit-scrollbar {
    height: 6px;
}

.path-flow__viewport::-webkit-scrollbar-thumb {
    background: rgba(96, 112, 80, 0.4);
    border-radius: 999px;
}

.path-flow__viewport:focus-visible {
    box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-primary);
    border-radius: var(--radius-sm);
}

.path-flow__track {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(0.65rem, 2.5vw, 1.15rem);
    width: max-content;
    min-height: clamp(20.5rem, 54vw, 27rem);
    padding: 0.35rem clamp(0.75rem, 3vw, 1.25rem) 0.5rem clamp(0.75rem, 3vw, 1.25rem);
    padding-inline-end: max(1.25rem, 8vw);
    margin-inline: 0;
}

/* Single horizontal rail through the vertical center (all dots aligned) */
.path-flow__rail--horizontal {
    position: absolute;
    left: clamp(0.75rem, 3vw, 1.25rem);
    right: max(1.25rem, 8vw);
    top: 50%;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 5px;
    background: rgba(96, 112, 80, 0.22);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.path-flow__rail-fill--horizontal {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--color-primary) 0%,
        var(--color-sage-muted) 52%,
        var(--color-accent-warm) 100%
    );
    transform-origin: left center;
}

.path-flow--enhanced .path-flow__rail-fill--horizontal {
    transform: scaleX(0);
    transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.path-flow--enhanced.is-activated .path-flow__rail-fill--horizontal {
    transform: scaleX(1);
}

.path-flow__steps--horizontal {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    align-items: stretch;
    align-self: stretch;
    min-height: clamp(20.5rem, 54vw, 27rem);
    gap: inherit;
}

/* Odd: card above the line · Even: card below */
.path-flow--zigzag .path-flow__step {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-items: stretch;
    flex: 0 0 min(288px, 82vw);
    min-width: 0;
}

.path-flow--zigzag .path-flow__node {
    grid-row: 2;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
}

.path-flow--zigzag .path-flow__step:nth-child(odd) .path-flow__card {
    grid-row: 1;
    align-self: end;
    margin-bottom: 0.55rem;
}

.path-flow--zigzag .path-flow__step:nth-child(even) .path-flow__card {
    grid-row: 3;
    align-self: start;
    margin-top: 0.55rem;
}

.path-flow__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 3px solid var(--color-primary);
    opacity: 0.45;
    transform: scale(0.92);
    transition:
        transform 0.45s cubic-bezier(0.34, 1.35, 0.64, 1),
        box-shadow 0.4s ease,
        border-color 0.3s ease,
        opacity 0.4s ease;
}

.path-flow__step.is-inview .path-flow__dot {
    opacity: 1;
    transform: scale(1.12);
    box-shadow: 0 0 0 6px rgba(96, 112, 80, 0.2);
    border-color: var(--color-primary-hover);
}

/* Timeline cards: high contrast on sage sections + editorial layout */
.path-flow__card {
    --path-card-accent: linear-gradient(
        180deg,
        var(--color-primary) 0%,
        var(--color-sage) 100%
    );
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: min(288px, 82vw);
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid rgba(44, 50, 40, 0.09);
    border-radius: var(--radius-lg);
    padding: clamp(1.2rem, 2.6vw, 1.55rem) clamp(1.15rem, 2.5vw, 1.45rem) clamp(1.15rem, 2.5vw, 1.45rem)
        clamp(1.35rem, 2.8vw, 1.65rem);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 18px 48px rgba(44, 50, 40, 0.1),
        0 6px 16px rgba(44, 50, 40, 0.05);
    transition:
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.4s ease,
        box-shadow 0.35s ease,
        border-color 0.25s ease;
}

.path-flow__card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--path-card-accent);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    pointer-events: none;
}

.education-section .path-flow__card {
    --path-card-accent: linear-gradient(
        180deg,
        var(--color-accent-warm) 0%,
        var(--color-primary) 55%,
        var(--color-sage) 100%
    );
}

/* Scroll-active: all cards stay visible; inactive = dimmed, active = full */
.path-flow--enhanced.path-flow--zigzag .path-flow__step:nth-child(odd) .path-flow__card {
    opacity: 0.44;
    transform: translateY(0) scale(0.97);
    transform-origin: 50% 100%;
    filter: none;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 8px 24px rgba(44, 50, 40, 0.06),
        0 3px 10px rgba(44, 50, 40, 0.04);
}

.path-flow--enhanced.path-flow--zigzag .path-flow__step:nth-child(odd).is-inview .path-flow__card {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 18px 48px rgba(44, 50, 40, 0.1),
        0 6px 16px rgba(44, 50, 40, 0.05);
}

.path-flow--enhanced.path-flow--zigzag .path-flow__step:nth-child(even) .path-flow__card {
    opacity: 0.44;
    transform: translateY(0) scale(0.97);
    transform-origin: 50% 0;
    filter: none;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 8px 24px rgba(44, 50, 40, 0.06),
        0 3px 10px rgba(44, 50, 40, 0.04);
}

.path-flow--enhanced.path-flow--zigzag .path-flow__step:nth-child(even).is-inview .path-flow__card {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 18px 48px rgba(44, 50, 40, 0.1),
        0 6px 16px rgba(44, 50, 40, 0.05);
}

.path-flow__hint {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.65rem 0.85rem;
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--color-text);
    font-weight: 500;
    letter-spacing: 0.03em;
    opacity: 0.88;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(96, 112, 80, 0.16);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.path-flow__hint-icon {
    flex-shrink: 0;
    margin-top: 0.12rem;
    color: var(--color-primary);
    opacity: 0.9;
}

.path-flow__hint-icon svg {
    display: block;
}

@media (max-width: 767px) {
    .path-flow__hint {
        font-size: 0.88rem;
        padding: 0.75rem 0.95rem;
        text-align: center;
        align-items: center;
    }

    .path-flow__hint-icon {
        margin-top: 0;
        animation: path-flow-hint-nudge 2.2s ease-in-out infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .path-flow__hint-icon {
        animation: none;
    }
}

@keyframes path-flow-hint-nudge {
    0%,
    100% {
        transform: translateY(0);
    }

    45% {
        transform: translateY(4px);
    }
}

.path-flow__progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.42rem;
    flex-wrap: wrap;
    padding: 0.15rem 0 0.1rem;
}

.path-flow__progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(96, 112, 80, 0.22);
    border: 1px solid rgba(96, 112, 80, 0.28);
    transition:
        transform 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}

.path-flow__progress-dot.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary-hover);
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(96, 112, 80, 0.2);
}

@media (min-width: 768px) {
    .path-flow__hint {
        margin-top: 0;
        text-align: center;
        align-items: flex-start;
        justify-content: center;
        padding: 0.55rem 0.75rem;
        font-size: 0.8rem;
        opacity: 0.76;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .path-flow__hint-icon {
        display: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    .path-flow__card:hover {
        border-color: rgba(96, 112, 80, 0.22);
    }

    .path-flow--enhanced.path-flow--zigzag .path-flow__step:not(.is-inview) .path-flow__card:hover {
        opacity: 0.62;
        transform: translateY(0) scale(0.99);
    }

    .path-flow--enhanced.path-flow--zigzag .path-flow__step:nth-child(odd).is-inview .path-flow__card:hover {
        transform: translateY(-3px) scale(1);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.95) inset,
            0 22px 56px rgba(44, 50, 40, 0.14),
            0 8px 20px rgba(44, 50, 40, 0.07);
    }

    .path-flow--enhanced.path-flow--zigzag .path-flow__step:nth-child(even).is-inview .path-flow__card:hover {
        transform: translateY(-3px) scale(1);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.95) inset,
            0 22px 56px rgba(44, 50, 40, 0.14),
            0 8px 20px rgba(44, 50, 40, 0.07);
    }
}

@media (prefers-reduced-motion: reduce) {
    .path-flow--enhanced .path-flow__rail-fill--horizontal {
        transform: scaleX(1);
        transition: none;
    }

    .path-flow__viewport {
        scroll-behavior: auto;
    }

    .path-flow--enhanced.path-flow--zigzag .path-flow__step:not(.is-inview) .path-flow__card {
        opacity: 0.5;
        transform: none;
    }

    .path-flow--enhanced.path-flow--zigzag .path-flow__step.is-inview .path-flow__card {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .path-flow__dot {
        transition: none;
    }

    .path-flow__step:not(.is-inview) .path-flow__dot {
        opacity: 0.5;
        transform: scale(0.95);
    }

    .path-flow__step.is-inview .path-flow__dot {
        transform: scale(1.05);
    }

    .path-flow__progress-dot {
        transition: none;
    }
}

/* Order: date (pill) → title → role → body (DOM is title, role, date, desc) */
.timeline-title {
    order: 1;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(1.05rem, 2.4vw, 1.2rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
    color: var(--color-primary);
}

.timeline-role {
    order: 2;
    font-weight: 600;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--color-text-muted);
    margin: 0 0 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(96, 112, 80, 0.12);
}

.timeline-date {
    order: 0;
    align-self: flex-start;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-primary);
    margin: 0 0 0.65rem;
    padding: 0.38rem 0.65rem;
    background: rgba(96, 112, 80, 0.1);
    border: 1px solid rgba(96, 112, 80, 0.14);
    border-radius: var(--radius-sm);
}

.timeline-description {
    order: 3;
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.88;
    line-height: 1.62;
    margin: 0;
}

/* Testimonials — compact glass carousel (brand greens + terracotta accent) */
.testimonials-section--carousel {
    position: relative;
    overflow: hidden;
    padding-block: clamp(1.7rem, 4.2vw, 2.85rem);
    background: linear-gradient(165deg, var(--color-dark-elevated) 0%, var(--color-primary) 45%, #556648 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.testimonials-section__glow {
    pointer-events: none;
    position: absolute;
    inset: -18% -12% auto;
    height: 78%;
    background: radial-gradient(
        ellipse 56% 48% at 50% 36%,
        rgba(184, 196, 171, 0.28) 0%,
        rgba(193, 127, 106, 0.1) 45%,
        transparent 68%
    );
}

.testimonials-section--carousel .container {
    position: relative;
    z-index: 1;
}

.testimonials-section--carousel .heading-serif--light {
    color: #f6f7f0;
    text-shadow: 0 0 32px rgba(143, 159, 130, 0.2);
}

.section-head--testimonials {
    margin-bottom: clamp(0.65rem, 2vw, 1.1rem) !important;
}

.testimonials-carousel-wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(36px, 44px) minmax(0, 1fr) minmax(36px, 44px);
    gap: clamp(0.25rem, 1.5vw, 0.65rem);
    align-items: center;
    margin-top: clamp(0.35rem, 1.2vw, 0.65rem);
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-nav {
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(247, 248, 240, 0.95);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}

.testimonials-nav:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(193, 127, 106, 0.55);
    color: #fff;
    box-shadow: 0 0 20px rgba(96, 112, 80, 0.35);
}

.testimonials-nav:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-dark-elevated), 0 0 0 4px rgba(244, 245, 236, 0.85);
}

.testimonials-nav:active {
    transform: scale(0.96);
}

.testimonials-carousel {
    width: 100%;
    max-width: 100%;
    padding: 0.2rem 0 1.85rem;
}

.testimonials-carousel__viewport {
    overflow: hidden;
    width: 100%;
    outline: none;
}

.testimonials-carousel__viewport:focus-visible {
    box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-primary);
    border-radius: var(--radius-sm);
}

.testimonials-carousel__track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(10px, 2vw, 20px);
    width: max-content;
    will-change: transform;
    transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonials-carousel__slide {
    flex: 0 0 min(268px, 76vw);
    width: min(268px, 76vw);
    max-width: min(268px, 100%);
    height: auto;
    transition:
        filter 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonials-carousel__slide:not(.is-active) {
    filter: blur(3px);
    opacity: 0.45;
    transform: scale(0.94);
}

.testimonials-carousel__slide.is-active {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
}

.testimonial-glass-card {
    margin: 0;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(0.95rem, 2.2vw, 1.15rem) clamp(0.95rem, 2.2vw, 1.1rem) clamp(1rem, 2.2vw, 1.15rem);
    background: linear-gradient(
        168deg,
        rgba(255, 255, 255, 0.11) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(44, 50, 40, 0.22) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 12px 32px rgba(30, 35, 28, 0.35),
        0 0 28px rgba(96, 112, 80, 0.12);
}

.testimonials-carousel__slide.is-active .testimonial-glass-card {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.16) inset,
        0 16px 40px rgba(30, 35, 28, 0.42),
        0 0 36px rgba(143, 159, 130, 0.2),
        0 0 48px rgba(193, 127, 106, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.testimonial-glass-card__avatar {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    color: var(--color-surface);
    background: linear-gradient(
        145deg,
        var(--color-primary-hover) 0%,
        var(--color-primary) 42%,
        var(--color-dark-elevated) 100%
    );
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.14),
        0 0 20px rgba(96, 112, 80, 0.45),
        0 0 28px rgba(193, 127, 106, 0.2);
}

.testimonial-glass-card__quote {
    flex: 1;
    font-style: normal;
    font-size: clamp(0.86rem, 2.1vw, 0.94rem);
    line-height: 1.52;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.7rem;
    font-family: var(--font-body);
}

.testimonial-glass-card__footer {
    margin-top: auto;
    width: 100%;
}

.testimonial-glass-card__name {
    display: block;
    font-style: normal;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    color: #f6f7f0;
    margin-bottom: 0.22rem;
}

.testimonial-glass-card__meta {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(247, 248, 240, 0.58);
}

.testimonials-carousel__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
}

.testimonials-carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.32);
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.testimonials-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.48);
}

.testimonials-carousel__dot.is-active {
    background: linear-gradient(135deg, var(--color-accent-warm) 0%, #d4a08e 100%);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(193, 127, 106, 0.55);
}

.testimonials-carousel__dot:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-dark-elevated), 0 0 0 4px rgba(244, 245, 236, 0.85);
}

@media (max-width: 520px) {
    /* Flatten carousel so viewport + dots + nav share one grid: no arrows over the cards */
    .testimonials-carousel-wrap {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.55rem 0.35rem;
        align-items: center;
        padding-inline: 0;
    }

    .testimonials-carousel {
        display: contents;
        width: auto;
        max-width: none;
        padding: 0;
    }

    .testimonials-carousel__viewport {
        grid-column: 1 / -1;
        grid-row: 1;
        padding: 0.15rem 0 0;
    }

    .testimonials-carousel__dots {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
        gap: 0.55rem;
        padding: 0.15rem 0;
    }

    .testimonials-carousel__dot {
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.5);
    }

    .testimonials-nav {
        display: flex;
        position: static;
        width: 2.5rem;
        height: 2.5rem;
        z-index: auto;
        transform: none;
    }

    .testimonials-nav--prev {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
    }

    .testimonials-nav--next {
        grid-column: 3;
        grid-row: 2;
        justify-self: start;
    }

    .testimonials-carousel__slide {
        flex: 0 0 min(268px, calc(100vw - 2.25rem));
        width: min(268px, calc(100vw - 2.25rem));
    }

    .testimonials-carousel__slide:not(.is-active) {
        filter: blur(2px);
        opacity: 0.5;
        transform: scale(0.96);
    }

    .testimonial-glass-card__quote {
        font-size: clamp(0.84rem, 3.6vw, 0.92rem);
        line-height: 1.55;
    }

    .testimonials-nav:active {
        transform: scale(0.96);
    }

    .testimonials-section--carousel {
        padding-block: clamp(1.35rem, 4vw, 2.2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-carousel__track {
        transition: none;
    }

    .testimonials-carousel__slide {
        transition: none;
    }

    .testimonials-carousel__slide:not(.is-active) {
        filter: none;
        opacity: 0.75;
        transform: none;
    }

    .testimonials-carousel__slide.is-active {
        filter: none;
        opacity: 1;
    }
}

/* Contact — split + form panel */
.contact-split {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: start;
}

@media (min-width: 900px) {
    .contact-split {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        align-items: stretch;
    }
}

.contact-split-lead {
    font-size: 0.98rem;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.72);
    margin-top: var(--spacing-sm);
    max-width: 30rem;
}

.metalab-contact-links {
    list-style: none;
    margin-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.metalab-contact-link {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: var(--spacing-sm);
    row-gap: 0.35rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.25s ease;
}

.metalab-contact-link:hover {
    padding-left: 0.35rem;
}

.metalab-contact-link:hover .service-link-arrow {
    transform: translate(3px, -3px);
    color: var(--color-surface);
}

.metalab-contact-label {
    grid-column: 1 / -1;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.metalab-contact-value {
    grid-column: 1;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    min-width: 0;
}

.metalab-contact-link .service-link-arrow {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
}

.contact-note--on-dark {
    margin-top: var(--spacing-md);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
}

.contact-form-panel {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: clamp(1.2rem, 3vw, 1.75rem);
    box-shadow: var(--shadow-float);
    border: 1px solid var(--color-border);
}

.contact-form-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
}

.contact-form-mailto-note {
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 var(--spacing-sm);
    max-width: 32rem;
}

.contact-form {
    position: relative;
}

.contact-form-success {
    font-size: 0.9rem;
    line-height: 1.45;
    padding: 0.65rem 0.85rem;
    margin-bottom: var(--spacing-sm);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(168, 218, 240, 0.45);
    background: rgba(168, 218, 240, 0.12);
    color: rgba(255, 255, 255, 0.95);
}

.contact-form-success[hidden] {
    display: none !important;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(96, 112, 80, 0.12);
}

.submit-button {
    width: 100%;
    margin-top: 0.35rem;
    padding: 1.05rem 2rem;
    min-height: 3.35rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(0.88rem, 1.05vw, 1.02rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.submit-button:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
}

@media (min-width: 900px) {
    .submit-button {
        width: auto;
        min-width: 260px;
    }
}

/* Standalone privacy page */
.privacy-page {
    padding: clamp(5rem, 12vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
    min-height: 55vh;
    background: var(--color-bg-alt);
}

.privacy-inner .section-head {
    margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

.privacy-content {
    max-width: 40rem;
}

.privacy-content p {
    margin: 0 0 1rem;
    line-height: 1.68;
    color: var(--color-text);
}

.privacy-lead {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.privacy-heading {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 2rem 0 0.65rem;
}

.privacy-heading:first-of-type {
    margin-top: 1.35rem;
}

.privacy-content a:not(.cta-button) {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.privacy-content a:not(.cta-button):hover {
    color: var(--color-primary-hover);
}

.privacy-back {
    margin-top: 2.5rem !important;
}

/* Cookie / privacy notice (informational; language pref uses localStorage) */
html.cookie-consent-dismissed .cookie-consent {
    display: none !important;
}

.cookie-consent {
    position: fixed;
    z-index: 10000;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem max(var(--spacing-sm), 1rem) calc(0.75rem + env(safe-area-inset-bottom, 0));
    background: rgba(45, 52, 40, 0.96);
    color: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
}

.cookie-consent__inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
}

@media (min-width: 640px) {
    .cookie-consent__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}

.cookie-consent__text {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    max-width: 52rem;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    flex-shrink: 0;
}

.cookie-consent__link {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.cookie-consent__link:hover {
    color: #fff;
}

.cookie-consent__btn {
    cursor: pointer;
    border: none;
    border-radius: var(--radius-md, 8px);
    padding: 0.45rem 1rem;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: var(--color-surface, #faf9f6);
    color: var(--color-text, #2c3228);
    transition: background 0.2s ease, transform 0.2s ease;
}

.cookie-consent__btn:hover {
    background: #fff;
}

.cookie-consent__btn:focus-visible {
    outline: 2px solid var(--color-accent-warm, #c9a227);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent__btn {
        transition: none;
    }
}

/* Footer */
.main-footer {
    background: #3d4836;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.28rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.22rem;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-inner {
        flex-direction: row;
        text-align: left;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.footer-logo {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.9;
}

.footer-copy {
    font-size: 0.72rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.5);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .footer-nav {
        justify-content: flex-end;
    }
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: rgba(255, 255, 255, 0.95);
}

