/*
Theme Name: Rivendell Architects
Theme URI: https://rivendellarchitects.com/
Author: Rivendell Architects
Author URI: https://rivendellarchitects.com/
Description: An editorial-grade WordPress theme for Rivendell Architects. Asymmetric layouts, atmospheric typography, light-radiant hero, full Customizer support, and a built-in Contact Page template.
Version: 3.1.2
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rivendell
Tags: one-column, custom-colors, custom-menu, featured-images, full-width-template, theme-options, threaded-comments, translation-ready
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
    /* — color */
    --ink:           #06181a;          /* deeper than brand for atmosphere */
    --bg:            #0d2e2a;          /* brand forest green */
    --bg-2:          #102f2b;
    --bg-warm:       #142d28;          /* warmer transitional */
    --bg-deep:       #061a18;
    --gold:          #c9a961;          /* brand gold */
    --gold-bright:   #e8c87a;
    --gold-deep:     #8c7038;
    --cream:         #f5ede0;          /* parchment highlight */
    --paper:         #ede2cc;
    --line:          rgba(201, 169, 97, 0.22);
    --line-soft:     rgba(245, 237, 224, 0.08);

    --text:          #e8e0cd;
    --text-soft:     #aea689;
    --text-faint:    #6f6a59;

    /* — type */
    --serif:    'Fraunces', ui-serif, Georgia, serif;
    --serif-it: 'Instrument Serif', 'Fraunces', Georgia, serif;
    --sans:     'Manrope', ui-sans-serif, system-ui, sans-serif;
    --script:   'Great Vibes', cursive;

    /* — measure */
    --max:    1480px;
    --gutter: clamp(20px, 4vw, 64px);

    /* — motion */
    --ease:    cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in: cubic-bezier(0.55, 0, 0.55, 0.2);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    /* Atmospheric grain — applied via SVG */
    position: relative;
}

/* Page-wide film grain overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0.45 0' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}

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

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.4s var(--ease);
}

a:hover { color: var(--gold-bright); }

button { font-family: inherit; cursor: pointer; }

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.05;
    margin: 0 0 0.5em;
    color: var(--cream);
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 144;
}

h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-style: italic;
    font-weight: 300;
}

h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 300;
}

h3 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-variation-settings: "opsz" 36;
    font-weight: 400;
}

p {
    margin: 0 0 1.4em;
    max-width: 64ch;
}

.eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-block;
}

.eyebrow::before {
    content: "—";
    margin-right: 14px;
    color: var(--gold);
    opacity: 0.7;
}

.script {
    font-family: var(--serif-it);
    font-style: italic;
    font-weight: 400;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
    z-index: 2;
}

.section {
    padding: clamp(80px, 12vw, 160px) 0;
    position: relative;
}

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

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

/* Section heading pattern: eyebrow + display title with a hairline mark */
.section-head {
    margin-bottom: clamp(50px, 7vw, 100px);
    max-width: 880px;
}

.section-head .eyebrow { margin-bottom: 28px; }

.section-title {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5.5vw, 4.6rem);
    line-height: 1;
    color: var(--cream);
    font-weight: 300;
    letter-spacing: -0.025em;
    margin: 0;
}

.section-title em,
.section-title .script {
    font-family: var(--serif-it);
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
    font-variation-settings: "opsz" 144;
}

/* Marginalia note — small italic asides */
.marginalia {
    font-family: var(--serif-it);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.5;
}

/* Hairline divider with ornamental mark */
.rule {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 60px 0;
    color: var(--gold);
}

.rule::before,
.rule::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.rule-mark {
    font-family: var(--serif-it);
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px 0;
    transition: padding 0.5s var(--ease), background 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 24, 26, 0.85) 0%, rgba(6, 24, 26, 0) 100%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s var(--ease);
}

.site-header.scrolled {
    padding: 14px 0;
    background: rgba(6, 24, 26, 0.92);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--line-soft);
}

.site-header.scrolled::before { opacity: 0; }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.site-logo {
    line-height: 0;
    display: inline-flex;
    align-items: center;
    transition: transform 0.4s var(--ease);
}

.site-logo:hover { transform: scale(1.03); }

.site-logo--default img {
    height: 44px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
    transition: height 0.5s var(--ease);
}

