/* ==========================================================================
   Whetstone Collective — Mobile-First Editorial Concept
   Primary Canvas: 390px Mobile | Progressive Expansion: 768px, 1024px, 1280px
   ========================================================================== */

:root {
    --charcoal: #111111;
    --surface: #171717;
    --surface-elevated: #1e1e1e;
    --gold: #c5a059;
    --gold-light: #dfc082;
    --gold-subtle: rgba(197, 160, 89, 0.22);
    --gold-tint: rgba(197, 160, 89, 0.06);
    --off-white: #f4f2ed;
    --text-secondary: #b5b2aa;
    --text-muted: #8a8780;
    --border: #262523;
    --border-strong: #363430;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --header-height: 64px;
    --container-pad: 1.5rem; /* 24px comfortable mobile side margins */
    --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background-color: var(--charcoal);
    color: var(--off-white);
}

body {
    background-color: var(--charcoal);
    color: var(--off-white);
    font-family: var(--font-sans);
    font-size: clamp(1.02rem, 2.5vw, 1.125rem);
    line-height: 1.68;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Intentional Heading Wrapping & Fluid Editorial Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--off-white);
    text-wrap: balance;
    letter-spacing: -0.01em;
}

p, li {
    text-wrap: pretty;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s var(--ease-editorial), border-color 0.25s var(--ease-editorial);
}

ul, ol {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ==========================================================================
   Compact Mobile-First Header & Navigation
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s var(--ease-editorial);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-identity {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0;
    line-height: 1;
}

.brand-emblem {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.brand-wordmark {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--off-white);
    line-height: 1;
    display: block;
}

/* Minimum 44x44px touch target for menu control */
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--off-white);
    cursor: pointer;
    z-index: 1600;
    line-height: 1;
}

.menu-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-secondary);
    line-height: 1;
    display: block;
}

.menu-bars {
    width: 24px;
    height: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.menu-bars span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--gold);
    transition: transform 0.3s var(--ease-editorial), opacity 0.3s var(--ease-editorial);
}

.menu-toggle.open .menu-bars span:nth-child(1) {
    transform: translateY(4.25px) rotate(45deg);
}

.menu-toggle.open .menu-bars span:nth-child(2) {
    transform: translateY(-4.25px) rotate(-45deg);
}

/* Full-screen Navigation Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1400;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-editorial), visibility 0.35s var(--ease-editorial);
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.nav-overlay-inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: var(--header-height);
}

.nav-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 6vw, 2.75rem);
    color: var(--text-secondary);
}

.nav-link.active {
    color: var(--gold);
}

.nav-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ==========================================================================
   Buttons & Touch Controls (44px+ Minimum Touch Targets)
   ========================================================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 0.95rem 2rem;
    background-color: var(--gold);
    color: var(--charcoal);
    border: 1px solid var(--gold);
    border-radius: 3px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.25s var(--ease-editorial), color 0.25s var(--ease-editorial), transform 0.25s var(--ease-editorial);
}

.video-path-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    color: var(--off-white);
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.video-path-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold-tint);
    border: 1px solid var(--gold-subtle);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   1 & 2. Mobile Opening & Prominent Full-Width Video Element
   ========================================================================== */

.editorial-opening {
    padding-top: calc(var(--header-height) + 2.25rem);
    padding-bottom: 3.75rem;
    background: radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.07) 0%, rgba(17, 17, 17, 0) 65%);
    border-bottom: 1px solid var(--border);
}

.opening-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.opening-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.9rem;
}

/* Scaled intentionally for 375px / 390px / 430px phones:
   Feels substantial and editorial without dominating the entire screen */
