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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0d0e10;
    --panel: #14161a;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f5f6f8;
    --mute: #9da3ae;
    --gold: #C5921E;
    --up: #93c19c;
    --down: #d9937f;
    --scrim: rgba(5, 6, 8, 0.75);
}

html, body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

/* ==========================================================================
   FIXED HEADER
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 32px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(13,14,16,0.95) 0%, rgba(13,14,16,0) 100%);
    backdrop-filter: blur(8px);
}

.brand-logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links-desktop {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links-desktop a {
    color: var(--mute);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links-desktop a:hover,
.nav-links-desktop a.active {
    color: var(--gold);
}

.btn-consulting {
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 20px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

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

/* ==========================================================================
   GLOBAL HERO GRAPHIC BASE
   ========================================================================== */
.hero-container, .heritage-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 700px;
    background-color: var(--bg);
    overflow: hidden;
}

.hero-graphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(13, 14, 16, 0.1) 0%, rgba(13, 14, 16, 0.85) 65%, #0d0e10 100%),
        linear-gradient(180deg, rgba(13, 14, 16, 0.4) 0%, rgba(13, 14, 16, 0.2) 50%, #0d0e10 100%),
        url('/assets/images/geranimo-FhbyES4BjG8-unsplash.png') top left / contain no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* ==========================================================================
   HOMEPAGE CAROUSEL
   ========================================================================== */
.carousel-track {
    position: relative;
    z-index: 2;
    display: flex;
    width: 300vw;
    height: 100%;
    transform: translateX(0vw);
    transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide {
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px 0 60px;
}

.slide-content-wrapper {
    margin-left: 38%;
    width: 55%;
    max-width: 720px;
}

.tracker-label {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 4.2vw, 58px);
    font-weight: 400;
    line-height: 1.12;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero-subtext {
    font-size: 15px;
    color: var(--mute);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 560px;
}

.heritage-badge, .quote-badge {
    border-left: 2px solid var(--gold);
    padding-left: 16px;
    margin-top: 16px;
}

.heritage-badge p, .quote-badge p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 18px;
    color: #e5e7eb;
}

.hero-controls {
    position: absolute;
    bottom: 48px;
    left: 38%;
    right: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.slide-nodes {
    display: flex;
    align-items: center;
    gap: 16px;
}

.node {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.4s;
}

.node.active {
    background-color: var(--gold);
}

.btn-read-ground {
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s;
}

.btn-read-ground:hover {
    opacity: 0.8;
}

/* ==========================================================================
   READING THE GROUND (WIDGET OVERLAY)
   ========================================================================== */
.scrim {
    position: fixed;
    inset: 0;
    background: var(--scrim);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 2000;
}

.scrim.on {
    opacity: 1;
    pointer-events: auto;
}

.panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(440px, 100%);
    background: var(--panel);
    border-left: 1px solid var(--line);
    z-index: 2001;
    transform: translateX(102%);
    transition: transform .45s cubic-bezier(.2,.8,.2,1);
    display: flex;
    flex-direction: column;
    padding: calc(28px + env(safe-area-inset-top,0px)) 28px calc(24px + env(safe-area-inset-bottom,0px));
    overflow-y: auto;
}

.panel.on {
    transform: none;
}

.close {
    align-self: flex-end;
    background: none;
    border: 1px solid var(--line);
    color: var(--mute);
    width: 36px;
    height: 36px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

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

.panel h2 {
    font: 500 34px/1.1 "Cormorant Garamond", Georgia, serif;
    margin: 8px 0 6px;
    color: #ffffff;
}

.sub {
    color: var(--mute);
    font-size: 14px;
    margin: 0 0 20px;
}

.stage {
    position: relative;
    height: 118px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    margin-bottom: 6px;
}

.herd {
    position: absolute;
    left: 8px;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    transition: transform 2.4s ease-in-out;
}

.herd.go {
    transform: translateX(150px);
}

.el-img {
    display: block;
    height: auto;
    object-fit: contain;
}

.el-img.gm { width: 130px; }
.el-img.mo { width: 72px; }

.calf {
    width: 48px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    margin-right: 20px;
    transition: transform .8s ease-in-out;
    display: inline-block;
}

.calf .el-img {
    width: 100%;
}

.calf.close-up {
    transform: translateX(20px);
}

.herd.go .el-img {
    animation: bob .55s ease-in-out infinite alternate;
}

@keyframes bob {
    to { transform: translateY(-3px); }
}

.cap {
    font-size: 12.5px;
    color: var(--mute);
    margin: 0 0 18px;
    min-height: 20px;
}

.sig {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sig li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.sig .n {
    font-size: 14px;
    color: var(--text);
}

.sig .v {
    font: 500 26px/1 "Cormorant Garamond", Georgia, serif;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
}

.sig .d {
    grid-column: 1/3;
    font-size: 12.5px;
    color: var(--mute);
}

.up { color: var(--up) !important; }
.down { color: var(--down) !important; }

.note {
    font-size: 12px;
    color: var(--mute);
    margin: 14px 0 22px;
    line-height: 1.5;
}

.links {
    display: grid;
    gap: 0;
    margin-top: auto;
}

.links a {
    color: var(--text);
    text-decoration: none;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 21px;
    transition: color 0.2s;
}

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

/* ==========================================================================
   HERITAGE PAGE
   ========================================================================== */
.heritage-hero {
    display: flex;
    align-items: center;
    padding: 0 80px;
    border-bottom: 1px solid var(--line);
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-left: 38%;
    max-width: 720px;
    padding-top: 40px;
}

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 4.4vw, 62px);
    font-weight: 400;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 16px;
    color: #b0b5c0;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 28px;
}

.scroll-indicator {
    margin-top: 36px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--mute);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--gold);
}