.site-header.scrolled .site-logo--default img { height: 36px; }

.site-logo--custom .custom-logo,
.custom-logo {
    max-height: 48px !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

.site-header.scrolled .custom-logo { max-height: 38px !important; }

.site-text { display: flex; flex-direction: column; gap: 2px; line-height: 1; }

.site-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--gold);
    font-variation-settings: "opsz" 36;
    line-height: 1;
}

.site-tagline {
    font-size: 0.65rem;
    letter-spacing: 0.32em;
    color: var(--text-faint);
    text-transform: uppercase;
}

body.has-custom-logo .site-text { display: none; }

/* nav */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 36px;
}

.main-nav a {
    color: var(--cream);
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s var(--ease);
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 0; right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s var(--ease);
}

.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { transform: scaleX(1); }

.nav-cta {
    padding: 12px 28px !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    transition: all 0.4s var(--ease);
}

.nav-cta:hover {
    background: var(--gold);
    color: var(--bg) !important;
}

.nav-cta::after { display: none !important; }

/* mobile toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--gold);
    transition: all 0.3s var(--ease);
}

.menu-toggle:hover { border-color: var(--gold); }

.menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--gold);
    margin: 5px auto;
    transition: all 0.4s var(--ease);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   HERO — the unforgettable moment
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px var(--gutter) 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg);
}

/* Atmospheric base — radial gold light from where the monogram sits */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 35%, rgba(201, 169, 97, 0.18), transparent 70%),
        radial-gradient(ellipse 40% 60% at 50% 35%, rgba(232, 200, 122, 0.10), transparent 60%),
        radial-gradient(ellipse 100% 80% at 50% 100%, var(--bg-deep), transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    pointer-events: none;
}

/* Light-ray streaks emanating from the monogram */
.hero::after {
    content: "";
    position: absolute;
    top: 12%;
    left: 50%;
    width: 1200px;
    height: 800px;
    transform: translateX(-50%);
    background:
        conic-gradient(from 220deg at 50% 30%,
            transparent 0deg,
            rgba(201, 169, 97, 0.06) 20deg,
            transparent 50deg,
            transparent 130deg,
            rgba(201, 169, 97, 0.05) 150deg,
            transparent 180deg,
            transparent 280deg,
            rgba(201, 169, 97, 0.06) 310deg,
            transparent 340deg);
    pointer-events: none;
    opacity: 0;
    animation: hero-rays 1.6s 0.6s var(--ease) forwards;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, black 30%, transparent 70%);
            mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, black 30%, transparent 70%);
}

@keyframes hero-rays {
    to { opacity: 0.9; }
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    text-align: center;
}

/* Ghosted year — sits behind everything, massive */
.hero-year {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--serif);
    font-size: clamp(8rem, 22vw, 20rem);
    font-weight: 300;
    color: var(--gold);
    opacity: 0.04;
    letter-spacing: -0.04em;
    line-height: 0.85;
    pointer-events: none;
    z-index: 1;
    font-variation-settings: "opsz" 144;
}

.hero-monogram {
    width: clamp(140px, 18vw, 240px);
    height: auto;
    margin: 0 auto 20px;
    opacity: 0;
    transform: translateY(20px) scale(0.94);
    animation: hero-mono-in 1.4s 0.1s var(--ease) forwards;
    filter: drop-shadow(0 0 60px rgba(201, 169, 97, 0.3))
            drop-shadow(0 0 30px rgba(201, 169, 97, 0.2));
    position: relative;
    z-index: 3;
}

@keyframes hero-mono-in {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-monogram img { width: 100%; height: auto; display: block; }

/* Wordmark — massive italic Fraunces */
.hero-wordmark {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(4rem, 13vw, 11rem);
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--cream);
    margin: 0;
    font-variation-settings: "opsz" 144;
    position: relative;
    z-index: 3;
}

.hero-wordmark .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: hero-letter-in 0.9s var(--ease) forwards;
}

@keyframes hero-letter-in {
    to { opacity: 1; transform: translateY(0); }
}

