/* ================================================================
   DELTA COSTRUZIONI — Design System
   Aesthetic: Structural Precision
   Direction: Industrial authority — premium construction, not interior design
   DFII Score: 14 (Excellent)

   Differentiation Anchor:
   "Recognizable by the diagonal hero split, ghost oversized step
    numbers, and bold sans-serif structural typography on a cool
    concrete surface — not a luxury residential studio."
================================================================ */

/* ----------------------------------------------------------------
   DESIGN TOKENS
   Palette shift: warm cream → cool concrete // golden amber → industrial copper
---------------------------------------------------------------- */
:root {
    /* Color story — cool, structural, concrete */
    --ink:        #111110;      /* near black — structural iron */
    --steel:      #3A3A38;      /* dark structural gray */
    --cement:     #767672;      /* neutral concrete — muted text */
    --cement-lt:  #CECEC9;      /* cool divider lines */
    --amber:      #C46A1A;      /* industrial copper — construction, not jewelry */
    --amber-lt:   #D97B22;      /* hover state */
    --paper:      #F2F2F0;      /* cool concrete white — NO warm tint */
    --paper-dk:   #E6E6E3;      /* slightly darker surface */
    --void:       #CBCBC8;      /* light concrete gray — cleaner, more airy */

    /* Typography — bold sans primary, serif reserved for quotes only */
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans:  'DM Sans', system-ui, sans-serif;

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --dur:  0.7s;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--void);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

address { font-style: normal; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Grain removed — was adding luxury-magazine feel incompatible with construction aesthetic */

/* ----------------------------------------------------------------
   NAVIGATION
   Not a full-width opaque bar: starts transparent, scrolled = frosted
---------------------------------------------------------------- */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3.5rem;
    background: rgba(242, 238, 231, 0.96);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 1px 0 transparent;
    transition: background var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                padding var(--dur) var(--ease);
}

.site-nav.scrolled {
    box-shadow: 0 1px 0 var(--cement-lt);
    padding: 1rem 3.5rem;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    letter-spacing: 0.12em;
    cursor: pointer;
}

.nav-brand-delta {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--ink);
    transition: color 0.3s;
}

.nav-brand-sub {
    font-size: 0.58rem;
    color: var(--amber);
    letter-spacing: 0.22em;
    margin-top: 3px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.55;
    position: relative;
    transition: opacity 0.25s, color 0.25s;
}

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

.nav-links a[aria-current="page"] {
    opacity: 1;
    color: var(--amber);
}

.nav-links a[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--amber);
    border-radius: 2px;
}

.nav-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    cursor: pointer;
}

.nav-phone-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--cement);
    font-weight: 500;
}

.nav-phone-num {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.25s;
}

.nav-phone:hover .nav-phone-num { color: var(--amber); }

/* --- Mobile Toggle --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 300;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    position: relative;
    transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--ink);
    left: 0;
    transition: transform 0.3s, top 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.site-nav.menu-open .hamburger { background: transparent; }
.site-nav.menu-open .hamburger::before { top: 0; transform: rotate(45deg); }
.site-nav.menu-open .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ----------------------------------------------------------------
   HERO — Split composition
   Anti-template move: NOT text-on-image overlay.
   Two panels: paper-background text left + full-bleed photo right,
   joined by a diagonal clip on the text panel edge.
   This IS the differentiator that makes it recognizable logo-removed.
---------------------------------------------------------------- */
.hero {
    position: relative;
    height: 100svh;
    overflow: hidden;
}

/* --- LEFT panel --- */
.hero-left {
    background-color: var(--paper);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6.5rem 4rem 2.5rem;
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 50%;
    z-index: 2;
    overflow: hidden;
}

.hero-carousel {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(100%);
    z-index: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Diagonal right edge — hidden during GSAP expansion */
.hero-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: -90px;
    width: 100px;
    height: 100%;
    background-color: var(--paper);
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    z-index: 3;
    transition: opacity 0.3s;
}

/* Hide diagonal once panel is nearly full-width */
.hero-left--expanded::after {
    opacity: 0;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cement);
    margin-bottom: 1.5rem;
    /* Hero entrance sequence */
    opacity: 0;
    animation: fadeUp 0.5s var(--ease) 0.05s both;
}

.eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--amber);
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--sans);
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.6s var(--ease) 0.15s both;
}

/* em = copper accent, not italic — structural, not poetic */
.hero-title em {
    font-style: normal;
    color: var(--amber);
}

.hero-body {
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 400px;
    line-height: 1.75;
    opacity: 0;
    margin-bottom: 1.8rem;
    animation: fadeUp 0.5s var(--ease) 0.25s both;
    color: rgba(13,13,11,0.8);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.5s var(--ease) 0.35s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--amber);
    color: #fff;
    padding: 1.1rem 2.2rem;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 2px solid var(--amber);
    transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--amber-lt);
    border-color: var(--amber-lt);
    transform: translateY(-3px);
}

.btn-primary svg {
    transition: transform 0.3s var(--ease);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-note {
    font-size: 0.72rem;
    color: var(--cement);
    font-weight: 400;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cement-lt);
    opacity: 0;
    animation: fadeUp 0.5s var(--ease) 0.45s both;
}

.proof-stars {
    color: var(--amber);
    letter-spacing: 2px;
}

.proof-label {
    font-size: 0.75rem;
    color: var(--cement);
    font-weight: 500;
}

/* --- RIGHT panel --- */
.hero-right {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-img-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 95% center;
    transform: scale(1.07);
    animation: slowZoom 10s var(--ease) forwards;
}

/* Blueprint stamp — low opacity, high memorability */
.blueprint-stamp {
    position: absolute;
    bottom: 3rem; right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1.2s var(--ease) 2s forwards;
}

.blueprint-stamp-word {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 4.5rem;
    color: rgba(255,255,255,0.1);
    letter-spacing: 0.4em;
    border: 2px solid rgba(255,255,255,0.08);
    padding: 0.5rem 1.5rem;
    line-height: 1;
}

.blueprint-stamp-year {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: calc(50% - 1px);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s var(--ease) 2.5s forwards;
}

.scroll-hint-line {
    width: 1px; height: 64px;
    background: linear-gradient(to bottom, var(--ink), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-hint span {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cement);
    font-weight: 500;
}

/* ----------------------------------------------------------------
   MANIFESTO BAND
   Dark counterweight to the paper hero — jarring in the right way
---------------------------------------------------------------- */
.manifesto {
    background: var(--ink);
    padding: 6rem 3.5rem;
}

.manifesto-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6rem;
}

.manifesto-quote {
    font-family: var(--sans);
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    line-height: 1.75;
    flex: 1;
    border-left: 3px solid var(--amber);
    padding-left: 2rem;
}

.manifesto-divider {
    width: 1px; height: 80px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.manifesto-stat {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.manifesto-stat-num {
    font-family: var(--sans);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--amber);
    line-height: 1;
    letter-spacing: -0.03em;
}

.manifesto-stat-desc {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    margin-top: 0.5rem;
    text-align: right;
    line-height: 1.6;
}

/* ----------------------------------------------------------------
   ABOUT / CHI SIAMO
   Anti-template: not a centered headshot bio.
   Two-panel split: moodly dark photo left + editorial fact-sheet right.
   Ghost lettering anchors the image; dl/dt/dd creates the feel
   of a technical dossier — concrete, not corporate.
---------------------------------------------------------------- */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 680px;
}

.about-img-panel {
    position: relative;
    overflow: hidden;
    background: var(--ink);
}

.about-img-panel img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.6s, transform 1.2s var(--ease);
}

.about:hover .about-img-panel img {
    opacity: 0.82;
    transform: scale(1.04);
}

/* Ghost lettering — same language as the blueprint stamp in hero */
.about-ghost {
    position: absolute;
    bottom: 2.5rem;
    left: 2rem;
    font-family: var(--sans);
    font-size: 7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.06);
    letter-spacing: 0.35em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    border-bottom: 2px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}