.scroll-indicator .scroll-arrow {
    color: var(--gold);
    font-size: 14px;
    animation: scrollBounce 2s infinite ease-in-out;
}

.section-padding {
    position: relative;
    z-index: 5;
    background-color: var(--bg);
    padding: 120px 80px;
    width: 100%;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.section-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 24px;
}

.body-text {
    color: var(--mute);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 20px;
}

.pillars-section {
    position: relative;
    z-index: 5;
    background-color: #121418;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 120px 80px;
}

.pillars-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.pillar-card {
    background: rgba(24, 26, 32, 0.6);
    border: 1px solid rgba(197, 146, 30, 0.18);
    padding: 48px 36px;
    transition: all 0.4s ease;
    border-radius: 4px;
}

.pillar-card:hover {
    border-color: rgba(197, 146, 30, 0.6);
    transform: translateY(-6px);
    background: rgba(24, 26, 32, 0.95);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.pillar-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.pillar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 600;
}

/* ==========================================================================
   PRACTICES PAGE
   ========================================================================== */
.practices-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.practices-hero {
    padding: 180px 0 80px;
    background: radial-gradient(ellipse at 15% 0%, rgba(197, 146, 30, 0.05), transparent 60%);
    border-bottom: 1px solid var(--line);
}

.practices-hero .page-title {
    margin-bottom: 24px;
}

.practices-hero .hero-lead {
    max-width: 680px;
    margin-bottom: 60px;
}

.picks {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    margin-top: 20px;
}

.picks a {
    padding: 24px 14px 24px 0;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    transition: color 0.3s;
}

.picks a:last-child {
    border-right: 0;
}

.picks small {
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 0.2em;
}

.picks span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 500;
    color: var(--text);
    transition: color 0.3s;
}

.picks a:hover span {
    color: var(--gold);
}

.p-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--line);
}

.p-section:nth-of-type(even) {
    background-color: #121418;
}

.p-head {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 48px;
}

.p-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--gold);
    letter-spacing: 0.1em;
}

.p-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.1;
}

.p-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: start;
}

.p-section:nth-of-type(even) .p-media {
    order: 2;
}

.p-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(197, 146, 30, 0.08), rgba(13, 14, 16, 1));
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.p-video::before {
    content: attr(data-n);
    position: absolute;
    right: -10px;
    top: -40px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 220px;
    font-weight: 500;
    color: var(--gold);
    opacity: 0.05;
    line-height: 1;
}

.p-play {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.3s;
}

.p-play:hover {
    background: var(--gold);
}

.p-play::after {
    content: "";
    border-left: 18px solid var(--gold);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 6px;
    transition: border-left-color 0.3s;
}

.p-play:hover::after {
    border-left-color: var(--bg);
}

