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

:root {
    --ink: #0D1117;
    --slate: #2E3440;
    --cream: #FFF8F0;
    --terracotta: #C9A661;
    --forest: #3E5641;
    --gold: #C9A661;
    --gold-rgb: 201, 166, 97;
    --stone: #9B8F7E;
}

body.home {
    --terracotta: #C9A661;
    --forest: #3E5641;
    --gold: #C9A661;
    --gold-rgb: 201, 166, 97;
    --stone: #9B8F7E;
    --home-hero-image-x: 64%;
    --home-hero-image-y: 52%;
    --home-hero-image-size: cover;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

body.home .icon {
    color: var(--gold);
}

body.home .split-section .feature-list li::before {
    color: var(--gold);
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 100;
}


.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

h1 {
    word-spacing: 0px;
}
/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    -webkit-backdrop-filter: blur(50px);
    background: rgba(243, 243, 243, 0);
    transition: background-color 0.35s ease 0.18s, transform 0.4s ease, opacity 0.3s ease;
    
}

nav.scrolled {
    background-color: rgba(0, 0, 0, 0.5);
    
}

nav.nav-hidden {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.nav-open .nav-toggle {
    transform: rotate(90deg);
}

.nav-toggle-bar {
    width: 22px;
    height: 2px;
    background: var(--cream);
    display: block;
    transition: all 0.3s ease;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--cream);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.4s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.logo span {
    line-height: 1;
    text-shadow: 0 4px 16px rgba(13, 17, 23, 0.6);
    display: inline-block;
    color: var(--cream);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links li {
    flex-shrink: 0;
}

.locale-switcher {
    display: inline-flex;
    align-items: center;
}

.locale-switcher-inner {
    display: inline-flex;
    border: 1px solid rgba(255, 248, 240, 0.26);
    background: rgba(13, 17, 23, 0.28);
    align-items: center;
}

.locale-button {
    min-width: 3rem;
    padding: 0.5rem 0.7rem;
    border: 0;
    background: transparent;
    color: var(--cream);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.locale-button + .locale-button {
    border-left: 1px solid rgba(255, 248, 240, 0.18);
}

.locale-button:hover {
    opacity: 0.72;
}

.locale-button.is-active {
    background: var(--cream);
    color: var(--ink);
    opacity: 1;
}

.nav-links a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-links .nav-cta {
    padding: 0.55rem 1.1rem;
    border: 1px solid rgba(255, 248, 240, 0.7);
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: all 0.6s ease;
}

@media (max-width: 1080px) and (min-width: 901px) {
    nav {
        padding: 1.2rem 2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.8rem;
        letter-spacing: 0.8px;
    }

    .nav-links .nav-cta {
        padding: 0.5rem 0.9rem;
    }
}

.nav-links .nav-cta:hover {
    opacity: 1;
    color: var(--ink);
    background: var(--cream);
    border-color: var(--cream);
}

/* Hero Section - Full Bleed Editorial */
.hero {
    min-height: 100vh;
    position: relative;
    background: var(--ink);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(13, 17, 23, 0.3) 0%, rgba(13, 17, 23, 0.6) 100%),
        url("images/buhol.PNG") var(--home-hero-image-x, 50%) var(--home-hero-image-y, 50%)/var(--home-hero-image-size, cover) no-repeat,
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(var(--gold-rgb), 0.03) 10px,
            rgba(var(--gold-rgb), 0.03) 11px
        );
    animation: subtleShift 20s ease-in-out infinite;
}

@keyframes subtleShift {
    0%, 100% { transform: scale(1.02) rotate(0deg); }
    50% { transform: scale(1.07) rotate(0.5deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1100px;
    padding: 0 2rem;
    margin-bottom: 0;
}

.hero-label {
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
    font-weight: 600;
    animation: fadeIn 1s ease-out 0.3s both;
}

body.home .hero-label {
    text-shadow: 0 1px 8px rgba(13, 17, 23, 0.2);
}

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

.hero h1 {
    font-size: clamp(3rem, 9vw, 7.25rem);
    line-height: 1.04;
    margin-bottom: 2.5rem;
    color: var(--cream);
    font-weight: 900;
    letter-spacing: -2.2px;
    animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
    text-transform: uppercase;
    text-align: center;
    display: block;
    width: 100%;
}

.hero h1 .hero-line {
    display: block;
    width: max-content;
    white-space: nowrap;
    text-align: center;
    margin-left: 50%;
    transform: translateX(-50%);
}

body.home .hero h1 {
    text-shadow: 0 2px 12px rgba(13, 17, 23, 0.22);
}

.about-hero h1,
.page-hero h1,
.process-hero h1,
.projects-hero h1 {
    text-shadow: 0 2px 12px rgba(13, 17, 23, 0.22);
}

.about-hero h1,
.page-hero h1,
.process-hero h1,
.projects-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
}

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

.hero-tagline {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: rgba(255, 248, 240, 0.8);
    margin-bottom: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.about-hero .hero-label,
.page-hero .hero-label,
.process-hero .hero-label,
.projects-hero .hero-label {
    text-shadow: 0 1px 8px rgba(13, 17, 23, 0.2);
}

.about-hero .hero-tagline,
.page-hero .hero-tagline,
.process-hero .hero-tagline,
.projects-hero .hero-tagline {
    text-shadow: 0 1px 8px rgba(13, 17, 23, 0.2);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.btn {
    padding: 1.25rem 3rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 0;
    isolation: isolate;
    background: transparent;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: -2;
}

.btn-light {
    color: var(--ink);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.btn-light::before,
.btn-ghost.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-light::after {
    background: var(--cream);
}

.btn-light:hover::before,
.btn-ghost.btn-outline:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-light:hover {
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.btn-ghost {
    border: 2px solid var(--cream);
    color: var(--cream);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--ink);
    transform: translateY(-2px);
}

.btn-ghost.btn-outline {
    border-color: var(--ink);
    color: var(--ink);
    box-shadow: 0 12px 30px rgba(13, 17, 23, 0.12);
}

.btn-ghost.btn-outline::after {
    background: var(--cream);
}

.btn-no-fill::before {
    content: none;
}

.hero-stats {
    position: relative;
    z-index: 10;
    margin: 2.5rem 0 3.5rem;
    display: flex;
    gap: 4rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1.5s ease-out 0.8s both;
}

body.home .hero-stats {
    gap: 1rem;
    opacity: 1;
    visibility: visible;
    animation: none;
    transition: opacity 0.55s ease, visibility 0s linear;
}

body.home .hero-stat-card {
    min-width: 150px;
    padding: 0.85rem 1rem;
    border: none;
    background: transparent;
    backdrop-filter: none;
    text-align: center;
}

body.home .hero-stat-value {
    font-size: 1.5rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    color: var(--gold);
    text-shadow: 0 1px 6px rgba(13, 17, 23, 0.24);
    display: block;
    line-height: 1;
    margin-bottom: 0.35rem;
}

body.home .hero-stat-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 248, 240, 0.72);
    text-shadow: 0 1px 6px rgba(13, 17, 23, 0.2);
    display: block;
}

body.home .hero-stat-value,
body.home .hero-stat-label {
    opacity: 1;
    visibility: visible;
}

body.home .hero-label,
body.home .hero-cta {
    animation: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s ease, visibility 0s linear;
}

html.js body.home.home-intro-pending nav,
html.js body.home.home-intro-pending .hero-label,
html.js body.home.home-intro-pending .hero-cta,
html.js body.home.home-intro-pending .hero-stats {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

html.js body.home [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 1.02s cubic-bezier(0.16, 1, 0.3, 1), transform 1.14s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

html.js body.home [data-reveal="left"] {
    transform: translate3d(-44px, 0, 0);
}

html.js body.home [data-reveal="right"] {
    transform: translate3d(44px, 0, 0);
}

html.js body.home .split-image[data-reveal="left"] {
    transform: translate3d(-36px, 0, 0);
}

html.js body.home .split-image[data-reveal="right"] {
    transform: translate3d(36px, 0, 0);
}

html.js body.home [data-reveal].is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

body.reveal-ready:not(.home):not(.projects) [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

body.reveal-ready:not(.home):not(.projects) [data-reveal="left"] {
    transform: translate3d(-34px, 0, 0);
}

body.reveal-ready:not(.home):not(.projects) [data-reveal="right"] {
    transform: translate3d(34px, 0, 0);
}

body.reveal-ready:not(.home):not(.projects) [data-reveal].is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.stat {
    text-align: center;
    color: var(--cream);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 400;
    font-family: 'Outfit', sans-serif;
    color: var(--gold);
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Split Content Section */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: var(--cream);
}

.split-section.split-problem {
    position: relative;
    z-index: 0;
    padding-bottom: 0;
}

.split-section.split-solution {
    position: relative;
    z-index: 0;
    margin-top: 0;
}

.split-image {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: clamp(1.25rem, 2.8vw, 2.5rem);
    background: var(--cream);
}

.split-image::before {
    content: '';
    position: absolute;
    top: clamp(1.25rem, 2vw, 1.75rem);
    bottom: clamp(1.25rem, 2vw, 1.75rem);
    left: clamp(1rem, 2vw, 1.5rem);
    width: 1px;
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0) 0%, rgba(var(--gold-rgb), 0.45) 18%, rgba(var(--gold-rgb), 0.45) 82%, rgba(var(--gold-rgb), 0) 100%);
    pointer-events: none;
}

.split-image.solution::before {
    left: auto;
    right: clamp(1rem, 2vw, 1.5rem);
}

.split-image.problem {
    justify-content: flex-end;
}

.split-image.solution {
    justify-content: flex-start;
}

.split-image-media {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 860px);
    height: auto;
    border: 1px solid rgba(13, 17, 23, 0.08);
    box-shadow: 0 30px 70px rgba(13, 17, 23, 0.12);
}

@media (min-width: 1201px) {
    .split-section.split-problem .split-content,
    .split-section.split-solution .split-content {
        padding: 4.5rem 4rem;
    }

    .split-section.split-problem .split-content h2,
    .split-section.split-solution .split-content h2 {
        font-size: clamp(2.2rem, 4vw, 3.4rem);
        margin-bottom: 1.25rem;
    }

    .split-section.split-problem .split-content p,
    .split-section.split-solution .split-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .split-section.split-problem .feature-list,
    .split-section.split-solution .feature-list {
        margin: 1.5rem 0 0;
    }

    .split-section.split-problem .feature-list li,
    .split-section.split-solution .feature-list li {
        padding: 0.75rem 0;
        font-size: 0.96rem;
    }
}

.split-content {
    padding: 8rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.split-content h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--ink);
    letter-spacing: -1px;
}

.split-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--slate);
    margin-bottom: 1.5rem;
}