/* Subtitle "Architects" — script, offset right asymmetrically */
.hero-subtitle {
    display: block;
    font-family: var(--script);
    font-style: normal;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    color: var(--gold);
    line-height: 1;
    margin: -0.05em 0 40px;
    letter-spacing: 0;
    transform: translateX(15%);
    opacity: 0;
    animation: hero-fade 1s 1.4s var(--ease) forwards;
    position: relative;
    z-index: 3;
}

@keyframes hero-fade {
    to { opacity: 1; }
}

/* Tagline */
.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text);
    font-weight: 400;
    opacity: 0;
    animation: hero-fade 1s 1.7s var(--ease) forwards;
    position: relative;
    z-index: 3;
}

.hero-tagline span.dot {
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    display: inline-block;
}

/* Corner badge — "since 2024" */
.hero-since {
    position: absolute;
    bottom: 40px;
    right: clamp(20px, 4vw, 64px);
    z-index: 4;
    text-align: right;
    font-family: var(--serif);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0;
    animation: hero-fade 1s 2s var(--ease) forwards;
}

.hero-since::before {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin-left: auto;
    margin-bottom: 10px;
}

/* Scroll indicator — vertical text on left */
.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: clamp(20px, 4vw, 64px);
    z-index: 4;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: hero-fade 1s 2s var(--ease) forwards;
}

.scroll-indicator::after {
    content: "";
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scroll-pulse 2.5s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1.3); }
}

/* ==========================================================================
   ORIGINS / ABOUT
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

.about-image {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--bg-2), var(--bg-deep));
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    /* Atmospheric placeholder — soft tower silhouette */
}

.about-image::before {
    content: "";
    position: absolute;
    top: 12%; left: 50%;
    width: 22%; height: 60%;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
        rgba(201, 169, 97, 0.5) 0%,
        rgba(201, 169, 97, 0.3) 50%,
        rgba(201, 169, 97, 0) 100%);
    -webkit-mask-image: linear-gradient(180deg, black 60%, transparent);
            mask-image: linear-gradient(180deg, black 60%, transparent);
}

.about-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(232, 200, 122, 0.2), transparent 60%);
    pointer-events: none;
}

.about-content {
    padding: 20px 0;
}

.about-content h2 {
    margin-bottom: 36px;
}

.about-content p {
    font-size: 1.08rem;
    color: var(--text);
    line-height: 1.75;
}

.about-tagline {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    gap: 22px;
    align-items: center;
}

.about-tagline span.sep {
    width: 18px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

/* ==========================================================================
   PHILOSOPHY — three pillars
   ========================================================================== */
.philosophy-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(60px, 8vw, 100px);
}

.philosophy-intro h2 { margin-bottom: 30px; }

.philosophy-intro .label {
    font-family: var(--serif-it);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--gold);
    display: block;
    margin-bottom: 20px;
}

.philosophy-intro p {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.75;
    margin: 0 auto;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(30px, 4vw, 60px);
    counter-reset: pillar;
}

.philosophy-card {
    counter-increment: pillar;
    padding: 50px 36px 44px;
    position: relative;
    border-top: 1px solid var(--line);
    transition: transform 0.6s var(--ease);
}

.philosophy-card::before {
    content: counter(pillar, decimal-leading-zero);
    font-family: var(--serif-it);
    font-style: italic;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    top: -10px; right: 20px;
    line-height: 1;
    font-variation-settings: "opsz" 144;
}

.philosophy-card:hover { transform: translateY(-6px); }

.philosophy-card h3 {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.7rem;
    color: var(--cream);
    margin-bottom: 20px;
    font-variation-settings: "opsz" 36;
}

.philosophy-card p {
    color: var(--text-soft);
    font-size: 0.97rem;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   APPROACH — Research / Concept / Form
   ========================================================================== */
.approach-header {
    text-align: center;
    margin-bottom: 80px;
}

.approach-subtitle {
    font-family: var(--serif-it);
    font-style: italic;
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    color: var(--gold);
    margin-top: 20px;
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1100px;
    margin: 0 auto 80px;
    position: relative;
}

.approach-steps::before {
    content: "";
    position: absolute;
    top: 50px;
    left: 17%;
    right: 17%;
    height: 1px;
    background: var(--line);
    z-index: 0;
}

.approach-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.approach-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    background: var(--bg);
    color: var(--gold);
    transition: all 0.5s var(--ease);
    position: relative;
}

