/* ========================================================
   WILDING & STONE — DESIGN TOKEN CANVAS
   Landscape Architecture Studio · Site Stylesheet
   ======================================================== */

:root {
    /* Materials Palette — named after the trade's own materials */
    --canvas: #1C211D;                 /* Slate Dusk — main background */
    --surface-deep: #12160F;           /* Loam — footer / deep panels */
    --surface-card: rgba(237, 232, 222, 0.04);
    --surface-card-hover: rgba(237, 232, 222, 0.07);
    --border-hairline: rgba(237, 232, 222, 0.10);
    --border-hairline-strong: rgba(237, 232, 222, 0.18);

    --clay: #B5623B;                   /* Terracotta Clay — primary accent */
    --clay-deep: #8F4C2D;
    --lichen: #9CAA84;                 /* Lichen — secondary organic accent */
    --lichen-deep: #7C8F68;
    --limestone: #EDE8DE;              /* primary readable copy */
    --moss: #8B9184;                   /* muted / subtitle copy */

    /* Typography */
    --font-display: 'Fraunces', serif;
    --font-body: 'Public Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Organic Motion Parameters */
    --ease-organic: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-grow: cubic-bezier(0.16, 1, 0.3, 1);

    --t-fast: 250ms;
    --t-medium: 600ms;
    --t-veil: 1100ms;
}

/* ========================================================
   GLOBAL RESETS & CANVAS
   ======================================================== */
* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0; width: 100%;
    background-color: var(--canvas);
    color: var(--limestone);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.container { width: 90%; max-width: 1400px; margin: 0 auto; }

/* ========================================================
   SITE VEIL — BLOOM APERTURE TRANSITION
   (replaces the old theatrical curtain wipe with an iris
   that opens/closes from center, like a bud unfurling)
   ======================================================== */
.site-veil {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--surface-deep); z-index: 10000; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    clip-path: circle(150% at 50% 50%);
    transition: clip-path var(--t-veil) var(--ease-organic);
}
.veil-mark {
    font-family: var(--font-display); font-size: 2rem; letter-spacing: 1px;
    color: var(--limestone); display: flex; gap: 0.6rem; align-items: baseline;
    text-transform: uppercase; opacity: 1; transition: opacity 0.5s ease;
}
.veil-amp { font-style: italic; color: var(--clay); }

.site-veil.is-opening { clip-path: circle(0% at 50% 50%); }
.site-veil.is-opening .veil-mark { opacity: 0; }
.site-veil.is-closing { clip-path: circle(150% at 50% 50%); }

/* ========================================================
   GROW-REVEAL SYSTEM
   Elements rise from the ground and settle into focus,
   rather than sliding on stage.
   ======================================================== */
.reveal {
    opacity: 0;
    transform: scale(0.96) translateY(24px);
    filter: blur(6px);
    transform-origin: center bottom;
    will-change: transform, opacity, filter;
    transition: opacity 1s var(--ease-grow), transform 1s var(--ease-grow), filter 1s var(--ease-grow);
}
.reveal-fade { transform: translateY(0) scale(1); filter: blur(0); }
.reveal.in-view { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }

.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 240ms; }
.reveal-delay-3 { transition-delay: 360ms; }

@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;
    }
    .reveal { opacity: 1; transform: none; filter: none; }
}

/* ========================================================
   HEADER & NAVIGATION
   ======================================================== */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-hairline);
    z-index: 1000; padding: 1.75rem 0;
    transition: background-color var(--t-medium) var(--ease-organic), transform var(--t-medium) var(--ease-organic), padding var(--t-medium) ease;
}
.site-header.nav-scrolled { background-color: rgba(28, 33, 29, 0.88); border-bottom-color: rgba(181, 98, 59, 0.25); padding: 1.1rem 0; }
.site-header.nav-hidden { transform: translateY(-100%); }

