/* ==========================================================================
   Stevie Grandmaison — Personal Hub (v1.0.0)
   Dark cinematic stage & grading-suite aesthetic.
   Composited motion only (transform & opacity); prefers-reduced-motion honored.
   ========================================================================== */

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 400 700;
    font-display: optional;
    src: url('/fonts/oswald-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Oswald Fallback';
    src: local('Arial Narrow'), local('Impact'), local('Arial'), local('sans-serif');
    size-adjust: 84%;
    ascent-override: 112%;
    descent-override: 26%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/fonts/source-sans-3-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Source Sans Fallback';
    src: local('Segoe UI'), local('Arial'), local('Helvetica Neue'), local('sans-serif');
    size-adjust: 97%;
    ascent-override: 98%;
    descent-override: 27%;
    line-gap-override: 0%;
}

:root {
    color-scheme: dark;
    --bg: #0a0a0c;
    --bg-elevated: #111114;
    --bg-card: #15151a;
    --text: #f3f1ec;
    --text-muted: #c8c4bb;
    --accent: #e2b15a;
    --accent-hover: #f0c574;
    --crimson: #8e1c2a;
    --crimson-soft: rgba(142, 28, 42, 0.2);
    --hairline: #25252d;
    --font-display: 'Oswald', 'Oswald Fallback', sans-serif;
    --font-body: 'Source Sans 3', 'Source Sans Fallback', system-ui, -apple-system, sans-serif;
    --max-width: 1160px;
    --radius: 6px;
}

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

html {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-hover);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    background: var(--accent);
    color: #0a0a0c;
    font-weight: 700;
    padding: 12px 20px;
    text-decoration: none;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

/* Layout containers */
.wrap {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

main {
    flex: 1;
}

/* ==========================================================================
   HEADER & NAVIGATION (Static HTML, visible on first paint, 48px targets)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background-color: rgba(10, 10, 12, 0.96);
    border-bottom: 1px solid var(--hairline);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 16px;
}

.wordmark {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 4px 0;
    white-space: nowrap;
}

.wordmark span {
    color: var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 48px;
    padding: 0 12px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    margin-left: 8px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-cta:hover {
    background-color: var(--accent);
    color: #0a0a0c;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    padding: 8px;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   HERO (Home LCP still — visible immediately, subtle Ken Burns transform)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 76vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 1px solid var(--hairline);
    background-color: var(--bg);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transform: scale(1);
    animation: hero-ken-burns 24s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes hero-ken-burns {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to   { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.28) 0%, rgba(10, 10, 12, 0.62) 55%, rgba(10, 10, 12, 0.96) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 88px 0 64px;
    max-width: 780px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.hero h1,
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4.75rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-lead,
.page-lead {
    font-size: clamp(1.08rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 65ch;
    margin-bottom: 32px;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--accent);
    color: #0a0a0c;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #0a0a0c;
}

.btn-outline {
    background-color: rgba(17, 17, 20, 0.72);
    border-color: var(--accent);
    color: var(--text);
}

.btn-outline:hover {
    background-color: rgba(226, 177, 90, 0.14);
    color: var(--text);
}

/* Interior Page Hero */
.page-hero {
    padding: 64px 0 40px;
    border-bottom: 1px solid var(--hairline);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}

/* ==========================================================================
   SECTIONS, GRIDS & CARDS
   ========================================================================== */
.section {
    padding: 64px 0;
    border-bottom: 1px solid var(--hairline);
}

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

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
}

.section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.15;
}

.section h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 10px;
}

.section-sub {
    color: var(--text-muted);
    max-width: 64ch;
    margin-top: 8px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

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

.card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(226, 177, 90, 0.55);
}