.approach-icon::before {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid var(--line);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.92);
    transition: all 0.5s var(--ease);
}

.approach-step:hover .approach-icon {
    background: var(--gold);
    color: var(--bg);
}

.approach-step:hover .approach-icon::before {
    opacity: 1;
    transform: scale(1);
}

.approach-icon svg { width: 34px; height: 34px; }

.approach-step h4 {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--cream);
    margin: 0 0 10px;
    font-variation-settings: "opsz" 36;
}

.approach-step .step-num {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    color: var(--gold);
    text-transform: uppercase;
}

.approach-vision {
    max-width: 720px;
    margin: 0 auto;
    padding: 50px 50px 50px 60px;
    border-left: 1px solid var(--gold);
    position: relative;
}

.approach-vision::before {
    content: "❛";
    position: absolute;
    left: -8px;
    top: 30px;
    font-family: var(--serif);
    font-size: 4rem;
    color: var(--gold);
    line-height: 1;
}

.approach-vision h4 {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-variation-settings: "opsz" 36;
}

.approach-vision p {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.75;
}

/* ==========================================================================
   REGIONAL EXPERTISE
   ========================================================================== */
.regional-grid {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

/* Left-column image wrapper — supports one or two stacked images */
.regional-images {
    display: grid;
    grid-template-rows: 1fr;
    gap: 24px;
}
.regional-images--double {
    grid-template-rows: 1fr 1fr;
}

.regional-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-deep) 100%);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-soft);
}

/* When two stacked, slightly less tall each so the column doesn't get huge */
.regional-images--double .regional-image {
    aspect-ratio: 16/10;
}

/* Decorative vertical bars only show on the empty/placeholder state */
.regional-image--empty::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 65%;
    background:
        linear-gradient(180deg, transparent, rgba(0,0,0,0.4)),
        repeating-linear-gradient(90deg,
            rgba(201, 169, 97, 0.5) 0px,
            rgba(201, 169, 97, 0.5) 28px,
            transparent 28px,
            transparent 60px);
    -webkit-mask-image: linear-gradient(180deg, transparent, black 50%);
            mask-image: linear-gradient(180deg, transparent, black 50%);
    opacity: 0.4;
}

.regional-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: reg;
}

.regional-item {
    counter-increment: reg;
    padding: 32px 0 32px 60px;
    border-top: 1px solid var(--line);
    position: relative;
    transition: padding-left 0.5s var(--ease);
}

.regional-item:last-child { border-bottom: 1px solid var(--line); }

.regional-item::before {
    content: counter(reg, decimal-leading-zero);
    position: absolute;
    left: 0; top: 32px;
    font-family: var(--serif-it);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--gold);
    font-variation-settings: "opsz" 36;
}

.regional-item:hover { padding-left: 70px; }

.regional-item h4 {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--cream);
    margin: 0 0 12px;
    font-variation-settings: "opsz" 36;
}

.regional-item p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.97rem;
    line-height: 1.65;
}

/* ==========================================================================
   SUSTAINABILITY
   ========================================================================== */
.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 40px);
    margin-top: 60px;
}

.sustain-card {
    background: var(--bg-2);
    overflow: hidden;
    transition: transform 0.6s var(--ease);
    position: relative;
    border: 1px solid var(--line-soft);
}

/* Stagger the cards vertically */
.sustainability-grid .sustain-card:nth-child(2) { transform: translateY(40px); }

.sustain-card:hover {
    transform: translateY(-10px);
}
.sustainability-grid .sustain-card:nth-child(2):hover { transform: translateY(30px); }

.sustain-image {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-deep);
    position: relative;
}

.sustain-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(6, 24, 26, 0.6));
}

