@import url('https://fonts.googleapis.com/css2?family=Rokkitt:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* ===========================================================================
   Maplestone — Landscape & Hardscape
   Brand-approved luxury marketing site stylesheet.
   Adheres to Maplestone Brand Brief: Fraunces + Rokkitt + Work Sans, approved palette,
   persistent transparent header, and responsive educational architecture.
   =========================================================================== */

/* ===== Brand Tokens ===== */
:root {
    --cream: #DBD3C9;
    --paper: #EFEBE4;
    --paper-card: #FAF8F5;
    --gold: #87764B;
    --gold-light: #B5A170;
    --gold-hover: #988556;
    --green: #27371F;
    --green-deep: #1C2817;
    --green-darker: #131D10;
    --sage: #6A7F51;
    --sage-light: #8DA66F;
    --stone: #4A463F;
    --ink: #1D251A;
    --ink-soft: #2E382A;
    --muted: #5A6353;
    --line: rgba(39, 55, 31, 0.14);
    --line-light: rgba(219, 211, 201, 0.22);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-pill: 999px;
    --wrap: 1220px;
    --header-h: 88px;
    --head: "Fraunces", Georgia, serif;
    --slogan-font: "Rokkitt", Georgia, serif;
    --body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 4px 14px rgba(28, 40, 23, 0.08);
    --shadow-md: 0 12px 32px rgba(28, 40, 23, 0.12);
    --shadow-lg: 0 24px 56px rgba(20, 30, 16, 0.22);
}

/* ===== Base Reset ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

h1,
h2,
h3,
h4 {
    font-family: var(--head);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 0.5em;
    color: var(--ink);
}

p {
    margin: 0 0 1em;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.center {
    text-align: center;
}

.mt-12 {
    margin-top: 12px;
}

.mt-40 {
    margin-top: 40px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--green);
    color: #fff;
    padding: 12px 20px;
    z-index: 9999;
    font-weight: 600;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--body);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 0.94rem;
}

.full {
    width: 100%;
}

.btn-gold {
    background: var(--gold);
    color: #fff;
    box-shadow: 0 10px 26px rgba(135, 118, 75, 0.35);
}

.btn-gold:hover {
    background: var(--gold-hover);
    box-shadow: 0 14px 32px rgba(135, 118, 75, 0.45);
}

.btn-green {
    background: var(--green);
    color: var(--cream);
    box-shadow: 0 10px 26px rgba(39, 55, 31, 0.3);
}

.btn-green:hover {
    background: var(--green-deep);
    color: #fff;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #fff;
    color: var(--green);
    text-shadow: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(219, 211, 201, 0.4);
    color: var(--cream);
}

.btn-outline-light:hover {
    background: var(--cream);
    color: var(--green);
    border-color: var(--cream);
}

/* ===== Eyebrows ===== */
.eyebrow {
    font-family: var(--body);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--sage);
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.eb-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(135, 118, 75, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(135, 118, 75, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(135, 118, 75, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(135, 118, 75, 0);
    }
}

/* ===== Section Headings ===== */
.section-head {
    max-width: 760px;
    margin: 0 auto 52px;
}

.section-head h2 {
    font-size: clamp(2rem, 3.8vw, 2.9rem);
    margin-bottom: 16px;
    color: var(--ink);
}

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

.section-sub {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0 auto;
}

/* ===========================================================================
   NAVBAR: CRISP WHITE BACKGROUND WITH OLIVE GREEN TYPOGRAPHY
   =========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(39, 55, 31, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, padding 0.25s ease;
    padding: 0;
}

/* Scrolled state: slightly elevated shadow */
.site-header.scrolled {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(39, 55, 31, 0.16);
    box-shadow: 0 8px 24px rgba(39, 55, 31, 0.1);
    padding: 0;
}

.site-header .wrap {
    max-width: 1720px;
    padding: 0 44px;
    width: 100%;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 36px;
    min-height: var(--header-h);
    transition: min-height 0.3s ease;
}

.site-header.scrolled .header-inner {
    min-height: 74px;
}

/* Centered Brand Styling */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #27371F;
    text-align: left;
    flex-shrink: 0;
    grid-column: 2;
    justify-self: center;
}

.brand-logo {
    height: 56px;
    width: auto;
    max-width: 190px;
    display: block;
    object-fit: contain;
    filter: none;
    transition: transform 0.25s ease, height 0.25s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.04);
}

.site-header.scrolled .brand-logo {
    height: 44px;
}

.footer-logo {
    height: 68px;
    max-width: 220px;
}

.brand-emblem-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(28, 40, 23, 0.55);
    border: 1.5px solid rgba(219, 211, 201, 0.4);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.brand:hover .brand-emblem-wrap {
    transform: scale(1.06);
    border-color: var(--gold-light);
}

.site-header.scrolled .brand-emblem-wrap {
    width: 44px;
    height: 44px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    fill: #F3EFE7;
    transition: width 0.3s ease, height 0.3s ease;
}

.site-header.scrolled .brand-mark {
    width: 28px;
    height: 28px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--head);
    font-weight: 700;
    font-size: 1.32rem;
    letter-spacing: 0.12em;
    color: #F3EFE7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: font-size 0.3s ease;
}

.site-header.scrolled .brand-name {
    font-size: 1.18rem;
}