.hero-headline {
    font-size: clamp(2.25rem, 8.4vw, 4.25rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    max-width: 14ch;
}

.hero-lead {
    font-size: clamp(1.05rem, 2.8vw, 1.25rem);
    line-height: 1.62;
    color: var(--off-white);
    margin-bottom: 0.85rem;
    max-width: 54ch;
}

.hero-sublead {
    font-size: clamp(0.98rem, 2.5vw, 1.125rem);
    line-height: 1.62;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    max-width: 52ch;
}

.opening-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Prominent Full-Width Video Showcase (Natural 9:16 Vertical Aspect Ratio) */
.opening-media {
    width: 100%;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background-color: #0a0a0a;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
}

.video-poster-trigger {
    position: relative;
    width: 100%;
    height: 100%;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    color: var(--off-white);
}

.video-poster-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.7s var(--ease-editorial), opacity 0.4s var(--ease-editorial);
}

.video-poster-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(17, 17, 17, 0.15) 0%,
        rgba(17, 17, 17, 0.35) 50%,
        rgba(17, 17, 17, 0.92) 100%
    );
}

.video-play-badge {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.play-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid var(--gold);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s var(--ease-editorial), background-color 0.3s var(--ease-editorial), color 0.3s var(--ease-editorial);
}

.video-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.video-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--off-white);
}

.video-duration {
    font-size: 0.8rem;
    color: var(--gold-light);
    letter-spacing: 0.04em;
}

.video-embed-mount {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: none;
    background: #000;
}

.video-frame.playing .video-embed-mount {
    display: block;
}

.video-frame.playing .video-poster-trigger {
    display: none;
}

.video-embed-mount iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Editorial Sections (Single-Column Mobile Story)
   ========================================================================== */

.editorial-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.section-surface {
    background-color: var(--surface);
}

.split-editorial {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.section-header-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-index {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.85rem, 6.2vw, 2.85rem);
    line-height: 1.16;
    margin-bottom: 0.85rem;
    max-width: 18ch;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 46ch;
}

/* ==========================================================================
   3. How Whetstone Works — Vertical Gold Line & Restrained Numbering
   ========================================================================== */

.process-steps {
    display: flex;
    flex-direction: column;
}

.process-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 1.15rem;
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-num {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1.4;
    padding-bottom: 0.5rem;
}

.step-line {
    width: 1px;
    flex-grow: 1;
    background: linear-gradient(
        180deg,
        var(--gold) 0%,
        rgba(197, 160, 89, 0.2) 100%
    );
    min-height: 3.5rem;
}

.step-body {
    padding-bottom: 2.5rem;
}

.process-step:last-child .step-body {
    padding-bottom: 0;
}

.step-heading {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    color: var(--off-white);
    margin-bottom: 0.5rem;
}

.step-text {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.68;
    max-width: 50ch;
}

/* ==========================================================================
   4 & 5. Perspective & Personal Board Support Sections
   ========================================================================== */