.about-text-panel {
    background: var(--void);
    padding: 7rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-title {
    font-family: var(--sans);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 2rem;
}

.about-title em {
    font-style: normal;
    color: var(--amber);
}

.about-lead {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(13,13,11,0.68);
    max-width: 440px;
    margin-bottom: 3.5rem;
}

/* Stats anchored bottom of image panel */
.about-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(17,17,16,0.82);
    backdrop-filter: blur(8px);
    padding: 1.5rem 2.5rem;
    border-top: 2px solid var(--amber);
}

.about-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.about-stat-num {
    font-family: var(--sans);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--amber);
    line-height: 1;
    letter-spacing: -0.03em;
}

.about-stat-label {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.45);
}

.about-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.12);
    margin: 0 2rem;
    flex-shrink: 0;
}

.about-body {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(17,17,16,0.6);
    max-width: 440px;
    margin-bottom: 2.5rem;
}

/* Isolated statement — the line that stops the reader */
.about-statement {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--paper-dk);
    border-left: none;
}

.about-statement-bar {
    width: 3px;
    min-height: 100%;
    background: var(--amber);
    flex-shrink: 0;
    align-self: stretch;
}

.about-statement p {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink);
    letter-spacing: -0.01em;
}

/* Outline button variant */
.btn-outline {
    background: transparent !important;
    color: var(--ink) !important;
    border: 2px solid var(--ink) !important;
    align-self: flex-start;
}

.btn-outline:hover {
    background: var(--ink) !important;
    color: var(--paper) !important;
}

/* ----------------------------------------------------------------
   SERVICES GRID
   4 cards, 2×2 desktop — dark image cards, Ken Burns hover,
   reveal text slides up. CSS only, zero JS.
---------------------------------------------------------------- */
.services {
    background: var(--void);
    padding: 8rem 0 0;
}

.services-header {
    padding: 0 5rem 5rem;
    max-width: 700px;
}

.services-title {
    font-family: var(--sans);
    font-size: clamp(2.2rem, 3.5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.services-title em {
    font-style: normal;
    color: var(--amber);
}

/* 2×2 grid — cleaner than 3+1 with 4 services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 480px);
    gap: 3px;
    background: var(--ink);
}

/* Card */
.svc-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--ink);
}

/* Ken Burns image */
.svc-card-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.svc-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transform: scale(1);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s ease;
    will-change: transform, opacity;
}

.svc-card:hover .svc-card-img img {
    transform: scale(1.08);
    opacity: 0.75;
}

/* Dark gradient overlay */
.svc-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(17,17,16,0.95) 0%,
        rgba(17,17,16,0.4) 50%,
        rgba(17,17,16,0.15) 100%
    );
    transition: background 0.4s ease;
}

.svc-card:hover .svc-card-overlay {
    background: linear-gradient(
        to top,
        rgba(17,17,16,0.92) 0%,
        rgba(17,17,16,0.55) 60%,
        rgba(17,17,16,0.2) 100%
    );
}

/* Card content layout */
.svc-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
}

/* Number — top left */
.svc-num {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--amber);
    text-transform: uppercase;
    border: 1px solid var(--amber);
    padding: 0.3rem 0.6rem;
    display: inline-block;
}

/* Bottom area */
.svc-card-bottom {
    display: flex;
    flex-direction: column;
}

.svc-card-bottom h3 {
    font-family: var(--sans);
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 0;
    transition: margin-bottom 0.4s ease;
}

.svc-card:hover .svc-card-bottom h3 {
    margin-bottom: 1rem;
}

/* Reveal block — hidden by default, slides up on hover */
.svc-card-reveal {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease,
                opacity 0.35s ease 0.05s;
}

.svc-card:hover .svc-card-reveal {
    max-height: 120px;
    opacity: 1;
}

.svc-card-reveal p {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255,255,255,0.75);
    max-width: 280px;
    margin: 0;
}

.svc-arrow {
    font-size: 1.5rem;
    color: var(--amber);
    flex-shrink: 0;
    transform: translateX(0);
    transition: transform 0.3s ease;
    display: block;
    padding-bottom: 0.1rem;
}

.svc-card:hover .svc-arrow {
    transform: translateX(6px);
}