.brand-sub {
    font-family: var(--body);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    color: var(--gold-light);
    margin-top: 4px;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* Nav Links */
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-left {
    justify-content: flex-start;
    padding-left: clamp(24px, 6vw, 90px);
}

.nav-right {
    justify-content: flex-end;
    padding-right: clamp(24px, 6vw, 90px);
}

.nav > a {
    font-family: var(--body);
    font-size: 0.99rem;
    font-weight: 700;
    color: #27371F;
    letter-spacing: 0.02em;
    position: relative;
    padding: 8px 0;
    text-shadow: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav > a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2.5px;
    background: #27371F;
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav > a:not(.btn):hover {
    color: #6A7F51;
}

.nav > a:not(.btn):hover::after {
    width: 100%;
    background: #6A7F51;
}

.nav-family,
.nav > a.nav-family {
    border: 1.5px solid #27371F;
    color: #27371F;
    background: transparent;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 11px 26px;
    transition: all 0.25s ease;
}

.nav-family:hover,
.nav > a.nav-family:hover {
    background: #27371F;
    color: #FFFFFF !important;
    border-color: #27371F;
}

.nav-quote-btn,
.nav > a.nav-quote-btn {
    background: #27371F !important;
    color: #FFFFFF !important;
    border: 1.5px solid #27371F;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 12px 36px;
    box-shadow: 0 4px 14px rgba(39, 55, 31, 0.22);
    transition: all 0.25s ease;
}

.nav-quote-btn:hover,
.nav > a.nav-quote-btn:hover {
    background: #3B522E !important;
    border-color: #3B522E;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(39, 55, 31, 0.32);
}

/* Mobile Nav Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(18, 27, 15, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line-light);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 999;
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
    margin: 0 auto;
}

.mobile-nav-inner a:not(.btn) {
    font-size: 1.05rem;
    font-weight: 600;
    color: #F3EFE7;
    padding: 10px 0;
    border-bottom: 1px solid rgba(219, 211, 201, 0.1);
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(39, 55, 31, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px;
    cursor: pointer;
    width: 44px;
    height: 44px;
}

.burger span {
    width: 22px;
    height: 2px;
    background: #27371F;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===========================================================================
   HERO SECTION & MULTI-IMAGE CAROUSEL
   =========================================================================== */
.hero {
    position: relative;
    margin-top: 0;
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 72px;
    color: #F3EFE7;
    overflow: hidden;
    min-height: calc(96vh - var(--header-h));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Full-Bleed Carousel */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 46%;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 6.5s ease;
    will-change: opacity, transform;
}

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

.hero .wrap {
    max-width: 1720px;
    padding: 0 44px;
    width: 100%;
}

/* Vignette Overlay: left-reinforced gradient for pristine left-aligned readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(14, 21, 12, 0.85) 0%, rgba(14, 21, 12, 0.62) 48%, rgba(14, 21, 12, 0.2) 75%, transparent 100%),
        linear-gradient(180deg, rgba(14, 21, 12, 0.5) 0%, transparent 140px, transparent calc(100% - 140px), rgba(14, 21, 12, 0.85) 100%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.hero-copy {
    max-width: 840px;
    text-align: left;
    margin: 0;
    margin-top: 14vh;
}

.hero-title-group {
    display: inline-block;
    max-width: 100%;
    margin: 0 0 22px 0;
}

.hero-eyebrow-tabs {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 20px auto;
    background: rgba(18, 27, 15, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-pill);
    padding: 5px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero-title {
    font-family: var(--head);
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
    margin: 0;
    text-align: left;
}

.hero-title .title-line {
    display: block;
    color: #FFFFFF;
    font-style: normal;
    font-weight: 700;
}

.hero-slogan {
    font-family: var(--slogan-font, "Rokkitt", serif);
    font-size: clamp(1.22rem, 2.3vw, 1.55rem);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--sage-light);
    opacity: 1;
    margin: 0 0 20px 0;
    max-width: 50ch;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
    text-align: left;
}

.hero-lead {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.7;
    color: rgba(243, 239, 231, 0.92);
    max-width: 56ch;
    margin: 0 0 36px 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    text-align: left;
}

.hero-cta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}

.phase-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: var(--radius-pill);
    padding: 7px 18px;
    color: rgba(243, 239, 231, 0.75);
    font-family: var(--body);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.phase-tab:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.phase-tab.is-active {
    background: var(--gold);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(135, 118, 75, 0.45);
    transform: translateY(-1px);
}

.phase-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(243, 239, 231, 0.45);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.phase-tab.is-active .phase-dot {
    background: #FFFFFF;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.phase-tab:hover:not(.is-active) .phase-dot {
    background: var(--gold-light);
}

.phase-name {
    display: inline-block;
    line-height: 1;
}

/* Hero Stats Bar */
.hero-stats-wrap {
    position: relative;
    z-index: 2;
    margin-top: 56px;
    width: 100%;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: rgba(18, 27, 15, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(219, 211, 201, 0.18);
    border-radius: var(--radius);
    padding: 24px 32px;
    box-shadow: var(--shadow-lg);
}

.stat-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid rgba(219, 211, 201, 0.14);
    padding-right: 16px;
}

.stat-col:last-child {
    border-right: none;
    padding-right: 0;
}

.stat-col strong {
    font-family: var(--head);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.stat-col span {
    font-size: 0.8rem;
    color: rgba(243, 239, 231, 0.8);
    line-height: 1.4;
}

/* ===========================================================================
   TRUST STRIP
   =========================================================================== */
.strip {
    background: var(--green);
    color: var(--cream);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
}

.strip-grid .chk {
    color: var(--gold-light);
    font-weight: 700;
    margin-right: 6px;
}

/* ===========================================================================
   SERVICES SECTION — 3 SELF-DIAGNOSTIC CARDS
   =========================================================================== */
.section {
    padding: 96px 0;
}

.services-section {
    background: var(--cream);
    position: relative;
    padding: 64px 0 72px;
}

.services-section .section-head {
    margin-bottom: 36px;
}

.svc-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items: stretch;
}

/* Each service: a numbered title above a card that flips to its key solutions */
.svc-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.svc-card-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    padding: 0 4px;
    font-family: var(--slogan-font, "Rokkitt", serif);
    font-size: 1.32rem;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--ink);
}

.svc-card-heading-num {
    font-size: 1.55rem;
    color: var(--gold);
}

/* The wrapper never rotates, so hovering it never flickers mid-turn */
.svc-flip {
    flex: 1;
    perspective: 1600px;
}

.svc-flip-inner {
    display: grid;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.svc-flip.is-flipped .svc-flip-inner {
    transform: rotateY(180deg);
}

/* Both faces share one grid cell, so the card is as tall as its longer face */
.svc-face {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(39, 55, 31, 0.12);
    border-radius: 20px;
    box-shadow: 0 10px 28px -8px rgba(25, 36, 20, 0.14);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Swap the visible face exactly when the card is edge-on */
    transition: visibility 0s linear 0.37s, box-shadow 0.35s ease;
}

.svc-flip:hover .svc-face {
    box-shadow: 0 22px 44px -12px rgba(25, 36, 20, 0.26);
}

.svc-back {
    gap: 12px;
    padding: 20px 22px 22px;
    border-color: transparent;
    background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
    color: var(--cream);
    transform: rotateY(180deg);
    visibility: hidden;
}

.svc-flip.is-flipped .svc-front {
    visibility: hidden;
}

.svc-flip.is-flipped .svc-back {
    visibility: visible;
}

.svc-card-media {
    position: relative;
    height: 168px;
    overflow: hidden;
    background: var(--green-deep);
}

.svc-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.svc-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 26, 14, 0.7) 0%, rgba(18, 26, 14, 0) 55%);
    pointer-events: none;
}

.svc-card-badge {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
}

/* "Key solutions" pill on the photo: turns the card over */
.svc-flip-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-pill);
    background: rgba(18, 26, 14, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.svc-flip-btn svg,
.svc-flip-back svg {
    flex: none;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.svc-flip-btn:hover {
    background: rgba(18, 26, 14, 0.75);
    border-color: #FFFFFF;
}

.svc-flip-btn:focus-visible,
.svc-flip-back:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

.svc-card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
}

.svc-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 22px 20px;
    gap: 10px;
}

