/* ═══════════════════════════════════════════════
   MATMEDIA — "Quiet Luxury & The Broken Grid"
   Design System: Warm greys, muted gold, extreme
   negative space, asymmetric layouts, parallax depth
   ═══════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Root Design Tokens ────────────────────── */
:root {
    /* Muted monochromatic palette — warm, expensive */
    --bg-primary: #0e0e0e;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-elevated: #1f1f1f;

    /* Warm off-whites & taupes */
    --text-primary: #f0ece4;
    --text-secondary: #a39e93;
    --text-muted: #6b6660;

    /* Quiet gold — matte, not flashy */
    --gold: #c9a84c;
    --gold-soft: #b89a3f;
    --gold-glow: rgba(201, 168, 76, 0.12);

    /* Surfaces */
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --divider: rgba(255, 255, 255, 0.05);

    /* Fonts */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Spacing — generous, luxurious */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --duration-slow: 1.2s;
    --duration-med: 0.7s;
    --duration-fast: 0.35s;
}

/* ── Reset & Base ──────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: default;
}

/* Textured background — subtle paper grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ── Selection ─────────────────────────────── */
::selection {
    background: var(--gold);
    color: var(--bg-primary);
}

/* ── Cursor Glow ───────────────────────────── */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: background var(--duration-fast) ease, backdrop-filter var(--duration-fast) ease;
}

.navbar.scrolled {
    background: rgba(14, 14, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--divider);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.04em;
}

.nav-logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--duration-fast) ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--duration-fast) var(--ease-out-expo);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.7em 1.6em;
    transition: all var(--duration-fast) ease;
}

.nav-cta:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 1px;
    background: var(--text-primary);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(14, 14, 14, 0.97);
    backdrop-filter: blur(30px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-med) ease;
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav a {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-primary);
    transition: color var(--duration-fast) ease;
}

.mobile-nav a:hover {
    color: var(--gold);
}

.mobile-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 2rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 860px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-md);
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.3s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: var(--space-sm);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.5s forwards;
}

.gold {
    color: var(--gold);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto var(--space-lg);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.7s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 1em 2.5em;
    transition: all var(--duration-med) var(--ease-out-expo);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.9s forwards;
}

.hero-cta:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 1.2s forwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ═══════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════ */
.section-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.section-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════ */
.services {
    padding: var(--space-2xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: var(--space-xl);
    background: var(--divider);
}

.service-card {
    background: var(--bg-primary);
    padding: var(--space-lg) var(--space-md);
    transition: background var(--duration-fast) ease;
    position: relative;
}

.service-card:hover {
    background: var(--bg-card);
}

.service-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--gold);
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    opacity: 0.5;
}

.service-icon {
    width: 28px;
    height: 28px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-weight: 400;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 860px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════
   PORTFOLIO — "SELECTED VENTURES" BROKEN GRID
   The Quiet Luxury Layout
   ═══════════════════════════════════════════ */
.portfolio {
    padding: var(--space-2xl) 0;
    padding-bottom: var(--space-xl);
}

.portfolio .section-desc {
    margin-bottom: var(--space-xl);
}

/* --- Ventures Grid Container --- */
.ventures-grid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Row Layouts --- */
.venture-row {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

/* Hero row: single full-width */
.venture-row--hero {
    grid-template-columns: 1fr;
}

/* Duo: 60/40 split */
.venture-row--duo {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
}

/* Duo reversed: 40/60 */
.venture-row--duo-reverse {
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
}

/* Triple: asymmetric 1.2 / 0.8 / 1.2 */
.venture-row--triple {
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    align-items: start;
}

/* --- Stagger offsets (broken grid effect) --- */
.venture-row--duo .venture-piece:nth-child(2) {
    margin-top: var(--space-xl);
}

.venture-row--duo-reverse .venture-piece:nth-child(1) {
    margin-top: var(--space-lg);
}

.venture-row--triple .venture-piece:nth-child(2) {
    margin-top: calc(var(--space-xl) * 1.2);
}

.venture-row--triple .venture-piece:nth-child(3) {
    margin-top: var(--space-lg);
}

/* --- Venture Piece (Card) --- */
.venture-piece {
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform var(--duration-med) var(--ease-out-expo);
}

.venture-piece:hover {
    z-index: 10;
}

/* --- Frame (Image Container) --- */
.venture-frame {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
}

/* Aspect ratios */
.venture-piece--xl .venture-frame {
    aspect-ratio: 21 / 9;
}

.venture-piece--wide .venture-frame {
    aspect-ratio: 16 / 10;
}

.venture-piece--tall .venture-frame {
    aspect-ratio: 3 / 4;
}

.venture-piece--md .venture-frame {
    aspect-ratio: 4 / 3;
}

.venture-piece--sm .venture-frame {
    aspect-ratio: 1 / 1;
}

.venture-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) contrast(1.05);
    transition: filter var(--duration-slow) var(--ease-out-expo),
        transform var(--duration-slow) var(--ease-out-expo);
    will-change: transform, filter;
}