.split-cta {
    margin-top: 2.5rem;
}

.feature-list {
    list-style: none;
    margin: 3rem 0;
}

.feature-list li {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(46, 52, 64, 0.1);
    font-size: 1rem;
    color: var(--slate);
    display: flex;
    align-items: start;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.feature-list li:hover {
    transform: translateX(8px);
}

.feature-list li::before {
    content: "\2022";
    color: var(--forest);
    font-weight: 700;
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* Process Section */
.process-section {
    background: var(--cream);
    padding: 9rem 3rem 10rem;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.process-section::before {
    content: none;
}

.process-header {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.process-header h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--ink);
    letter-spacing: -1px;
}

.process-header p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--slate);
}

.process-ticker {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    z-index: 1;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
}

.process-ticker.is-dragging {
    cursor: grabbing;
}

.process-ticker.is-dragging,
.process-ticker.is-dragging * {
    user-select: none;
}

.process-ticker-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding: 0 1.5rem;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.process-ticker-item {
    flex: 0 0 clamp(280px, 30vw, 460px);
    aspect-ratio: 15 / 16;
    border: 0;
    background: var(--ink);
    overflow: hidden;
    margin: 0;
}

.process-ticker-item.is-video {
    flex-basis: clamp(460px, 50vw, 760px);
    aspect-ratio: 2 / 1;
}