.svc-card-title {
    font-family: var(--slogan-font, "Rokkitt", serif);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    margin: 0;
}

.svc-card-lead {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ink);
    margin: 0;
    padding: 10px 14px;
    background: rgba(39, 55, 31, 0.05);
    border-left: 3px solid var(--green);
    border-radius: 8px;
}

/* ----- Back face: the key solutions list ----- */
.svc-back-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.svc-card-list-title {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-light);
    margin: 0;
}

.svc-card-list-title:focus {
    outline: none;
}

.svc-flip-back {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 12px 5px 7px;
    border: 1px solid rgba(219, 211, 201, 0.35);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--cream);
    font: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.svc-flip-back:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-light);
}

.svc-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
}

.svc-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(219, 211, 201, 0.12);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    color: #FFFFFF;
}

.svc-card-list li:last-child {
    border-bottom: 0;
}

.svc-back .svc-card-note {
    color: rgba(219, 211, 201, 0.75);
}

/* Items slide in one by one as the card turns */
.svc-flip.is-flipped .svc-card-list li {
    animation: svcItemIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(0.32s + var(--n, 0) * 0.07s);
}

.svc-card-list li:nth-child(2) { --n: 1; }
.svc-card-list li:nth-child(3) { --n: 2; }
.svc-card-list li:nth-child(4) { --n: 3; }
.svc-card-list li:nth-child(5) { --n: 4; }
.svc-card-list li:nth-child(6) { --n: 5; }

@keyframes svcItemIn {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
}

.svc-card-list .chk {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(219, 211, 201, 0.16);
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.svc-card-cta {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    text-align: center;
}

.svc-card-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 28px;
    box-shadow: 0 4px 12px rgba(39, 55, 31, 0.2);
}

.svc-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 55, 31, 0.28);
}

.svc-card-note {
    font-size: 0.78rem;
    color: var(--muted);
    font-style: italic;
}

/* Reduced motion: no 3D turn, the two faces simply cross-fade */
@media (prefers-reduced-motion: reduce) {
    .svc-flip-inner,
    .svc-flip.is-flipped .svc-flip-inner {
        transform: none;
        transition: none;
    }
    .svc-back {
        transform: none;
    }
    .svc-face {
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    }
    .svc-flip:not(.is-flipped) .svc-front,
    .svc-flip.is-flipped .svc-back {
        transition: opacity 0.25s ease, visibility 0s;
    }
    .svc-flip.is-flipped .svc-front,
    .svc-flip:not(.is-flipped) .svc-back {
        opacity: 0;
    }
    .svc-flip.is-flipped .svc-card-list li {
        animation: none;
    }
}


/* ===========================================================================
   DUALITY & INVISIBLE ENGINEERING SECTION
   =========================================================================== */
.duality {
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 100%);
    color: var(--cream);
    position: relative;
}

.duality .section-head h2 {
    color: #FFFFFF;
}

.duality .section-sub {
    color: rgba(219, 211, 201, 0.85);
}

.duality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.duality-col {
    background: rgba(28, 40, 23, 0.6);
    border: 1px solid rgba(219, 211, 201, 0.16);
    border-radius: var(--radius);
    padding: 44px 38px;
    box-shadow: var(--shadow-md);
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.duality-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tag-maple {
    background: rgba(106, 127, 81, 0.25);
    color: #A9CA84;
    border: 1px solid rgba(106, 127, 81, 0.45);
}

.tag-stone {
    background: rgba(135, 118, 75, 0.25);
    color: #E2D1A8;
    border: 1px solid rgba(135, 118, 75, 0.45);
}

.duality-icon {
    font-size: 1.8rem;
}

.duality-col h3 {
    font-size: 1.65rem;
    color: #FFFFFF;
    margin-bottom: 14px;
}

.lead-text {
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(243, 239, 231, 0.9);
    margin-bottom: 26px;
}

.duality-bullets {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.duality-bullets li {
    position: relative;
    padding-left: 24px;
    font-size: 0.92rem;
    color: rgba(243, 239, 231, 0.85);
    line-height: 1.55;
}

.duality-bullets li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--gold-light);
    font-size: 1.3rem;
    line-height: 1;
}

.brand-quote-banner {
    max-width: 820px;
    margin: 64px auto 0;
    text-align: center;
    background: rgba(18, 27, 15, 0.7);
    border: 1px solid rgba(219, 211, 201, 0.2);
    border-radius: var(--radius);
    padding: 36px 32px;
}

.quote-text {
    font-family: var(--head);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.quote-author {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold-light);
    margin: 0;
    font-weight: 600;
}

/* ===========================================================================
   INTERACTIVE SERVICE EXPLORER (RAPTOR VIEW MODEL)
   =========================================================================== */
.services-explorer-section {
    background: var(--paper);
}

.svc-explorer {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 36px;
    margin-top: 48px;
    align-items: start;
}

.svc-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.svc-tab {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-radius: var(--radius);
    background: #FFFFFF;
    border: 1px solid var(--line);
    cursor: pointer;
    font-family: var(--body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.svc-tab:hover {
    border-color: var(--gold);
    transform: translateX(4px);
    background: var(--paper-card);
}

.svc-tab[aria-selected="true"] {
    background: var(--green);
    color: #FFFFFF;
    border-color: var(--green);
    box-shadow: 0 12px 30px rgba(39, 55, 31, 0.25);
    transform: translateX(6px);
}

.svc-num {
    font-family: var(--head);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--gold);
}

.svc-tab[aria-selected="true"] .svc-num {
    color: var(--gold-light);
}

.svc-name {
    flex-grow: 1;
    line-height: 1.35;
}

/* Wiggle animation inviting selection */
@keyframes tabWiggle {
    0%, 100% {
        transform: translateX(0);
    }
    30% {
        transform: translateX(6px);
    }
    60% {
        transform: translateX(-2px);
    }
}

.svc-tab.svc-wiggle {
    animation: tabWiggle 0.45s ease-in-out;
}

/* Service Panels */
.svc-panels {
    min-height: 640px;
}

.svc-panel {
    background: #FFFFFF;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: panelFade 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.svc-panel[hidden] {
    display: none;
}

.svc-media {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--green-deep);
}

.svc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-media:hover img {
    transform: scale(1.03);
}

.svc-media figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(14, 21, 12, 0.88) 100%);
    color: var(--cream);
    padding: 20px 24px 14px;
    font-size: 0.82rem;
    font-weight: 500;
}