.vt {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 26px;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.rt {
    position: absolute;
    right: 24px;
    bottom: 28px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute);
}

.cc {
    font-size: 13px;
    color: var(--mute);
    margin-top: 12px;
}

.p-quote {
    margin: 0 0 40px;
    padding-left: 24px;
    border-left: 2px solid var(--gold);
}

.p-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(24px, 2.8vw, 32px);
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 12px;
}

.p-quote cite {
    font-style: normal;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute);
}

.p-list {
    margin: 0;
}

.p-list-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.p-list-row:last-child {
    border-bottom: 1px solid var(--line);
}

.p-list-row dt {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    padding-top: 4px;
}

.p-list-row dd {
    margin: 0;
    color: var(--mute);
    font-size: 15px;
    line-height: 1.7;
}

.practices-close {
    padding: 120px 0;
    text-align: center;
    background: radial-gradient(ellipse at 50% 100%, rgba(197, 146, 30, 0.05), transparent 65%);
}

.practices-close .p-title {
    margin-bottom: 16px;
}

.practices-close .hero-subtext {
    margin: 0 auto 40px;
}

/* ==========================================================================
   FOOTER (Uppercase removed to allow custom casing)
   ========================================================================== */
footer {
    position: relative;
    z-index: 10;
    width: 100%;
    background-color: var(--bg);
    padding: 60px 80px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
    letter-spacing: 1px;
}

.footer-copy { color: var(--mute); }
.footer-links a { color: var(--mute); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (ALL PAGES)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .panel, .scrim, .herd, .calf { transition: none; }
    .herd.go .el-img { animation: none; }
}

@media (max-width: 1024px) {
    /* Header & Navigation */
    header { padding: 20px 24px; }
    .nav-links-desktop { display: none; }
    
    /* Homepage Hero */
    .hero-graphic { width: 100%; height: 35%; background-size: cover; }
    .slide-content-wrapper, .hero-content { margin-left: 0; width: 100%; }
    .hero-controls { left: 24px; right: 24px; bottom: 24px; }
    
    /* Heritage Page */
    .heritage-hero { padding: 120px 24px 60px 24px; height: auto; }
    .section-padding, .pillars-section { padding: 80px 24px; }
    .two-column-grid, .pillars-grid { grid-template-columns: 1fr; gap: 32px; }
    
    /* Practices Page */
    .practices-wrap { padding: 0 24px; }
    .picks { grid-template-columns: 1fr 1fr; }
    .picks a { border-bottom: 1px solid var(--line); }
    .p-grid { grid-template-columns: 1fr; gap: 48px; }
    .p-section:nth-of-type(even) .p-media { order: 0; }
    .p-list-row { grid-template-columns: 1fr; gap: 8px; }
    
    /* Footer */
    footer { padding: 40px 24px; flex-direction: column; gap: 16px; text-align: center; }
    
    /* ==========================================================================
       VIDEO MODAL (LIGHTBOX OVERLAY)
       ========================================================================== */
    .video-modal {
        position: fixed;
        inset: 0;
        z-index: 3000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .video-modal.active {
        opacity: 1;
        pointer-events: auto;
    }

    .video-modal-scrim {
        position: absolute;
        inset: 0;
        background: rgba(5, 6, 8, 0.95);
        backdrop-filter: blur(8px);
    }

    .video-modal-container {
        position: relative;
        z-index: 3001;
        width: 90%;
        max-width: 1100px;
        transform: translateY(20px) scale(0.98);
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .video-modal.active .video-modal-container {
        transform: translateY(0) scale(1);
    }

    .video-wrapper {
        position: relative;
        padding-top: 56.25%; /* Enforces perfect 16:9 Aspect Ratio */
        background: #000;
        border: 1px solid var(--gold);
        box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    }

    .video-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        outline: none;
        object-fit: cover;
    }

    .video-close {
        position: absolute;
        top: -50px;
        right: 0;
        background: transparent;
        border: 1px solid rgba(255,255,255,0.2);
        color: var(--mute);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        display: grid;
        place-items: center;
        transition: all 0.3s ease;
    }

    .video-close:hover {
        border-color: var(--gold);
        color: var(--gold);
        transform: rotate(90deg);
    }
}