.process-ticker-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid rgba(13, 17, 23, 0.12);
    counter-reset: process-step;
    --process-number-col: 110px;
    position: relative;
    z-index: 1;
}

.process-step {
    counter-increment: process-step;
    padding: 0;
    border-bottom: 1px solid rgba(13, 17, 23, 0.12);
    position: relative;
    transition: background 0.3s ease;
}

.process-step:hover {
    background: rgba(13, 17, 23, 0.02);
}

.process-step summary {
    display: grid;
    grid-template-columns: var(--process-number-col) 1fr auto;
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem 0;
    cursor: pointer;
    list-style: none;
}

.process-step summary::-webkit-details-marker {
    display: none;
}

.process-step summary::before {
    content: "0" counter(process-step);
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 700;
    align-self: start;
}

.process-step summary::after {
    content: "+";
    font-size: 1.6rem;
    color: var(--gold);
    transition: transform 0.35s ease;
}

.process-step[open] summary::after {
    transform: rotate(45deg);
}

.process-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
}

.process-step p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--slate);
    max-width: 48rem;
    margin: 0;
    padding: 0 0 2.5rem var(--process-number-col);
}

.process-cta {
    margin-top: 5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-section .btn-ghost {
    box-shadow: 0 12px 30px rgba(13, 17, 23, 0.12);
}

.process-section .btn-ghost:hover {
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(13, 17, 23, 0.2);
}

/* Projects Gallery - Magazine Style */
.projects-section {
    background: var(--ink);
    padding: 8rem 0;
    position: relative;
    z-index: 3;
}

.projects-section::before {
    content: none;
}

.projects-header {
    text-align: center;
    padding: 0 2rem 6rem;
    position: relative;
    z-index: 10;
}

.projects-header h2 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: var(--cream);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.projects-header p {
    font-size: 1.25rem;
    color: rgba(255, 248, 240, 0.6);
    max-width: 700px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    padding: 0 3rem;
    max-width: 1600px;
    margin: 0 auto;
}

.section-cta {
    margin-top: 3.5rem;
    text-align: center;
}

.section-cta-dark {
    margin-top: 4rem;
}

.project-large {
    grid-column: span 8;
    height: 600px;
}

.project-small {
    grid-column: span 4;
    height: 600px;
}

.project-medium {
    grid-column: span 6;
    height: 500px;
}

.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--slate);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background-size: cover;
    background-position: center;
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(62, 86, 65, 0.6) 0%, rgba(13, 17, 23, 0.8) 100%);
    z-index: 1;
    transition: opacity 0.6s ease;
}