.svc-body {
    padding: 40px 36px 44px;
}

.svc-body h3 {
    font-size: 1.85rem;
    margin-bottom: 16px;
    color: var(--ink);
}

.svc-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 28px;
}

.svc-body h4 {
    font-size: 1.12rem;
    color: var(--green);
    margin: 28px 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.svc-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
    counter-reset: stepCount;
}

.svc-steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.94rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

.svc-steps li::before {
    counter-increment: stepCount;
    content: counter(stepCount, decimal-leading-zero);
    font-family: var(--head);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold);
    background: var(--paper);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    flex-shrink: 0;
    margin-top: 1px;
}

.svc-proof {
    background: var(--paper);
    border-left: 3px solid var(--gold);
    padding: 12px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.88rem;
    color: var(--ink);
    margin-bottom: 28px;
}

.svc-proof a {
    color: var(--green);
    font-weight: 700;
    text-decoration: underline;
}

/* ===========================================================================
   FOUR-STEP PROCESS
   =========================================================================== */
.process {
    background: var(--cream);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 48px;
    position: relative;
}

.steps li {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.steps li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.steps .num {
    font-family: var(--head);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

.steps h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.steps p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ===========================================================================
   PORTFOLIO GALLERY
   =========================================================================== */
.portfolio {
    background: var(--paper);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.shot {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.shot:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.shot figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(18, 27, 15, 0.92) 100%);
    color: #fff;
    padding: 32px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shot figcaption strong {
    font-family: var(--head);
    font-size: 1.15rem;
    font-weight: 600;
}

.shot figcaption span {
    font-size: 0.78rem;
    color: var(--gold-light);
    letter-spacing: 0.04em;
}

.banner {
    background: var(--green);
    color: var(--cream);
    border-radius: var(--radius);
    padding: 44px 36px;
    margin-top: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    box-shadow: var(--shadow-md);
}

.banner-quote {
    font-family: var(--slogan-font, "Rokkitt", serif);
    font-size: 1.75rem;
    font-weight: 500;
    font-style: italic;
    margin: 0;
    color: #FFFFFF;
}

/* ===========================================================================
   ABOUT SECTION
   =========================================================================== */
.about {
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ph {
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.ph-tall {
    grid-row: span 2;
    aspect-ratio: auto;
    height: 100%;
}

.about-copy h2 {
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    margin-bottom: 20px;
}

.about-copy p {
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 18px;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 28px 0 36px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--ink);
}

.check-list li::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    background: var(--sage);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===========================================================================
   REVIEWS SECTION
   =========================================================================== */
.reviews {
    background: var(--paper);
}

.quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

blockquote {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    position: relative;
}

blockquote::before {
    content: "“";
    font-family: var(--head);
    font-size: 4.5rem;
    color: rgba(135, 118, 75, 0.25);
    position: absolute;
    top: 12px;
    left: 20px;
    line-height: 1;
    pointer-events: none;
}

blockquote p {
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

blockquote footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

blockquote strong {
    font-family: var(--head);
    font-size: 1.05rem;
    color: var(--green);
}

blockquote span {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ===========================================================================
   QUOTE / CONTACT FORM SECTION
   =========================================================================== */
.quote {
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 100%);
    color: var(--cream);
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 64px;
    align-items: start;
}

.quote-copy h2 {
    color: #FFFFFF;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    margin-bottom: 18px;
}

.quote-copy p {
    font-size: 1.02rem;
    color: rgba(243, 239, 231, 0.9);
    line-height: 1.65;
    margin-bottom: 32px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.96rem;
    color: #F3EFE7;
}

.contact-list a:hover {
    color: var(--gold-light);
}

.quote-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Big Form */
.big-form {
    background: #FFFFFF;
    color: var(--ink);
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.big-form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.big-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
}

.big-form input,
.big-form select,
.big-form textarea {
    font-family: var(--body);
    font-size: 0.92rem;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(39, 55, 31, 0.2);
    background: var(--paper-card);
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.big-form input:focus,
.big-form select:focus,
.big-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(135, 118, 75, 0.2);
    background: #FFFFFF;
}

.privacy-note {
    font-size: 0.76rem;
    color: var(--muted);
    text-align: center;
    margin: 8px 0 0;
}

/* ===========================================================================
   LUXURY FOOTER
   =========================================================================== */
.site-footer {
    background: var(--green-darker);
    color: var(--cream);
    padding: 80px 0 36px;
    border-top: 1px solid rgba(219, 211, 201, 0.12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(219, 211, 201, 0.12);
}

.footer-brand .brand {
    justify-content: flex-start;
    margin-bottom: 18px;
}

.footer-tagline {
    font-family: var(--head);
    font-style: italic;
    font-size: 1.05rem;
    color: #F3EFE7;
    margin-bottom: 14px;
}

.footer-dsn {
    font-size: 0.85rem;
    color: rgba(219, 211, 201, 0.7);
}

.footer-dsn a {
    color: var(--gold-light);
    text-decoration: underline;
}

.footer-col h4 {
    font-family: var(--head);
    font-size: 1.15rem;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 0.88rem;
    color: rgba(219, 211, 201, 0.8);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    font-size: 0.82rem;
    color: rgba(219, 211, 201, 0.65);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    margin: 0;
}

.footer-sub-links a {
    color: rgba(219, 211, 201, 0.75);
}

.footer-sub-links a:hover {
    color: #fff;
}

/* ===========================================================================
   FLOATING CALL BADGE & TOAST NOTIFICATION
   =========================================================================== */
.float-call {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.float-call:hover {
    transform: translateY(-3px) scale(1.03);
    background: var(--gold-hover);
}

.float-call-ic {
    font-size: 1rem;
}

.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--green);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    font-size: 0.92rem;
    font-weight: 600;
    z-index: 10000;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 1px solid var(--gold);
    max-width: 380px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   =========================================================================== */
@media (max-width: 1140px) {
    .header-inner {
        column-gap: 16px;
    }
    .nav-left,
    .nav-right {
        padding-left: 0;
        padding-right: 0;
    }
    .nav {
        gap: 16px;
    }
    .nav > a {
        font-size: 0.9rem;
    }
    .brand-name {
        font-size: 1.15rem;
    }
    .svc-explorer {
        grid-template-columns: 300px 1fr;
        gap: 24px;
    }
}

@media (max-width: 1023px) {
    :root {
        --header-h: 76px;
    }
    .nav-left,
    .nav-right {
        display: none;
    }
    .burger {
        display: flex;
        margin-left: auto;
    }
    .mobile-nav {
        display: block;
    }
    .header-inner {
        grid-template-columns: 1fr auto 1fr;
    }
    .brand {
        grid-column: 2;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .stat-col:nth-child(2) {
        border-right: none;
    }
    .svc-explorer {
        grid-template-columns: 1fr;
    }
    .svc-tabs {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .svc-tab {
        padding: 14px 16px;
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .quote-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

@media (max-width: 767px) {
    :root {
        --header-h: 68px;
    }
    .section {
        padding: 64px 0;
    }
    .hero {
        padding-top: calc(var(--header-h) + 40px);
        padding-bottom: 48px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-slogan {
        font-size: 1.05rem;
    }
    .hero-lead {
        font-size: 0.95rem;
    }
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta .btn {
        width: 100%;
    }
    .hero-eyebrow-tabs {
        gap: 4px;
        padding: 4px;
        max-width: 100%;
    }
    .hero-eyebrow-tabs .phase-tab {
        width: auto;
        padding: 6px 12px;
        font-size: 0.76rem;
        letter-spacing: 0.08em;
        gap: 6px;
    }
    .hero-stats {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .stat-col {
        border-right: none;
        border-bottom: 1px solid rgba(219, 211, 201, 0.15);
        padding-bottom: 12px;
    }
    .stat-col:last-child {
        border-bottom: none;
    }
    .strip-grid {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 12px;
    }
    .svc-cards-grid {
        grid-template-columns: 1fr;
    }
    .diagnose-grid {
        grid-template-columns: 1fr;
    }
    .duality-grid {
        grid-template-columns: 1fr;
    }
    .svc-tabs {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .gallery {
        grid-template-columns: 1fr;
    }
    .quotes {
        grid-template-columns: 1fr;
    }
    .big-form .row {
        grid-template-columns: 1fr;
    }
    .banner {
        flex-direction: column;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .float-call {
        bottom: 16px;
        left: 16px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .svc-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .svc-cards-grid .svc-card:last-child {
        grid-column: 1 / -1;
        max-width: 520px;
        justify-self: center;
    }
}

/* ===========================================================================
   FINISHED PROJECTS · stacked project cards (replaces the Method section)
   Each card: problem -> earthwork -> hardscaping -> landscaping -> result,
   on a color-coded timeline, with a photo stage and a before/after slider.
   =========================================================================== */
.projects {
    --ph-problem: #D08A72;
    --ph-earth: #CC9A57;
    --ph-hard: #BDB6A6;
    --ph-land: #93B86A;
    --ph-result: #D9C48F;
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 100%);
    color: var(--cream);
    overflow: hidden;
}

.projects .section-head h2 {
    color: #fff;
}

.projects .section-sub {
    color: rgba(219, 211, 201, 0.85);
}

.projects [data-phase="problem"] { --c: var(--ph-problem); }
.projects [data-phase="earth"] { --c: var(--ph-earth); }
.projects [data-phase="hard"] { --c: var(--ph-hard); }
.projects [data-phase="land"] { --c: var(--ph-land); }
.projects [data-phase="result"] { --c: var(--ph-result); }

/* ----- Deck of overlapped cards ----- */
.pdeck {
    /* --tab-count is set from JS; every card's title tab gets its own slot */
    --tab-count: 2;
    --tab-h: 56px;
    --tab-gap: 14px;
    --tab-inset: 26px;
    --tab-w: min(300px, calc((100% - 2 * var(--tab-inset) - (var(--tab-count) - 1) * var(--tab-gap)) / var(--tab-count)));
    --peek: 20px;
    display: grid;
    /* Room for the title tabs plus the cards peeking out behind */
    padding-top: calc(var(--tab-h) + var(--peek) + 8px);
}

.pcard {
    --pos: 0;
    grid-area: 1 / 1;
    position: relative;
    z-index: calc(10 - var(--pos));
    min-width: 0;
    padding: 22px 26px 22px;
    border: 1px solid rgba(219, 211, 201, 0.16);
    border-radius: 26px;
    background: linear-gradient(160deg, #233220 0%, #182412 100%);
    box-shadow: 0 30px 70px rgba(4, 8, 3, 0.45);
    transform-origin: 50% 0;
    transform: translateY(calc(var(--pos) * var(--peek) * -1)) scale(calc(1 - var(--pos) * 0.05));
    opacity: calc(1 - var(--pos) * 0.32);
    filter: brightness(calc(1 - var(--pos) * 0.22));
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease, filter 0.7s ease;
}

.pcard:not(.is-front) {
    pointer-events: none;
}

.pcard {
    touch-action: pan-y;
}

.pcard.is-leaving {
    z-index: 30;
    animation: pcardOut 0.6s cubic-bezier(0.55, 0, 0.25, 1) both;
}

.pcard.is-returning {
    animation: pcardIn 0.5s ease both;
}

@keyframes pcardOut {
    from {
        opacity: 1;
        transform: none;
    }
    to {
        opacity: 0;
        transform: translateX(-32%) rotate(-4deg) scale(0.92);
    }
}

@keyframes pcardIn {
    from {
        opacity: 0;
    }
}

/* ----- Title tabs: each project's name sits on a tab above its card ----- */
.ptab {
    position: absolute;
    bottom: 100%;
    left: calc(var(--tab-inset) + var(--i, 0) * (var(--tab-w) + var(--tab-gap)));
    width: var(--tab-w);
    height: var(--tab-h);
    margin: 0;
    border: 1px solid rgba(219, 211, 201, 0.16);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #233220;
    font-size: 1rem;
    letter-spacing: 0;
    color: #fff;
}

.ptab-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0 22px;
    border: 0;
    border-radius: inherit;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ptab-btn[aria-current="true"] {
    cursor: default;
}

.ptab-btn:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: -5px;
}

.ptab-kicker,
.ptab-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ptab-kicker {
    font-family: var(--body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.ptab-title {
    font-size: 1.08rem;
    line-height: 1.2;
}

/* The project in front gets a gold edge on its tab */
.pcard.is-front .ptab {
    box-shadow: inset 0 2px 0 var(--gold-light);
}

/* Tabs of the cards behind stay clickable and light up on hover */
.pcard:not(.is-front) .ptab {
    pointer-events: auto;
}

.pcard:not(.is-front) .ptab-btn:hover .ptab-title,
.pcard:not(.is-front) .ptab-btn:focus-visible .ptab-title {
    color: var(--gold-light);
}

.pcard:not(.is-front):has(.ptab-btn:hover, .ptab-btn:focus-visible) {
    opacity: 0.92;
    filter: brightness(0.96);
}

/* Start and finish dates sit at the two ends of the timeline */
.pcard-dates {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 9px 2px 0;
    font-size: 0.8rem;
    color: #fff;
}

.pcard-dl {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(219, 211, 201, 0.6);
}

.pcard-dates time {
    font-weight: 600;
    white-space: nowrap;
}

/* A hairline arrow from the start date to the finish date */
.pcard-arrow {
    position: relative;
    flex: 1;
    align-self: center;
    min-width: 16px;
    height: 1px;
    margin: 0 6px 0 10px;
    background: rgba(219, 211, 201, 0.22);
    font-size: 0;
}

.pcard-arrow::after {
    content: "";
    position: absolute;
    top: -3px;
    right: 0;
    width: 6px;
    height: 6px;
    border-top: 1px solid var(--gold-light);
    border-right: 1px solid var(--gold-light);
    transform: rotate(45deg);
}

.plegend {
    display: none;
}

/* ----- Color-coded timeline ----- */
.ptl {
    margin: 0 0 18px;
}

.ptl-groups {
    display: flex;
    gap: 10px;
}

.ptl-group {
    flex: var(--n, 1) 1 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Never narrower than its phase label, so "Earthwork" is never clipped */
    min-width: max-content;
}

.ptl-group[data-phase="problem"],
.ptl-group[data-phase="result"] {
    flex: 0 0 auto;
    min-width: 96px;
}

.ptl-label {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--c);
}

.ptl-label svg,
.pchip svg,
.plegend svg {
    flex: none;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ptl-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 26px;
    padding: 0 6px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--c) 12%, transparent);
}

.ptl-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--c) 42%, transparent);
    transform: scaleX(var(--fill, 0));
    transform-origin: left;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ptl-dot {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    padding: 0;
    border: 2px solid var(--c);
    border-radius: 50%;
    background: #182412;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.ptl-dot::after {
    content: "";
    position: absolute;
    inset: -9px;
}

.ptl-dot:hover {
    transform: scale(1.25);
}

.ptl-dot.is-done {
    background: var(--c);
}

.ptl-dot.is-active {
    background: var(--c);
    transform: scale(1.5);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent);
    animation: ptlPulse 1.8s ease-out infinite;
}

@keyframes ptlPulse {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent);
    }
    100% {
        box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 0%, transparent);
    }
}

/* ----- Card body: photo stage + step description ----- */
.pcard-body {
    /* The photo follows the screen height so the whole card (tabs and borders)
       fits between the fixed header and the floating Call Now button:
       308px = tabs + card chrome + room for the floating buttons. */
    --stage-h: clamp(240px, calc(100svh - var(--header-h) - 308px), 470px);
    display: grid;
    /* Photo column keeps ~4:3 at that height; the description takes the rest */
    grid-template-columns: min(calc(var(--stage-h) * 4 / 3), 58%) minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
}

.pstage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: var(--stage-h);
    border-radius: 18px;
    background: #0f170b;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 2px var(--c-active, transparent);
    transition: box-shadow 0.5s ease;
}

.pshot {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}

.pshot.is-on {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease;
}

.pshot > img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pshot.is-on > img {
    animation: pKenBurns 9s ease-out both;
}

@keyframes pKenBurns {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.07) translate(-1%, -1%);
    }
}

.pshot.is-portrait::before {
    content: "";
    position: absolute;
    inset: -30px;
    background: var(--bg) center / cover no-repeat;
    filter: blur(22px) brightness(0.5);
}

.pshot.is-portrait > img {
    object-fit: contain;
}

.pshot-ba .ba {
    position: absolute;
    inset: 0;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: auto;
}

.pprogress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    height: 4px;
    background: rgba(255, 255, 255, 0.14);
}

.pprogress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--c-active, var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
}

.pprogress.is-running span {
    animation: pProgress var(--step-ms, 4800ms) linear forwards;
}

@keyframes pProgress {
    to {
        transform: scaleX(1);
    }
}

.pcap {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    pointer-events: none;
}

.pcap-phase,
.pcap-text {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
}

.pcap-phase {
    background: var(--c-active, var(--gold));
    color: #18240f;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.pcap-text {
    background: rgba(15, 23, 11, 0.8);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.pcap.is-swap > * {
    animation: pCapIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pcap.is-swap > *:nth-child(2) {
    animation-delay: 0.06s;
}

@keyframes pCapIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

.pcard[data-phase="problem"] { --c-active: var(--ph-problem); }
.pcard[data-phase="earth"] { --c-active: var(--ph-earth); }
.pcard[data-phase="hard"] { --c-active: var(--ph-hard); }
.pcard[data-phase="land"] { --c-active: var(--ph-land); }
.pcard[data-phase="result"] { --c-active: var(--ph-result); }

/* ----- Step description ----- */
.pinfo {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pinfo-panes {
    flex: 1;
}

.pinfo-pane[hidden] {
    display: none;
}

.pinfo-pane {
    animation: pPaneIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pPaneIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

.pchip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    background: var(--c);
    color: #18240f;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pinfo-pane h4 {
    margin: 12px 0 8px;
    font-size: clamp(1.3rem, 1.8vw, 1.65rem);
    color: #fff;
}

.pinfo-pane > p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(219, 211, 201, 0.88);
}

.pinfo-pane > p.ptasks-title {
    margin: 14px 0 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c);
}

.ptasks li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(219, 211, 201, 0.1);
    color: #fff;
    font-size: 0.92rem;
    animation: pTaskIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(0.12s + var(--i, 0) * 0.09s);
}

@keyframes pTaskIn {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
}

.ptask-ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--c) 24%, transparent);
    color: var(--c);
}