.card-media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #17171d 0%, #0d0d11 100%);
    overflow: hidden;
    border-bottom: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-typo-plate {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
    background: radial-gradient(circle at top right, rgba(226, 177, 90, 0.16), transparent 62%),
                linear-gradient(160deg, #16161c 0%, #0c0c10 100%);
}

.card-typo-plate .plate-tag {
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

.card-typo-plate .plate-label {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

.card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
}

.card-link:hover {
    color: var(--accent-hover);
}

.badge {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.badge-crimson {
    border-color: var(--crimson);
    background-color: var(--crimson-soft);
    color: #f4b8c0;
}

/* ==========================================================================
   CLICK-TO-PLAY VIDEO FACADE (Zero video bytes downloaded until clicked)
   ========================================================================== */
.reel-wrap {
    max-width: 860px;
}

.video-facade {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    background-color: #000;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    overflow: hidden;
}

.video-facade img,
.video-facade video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-trigger {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(10, 10, 12, 0.34);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.play-ring {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background-color: rgba(10, 10, 12, 0.82);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.play-ring::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0.5;
    animation: play-pulse 2.6s ease-in-out infinite;
}

@keyframes play-pulse {
    0%, 100% { opacity: 0.25; transform: scale(0.96); }
    50%      { opacity: 0.7; transform: scale(1.06); }
}

.play-trigger:hover .play-ring {
    transform: scale(1.06);
}

.play-triangle {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 24px solid var(--accent);
}

.media-caption {
    margin-top: 14px;
    font-size: 0.94rem;
    color: var(--text-muted);
}

/* ==========================================================================
   PROSE, STEP DIAGRAM, PLACEHOLDERS & DISCLAIMERS
   ========================================================================== */
.prose {
    max-width: 72ch;
}

.prose p {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.prose p strong {
    color: var(--text);
}

.prose ul {
    margin: 0 0 22px 22px;
    color: var(--text-muted);
}

.prose li {
    margin-bottom: 8px;
}

.split-block {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
}

.framed-still {
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--bg-card);
}

.framed-still img {
    width: 100%;
    height: auto;
}

.placeholder-box {
    border: 1px dashed rgba(226, 177, 90, 0.5);
    background-color: rgba(226, 177, 90, 0.05);
    border-radius: var(--radius);
    padding: 20px 24px;
    color: var(--text-muted);
    font-size: 0.96rem;
    margin: 20px 0;
}

.placeholder-box strong {
    color: var(--accent);
}

.disclaimer-box {
    border-left: 4px solid var(--crimson);
    background-color: var(--crimson-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin: 24px 0;
    color: var(--text);
}

.disclaimer-box strong {
    display: block;
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f4b8c0;
    margin-bottom: 6px;
}

/* Pipeline Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.step-card {
    background-color: var(--bg-card);
    border: 1px solid var(--hairline);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 24px;
}

.step-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

/* ==========================================================================
   FORMS (Native HTML first, 48px targets, visible labels, honeypot)
   ========================================================================== */
.form-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 640px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 0.96rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background-color: var(--bg);
    border: 1px solid #353542;
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
}

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

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--crimson);
    background-color: var(--crimson-soft);
    color: var(--text);
    margin-bottom: 20px;
}

/* ==========================================================================
   FOOTER (AA contrast >= #cccccc on dark ground)
   ========================================================================== */
.site-footer {
    background-color: #08080a;
    border-top: 1px solid var(--hairline);
    padding: 48px 0;
    color: #d0ccc4;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 8px;
}

.footer-tagline {
    color: #d0ccc4;
    font-size: 0.94rem;
    max-width: 44ch;
    margin-bottom: 14px;
}

.footer-copy {
    color: #d0ccc4;
    font-size: 0.88rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #d0ccc4;
    text-decoration: none;
    font-size: 0.94rem;
}

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

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
    .split-block { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: #0c0c0f;
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px 24px;
        gap: 6px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        justify-content: flex-start;
        padding: 0 8px;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 8px;
    }

    .grid-4,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 68vh;
    }

    .hero-content {
        padding: 64px 0 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-media img,
    .play-ring::before {
        animation: none !important;
        transform: none !important;
    }
    .btn, .card, .nav-link::after, .play-ring, .site-nav {
        transition: none !important;
    }
}