.editorial-prose {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.editorial-prose p {
    color: var(--text-secondary);
    max-width: 54ch;
}

.editorial-prose .prose-large {
    font-size: clamp(1.125rem, 3.2vw, 1.35rem);
    line-height: 1.58;
    color: var(--off-white);
}

.editorial-note {
    margin-top: 1.25rem;
    padding: 1.5rem;
    background-color: var(--charcoal);
    border-left: 2px solid var(--gold);
    border-radius: 0 6px 6px 0;
}

.note-heading {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.editorial-note p {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.text-link {
    color: var(--gold);
    border-bottom: 1px solid var(--gold-subtle);
    padding-bottom: 1px;
}

/* ==========================================================================
   6. Privacy, Curation, and Founders
   ========================================================================== */

.pillars-list {
    display: flex;
    flex-direction: column;
}

.pillar-item {
    padding: 1.65rem 0;
    border-top: 1px solid var(--border);
}

.pillar-item:first-child {
    padding-top: 0;
    border-top: none;
}

.pillar-heading {
    font-size: clamp(1.2rem, 3.8vw, 1.4rem);
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.pillar-text {
    color: var(--text-secondary);
    max-width: 54ch;
}

.founder-bio {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-strong);
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 56ch;
}

/* ==========================================================================
   7. Final CTA & Footer
   ========================================================================== */

.editorial-close {
    padding: 4.5rem 0;
    border-bottom: 1px solid var(--border);
}

.close-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 620px;
}

.close-title {
    font-size: clamp(2rem, 6.8vw, 3.1rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    max-width: 16ch;
}

.close-copy {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 46ch;
}

.close-action {
    width: 100%;
}

.site-footer {
    padding: 3.5rem 0;
    background-color: var(--charcoal);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
}

.footer-logo {
    max-height: 96px;
    width: auto;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Restrained Editorial Motion (Respecting Reduced Motion)
   ========================================================================== */

.reveal-line,
.reveal-Block {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.55s var(--ease-editorial), transform 0.55s var(--ease-editorial);
}

.reveal-line.is-visible,
.reveal-Block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-line,
    .reveal-Block,
    .video-poster-img,
    .play-circle,
    .btn-primary {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Progressive Hover States (Only for pointer devices, never sticky on touch) */
@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        background-color: var(--gold-light);
        border-color: var(--gold-light);
        transform: translateY(-1px);
    }
    .video-path-link:hover {
        border-color: var(--gold);
        color: var(--gold);
    }
    .video-poster-trigger:hover .video-poster-img {
        transform: scale(1.03);
    }
    .video-poster-trigger:hover .play-circle {
        background-color: var(--gold);
        color: var(--charcoal);
        transform: scale(1.06);
    }
    .text-link:hover {
        color: var(--gold-light);
        border-bottom-color: var(--gold-light);
    }
    .nav-link:hover,
    .footer-nav a:hover {
        color: var(--gold);
    }
}

/* ==========================================================================
   Tablet Expansion (768px+)
   ========================================================================== */

@media (min-width: 768px) {
    :root {
        --header-height: 76px;
        --container-pad: 2.5rem;
    }

    .brand-wordmark {
        font-size: 1rem;
    }

    .opening-actions {
        flex-direction: row;
        align-items: center;
        width: auto;
        gap: 1rem;
    }

    .btn-primary {
        width: auto;
        padding: 1rem 2.25rem;
    }

    .video-path-link {
        width: auto;
        padding: 0.9rem 1.5rem;
    }

    .opening-media {
        max-width: 420px;
    }

    .editorial-section {
        padding: 5.5rem 0;
    }

    .close-action {
        width: auto;
    }

    .footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* ==========================================================================
   Desktop Expansion (1024px+ & 1280px+):
   More negative space, asymmetrical editorial composition, split layouts,
   and immersive media presentation while preserving exact mobile hierarchy.
   ========================================================================== */

@media (min-width: 1024px) {
    :root {
        --header-height: 84px;
        --container-pad: 3.5rem;
    }

    .editorial-opening {
        padding-top: calc(var(--header-height) + 4rem);
        padding-bottom: 6rem;
    }

    /* Asymmetrical Editorial Split for Opening + Prominent 9:16 Video */
    .opening-grid {
        display: grid;
        grid-template-columns: 7fr 5fr;
        gap: 4.5rem;
        align-items: center;
    }

    .opening-media {
        max-width: 390px;
        justify-self: end;
    }

    .editorial-section {
        padding: 7rem 0;
    }

    /* Asymmetrical 12-column editorial split for content sections */
    .split-editorial {
        display: grid;
        grid-template-columns: 5fr 6fr;
        column-gap: 5rem;
        align-items: start;
    }

    .section-header-col {
        position: sticky;
        top: calc(var(--header-height) + 2.5rem);
    }

    .process-step {
        grid-template-columns: 56px 1fr;
        gap: 1.5rem;
    }

    .step-body {
        padding-bottom: 3.25rem;
    }

    .editorial-note {
        padding: 2rem;
    }

    .pillar-item {
        padding: 2.25rem 0;
    }

    .editorial-close {
        padding: 7.5rem 0;
    }

    .close-inner {
        margin: 0 auto;
        text-align: center;
        align-items: center;
    }
}

@media (min-width: 1280px) {
    :root {
        --container-pad: 4rem;
    }

    .opening-grid {
        grid-template-columns: 7.5fr 4.5fr;
        gap: 6rem;
    }

    .split-editorial {
        grid-template-columns: 4.5fr 6.5fr;
        column-gap: 7rem;
    }
}