/* ----------------------------------------------------------------
   SECTION EYEBROW
---------------------------------------------------------------- */
.section-eyebrow {
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--amber);
    display: block;
    margin-bottom: 1.5rem;
}

.section-eyebrow--light { color: var(--cement); }

/* ----------------------------------------------------------------
   METHOD — Numbered editorial steps
   Anti-template: not 3 equal cards in a row.
   Large ghost numbers create visual rhythm + depth.
   Alternating layout breaks symmetry.
---------------------------------------------------------------- */
.method {
    position: relative;
    height: 100svh;
    overflow: hidden;
    padding: 0;
}

.method-header {
    position: absolute;
    top: 4.5rem;
    left: 4.5rem;
    z-index: 20;
    max-width: 680px;
    pointer-events: none;
}

.method-title {
    font-family: var(--sans);
    font-size: clamp(2.2rem, 3.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.method-title em {
    font-style: normal;
    color: var(--amber);
}

/* Each step is a full-width row */
.step {
    display: flex;
    align-items: center;
    padding: 7rem 4.5rem 4rem;
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(100%);
    background: var(--void);
    z-index: 1;
}

.step:first-of-type {
    opacity: 1;
    transform: translateY(0);
}

.step:hover { background: var(--paper-dk); }

/* Ghost number — screened-back, structural decoration, Differentiator #2 */
.step-ghost-num {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--serif);
    font-size: 10rem;
    font-weight: 600;
    color: var(--cement-lt);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: color 0.4s;
    z-index: 0;
}

.step:hover .step-ghost-num {
    color: rgba(184, 134, 11, 0.12);
}

.step-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-left: 100px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Flip layout for step 02 */
.step--flip .step-content {
    direction: rtl;
}

.step--flip .step-content > * {
    direction: ltr;
}

.step-img {
    overflow: hidden;
    height: 350px;
}

.step-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

.step:hover .step-img img {
    transform: scale(1.07);
}

.step-text h3 {
    font-family: var(--sans);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.step-text p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(13,13,11,0.65);
    max-width: 380px;
}

/* Reveal animation for steps */
[data-reveal] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------------------
   TESTIMONIALS — Typographic pull quotes
   Anti-template: not a carousel or 2-column quote cards.
   Full-page editorial pulls, staggered offset.
   Quote mark becomes decorative architecture.
---------------------------------------------------------------- */
.testimonials {
    background: var(--ink);
    padding: 12rem 3.5rem;
    position: relative;
    overflow: hidden;
}

/* Blueprint lines scaffolding */
.testi-blueprint-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.t-line {
    position: absolute;
    background-image: linear-gradient(to right, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 20px 100%;
}

.t-line--h {
    top: 25%; left: 0; right: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(255,255,255,0.08) 2px, transparent 2px);
    background-size: 40px 1px;
}

.t-line--v {
    left: 15%; top: 0; bottom: 0;
    width: 1px;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.08) 2px, transparent 2px);
    background-size: 1px 40px;
}

.testi-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Header */
.testi-header {
    margin-bottom: 3.5rem;
}

.testi-header-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.testi-main-title {
    font-family: var(--sans);
    font-size: clamp(2.8rem, 5.5vw, 5.5rem);
    font-weight: 700;
    color: white;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 0;
}

.testi-main-title em {
    font-style: normal;
    color: var(--amber);
}