.project-card:hover::before {
    opacity: 0.5;
}

.project-card:hover {
    transform: scale(1.07);
}

.project-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    z-index: 2;
    color: var(--cream);
}

.project-category {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-card-content h3 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--cream);
}

.project-card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 248, 240, 0.8);
}

.project-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2000;
}

.project-modal.open {
    display: flex;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(4px);
}

.project-modal-content {
    position: relative;
    background: var(--cream);
    color: var(--ink);
    max-width: 900px;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(13, 17, 23, 0.4);
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
}

.project-modal-media {
    background: var(--slate);
    background-size: cover;
    background-position: center;
    min-height: 320px;
}

.project-modal-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.project-modal-category {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

.project-modal-summary,
.project-modal-details {
    color: var(--slate);
    line-height: 1.8;
}

.project-modal-testimonial {
    font-style: italic;
    color: var(--ink);
    border-left: 2px solid var(--gold);
    padding-left: 1rem;
}

.project-modal-client {
    font-weight: 600;
    color: var(--slate);
}

.project-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    border: 1px solid rgba(13, 17, 23, 0.2);
    background: rgba(255, 248, 240, 0.9);
    color: var(--ink);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

.project-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: rgba(255, 248, 240, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.project-card.project-villa {
    background-image: url("images/cover2.webp");
}

.project-card.project-club {
    background-image: url("images/cover5.webp");
}

.project-card.project-hotel {
    background-image: url("images/cover7.webp");
}

.project-card.project-marina {
    background-image: url("images/cover8.webp");
}

/* Materials Section - Bold Layout */
.materials-section {
    background: var(--cream);
    padding: 10rem 3rem;
    position: relative;
    z-index: 3;
}

.materials-intro {
    max-width: 900px;
    margin: 0 auto 6rem;
    text-align: center;
}

.materials-intro h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.materials-intro p {
    font-size: 1.25rem;
    color: var(--slate);
    line-height: 1.8;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.material-card {
    display: block;
    background: var(--ink);
    color: var(--cream);
    text-decoration: none;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.material-card.mat1,
.material-card.mat2,
.material-card.mat3 {
    --material-image: none;
}

.material-card.mat1 {
    --material-image: url("images/stanheavy.JPG");
}

.material-card.mat2 {
    --material-image: url("images/stanlight.JPG");
}

.material-card.mat3 {
    --material-image: url("images/covermax.JPG");
}

.material-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--material-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.material-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.6) 0%, rgba(13, 17, 23, 0.9) 100%);
    pointer-events: none;
}

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

.material-card:hover {
    transform: translateY(-8px);
}

.material-card:hover::before,
.material-card:focus-within::before {
    transform: scale(1.07);
}

.material-name {
    font-size: 1.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--cream);
}