.ptask-ic svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: pCheck 0.5s ease forwards;
    animation-delay: calc(0.32s + var(--i, 0) * 0.09s);
}

@keyframes pCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.pinfo-pane[data-phase="problem"] .ptask-ic svg {
    display: none;
}

.pinfo-pane[data-phase="problem"] .ptask-ic::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* Step controls */
.pinfo-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.pnav-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(219, 211, 201, 0.3);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font: 400 1.5rem/1 var(--body);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pnav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-light);
}

.pstep-count {
    min-width: 46px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(219, 211, 201, 0.75);
    font-variant-numeric: tabular-nums;
}

.pplay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 9px 16px;
    border: 1px solid rgba(219, 211, 201, 0.3);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--cream);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.pplay:hover {
    border-color: var(--gold-light);
}

.pplay-ic {
    width: 9px;
    height: 11px;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

.pplay[data-state="paused"] .pplay-ic,
.pplay[data-state="ended"] .pplay-ic {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent currentColor;
}

/* ----- Before / after slider (result step) ----- */
.projects .ba {
    --pos: 50%;
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #0f170b;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.projects .ba img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects .ba-before {
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.projects .ba-label {
    position: absolute;
    top: 14px;
    z-index: 3;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(15, 23, 11, 0.78);
    pointer-events: none;
}

.projects .ba-label-before {
    left: 14px;
}

.projects .ba-label-after {
    right: 14px;
    background: rgba(135, 118, 75, 0.92);
}

.projects .ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    z-index: 3;
    width: 0;
    pointer-events: none;
}

.projects .ba-handle::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1.5px;
    width: 3px;
    background: #fff;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
}