/* Google Trust Rating in Header */
.google-header-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.85rem 1.4rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.google-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-rating-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.google-score-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.google-stars-display {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star-icon {
    width: 16px;
    height: 16px;
    fill: #FBBC05;
}

.google-sub-label {
    font-size: 0.72rem;
    color: var(--cement);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* ================================================================
   AUTOMATIC SCROLLING BOX (Marquee Track)
================================================================ */
.reviews-marquee-box {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0 2rem;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.reviews-marquee-track {
    display: flex;
    gap: 1.75rem;
    width: max-content;
    animation: autoScrollReviews 32s linear infinite;
    will-change: transform;
}

.reviews-marquee-box:hover .reviews-marquee-track {
    animation-play-state: paused;
}

@keyframes autoScrollReviews {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Review Card */
.review-card {
    width: 360px;
    flex: 0 0 360px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 230px;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.review-card:hover {
    transform: translateY(-4px);
    border-color: rgba(196, 106, 26, 0.5);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Card Header — Avatar/User on Left, Google ONLY in Alto a Destra */
.rc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rc-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.rc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.rc-avatar--1 { background: linear-gradient(135deg, #EA4335, #C5221F); }
.rc-avatar--2 { background: linear-gradient(135deg, #4285F4, #1A73E8); }
.rc-avatar--3 { background: linear-gradient(135deg, #34A853, #1E8E3E); }
.rc-avatar--4 { background: linear-gradient(135deg, #FBBC05, #F29900); }

.rc-user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rc-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin: 0;
}

.rc-time {
    font-size: 0.78rem;
    color: var(--cement);
}

/* In alto a destra: solo logo Google */
.rc-google-corner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.rc-google-icon {
    display: block;
}

/* Rating Bar */
.rc-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rc-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rc-score {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

/* Card Body */
.rc-body {
    flex: 1 1 auto;
}

.rc-text {
    font-family: var(--sans);
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.rc-text--minimal {
    color: var(--cement);
    font-style: italic;
    font-size: 0.88rem;
}

/* Testi Footer Summary */
.testi-footer {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.testi-summary {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.t-sum-val {
    font-family: var(--sans);
    font-size: clamp(4.5rem, 8vw, 6.5rem);
    font-weight: 700;
    color: var(--amber);
    line-height: 0.9;
}

.testi-summary-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.t-sum-label {
    font-size: 0.95rem;
    max-width: 440px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ----------------------------------------------------------------
   TERRITORY — Full-width bleed image, text on top
   Anti-template: not 2-col text+image side by side.
   Photo bleeds edge to edge, text anchored bottom-right.
---------------------------------------------------------------- */
.territory {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
}

.territory-img-wrap {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.territory-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.territory:hover .territory-img-wrap img {
    transform: scale(1.04);
}

.territory-text {
    background: var(--paper-dk);
    padding: 7rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.territory-text h2 {
    font-family: var(--sans);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.territory-text h2 em {
    font-style: normal;
    color: var(--amber);
}

.territory-text p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(13,13,11,0.68);
    max-width: 420px;
    margin-bottom: 3rem;
}

.territory-addr {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(13,13,11,0.55);
    padding-top: 2.5rem;
    border-top: 1px solid var(--cement-lt);
}

.territory-addr svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--amber);
}

/* ----------------------------------------------------------------
   CLOSING CTA — Phone number as the hero element
   Anti-template: not a colored banner with a button in the center.
   Split grid: massive editorial headline on left, 
   giant underlined phone as the only interactive element.
   The number IS the CTA.
---------------------------------------------------------------- */
.contact {
    background: var(--paper-dk);
    padding: 12rem 3.5rem 0; /* Bottom padding 0 */
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Blueprint Texture */
.contact-blueprint-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: 
        linear-gradient(rgba(22,28,30,0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22,28,30,0.5) 1px, transparent 1px);
    background-size: 40px 40px;
}

.contact-matrix--centered {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-intro {
    margin-bottom: 7rem;
}

.contact-title {
    font-family: var(--sans);
    font-size: clamp(3.5rem, 9vw, 9rem);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: var(--ink);
    margin: 2rem 0;
}

.contact-title em {
    font-style: normal;
    color: var(--amber);
}

.contact-lead {
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(22, 28, 30, 0.6);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.contact-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    position: relative;
    z-index: 1;
    margin-top: 4rem;
}

/* Unified Full-Width Black Background Strip */
.contact-stack::before {
    content: '';
    position: absolute;
    inset: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: var(--ink);
    z-index: -1;
    pointer-events: none;
}

.contact-stack:hover::before {
    background: var(--ink);
}

/* Contact Engine - The Interactive Module */
.contact-engine {
    background: white;
    border: 1px solid rgba(22, 28, 30, 0.08);
    padding: 3.5rem;
    text-decoration: none;
    display: block;
    transition: all 0.5s var(--ease);
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
}

.contact-engine--primary,
.contact-engine--secondary {
    background: transparent;
    border-color: transparent;
    width: 100%;
    max-width: none;
    margin: 0;
    box-shadow: none;
    transform: none;
    position: relative;
    z-index: 1;
    transition: background 0.4s var(--ease);
}

.contact-engine--primary {
    padding: 6rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-engine--secondary {
    padding: 3rem 0 6rem;
}

/* Remove individual background strips as they are now handled by the parent */
.contact-engine--primary::before,
.contact-engine--secondary::before {
    display: none;
}

.contact-engine:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.06);
}

.contact-engine--primary:hover,
.contact-engine--secondary:hover {
    transform: none; /* Block stays unified */
    background: rgba(255, 255, 255, 0.03);
}

/* Unified hover background is handled by individual items */
.contact-engine--primary:hover::before,
.contact-engine--secondary:hover::before {
    display: none;
}

.engine-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.engine-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 700;
    color: var(--amber);
}

.contact-engine:not(.contact-engine--primary):not(.contact-engine--secondary) .engine-tag {
    color: rgba(22, 28, 30, 0.4);
}

.engine-status {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4ade80;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.engine-status::before {
    content: '';
    width: 6px; height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.engine-content {
    margin-bottom: 2rem;
}

.engine-value {
    font-family: var(--sans);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.02em;
}

.contact-engine--primary .engine-value,
.contact-engine--secondary .engine-value {
    color: var(--amber);
}

.contact-engine--primary .engine-value {
    font-size: clamp(3rem, 10vw, 8.5rem);
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.engine-footer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 400px;
    margin: 0 auto;
}

.contact-engine--secondary .engine-value {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
}

.contact-details {
    margin-top: 8rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(22, 28, 30, 0.05);
    width: 100%;
}

.detail-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(22, 28, 30, 0.3);
    margin-bottom: 1rem;
    font-weight: 700;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--ink);
    font-style: normal;
}

/* Contact mobile handled in main @media blocks below */

/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
.site-footer {
    background: var(--paper-dk); /* Matched to 'Attiva il tuo progetto' background */
    color: var(--ink); /* Text stays dark */
    padding: 0 5rem 4rem; /* Top padding 0 */
    position: relative;
    overflow: hidden;
}

/* Blueprint grid background */
.footer-grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.12; /* Lowered brightness */
    background-image: 
        linear-gradient(rgba(17,17,16,0.15) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(17,17,16,0.15) 1.5px, transparent 1.5px);
    background-size: 50px 50px;
    pointer-events: none;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 6rem;
    margin-bottom: 8rem;
    padding-top: 6rem; /* Lowered the text */
}

.footer-col--brand {
    max-width: 380px;
}

.footer-logo {
    font-family: var(--sans);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--ink); /* Dark logo */
    display: block;
    margin-bottom: 2rem;
}

.footer-bio {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(17,17,16,0.6); /* Muted dark text */
    font-weight: 300;
}

.footer-h {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--amber);
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-nav a {
    font-size: 0.88rem;
    color: rgba(17,17,16,0.7); /* Dark links */
    transition: color 0.3s var(--ease), transform 0.3s var(--ease);
    display: inline-block;
    width: fit-content;
}

.footer-nav a:hover {
    color: var(--ink); /* Solid dark on hover */
    transform: translateX(4px);
}

.footer-addr {
    font-style: normal;
    font-size: 0.88rem;
    line-height: 2;
    color: rgba(17,17,16,0.7);
}

.footer-tel {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink); /* Dark tel */
    margin-top: 1rem;
    display: inline-block;
    transition: color 0.3s;
}

.footer-tel:hover { color: var(--amber); }



.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(17,17,16,0.1); /* Darker border */
    font-size: 0.72rem;
    color: rgba(17,17,16,0.4); /* Muted footer text */
    letter-spacing: 0.05em;
}

.footer-meta-links {
    display: flex;
    gap: 1.5rem;
}

.footer-meta-links a {
    transition: color 0.3s;
}

.footer-meta-links a:hover { color: var(--ink); }

.footer-sep { opacity: 0.5; }

/* ----------------------------------------------------------------
   KEYFRAME ANIMATIONS — One strong entrance, sparse micro-states
---------------------------------------------------------------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes slowZoom {
    from { transform: scale(1.07); }
    to   { transform: scale(1); }
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50%       { transform: scaleY(0.6); opacity: 0.3; }
}

/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1200px) {
    .step-content { gap: 4rem; }
    .method-header { padding: 0 3rem; }
    .step { padding: 4rem 3rem; }
    .step-ghost-num { font-size: 7rem; left: 1rem; }
}

@media (max-width: 1024px) {
    /* Hero: stack vertically */
    .hero {
        grid-template-columns: 1fr;
        height: auto !important;
        min-height: 100svh !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .hero-left {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding: 7rem 1.5rem 3.5rem !important;
        transform: none !important;
    }

    .hero-left::after { display: none !important; }

    .hero-right { display: none !important; }
    
    .hero-carousel {
        position: relative !important;
        width: 100% !important;
        height: 60vw !important;
        min-height: 320px !important;
        max-height: 480px !important;
        overflow: hidden !important;
    }

    .carousel-item {
        position: absolute !important;
        inset: 0 !important;
        transform: none !important;
        opacity: 0;
    }

    .blueprint-stamp { display: none; }
    .scroll-hint { display: none; }

    /* About */
    .about { grid-template-columns: 1fr; }
    .about-img-panel { height: 50vw; min-height: 320px; }
    .about-ghost { font-size: 4rem; }
    .about-text-panel { padding: 5rem 2.5rem; }
    .about-stats { padding: 1.25rem 2rem; }
    .about-stat-num { font-size: 1.7rem; }

    /* Manifesto */
    .manifesto { padding: 5rem 2.5rem; }
    .manifesto-inner { flex-direction: column; gap: 3rem; }
    .manifesto-divider { display: none; }
    .manifesto-stat { align-items: flex-start; }

    /* Services */
    .services { padding: 6rem 0 0; }
    .services-header { padding: 0 2.5rem 4rem; }
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 300px);
    }

    .svc-card-reveal {
        max-height: 120px !important;
        opacity: 1 !important;
    }

    .svc-card-bottom h3 {
        margin-bottom: 0.75rem !important;
    }

    /* Method — Natural vertical flow on mobile (no pinning) */
    .method {
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        padding: 5rem 1.5rem 3rem !important;
        position: relative !important;
    }

    .method-header {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        padding: 0 !important;
        margin-bottom: 2.5rem !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .step {
        position: relative !important;
        inset: auto !important;
        opacity: 1 !important;
        transform: none !important;
        padding: 2.5rem 1.75rem !important;
        margin-bottom: 2.5rem !important;
        background: var(--paper-dk) !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
        flex-direction: column !important;
    }

    .step-ghost-num { display: none !important; }

    .step-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        width: 100% !important;
    }

    .step--flip .step-content { direction: ltr !important; }
    .step-img { height: 260px !important; }
    .step-text p { max-width: 100% !important; }

    /* Testimonials */
    .testimonials { padding: 6.5rem 2rem; }
    .testi-header-main { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .google-header-card { width: 100%; }
    .review-card { width: 320px; flex: 0 0 320px; }

    /* Territory */
    .territory { grid-template-columns: 1fr; }
    .territory-img-wrap { height: 45vw; min-height: 250px; }
    .territory-text { padding: 5rem 2.5rem; }

    /* Contact */
    .contact { padding: 8rem 0 0; }
    .contact-matrix--centered { padding: 0 2.5rem; }
    .contact-engine { max-width: 100%; padding: 3rem 2rem; }
    .contact-engine--primary,
    .contact-engine--secondary { padding: 4.5rem 2rem; }
    .contact-engine--primary { padding: 5.5rem 2rem; }

    /* Nav + Footer */
    .site-nav { padding: 1rem 1.5rem; }
    .site-nav.scrolled { padding: 0.8rem 1.5rem; }
    
    .nav-toggle { display: block; order: 3; }
    .nav-brand { order: 1; }
    .nav-phone { order: 2; margin-left: auto; margin-right: 1.5rem; }
    .nav-phone-label { display: none; }
    .nav-phone-num { font-size: 0.85rem; }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(17, 17, 16, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0s 0.35s;
        z-index: 240;
    }

    .site-nav.menu-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.35s ease;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        width: min(320px, 82vw) !important;
        background: var(--paper) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        gap: 2.2rem !important;
        padding: 5rem 2.5rem 3rem !important;
        z-index: 250 !important;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: flex !important;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15) !important;
    }

    .site-nav.menu-open .nav-links {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.35rem;
        font-weight: 600;
        color: var(--ink);
        opacity: 0.85;
        transition: color 0.2s, transform 0.2s;
    }

    .nav-links a:hover,
    .nav-links a[aria-current="page"] {
        color: var(--amber);
        opacity: 1;
        transform: translateX(6px);
    }

    .site-footer { padding: 0 1.5rem 3rem; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .footer-col--brand { grid-column: span 2; max-width: 100%; }

}

@media (max-width: 640px) {
    .hero-left { padding: 7rem 1.5rem 3.5rem; }
    .testimonials { padding: 4.5rem 1.25rem; }
    .google-header-card { width: 100%; }
    .review-card { width: 280px; flex: 0 0 280px; padding: 1.35rem; }
    .testi-summary { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .t-sum-val { font-size: 4rem; }
    .about-text-panel { padding: 4rem 1.5rem; }
    .about-fact { grid-template-columns: 1fr; gap: 0.25rem; }
    .territory-text { padding: 4rem 1.5rem; }
    .contact { padding: 6rem 0 0; }
    .contact-matrix--centered { padding: 0 1.5rem; }
    .contact-title { font-size: clamp(2.8rem, 10vw, 4.5rem); }
    .contact-lead { font-size: 1.1rem; }
    .contact-engine { padding: 2.5rem 1.5rem; min-height: 44px; }
    .contact-engine--primary,
    .contact-engine--secondary { padding: 3.5rem 1.5rem; }
    .contact-engine--primary { padding: 4rem 1.5rem; }
    .contact-engine--primary .engine-value { font-size: clamp(2.2rem, 9vw, 3.5rem); }
    .contact-engine--secondary .engine-value { font-size: clamp(1rem, 4.5vw, 1.5rem); }
    .site-footer { padding: 0 1.5rem 2rem; }
    .footer-top { grid-template-columns: 1fr; gap: 3.5rem; }
    .footer-col--brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-meta-links { justify-content: center; flex-wrap: wrap; }
    .manifesto { padding: 4rem 1.5rem; }
    .method-header { padding: 0 1.5rem; }
    .step { padding: 3rem 1.5rem; }
}

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

/* ----------------------------------------------------------------
   FULL-PAGE SERVICE MODAL
---------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--paper);
    z-index: 1000;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.4s, opacity 0.4s var(--ease);
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s var(--ease);
}

/* Close button */
.modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--ink);
    color: var(--paper);
    border: none;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1010;
    transition: transform 0.3s var(--ease), background 0.3s;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: var(--amber);
}

.modal-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 8rem 4rem;
    min-height: 100vh;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

/* Left Content */
.modal-content {
    position: sticky;
    top: 8rem;
}

.modal-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--amber);
    margin-bottom: 1.5rem;
}

.modal-title {
    font-family: var(--sans);
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.modal-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--steel);
    margin-bottom: 3rem;
}

.modal-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
    padding: 1rem;
    background: var(--paper-dk);
    border-left: 3px solid var(--amber);
}

.modal-cta-wrap {
    margin-top: 2rem;
}

/* Right Visuals */
.modal-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-main-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--paper-dk);
}

.modal-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.modal-gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: var(--paper-dk);
}

/* Scroll lock when modal or mobile menu is open */
body.modal-open,
html.modal-open,
body.menu-open,
html.menu-open {
    overflow: hidden !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .modal-container {
        padding: 6rem 2rem;
    }
    .modal-content {
        position: static;
    }
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 600px) {
    .modal-features {
        grid-template-columns: 1fr;
    }
}