.material-specs {
    list-style: none;
    margin: 2rem 0;
}

.material-specs li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 248, 240, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.material-specs .spec-label {
    color: rgba(255, 248, 240, 0.6);
}

.material-specs .spec-value {
    font-weight: 600;
    color: var(--cream);
}

.material-use {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 248, 240, 0.7);
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--ink);
    padding: 8rem 0;
    position: relative;
    z-index: 3;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 5rem;
}

.testimonials-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--cream);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.testimonials-header p {
    font-size: 1.25rem;
    color: rgba(255, 248, 240, 0.6);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.testimonial-card {
    background: rgba(255, 248, 240, 0.05);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 248, 240, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 248, 240, 0.08);
}

.testimonial-card.featured {
    background: rgba(255, 248, 240, 0.05);
    border-color: rgba(255, 248, 240, 0.1);
    transform: scale(1.05);
}

.testimonial-card.featured:hover {
    background: rgba(255, 248, 240, 0.08);
    transform: scale(1.05) translateY(-8px);
}

.testimonial-rating {
    color: var(--gold);
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1;
}

.testimonial-text {
    color: rgba(255, 248, 240, 0.9);
    line-height: 1.8;
    font-size: 1.05rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 248, 240, 0.1);
}

.testimonial-author strong {
    color: var(--cream);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: rgba(255, 248, 240, 0.6);
    font-size: 0.9rem;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
    padding: 4rem 3rem;
    background: rgba(255, 248, 240, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 248, 240, 0.1);
}

.trust-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trust-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--gold);
    line-height: 1;
}

.trust-label {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 248, 240, 0.7);
}

/* CTA Section - Dramatic */
.cta-section {
    background: var(--forest);
    padding: 12rem 3rem;
    position: relative;
    overflow: hidden;
    z-index: 3;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 17, 23, 0.45) 0%, rgba(13, 17, 23, 0.7) 100%),
        url("images/cover8.webp") center/cover no-repeat;
    filter: blur(6px);
    transform: scale(1.05);
    z-index: 0;
}

.cta-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.cta-content h2 {
    font-size: clamp(3rem, 7vw, 6rem);
    color: var(--cream);
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.cta-content p {
    font-size: 1.5rem;
    color: rgba(255, 248, 240, 0.8);
    margin-bottom: 4rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: var(--ink);
    color: rgba(255, 248, 240, 0.7);
    padding: 6rem 3rem 3rem;
    position: relative;
    z-index: 3;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--cream);
    margin-bottom: 1.5rem;
}

.footer-brand p {
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 248, 240, 0.1);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-contact strong {
    color: var(--gold);
}

