/* ============================================
   DODD — Shared Design System
   Dark theme, typography, common components
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');



/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* ── Backgrounds ─────────────────────── */
    --bg-primary:   #000;
    --bg-surface:   #111111;
    --bg-secondary: #111111;
    --bg-card:      #1a1a1a;
    --bg-card-2:    #212121;
    --bg-card-hover:#202020;
    --bg-surface-2: #1a1a1a;

    /* ── Text ────────────────────────────── */
    --text-primary:   #f0f0f0;
    --text-secondary: #787878;
    --text-muted:     #464646;
    --text-accent:    var(--text-muted);

    /* ── Accents ─────────────────────────── */
    --amber:       #4f81f7;
    --amber-glow:  rgba(79, 129, 247, 0.12);
    --violet:      #7c3aed;
    --violet-glow: rgba(124, 58, 237, 0.12);
    --cyan:        #06b6d4;
    --cyan-glow:   rgba(6, 182, 212, 0.08);
    --blue:        #60a5fa;
    --blue-glow:   rgba(96, 165, 250, 0.12);

    /* ── Borders ─────────────────────────── */
    --border:       rgba(255, 255, 255, 0.07);
    --border-subtle:rgba(255, 255, 255, 0.04);
    --border-strong:rgba(255, 255, 255, 0.14);
    --border-hover: rgba(255, 255, 255, 0.20);

    /* Alias — used in case-study.css (greyscale) */
    --accent: var(--text-primary);

    /* ── Spacing ─────────────────────────── */
    --section-gap:  120px;
    --content-max:  800px;
    --content-wide: 1100px;

    /* ── Typography ──────────────────────────── */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    /* ── Type scale ──────────────────────────── */

    /* Hero h1 — fluid, shared by home / GGPoker / MotionMind / campaign pages */
    --fs-hero:          clamp(2.2rem, 5.5vw, 4.4rem);

    /* Shared heading properties — use alongside --fs-hero everywhere */
    --fw-heading:       800;
    --ls-heading:       -0.04em;
    --lh-heading:       1.04;

    /* Section-level h2 — about, showcase, ceiling, cta — all share this */
    --fs-section-h2:    2.5rem;
    /* Hero / intro subtext */
    --fs-sub:           clamp(0.95rem, 1.4vw, 1.1rem);
    /* Mono eyebrow labels */
    --fs-eyebrow:       0.68rem;
    /* Body copy */
    --fs-body:          0.95rem;
    /* Stat numbers in sections (about facts, showcase facts) */
    --fs-stat-section:  clamp(1.6rem, 2.2vw, 2rem);
    /* Stat numbers in hero strip */
    --fs-stat-hero:     clamp(1.4rem, 2vw, 1.8rem);
}

/* Dark-only site — no light theme overrides */

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
    max-width: 65ch;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--text-secondary);
}

/* === LAYOUT === */
.container,
.page-container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container--wide {
    max-width: var(--content-wide);
}

section {
    padding: var(--section-gap) 0;
    min-height: auto;
}

/* Full-height section — opt-in only */
.section--full-height { min-height: 100vh; }

/* Section modifier classes — compose these instead of inline styles */
.section--secondary   { background: var(--bg-secondary); }
.section--bubbles     { position: relative; overflow: hidden; }
.section--auto-height { min-height: auto; }

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #000;
    border-bottom: none;
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__tagline {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.hero__title {
    margin-bottom: 24px;
}

.hero__title em {
    font-style: normal;
    color: var(--text-primary);
}

.hero__subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 55ch;
    margin-bottom: 40px;
}

/* === STAT CALLOUTS === */
.stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    margin: 48px 0;
}

.stat {
    text-align: left;
}

.stat__number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat__label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* === SECTION HEADERS === */
.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
    display: block;
    font-family: var(--font-mono);
}

.section-title {
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 48px;
    max-width: 60ch;
}

/* === CARDS === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.card__tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card__desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === VIDEO PLACEHOLDER === */
.video-placeholder {
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    border: 1px dashed var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.02);
    opacity: 1;
}

.video-placeholder span {
    position: relative;
    z-index: 1;
}

/* === HEADSHOT PLACEHOLDER === */
.headshot-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

/* === CODE SNIPPETS === */
.code-bg {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1.8;
    color: var(--text-muted);
    opacity: 0.08;
    pointer-events: none;
    white-space: pre;
    user-select: none;
}

/* === DIVIDERS === */
.divider {
    width: 60px;
    height: 2px;
    background: var(--border-strong);
    margin: 48px 0;
}

.divider--centered {
    margin-left: auto;
    margin-right: auto;
}

/* === FOOTER === */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
}

.footer__links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--text-primary);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    :root {
        --section-gap: 80px;
    }

    .stats {
        gap: 32px;
    }

    /* Container: tighter horizontal padding on mobile */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .container--wide {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .container,
    .container--wide {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}
/* img-loaded class available for future use */