.sustain-image-1 {
    background: linear-gradient(135deg, #b89968, #6b5530);
}
.sustain-image-2 {
    background: linear-gradient(135deg, #a8b5a0, #5a6b50);
}
.sustain-image-3 {
    background: linear-gradient(135deg, #d4a373, #8b6f47);
}

.sustain-content {
    padding: 32px 30px 36px;
}

.sustain-content h3 {
    font-family: var(--serif);
    font-style: italic;
    color: var(--cream);
    font-size: 1.5rem;
    margin: 0 0 14px;
    font-variation-settings: "opsz" 36;
}

.sustain-content p {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

/* ==========================================================================
   VISIONARIES / TEAM
   ========================================================================== */
.visionaries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 3vw, 50px);
    margin-bottom: 70px;
}

.visionary-card {
    padding: 44px 32px 40px;
    border-top: 1px solid var(--gold);
    position: relative;
    transition: padding-top 0.5s var(--ease);
}

.visionary-card:hover { padding-top: 50px; }

.visionary-card h3 {
    font-family: var(--serif);
    font-style: italic;
    color: var(--cream);
    font-size: 1.5rem;
    margin: 0 0 18px;
    font-variation-settings: "opsz" 36;
}

.visionary-card p {
    color: var(--text-soft);
    font-size: 0.97rem;
    line-height: 1.7;
    margin: 0;
}

.founder-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 50px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    text-align: center;
    position: relative;
}

.founder-card::before,
.founder-card::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid var(--gold);
}

.founder-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.founder-card::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.founder-card h3 {
    font-family: var(--serif-it);
    font-style: italic;
    color: var(--gold);
    font-size: 1.7rem;
    margin: 0 0 20px;
}

.founder-card p {
    font-size: 1.05rem;
    color: var(--text);
    margin: 0 auto;
    line-height: 1.7;
    max-width: 560px;
}

.founder-card .name {
    color: var(--cream);
    font-family: var(--serif-it);
    font-style: italic;
    font-size: 1.2em;
    font-weight: 500;
}

/* ==========================================================================
   SERVICES — three-column index
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(40px, 5vw, 80px);
    margin-top: 30px;
}

.service-column h3 {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold);
    font-size: 1.6rem;
    margin: 0 0 32px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    font-variation-settings: "opsz" 36;
}

.service-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-column li {
    padding: 14px 0 14px 36px;
    color: var(--text);
    position: relative;
    font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
    transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
    counter-increment: service;
}

.service-column ul { counter-reset: service; }

.service-column li::before {
    content: counter(service, decimal-leading-zero);
    position: absolute;
    left: 0; top: 14px;
    font-family: var(--serif-it);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--gold);
    opacity: 0.6;
}

.service-column li:hover {
    color: var(--gold);
    padding-left: 42px;
}

/* ==========================================================================
   PROJECTS — Editorial mosaic
   ========================================================================== */
.projects-section {
    padding-bottom: clamp(80px, 12vw, 160px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(20px, 2.5vw, 40px) clamp(16px, 2vw, 32px);
    margin-top: 30px;
}

.project-card {
    grid-column: span 4;
    position: relative;
    cursor: pointer;
    transition: transform 0.6s var(--ease);
    display: flex;
    flex-direction: column;
}

/* Editorial rhythm: every 5th, 6th, 12th get larger spans */
.project-card:nth-child(5n+1) { grid-column: span 6; }
.project-card:nth-child(5n+2) { grid-column: span 6; }
.project-card:nth-child(7n+5) { grid-column: span 5; }
.project-card:nth-child(7n+6) { grid-column: span 7; }

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

.project-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bg-2), var(--bg-deep));
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--line-soft);
    transition: border-color 0.5s var(--ease);
}

.project-card:hover .project-image {
    border-color: var(--gold);
}

.project-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(6, 24, 26, 0.65));
    z-index: 1;
}