.venture-piece:hover .venture-frame img {
    filter: grayscale(0%) contrast(1.1) saturate(1.1);
    transform: scale(1.04);
}

/* Soft vignette overlay */
.venture-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 50%,
            rgba(14, 14, 14, 0.6) 100%);
    pointer-events: none;
    transition: opacity var(--duration-med) ease;
}

.venture-piece:hover .venture-frame::after {
    opacity: 0.8;
}

/* Gold accent line on hover */
.venture-frame::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    z-index: 2;
    transition: width var(--duration-slow) var(--ease-out-expo);
}

.venture-piece:hover .venture-frame::before {
    width: 100%;
}

/* --- Meta Info --- */
.venture-meta {
    padding: var(--space-sm) 0;
    position: relative;
}

.venture-index {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--gold);
    opacity: 0.5;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 4px;
}

.venture-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
    transition: color var(--duration-fast) ease;
    line-height: 1.3;
}

.venture-piece:hover .venture-name {
    color: var(--gold);
}

.venture-category {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Diffused shadow — implies floating */
.venture-piece .venture-frame {
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.4);
    transition: box-shadow var(--duration-med) var(--ease-out-expo);
}

.venture-piece:hover .venture-frame {
    box-shadow: 0 30px 80px -20px rgba(201, 168, 76, 0.15),
        0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

/* --- Responsive Broken Grid --- */
@media (max-width: 1024px) {
    .venture-row--triple {
        grid-template-columns: 1fr 1fr;
    }

    .venture-row--triple .venture-piece:nth-child(3) {
        grid-column: 1 / -1;
        margin-top: 0;
    }
}

@media (max-width: 768px) {

    .venture-row--duo,
    .venture-row--duo-reverse,
    .venture-row--triple {
        grid-template-columns: 1fr;
    }

    .venture-row .venture-piece {
        margin-top: 0 !important;
    }

    .venture-row {
        margin-bottom: var(--space-lg);
    }
}

/* ═══════════════════════════════════════════
   FULLSCREEN SLIDESHOW LIGHTBOX
   ═══════════════════════════════════════════ */
.slideshow-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(6, 6, 6, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-med) var(--ease-out-expo);
}

.slideshow-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.slideshow-container {
    position: relative;
    width: 85vw;
    height: 75vh;
    overflow: hidden;
}

.slideshow-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.95) translateX(40px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
        transform var(--duration-slow) var(--ease-out-expo);
}

.slideshow-slide.active {
    opacity: 1;
    transform: scale(1) translateX(0);
}

.slideshow-slide.exit-left {
    opacity: 0;
    transform: scale(0.95) translateX(-40px);
}

.slideshow-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: contrast(1.05);
}

/* Slideshow Controls */
.slideshow-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 2.5rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color var(--duration-fast) ease;
    line-height: 1;
    font-weight: 300;
}

.slideshow-close:hover {
    color: var(--text-primary);
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 10;
    transition: all var(--duration-fast) ease;
}

.slideshow-nav:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.06);
}

.slideshow-prev {
    left: var(--space-md);
}

.slideshow-next {
    right: var(--space-md);
}