.nav-shell { display: flex; justify-content: space-between; align-items: center; width: 90%; max-width: 1400px; margin: 0 auto; }
.brand-mark { text-decoration: none; display: flex; flex-direction: column; gap: 0.3rem; }
.brand-name { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.5px; color: var(--limestone); }
.brand-name em { font-style: italic; color: var(--clay); }
.brand-tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 2.5px; color: var(--lichen); text-transform: uppercase; }

.nav-links { display: flex; gap: 3rem; }
.nav-links a {
    text-decoration: none; color: var(--moss); font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase;
    position: relative; padding: 0.4rem 0; transition: color var(--t-medium) ease;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 50%; width: 0; height: 1px;
    background-color: var(--clay); transition: width var(--t-medium) var(--ease-organic), left var(--t-medium) var(--ease-organic);
}
.nav-links a:hover, .nav-links a.active { color: var(--limestone); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; left: 0; }

/* ========================================================
   HERO
   ======================================================== */
.hero-grove { height: 100vh; min-height: 640px; display: flex; align-items: center; justify-content: flex-start; position: relative; overflow: hidden; }
.hero-scene { position: absolute; top: -10%; left: 0; width: 100%; height: 120%; z-index: 0; }
.hero-terrain {
    width: 100%; height: 100%; background-position: center; background-size: cover; background-repeat: no-repeat;
    will-change: transform; transform: scale(1.06);
}
.hero-veil-gradient {
    position: absolute; inset: 0;
    background: radial-gradient(120% 90% at 30% 40%, rgba(28, 33, 29, 0.35) 0%, rgba(18, 22, 15, 0.92) 78%, rgba(18, 22, 15, 0.98) 100%);
    z-index: 1;
}

.hero-copy { position: relative; z-index: 2; max-width: 720px; padding: 0 6vw; text-align: left; }
.hero-kicker {
    font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 3px;
    color: var(--lichen); display: inline-block; margin-bottom: 2rem; padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-hairline-strong);
}
.hero-headline {
    font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 5.2vw, 4.6rem);
    line-height: 1.08; margin: 0 0 1.75rem; color: var(--limestone);
}
.hero-headline em { font-style: italic; color: var(--clay); font-weight: 400; }
.hero-lead { font-weight: 300; font-size: 1.15rem; color: rgba(237, 232, 222, 0.72); max-width: 560px; line-height: 1.8; margin: 0 0 3rem; }
.hero-actions { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.hero-scroll-cue { position: absolute; bottom: 3rem; left: 6vw; z-index: 2; width: 1px; height: 70px; }
.hero-scroll-cue span { display: block; width: 1px; height: 100%; background: linear-gradient(to bottom, var(--clay), transparent); animation: scrollCue 2.4s var(--ease-organic) infinite; }
@keyframes scrollCue {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================================
   CONTOUR LINE — SIGNATURE SITE-PLAN MOTIF
   A topographic survey line that draws itself in on scroll.
   ======================================================== */
.contour-divider { width: 100%; overflow: hidden; line-height: 0; margin: -1px 0; }
.contour-line { width: 100%; height: 70px; display: block; }
.contour-line--vertical { width: 120px; height: 100%; }
.contour-path {
    stroke: var(--lichen); stroke-width: 1.4; fill: none;
    stroke-dasharray: 2200; stroke-dashoffset: 2200; opacity: 0.55;
    transition: stroke-dashoffset 1.8s var(--ease-grow) 0.1s, opacity 1s ease 0.1s;
}
.contour-divider.in-view .contour-path,
.approach-visual.in-view .contour-path { stroke-dashoffset: 0; opacity: 0.85; }

/* ========================================================
   FIELD NOTES BAND
   ======================================================== */
.field-notes-band { padding: 5rem 0; border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); background: var(--surface-deep); }
.field-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.note-mark { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--clay); margin-bottom: 1rem; }
.field-note p { margin: 0; font-weight: 300; font-size: 1.05rem; line-height: 1.7; color: var(--limestone); }

/* ========================================================
   TAGLINES & SECTION HEADINGS (shared across pages)
   ======================================================== */