.project-number {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(8rem, 18vw, 14rem);
    font-weight: 300;
    color: var(--gold);
    opacity: 0.85;
    line-height: 0.85;
    z-index: 2;
    text-align: center;
    letter-spacing: -0.04em;
    font-variation-settings: "opsz" 144;
    transition: transform 0.7s var(--ease);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.project-status {
    position: absolute;
    top: 20px; left: 20px;
    background: rgba(6, 24, 26, 0.85);
    backdrop-filter: blur(8px);
    color: var(--gold);
    padding: 7px 14px;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    z-index: 3;
}

.project-info {
    padding-top: 4px;
}

.project-info h3 {
    font-family: var(--serif);
    font-style: italic;
    color: var(--cream);
    font-size: 1.6rem;
    margin: 0 0 8px;
    font-variation-settings: "opsz" 36;
    transition: color 0.4s var(--ease);
}

.project-card:hover .project-info h3 { color: var(--gold); }

.project-location {
    font-family: var(--sans);
    color: var(--gold);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.project-description {
    color: var(--text-soft);
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 22px;
    max-width: none;
}

.project-meta {
    display: flex;
    gap: 30px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.project-meta strong {
    display: block;
    margin-top: 6px;
    color: var(--gold);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    font-variation-settings: "opsz" 36;
}

/* ==========================================================================
   INTERIOR DESIGN
   ========================================================================== */
.interior-hero {
    text-align: center;
    margin-bottom: clamp(60px, 8vw, 100px);
}

.interior-hero .script-title {
    font-family: var(--script);
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    color: var(--gold);
    line-height: 0.9;
    display: inline-block;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.interior-hero p {
    max-width: 700px;
    margin: 30px auto 0;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.75;
}

.interior-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 40px);
}

.interior-feature {
    background: var(--bg-2);
    border: 1px solid var(--line-soft);
    overflow: hidden;
    transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}

.interior-feature:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
}

.interior-feature-image {
    width: 100%;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-deep);
}

.interior-feature-body {
    padding: 36px 32px 38px;
    border-left: 1px solid var(--gold);
}

.interior-feature h4 {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold);
    font-size: 1.4rem;
    margin: 0 0 14px;
    font-variation-settings: "opsz" 36;
}

.interior-feature p {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

/* ==========================================================================
   TRACK RECORD — animated stats
   ========================================================================== */
.track-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 70px 0 50px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.track-stat {
    text-align: center;
    padding: 50px 20px;
    border-right: 1px solid var(--line);
    transition: background 0.4s var(--ease);
    position: relative;
}

.track-stat:last-child { border-right: none; }

.track-stat:hover {
    background: rgba(201, 169, 97, 0.04);
}

.track-stat-number {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--gold);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
    font-variation-settings: "opsz" 144;
}

.track-stat-label {
    color: var(--text-soft);
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.track-quote {
    max-width: 720px;
    margin: 50px auto 0;
    text-align: center;
    font-family: var(--serif-it);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.6;
    position: relative;
    padding: 0 60px;
}

.track-quote::before,
.track-quote::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}
.track-quote::before { left: 0; }
.track-quote::after  { right: 0; }

/* ==========================================================================
   CTA / CONTACT BANNER
   ========================================================================== */
.contact-cta {
    padding: clamp(80px, 14vw, 180px) 0;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(201, 169, 97, 0.12), transparent 70%),
        var(--bg);
    position: relative;
    overflow: hidden;
}

.contact-cta::before,
.contact-cta::after {
    content: "";
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    width: 60%;
    left: 20%;
    opacity: 0.5;
}
.contact-cta::before { top: 0; }
.contact-cta::after  { bottom: 0; }

.contact-cta h2 {
    font-family: var(--serif);
    font-style: italic;
    color: var(--cream);
    margin-bottom: 24px;
    font-variation-settings: "opsz" 144;
}

.contact-cta p {
    color: var(--text);
    font-size: 1.15rem;
    margin: 0 auto 48px;
    max-width: 540px;
    line-height: 1.6;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 44px;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateX(-101%);
    transition: transform 0.5s var(--ease);
    z-index: 0;
}

.btn span,
.btn::after {
    position: relative;
    z-index: 1;
}

.btn:hover {
    color: var(--bg);
}

.btn:hover::before { transform: translateX(0); }

.btn::after {
    content: "→";
    font-family: var(--serif);
    transition: transform 0.4s var(--ease);
}

.btn:hover::after { transform: translateX(4px); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--bg-deep);
    padding: clamp(70px, 9vw, 110px) 0 36px;
    position: relative;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 70px;
}

.footer-col h4 {
    font-family: var(--serif-it);
    font-style: italic;
    color: var(--gold);
    font-size: 1.15rem;
    margin: 0 0 24px;
    font-variation-settings: "opsz" 36;
}

.footer-col p,
.footer-col li {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.8;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; }
.footer-col a { color: var(--text-soft); }
.footer-col a:hover { color: var(--gold); }

.footer-brand {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.9rem;
    color: var(--gold);
    margin-bottom: 18px;
    font-variation-settings: "opsz" 144;
}

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease);
}