.footer-section h4 {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 248, 240, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.3s, transform 0.3s;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--cream);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 248, 240, 0.1);
    padding-top: 3rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 248, 240, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .hero-background,
    .about-hero::before,
    .materials-hero::before,
    .process-hero .hero-video,
    .projects-hero-background,
    .quote .page-hero::before {
        animation: none !important;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .split-section {
        grid-template-columns: 1fr;
    }

    .split-section.split-problem {
        position: relative;
        padding-bottom: 0;
    }

    .split-section.split-solution {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .split-image {
        min-height: 0;
        padding: 1.5rem;
        justify-content: center;
    }

    .split-content {
        padding: 6rem 3rem;
    }

    .split-image::before {
        display: none;
    }

    .split-image-media {
        width: 100%;
        max-width: 880px;
        box-shadow: none;
    }

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

    .project-large,
    .project-small,
    .project-medium {
        grid-column: span 1;
        height: 500px;
    }

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

    .process-steps {
        --process-number-col: 90px;
    }

    .process-ticker-track {
        padding: 0 2rem;
    }

    .process-ticker-item {
        flex-basis: clamp(260px, 42vw, 420px);
    }

    .process-ticker-item.is-video {
        flex-basis: clamp(360px, 68vw, 620px);
    }

    .process-step summary {
        gap: 1.5rem;
    }


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

    .testimonial-card.featured {
        transform: scale(1);
    }

    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .project-modal-content {
        grid-template-columns: 1fr;
    }

    .project-modal-body {
        padding: 2rem;
    }
}

@media (max-width: 1100px) {
    body:not(.home) .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .hero-content {
        margin-bottom: 0;
    }
}

@media (max-width: 900px) {
    body.home {
        --home-hero-image-x: 68%;
        --home-hero-image-y: 50%;
        --home-hero-image-size: cover;
    }

    body.home .hero-background {
        background:
            linear-gradient(135deg, rgba(13, 17, 23, 0.4) 0%, rgba(13, 17, 23, 0.7) 100%),
            url("images/mobilehero.webp") var(--home-hero-image-x, 50%) var(--home-hero-image-y, 50%)/var(--home-hero-image-size, cover) no-repeat,
            repeating-linear-gradient(
                45deg,
                transparent,
                transparent 10px,
                rgba(var(--gold-rgb), 0.03) 10px,
                rgba(var(--gold-rgb), 0.03) 11px
            );
        animation: none;
        transform: scale(1.03);
    }

    nav {
        padding: 1rem 1.5rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        padding: 1.5rem 0;
        background: rgba(13, 17, 23, 0.95);
        border-bottom: 1px solid rgba(255, 248, 240, 0.08);
        display: none;
    }

    body.nav-open .nav-links {
        display: flex;
    }

    .locale-switcher {
        width: 100%;
        justify-content: center;
        top: 0;
    }

    .locale-switcher-inner {
        width: calc(100% - 3rem);
        max-width: 14rem;
    }

    .locale-button {
        flex: 1 1 50%;
    }

    body.home .hero {
        justify-content: center;
        min-height: 100vh;
        min-height: 100svh;
        height: 100svh;
        padding: 0 1.5rem;
    }

    body.home .hero-content {
        position: absolute;
        inset: 0;
        z-index: 10;
        margin-top: 0;
        padding: 4.6rem 2rem 0;
        pointer-events: none;
    }

    body.home .hero-label {
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 3rem);
        z-index: 1;
        margin-bottom: 0;
        letter-spacing: 2.5px;
        text-align: center;
    }

    body.home .hero h1 {
        position: absolute;
        top: 46%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100% - 3rem);
        font-size: clamp(3.35rem, 14vw, 4.5rem);
        letter-spacing: -1.4px;
        margin-bottom: 0;
        text-align: center;
        line-height: 1.02;
        animation: none;
    }

    html[lang="es"] body.home .hero h1 {
        top: 47%;
        width: min(calc(100% - 2rem), 28rem);
        font-size: clamp(2.8rem, 12vw, 3.45rem);
        letter-spacing: -1.2px;
        line-height: 0.94;
    }

    html[lang="es"] body.home .hero h1 .hero-line {
        width: 100%;
        white-space: normal;
        text-wrap: balance;
        margin-left: 0;
        transform: none;
    }

    body.home .hero-cta {
        position: absolute;
        left: 50%;
        bottom: 10.5rem;
        transform: translateX(-50%);
        z-index: 12;
        width: auto;
        margin-top: 0;
        animation: none;
    }

    body.home .hero-cta .btn {
        padding: 0.85rem 1.7rem;
        font-size: 0.72rem;
        letter-spacing: 1.1px;
    }

    body.home .hero-stats {
        margin: 0;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.65rem;
        justify-content: space-between;
        width: min(calc(100% - 3rem), 460px);
        align-items: flex-start;
        position: absolute;
        left: 50%;
        bottom: 4.25rem;
        transform: translateX(-50%);
        z-index: 12;
        animation: none;
    }

    body.home .hero-stats .hero-stat-card {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        padding: 0.6rem 0.4rem;
    }

    body.home .hero-stats .hero-stat-value {
        font-size: 1.25rem;
        margin-bottom: 0;
        line-height: 1;
    }

    body.home .hero-stats .hero-stat-label {
        letter-spacing: 0.7px;
        font-size: 0.62rem;
        line-height: 1.2;
        min-height: 2.4em;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        text-align: center;
    }

    .split-content {
        padding: 4rem 2rem;
    }

    body.home .split-section.split-solution .split-content {
        order: 1;
    }

    body.home .split-section.split-solution .split-image.solution {
        order: 2;
    }

    .projects-section,
    .process-section,
    .materials-section,
    .testimonials-section,
    .cta-section {
        padding: 6rem 1.5rem;
    }

    body.home .projects-section,
    body.home .testimonials-section {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    body.home .projects-grid {
        padding: 0;
        gap: 1rem;
    }

    body.home .project-card-content {
        padding: 2rem;
    }

    body.home .testimonials-container {
        padding: 0;
    }

    body.home .testimonials-grid {
        gap: 1rem;
        margin-bottom: 3.5rem;
    }

    body.home .testimonials-grid.home-mobile-carousel {
        margin-bottom: 0.35rem;
    }

    body.home .testimonial-card {
        padding: 2rem;
    }

    body.home .home-mobile-carousel {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0.95rem 0.45rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.home .home-mobile-carousel::-webkit-scrollbar {
        display: none;
    }

    body.home #projectsGrid.home-mobile-carousel .project-card,
    body.home .materials-grid.home-mobile-carousel .material-card,
    body.home .testimonials-grid.home-mobile-carousel .testimonial-card {
        flex: 0 0 86%;
        min-width: 0;
        scroll-snap-align: start;
    }

    body.home #projectsGrid.home-mobile-carousel .project-card {
        grid-column: auto !important;
        height: 460px;
    }

    body.home .materials-grid.home-mobile-carousel .material-card {
        min-height: 100%;
    }

    body.home .testimonials-grid.home-mobile-carousel .testimonial-card.featured {
        background: rgba(255, 248, 240, 0.05);
        border-color: rgba(255, 248, 240, 0.1);
        transform: none;
    }

    body.home .testimonials-grid.home-mobile-carousel .testimonial-card.featured:hover {
        background: rgba(255, 248, 240, 0.08);
        transform: none;
    }

    body.home .mobile-carousel-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        margin-top: 0.65rem;
    }

    body.home .mobile-carousel-dot {
        width: 6px;
        height: 6px;
        padding: 0;
        border: 0;
        background: rgba(255, 248, 240, 0.35);
        opacity: 0.85;
    }

    body.home .materials-section .mobile-carousel-dot {
        background: rgba(13, 17, 23, 0.3);
    }

    body.home .testimonials-section .mobile-carousel-dots {
        margin-top: 0;
        margin-bottom: 1rem;
    }

    body.home .mobile-carousel-dot.is-active {
        background: var(--gold);
        opacity: 1;
    }

    .process-steps {
        max-width: 100%;
    }

    .process-steps {
        --process-number-col: 0px;
    }

    .process-ticker-track {
        gap: 0.6rem;
        padding: 0 1rem;
    }

    .process-ticker-item {
        flex-basis: 62vw;
    }

    .process-ticker-item.is-video {
        flex-basis: 74vw;
    }

    .process-step summary {
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
        padding: 2rem 0;
    }

    .process-step summary::before {
        grid-column: 1 / -1;
        font-size: 1.5rem;
    }

    .process-step p {
        padding-left: 0;
    }


    .trust-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