.projects .ba-knob {
    position: absolute;
    top: 50%;
    left: 0;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.projects .ba-knob svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.projects .ba:hover .ba-knob,
.projects .ba.is-dragging .ba-knob {
    transform: translate(-50%, -50%) scale(1.08);
}

.projects .ba:has(.ba-range:focus-visible) .ba-knob {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.projects .ba-range {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.projects .ba-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 64px;
    height: 1200px;
}

.projects .ba-range::-moz-range-thumb {
    width: 64px;
    height: 1200px;
    border: 0;
}

/* ----- Deck navigation: arrows + dots ----- */
.pdeck-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 16px;
}

.pdeck-arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(219, 211, 201, 0.35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pdeck-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-light);
    transform: translateY(-1px);
}

.pdots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.pdot span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-pill);
    background: rgba(219, 211, 201, 0.35);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.pdot:hover span {
    background: rgba(219, 211, 201, 0.7);
}

.pdot[aria-current="true"] {
    width: 44px;
}

.pdot[aria-current="true"] span {
    width: 34px;
    background: var(--gold-light);
}

/* ----- Projects responsive ----- */
@media (max-width: 1023px) {
    .pcard {
        padding: 20px 22px 20px;
    }
    .pcard-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    /* One column: the photo is 4:3 but never so tall that the text below
       falls off a tablet screen (620px = tabs + chrome + description + dots) */
    .pstage {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        max-height: max(260px, calc(100svh - var(--header-h) - 604px));
    }
    .ptl-group[data-phase="problem"],
    .ptl-group[data-phase="result"] {
        min-width: 76px;
    }
}