.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 16px;
    height: 16px;
    fill: var(--gold);
    transition: fill 0.3s var(--ease);
}

.footer-social a:hover svg { fill: var(--bg); }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-faint);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   GENERIC PAGE / POST
   ========================================================================== */
.page-hero {
    padding: 180px 0 80px;
    text-align: center;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    color: var(--cream);
    font-family: var(--serif);
    font-style: italic;
    margin: 0;
}

.entry-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px var(--gutter) 100px;
    min-height: 40vh;
}

.entry-content p,
.entry-content li {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.75;
}

.entry-content h2,
.entry-content h3 {
    color: var(--gold);
    font-style: italic;
    margin-top: 1.6em;
}

.entry-content a { text-decoration: underline; }

.entry-content blockquote {
    border-left: 1px solid var(--gold);
    padding-left: 32px;
    margin: 36px 0;
    font-family: var(--serif-it);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--cream);
    line-height: 1.6;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-page-hero {
    padding: 180px 0 80px;
    text-align: center;
    background:
        radial-gradient(ellipse 50% 60% at 50% 40%, rgba(201, 169, 97, 0.1), transparent 70%),
        var(--bg-deep);
    border-bottom: 1px solid var(--line);
    position: relative;
}

.contact-page-hero h1 {
    color: var(--cream);
    margin-bottom: 20px;
}

.contact-page-subtitle {
    color: var(--text);
    font-family: var(--serif-it);
    font-style: italic;
    font-size: 1.25rem;
    max-width: 620px;
    margin: 0 auto;
}