.tagline { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 3px; color: var(--clay); display: block; margin-bottom: 1.2rem; }

/* ========================================================
   APPROACH SECTION — ASYMMETRIC OVERLAP
   ======================================================== */
.approach-section { padding: 10rem 0; }
.approach-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
.approach-text h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.15; margin: 0 0 2rem; color: var(--limestone); }
.approach-text h2 em { font-style: italic; color: var(--clay); }
.approach-text p { font-weight: 300; color: var(--moss); font-size: 1.05rem; line-height: 1.85; margin-bottom: 1.5rem; max-width: 480px; }

.capability-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.8rem; padding: 0; margin: 2rem 0 2.5rem; }
.capability-tags li {
    font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--lichen); border: 1px solid var(--border-hairline-strong); padding: 0.6rem 1rem;
    border-radius: 20px 20px 20px 4px;
}

.approach-visual { position: relative; }
.approach-image { position: relative; height: 560px; overflow: hidden; border-radius: 4px 60px 4px 4px; z-index: 2; }
.approach-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-organic); }
.approach-visual:hover .approach-image img { transform: scale(1.04); }
.approach-visual .contour-line--vertical { position: absolute; top: -40px; left: -60px; height: calc(100% + 80px); z-index: 1; opacity: 0.5; }
.plan-tag {
    position: absolute; left: -1.5rem; bottom: 2.5rem; z-index: 3;
    background: var(--surface-deep); border: 1px solid var(--border-hairline-strong);
    color: var(--limestone); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 0.9rem 1.4rem; border-radius: 4px 16px 4px 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* ========================================================
   FEATURED GROUNDS — ASYMMETRIC TEASER GRID
   ======================================================== */
.featured-grounds { padding: 6rem 0 10rem; }
.section-intro-left { max-width: 600px; margin-bottom: 4rem; }
.section-intro-left h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.15; margin: 0 0 1.2rem; color: var(--limestone); }
.section-intro-left p { color: var(--moss); font-weight: 300; font-size: 1.05rem; line-height: 1.75; margin: 0; max-width: 480px; }

.featured-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: repeat(2, 260px); gap: 2rem; }
.ground-card--tall { grid-column: 1; grid-row: 1 / 3; }

/* ========================================================
   CARD ARCHITECTURE (shared: featured teaser + portfolio grid)
   ======================================================== */
.ground-card, .portfolio-card {
    position: relative; overflow: hidden; text-decoration: none; color: inherit; display: block;
    border-radius: 4px; transition: transform var(--t-medium) var(--ease-organic);
}
.ground-card:hover, .portfolio-card:hover { transform: translateY(-8px); }

.card-media-box { width: 100%; height: 100%; position: relative; overflow: hidden; background-color: #000; }
.card-media-box img, .card-media-box video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s var(--ease-organic), filter 1s ease; }
.ground-card:hover .card-media-box img, .portfolio-card:hover .card-media-box img,
.ground-card:hover .card-media-box video, .portfolio-card:hover .card-media-box video { transform: scale(1.08); filter: brightness(0.6); }

.card-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 3rem 2.2rem; box-sizing: border-box;
    background: linear-gradient(to top, rgba(18, 22, 15, 0.92) 0%, transparent 100%);
    transform: translateY(24px); opacity: 0; transition: transform 0.8s var(--ease-organic), opacity 0.8s ease;
}
.ground-card:hover .card-overlay, .portfolio-card:hover .card-overlay { transform: translateY(0); opacity: 1; }

.card-tag { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; color: var(--clay); letter-spacing: 2px; display: block; margin-bottom: 0.7rem; }
.card-overlay h3 { font-family: var(--font-display); font-size: 1.7rem; margin: 0; font-weight: 300; color: var(--limestone); }

/* ========================================================
   PORTFOLIO PAGE
   ======================================================== */