@media (max-width: 767px) {
    .pdeck {
        --tab-h: 54px;
        --tab-gap: 8px;
        --tab-inset: 12px;
        --peek: 13px;
    }
    .pcard {
        padding: 16px 14px 14px;
        border-radius: 20px;
    }
    /* Phones: a 3:2-ish photo on short screens so the text stays in view */
    .pstage {
        max-height: max(190px, calc(100svh - var(--header-h) - 572px));
    }
    .pinfo-pane h4 {
        margin: 10px 0 6px;
        font-size: 1.22rem;
    }
    .pinfo-pane > p {
        font-size: 0.9rem;
        line-height: 1.55;
    }
    .pinfo-pane > p.ptasks-title {
        margin-top: 10px;
    }
    .ptasks li {
        padding: 5px 0;
        font-size: 0.88rem;
    }
    .pnav-btn {
        width: 36px;
        height: 36px;
    }
    /* Narrow tabs: drop the word "Project" and let the title use two lines */
    .ptab {
        border-radius: 14px 14px 0 0;
    }
    .ptab-btn {
        gap: 3px;
        padding: 0 12px;
    }
    .ptab-kw {
        display: none;
    }
    .ptab-kicker {
        font-size: 0.58rem;
        letter-spacing: 0.16em;
    }
    .ptab-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 0.86rem;
        line-height: 1.15;
        white-space: normal;
    }
    .pcard-dates {
        gap: 6px;
        margin-top: 8px;
        font-size: 0.74rem;
    }
    .pcard-dl {
        font-size: 0.56rem;
        letter-spacing: 0.12em;
    }
    .pcard-arrow {
        margin: 0 4px 0 6px;
    }
    .ptl-group {
        min-width: 0;
    }
    .plegend {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
        margin: 0;
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .plegend li {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: var(--c);
    }
    .plegend svg {
        width: 14px;
        height: 14px;
    }
    .ptl {
        margin: 12px 0 16px;
    }
    .ptl-groups {
        gap: 6px;
    }
    .ptl-group[data-phase="problem"],
    .ptl-group[data-phase="result"] {
        min-width: 0;
        flex: 1 1 0;
    }
    .ptl-label-text {
        display: none;
    }
    .ptl-label {
        justify-content: center;
    }
    .ptl-bar {
        height: 24px;
        padding: 0 3px;
    }
    .ptl-dot {
        width: 11px;
        height: 11px;
    }
    .pcap-phase,
    .pcap-text {
        font-size: 0.68rem;
        padding: 5px 10px;
    }
    .projects .ba-knob {
        width: 44px;
        height: 44px;
    }
    .pplay {
        margin-left: 0;
    }
    .pinfo-nav {
        justify-content: space-between;
    }
}

/* Tablets and short laptop screens: the step's items flow in a row instead of
   a stacked list, so the description never makes the card taller than the photo */
@media (min-width: 768px) and (max-width: 1023px), (min-width: 1024px) and (max-height: 760px) {
    .ptasks {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 22px;
    }
    .ptasks li {
        padding: 3px 0;
        border-bottom: 0;
    }
}

/* Short laptop screens: tighter text so the description fits beside the
   shorter photo and the card does not grow past the bottom of the screen */
@media (min-width: 1024px) and (max-height: 760px) {
    .pinfo-pane h4 {
        margin: 8px 0 4px;
        font-size: 1.3rem;
    }
    .pinfo-pane > p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .pinfo-pane > p.ptasks-title {
        margin-top: 8px;
    }
    .ptasks li {
        padding: 3px 0;
        font-size: 0.88rem;
    }
    .ptask-ic {
        width: 22px;
        height: 22px;
    }
    .pchip {
        padding: 4px 11px;
        font-size: 0.68rem;
    }
    .pinfo-nav {
        margin-top: 8px;
    }
    .pnav-btn {
        width: 34px;
        height: 34px;
    }
    .pplay {
        padding: 7px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .projects *,
    .projects *::before,
    .projects *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
    }
    .pshot.is-on > img {
        animation: none;
    }
}

/* ===== Visualize with AI (merged from landscape-ai stash; scoped to .visualize / .ai-*) ===== */

/* ===== Visualize with AI ===== */
.visualize {
    background: linear-gradient(180deg, var(--paper-card) 0%, var(--paper) 100%);
}

.ai-studio {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 6px);
    box-shadow: var(--shadow-md);
    padding: 26px;
}

.ai-input {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 30px 20px;
    border: 2px dashed rgba(32, 76, 52, .35);
    border-radius: var(--radius);
    background: var(--cream);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.ai-drop:hover {
    border-color: var(--green);
    background: #fff;
}

.ai-drop input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.ai-drop-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
}

.ai-drop b {
    color: var(--green);
    font-size: 1rem;
}