.contact-page-section {
    padding: clamp(70px, 10vw, 130px) 0;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.contact-info-card {
    background: var(--bg-2);
    padding: 50px 40px;
    border: 1px solid var(--line);
    position: sticky;
    top: 110px;
}

.contact-info-card h2 {
    color: var(--gold);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.9rem;
    margin: 0 0 18px;
    font-variation-settings: "opsz" 144;
}

.contact-info-intro {
    color: var(--text-soft);
    font-size: 0.97rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line-soft);
    align-items: flex-start;
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.contact-info-icon svg { width: 18px; height: 18px; }

.contact-info-label {
    font-family: var(--sans);
    font-size: 0.65rem;
    letter-spacing: 0.32em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 500;
}

.contact-info-value {
    color: var(--text);
    font-family: var(--serif);
    font-size: 1.02rem;
    line-height: 1.5;
    font-style: italic;
    font-variation-settings: "opsz" 36;
}

.contact-info-value a {
    color: var(--text);
    text-decoration: none;
}

.contact-info-value a:hover { color: var(--gold); }

.contact-socials {
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.contact-socials-list {
    display: flex;
    gap: 12px;
}

.contact-socials-list a {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease);
}

.contact-socials-list a:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.contact-socials-list svg {
    width: 16px;
    height: 16px;
    fill: var(--gold);
    transition: fill 0.3s var(--ease);
}

.contact-socials-list a:hover svg { fill: var(--bg); }

/* form */
.contact-form-wrap h2 {
    color: var(--cream);
    font-family: var(--serif);
    font-style: italic;
    font-size: 2.4rem;
    margin: 0 0 18px;
    font-variation-settings: "opsz" 144;
}

.contact-form-intro {
    color: var(--text-soft);
    margin-bottom: 40px;
    font-size: 1.02rem;
    line-height: 1.7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-field label {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 500;
}

.form-field .req { color: var(--gold-bright); }

.form-field input,
.form-field textarea {
    padding: 16px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--cream);
    font-family: var(--serif);
    font-size: 1.05rem;
    transition: border-color 0.4s var(--ease);
    width: 100%;
    font-style: italic;
    font-variation-settings: "opsz" 36;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

.form-field textarea {
    resize: vertical;
    min-height: 130px;
    padding: 16px 0;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 14px;
}

.form-message {
    padding: 24px 28px;
    margin-bottom: 30px;
    border-left: 1px solid;
    background: var(--bg-2);
}

.form-message strong {
    display: block;
    margin-bottom: 6px;
    color: var(--cream);
    font-family: var(--serif-it);
    font-style: italic;
    font-size: 1.15rem;
}

.form-message p { margin: 0; font-size: 0.95rem; }

.form-message--success { border-color: #6ec293; }
.form-message--success p { color: #b9d8c5; }

.form-message--error { border-color: #d97070; }
.form-message--error p { color: #e6b3b3; }

.contact-map-section {
    padding: 0;
    background: var(--bg-deep);
}

.contact-map-wrap {
    width: 100%;
    line-height: 0;
    filter: contrast(0.92) brightness(0.85) saturate(0.7);
}

.contact-map-wrap iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* ==========================================================================
   ANIMATIONS — scroll-triggered reveals
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

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

.reveal.from-left {
    transform: translateX(-50px);
}

.reveal.from-right {
    transform: translateX(50px);
}

.reveal.from-left.in,
.reveal.from-right.in { transform: translateX(0); }

/* Staggered children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.5s; }

.reveal-stagger.in > * {
    opacity: 1;
    transform: translateY(0);
}

/* Backwards compat */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.fade-in.visible, .fade-in.in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
    .philosophy-grid,
    .sustainability-grid,
    .visionaries-grid,
    .services-grid,
    .interior-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .sustainability-grid .sustain-card:nth-child(2) { transform: translateY(0); }

    .about-grid,
    .regional-grid,
    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .contact-info-card { position: static; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .track-stats { grid-template-columns: repeat(2, 1fr); }
    .track-stat:nth-child(2n) { border-right: none; }
    .track-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

    .projects-grid .project-card { grid-column: span 6; }
    .projects-grid .project-card:nth-child(7n+5),
    .projects-grid .project-card:nth-child(7n+6),
    .projects-grid .project-card:nth-child(5n+1),
    .projects-grid .project-card:nth-child(5n+2) { grid-column: span 6; }
}

@media (max-width: 960px) {
    .menu-toggle { display: flex; align-items: center; justify-content: center; }

    .main-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 80%;
        max-width: 380px;
        height: 100vh;
        background: var(--bg-deep);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 36px 36px;
        transition: right 0.5s var(--ease);
        border-left: 1px solid var(--line);
        z-index: 99;
        overflow-y: auto;
    }

    .main-nav.active { right: 0; }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        width: 100%;
    }

    .main-nav a {
        font-size: 0.9rem;
    }
}

@media (max-width: 760px) {
    .hero { padding-top: 110px; padding-bottom: 60px; min-height: 90vh; }

    .hero-since { font-size: 0.7rem; bottom: 30px; }

    .scroll-indicator { display: none; }

    .philosophy-grid,
    .sustainability-grid,
    .visionaries-grid,
    .services-grid,
    .interior-features,
    .approach-steps {
        grid-template-columns: 1fr;
    }

    .approach-steps::before { display: none; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .track-stats { grid-template-columns: 1fr; border-left: 0; border-right: 0; }
    .track-stat { border-right: 0; border-bottom: 1px solid var(--line); }
    .track-stat:last-child { border-bottom: 0; }

    .projects-grid .project-card,
    .projects-grid .project-card:nth-child(n) { grid-column: 1 / -1; }

    .form-row { grid-template-columns: 1fr; }

    .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }

    .approach-vision { padding: 36px 28px 36px 36px; }

    .track-quote { padding: 0 30px; font-size: 1.05rem; }
    .track-quote::before, .track-quote::after { width: 18px; }
}

/* ==========================================================================
   ACCESSIBILITY & WP HOUSEKEEPING
   ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-soft); text-align: center; }
.sticky { display: block; }

/* ==========================================================================
   v3.1.1 — Defensive resets for host-injected overlays
   GoDaddy's website performance script injects .cursor-dot, .cursor-ring,
   and .scroll-progress elements that we don't control. These rules make
   absolutely sure they never break interaction (steal pointer events,
   hide the native cursor, or sit above interactive content).
   ========================================================================== */
body { cursor: auto; }
body.cursor-ready { cursor: auto; }   /* override any "cursor: none" the host may add */

.cursor-dot,
.cursor-ring {
    pointer-events: none !important;
    z-index: 0 !important;
}

.scroll-progress {
    pointer-events: none !important;
}

/* v3.1.2 — second honeypot, visually + physically hidden */
.rv-hp {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