.subpage-wrapper { padding: 11rem 0 8rem; min-height: 60vh; }
.section-intro { text-align: center; max-width: 680px; margin: 0 auto 5rem; }
.section-intro h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 4.5vw, 3.8rem); margin: 0 0 1.4rem; line-height: 1.12; color: var(--limestone); }
.section-intro p { color: var(--moss); font-weight: 300; font-size: 1.05rem; line-height: 1.75; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 2.5rem; align-items: start; }
.portfolio-card { height: 540px; background: var(--surface-card); }
.portfolio-card--tall { height: 640px; }
.portfolio-card--short { height: 460px; }

/* Live sandbox upload slot */
.upload-slot { border: 1px dashed rgba(181, 98, 59, 0.45); background: rgba(181, 98, 59, 0.03); height: 540px; display: block; }
.upload-slot:hover { background: rgba(181, 98, 59, 0.07); }
.upload-label { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 3rem; box-sizing: border-box; text-align: center; cursor: pointer; }
.upload-icon-box {
    width: 64px; height: 64px; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
    border: 1px solid var(--clay); display: flex; align-items: center; justify-content: center;
    color: var(--clay); font-size: 1.4rem; margin-bottom: 2rem;
    transition: background-color 0.5s ease, color 0.5s ease, border-radius 0.6s var(--ease-organic);
}
.upload-slot:hover .upload-icon-box { background-color: var(--clay); color: var(--surface-deep); border-radius: 50%; }
.upload-label h3 { font-family: var(--font-display); font-size: 1.7rem; margin: 0 0 1rem; font-weight: 300; color: var(--limestone); }
.upload-label p { margin: 0; font-size: 0.9rem; color: var(--moss); line-height: 1.6; max-width: 300px; }