.slideshow-counter {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    z-index: 10;
}

.slideshow-caption {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    z-index: 10;
    text-align: right;
    max-width: 300px;
}

@media (max-width: 768px) {
    .slideshow-container {
        width: 95vw;
        height: 60vh;
    }

    .slideshow-nav {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--divider);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xl);
    align-items: start;
    margin-top: var(--space-xl);
}

.about-text p {
    margin-bottom: var(--space-md);
    font-size: 1rem;
    line-height: 1.8;
}

.signature {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold) !important;
    font-size: 1.1rem !important;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter var(--duration-slow) ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

/* Gold corner frame */
.about-image::before {
    content: '';
    position: absolute;
    top: -var(--space-sm);
    right: -var(--space-sm);
    width: 60%;
    height: 60%;
    border-top: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
    top: -16px;
    right: -16px;
}

@media (max-width: 860px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ═══════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════ */
.stats {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact {
    padding: var(--space-2xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.contact-info>p {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-detail svg {
    color: var(--gold);
    flex-shrink: 0;
}

.contact-detail a {
    transition: color var(--duration-fast) ease;
}

.contact-detail a:hover {
    color: var(--gold);
}

.contact-socials {
    display: flex;
    gap: var(--space-md);
}

.contact-socials a {
    color: var(--text-muted);
    transition: color var(--duration-fast) ease;
}

.contact-socials a:hover {
    color: var(--gold);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2em 0 0.6em;
    background: none;
    border: none;
    border-bottom: 1px solid var(--divider);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--duration-fast) ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--gold);
}

.form-group label {
    position: absolute;
    top: 1.2em;
    left: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--duration-fast) ease;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: 0;
    font-size: 0.65rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-submit {
    align-self: flex-start;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bg-primary);
    background: var(--gold);
    border: none;
    padding: 1em 2.5em;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

.form-submit:hover {
    background: var(--gold-soft);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(201, 168, 76, 0.3);
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
    position: relative;
    padding: var(--space-lg) 0;
    overflow: hidden;
}

/* Gold gradient accent line at top */
.footer-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(201, 168, 76, 0.15) 15%,
            var(--gold) 50%,
            rgba(201, 168, 76, 0.15) 85%,
            transparent 100%);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    font-weight: 300;
}

.footer-author-link {
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.04em;
    position: relative;
    transition: color var(--duration-fast) ease,
        filter var(--duration-fast) ease;
}

.footer-author-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-author-link:hover {
    color: var(--gold-soft);
    filter: brightness(1.2);
}

.footer-author-link:hover::after {
    width: 100%;
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        gap: var(--space-xs);
        text-align: center;
    }
}

/* ═══════════════════════════════════════════
   REVEAL ANIMATIONS (Scroll-triggered)
   ═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
        transform var(--duration-slow) var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children in venture rows */
.venture-row.visible .venture-piece:nth-child(1) {
    transition-delay: 0s;
}

.venture-row.visible .venture-piece:nth-child(2) {
    transition-delay: 0.15s;
}

.venture-row.visible .venture-piece:nth-child(3) {
    transition-delay: 0.3s;
}

.venture-row .venture-piece {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
        transform var(--duration-slow) var(--ease-out-expo);
}

.venture-row.visible .venture-piece {
    opacity: 1;
    transform: translateY(0);
}

/* Keep stagger offsets after animation */
.venture-row.visible.venture-row--duo .venture-piece:nth-child(2) {
    transform: translateY(0);
    margin-top: var(--space-xl);
}

.venture-row.visible.venture-row--duo-reverse .venture-piece:nth-child(1) {
    transform: translateY(0);
    margin-top: var(--space-lg);
}

.venture-row.visible.venture-row--triple .venture-piece:nth-child(2) {
    transform: translateY(0);
    margin-top: calc(var(--space-xl) * 1.2);
}

.venture-row.visible.venture-row--triple .venture-piece:nth-child(3) {
    transform: translateY(0);
    margin-top: var(--space-lg);
}

/* Body locked when slideshow open */
body.slideshow-open {
    overflow: hidden;
}