.ai-drop small {
    color: var(--muted);
    font-size: .78rem;
}

.ai-sample {
    align-self: center;
    background: none;
    border: none;
    color: var(--gold);
    font-family: var(--body);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .02em;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 2px 4px;
}

.ai-sample:hover {
    color: var(--green);
}

.ai-sample:disabled {
    opacity: .5;
    cursor: default;
}

.ai-preview {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

.ai-preview img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.ai-preview button {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-family: var(--body);
    font-weight: 700;
    font-size: .74rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(29, 35, 33, .78);
    color: #fff;
    cursor: pointer;
}

.ai-preview button:hover {
    background: var(--green-deep);
}

.ai-generate {
    margin-top: 4px;
}

.ai-generate:disabled {
    opacity: .55;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.ai-status {
    margin: 0;
    min-height: 1.2em;
    font-size: .84rem;
    font-weight: 600;
    color: var(--green);
}

.ai-privacy {
    margin: 0;
    font-size: .74rem;
    color: var(--muted);
    line-height: 1.5;
}

.ai-result {
    position: relative;
    min-height: 360px;
    border-radius: var(--radius);
    background: var(--cream);
    border: 1px solid var(--line);
    overflow: hidden;
}

.ai-empty,
.ai-progress {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 24px;
}

.ai-empty span {
    font-size: 2rem;
    color: var(--gold);
}

.ai-empty b {
    color: var(--green);
}

.ai-empty small,
.ai-progress b {
    color: var(--muted);
    font-weight: 600;
}

.ai-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid rgba(32, 76, 52, .18);
    border-top-color: var(--green);
    animation: ai-spin 1s linear infinite;
}

@keyframes ai-spin {
    to {
        transform: rotate(360deg);
    }
}

.ai-bar {
    width: min(260px, 80%);
    height: 8px;
    border-radius: 999px;
    background: rgba(32, 76, 52, .14);
    overflow: hidden;
}

.ai-bar>div {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--gold));
    transition: width .3s ease;
}

.ai-output {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ai-grid .concept {
    position: relative;
    display: block;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease;
}

.ai-grid .concept:hover {
    transform: translateY(-2px);
}

.ai-grid .concept.on {
    border-color: var(--gold);
}

.ai-grid .concept img {
    width: 100%;
    height: 92px;
    object-fit: cover;
}

.ai-grid .concept span {
    display: block;
    padding: 7px 8px;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--green);
    background: #fff;
    text-align: left;
}

.ai-compare {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    touch-action: none;
    user-select: none;
}

.ai-compare img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ai-before {
    position: absolute;
    inset: 0;
    width: 48%;
    overflow: hidden;
}

.ai-before img {
    width: auto;
    max-width: none;
}

.ai-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 48%;
    width: 2px;
    background: #fff;
    transform: translateX(-1px);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
}

.ai-handle span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--green);
    font-weight: 800;
    box-shadow: var(--shadow-md);
}

.ai-tag {
    position: absolute;
    bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(29, 35, 33, .74);
}

.ai-tag-before {
    left: 12px;
}

.ai-tag-after {
    right: 12px;
    background: rgba(32, 76, 52, .82);
}

.ai-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.ai-actions p {
    margin: 0;
    flex: 1 1 240px;
    font-size: .72rem;
    color: var(--muted);
    line-height: 1.5;
}

/* The panels above set display:flex, which would otherwise beat the hidden attribute
   and stack the empty, progress and result views on top of each other. */
.ai-studio [hidden] {
    display: none !important;
}

/* Shown above the quote form after the 2 free AI design sets */
.ai-limit-notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    background: rgba(215, 174, 34, .14);
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.45;
}

/* Customer's own garden idea */
.ai-wish {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-wish label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.ai-wish label span {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.ai-wish textarea {
    min-height: 88px;
    font-size: .9rem;
    line-height: 1.45;
}

.ai-wish-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    font-size: .74rem;
    line-height: 1.4;
    color: var(--muted);
}

.ai-wish-foot #aiWishCount {
    flex: none;
    white-space: nowrap;
}

@media (max-width: 820px) {
    .ai-studio {
        grid-template-columns: 1fr;
    }

    .ai-result {
        min-height: 300px;
    }
}

.ai-wish textarea {
    font-family: var(--body);
    font-size: .95rem;
}

/* ===== Header lockup: emblem + live-text wordmark (the stacked SVG's text was unreadable at header size) ===== */
.site-header .brand {
    gap: 12px;
}
.site-header .header-emblem {
    height: 52px;
    width: 52px;
    max-width: none;
}
.site-header.scrolled .header-emblem {
    height: 44px;
    width: 44px;
}
.header-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
    white-space: nowrap;
}
.header-wordmark-name {
    font-family: var(--head);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
}
.header-wordmark-sub {
    font-family: var(--body);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 5px;
}
/* 1024-1359px: both desktop navs need nearly the whole row, so show the
   emblem alone (the wordmark returns with the burger menu below 1024px). */
@media (min-width: 1024px) and (max-width: 1379px) {
    .header-wordmark {
        display: none;
    }
}
/* The AI Tools link and the wordmark widen the header. Keep upstream's outer
   nav padding where it fits, and shrink it evenly on both sides only by the
   amount needed, so the left and right page margins stay symmetric. */
@media (min-width: 1141px) and (max-width: 1279px) {
    .header-inner {
        column-gap: 20px;
    }
    .site-header .nav {
        gap: 20px;
    }
    .site-header .nav-left {
        padding-left: max(0px, min(6vw, calc((100vw - 1103px) / 2)));
    }
    .site-header .nav-right {
        padding-right: max(0px, min(6vw, calc((100vw - 1103px) / 2)));
    }
}
@media (min-width: 1280px) and (max-width: 1379px) {
    .site-header .nav-left {
        padding-left: max(0px, min(6vw, calc((100vw - 1183px) / 2)));
    }
    .site-header .nav-right {
        padding-right: max(0px, min(6vw, calc((100vw - 1183px) / 2)));
    }
}
@media (min-width: 1380px) {
    .site-header .nav-left {
        padding-left: max(0px, min(clamp(24px, 6vw, 90px), calc((100vw - 1369px) / 2)));
    }
    .site-header .nav-right {
        padding-right: max(0px, min(clamp(24px, 6vw, 90px), calc((100vw - 1369px) / 2)));
    }
}
@media (max-width: 420px) {
    .site-header .brand {
        gap: 8px;
    }
    .site-header .header-emblem {
        height: 42px;
        width: 42px;
    }
    .header-wordmark-name {
        font-size: 1.05rem;
        letter-spacing: 0.06em;
    }
    .header-wordmark-sub {
        display: none;
    }
}