.animate-entry { animation: cardGrowEntry 0.9s var(--ease-grow) forwards; }
@keyframes cardGrowEntry {
    from { opacity: 0; transform: scale(0.92) translateY(24px); filter: blur(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

/* ========================================================
   BUTTONS
   ======================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1.15rem 2.6rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; text-decoration: none; border: 1px solid transparent;
    position: relative; overflow: hidden; z-index: 1; border-radius: 40px 40px 40px 6px;
    transition: transform var(--t-medium) var(--ease-organic), border-color var(--t-medium) ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-label { position: relative; z-index: 2; pointer-events: none; transition: color 0.4s ease; }
.btn-fill { position: absolute; top: 100%; left: 0; width: 100%; height: 100%; z-index: 1; transform-origin: top center; transition: transform 0.6s var(--ease-organic); }

.btn-clay { background-color: var(--clay); color: var(--surface-deep); border-color: var(--clay); }
.btn-clay .btn-fill { background-color: var(--surface-deep); transform: scaleY(0); }
.btn-clay:hover .btn-label { color: white; }
.btn-clay:hover .btn-fill { transform: scaleY(1); transform-origin: bottom center; }

.btn-line { border-color: var(--border-hairline-strong); color: var(--limestone); }
.btn-line .btn-fill { background-color: var(--lichen); transform: scaleY(0); }
.btn-line:hover { border-color: var(--lichen); }
.btn-line:hover .btn-label { color: orange; }
.btn-line:hover .btn-fill { transform: scaleY(1); transform-origin: bottom center; }

.block-btn { width: 100%; }

/* ========================================================
   CONTACT PAGE
   ======================================================== */
.grid-half { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.contact-text h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 3.8vw, 3.4rem); line-height: 1.15; margin: 0 0 1.5rem; color: var(--limestone); }
.contact-text h2 em { font-style: italic; color: var(--clay); }
.contact-text > p { color: var(--moss); font-weight: 300; font-size: 1.05rem; line-height: 1.8; }

.contact-image { position: relative; height: 100%; min-height: 600px; border-radius: 4px 60px 4px 4px; overflow: hidden; }
.contact-image img { width: 100%; height: 100%; object-fit: cover; }

.floating-form .form-row { position: relative; margin-bottom: 3.2rem; }
.floating-form input, .floating-form textarea {
    width: 100%; padding: 1rem 0; background: transparent; border: none;
    border-bottom: 1px solid var(--border-hairline-strong); color: var(--limestone);
    font-family: var(--font-body); font-size: 1.1rem;
}
.floating-form input:focus, .floating-form textarea:focus { outline: none; border-color: transparent; }
.input-bar { position: absolute; bottom: 0; left: 50%; width: 0; height: 1px; background-color: var(--clay); transition: width 0.6s var(--ease-organic), left 0.6s var(--ease-organic); }
.floating-form input:focus ~ .input-bar, .floating-form textarea:focus ~ .input-bar { width: 100%; left: 0; }
.floating-form label {
    position: absolute; left: 0; top: 1rem; color: var(--moss); font-size: 1.1rem;
    transition: transform 0.5s var(--ease-organic), color 0.5s ease; pointer-events: none; transform-origin: left top;
}
.floating-form input:focus ~ label, .floating-form input:not(:placeholder-shown) ~ label,
.floating-form textarea:focus ~ label, .floating-form textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-2rem) scale(0.75); color: var(--clay); letter-spacing: 2px; text-transform: uppercase;
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer { background-color: var(--surface-deep); padding: 7rem 0 4rem; position: relative; z-index: 10; border-top: 1px solid var(--border-hairline); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 5rem; margin-bottom: 5rem; }
.footer-col h3 { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--clay); margin-bottom: 1.8rem; }
.logo-main { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.5px; color: var(--limestone); display: block; }
.logo-sub { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 2.5px; color: var(--lichen); text-transform: uppercase; display: block; margin-top: 0.4rem; }
.footer-desc { color: var(--moss); font-size: 1rem; line-height: 1.8; max-width: 350px; margin-top: 1.5rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 1.2rem; }
.footer-col ul li a { text-decoration: none; color: var(--moss); transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--limestone); }
.contact-item { font-size: 1rem; color: var(--moss); line-height: 1.8; margin-bottom: 1.2rem; }
.contact-item strong { display: block; font-size: 0.75rem; color: rgba(237, 232, 222, 0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem; }
.contact-item a { color: var(--moss); text-decoration: none; transition: color 0.3s ease; }
.contact-item a:hover { color: var(--clay); }
.footer-divider { border: none; height: 1px; background: var(--border-hairline); margin-bottom: 3rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 4rem; }
.legal-wrapper { max-width: 75%; }
.copyright { font-size: 0.9rem; margin-bottom: 0.8rem; color: var(--limestone); }
.uk-statutory { font-size: 0.8rem; color: rgba(139, 145, 132, 0.75); line-height: 1.7; margin: 0; }
.privacy-links { display: flex; gap: 2rem; }
.privacy-links a { font-size: 0.85rem; color: var(--moss); text-decoration: none; transition: color 0.3s ease; }
.privacy-links a:hover { color: var(--clay); }

/* ========================================================
   RESPONSIVE BREAKPOINTS
   ======================================================== */
@media (max-width: 1024px) {
    .hero-headline { font-size: 3.4rem; }
    .approach-grid { grid-template-columns: 1fr; gap: 4rem; }
    .approach-visual .contour-line--vertical { display: none; }
    .plan-tag { left: 0; }
    .grid-half { grid-template-columns: 1fr; gap: 4rem; }
    .field-notes { grid-template-columns: 1fr; gap: 2.5rem; }
    .featured-grid { grid-template-columns: 1fr; grid-template-rows: none; }
    .ground-card--tall { grid-column: auto; grid-row: auto; height: 340px; }
    .ground-card { height: 260px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .brand-col { grid-column: span 2; }
    .footer-bottom { flex-direction: column; }
    .legal-wrapper { max-width: 100%; }
}
@media (max-width: 768px) {
    .hero-headline { font-size: 2.6rem; }
    .hero-copy { padding: 0 6vw; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-card, .portfolio-card--tall, .portfolio-card--short, .upload-slot { height: 460px; }
    .contact-text h2 { font-size: 2.4rem; }
    .nav-links { display: none; }
}
