:root {
    --brand-black: #000000;
    --brand-dark: #030303;
    --brand-border: rgba(255, 255, 255, 0.06);
    --brand-text: #9ca3af;
    --brand-strong: #ffffff;
    --brand-muted: #6b7280;
}

* { box-sizing: border-box; }

::selection { background: #ffffff; color: #000000; }

html, body {
    background-color: var(--brand-black);
    color: var(--brand-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    margin: 0;
    padding: 0;
}

strong { color: var(--brand-strong); font-weight: 500; }
h1, h2, h3, h4 { color: var(--brand-strong); letter-spacing: -0.02em; font-weight: 500; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.font-mono, .mono { font-family: 'Space Mono', monospace; }

.ambient-light {
    position: fixed; top: -20vh; left: 50%; width: 80vw; height: 80vh;
    background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0) 70%);
    transform: translateX(-50%); pointer-events: none; z-index: 0;
}

.glass-nav {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--brand-border);
}

/* ── Cards ──────────────────────────────────────────────────────────── */

.artifact-card {
    background: var(--brand-dark);
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.4s ease;
    display: flex; flex-direction: column; gap: 12px;
}
.artifact-card:hover {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.2);
}

.label-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--brand-muted);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* ── Video card ─────────────────────────────────────────────────────── */

.video-card {
    position: relative; width: 100%; aspect-ratio: 4/5;
    background: #050505; border: 1px solid var(--brand-border);
    border-radius: 8px; overflow: hidden;
}
.video-card video, .video-card img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.55;
    filter: grayscale(100%);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-card:hover video, .video-card:hover img {
    opacity: 1; filter: grayscale(0%); transform: scale(1.02);
}
.video-card .video-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 50%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px; opacity: 0; transition: opacity 0.6s ease;
}
.video-card:hover .video-overlay { opacity: 1; }

/* ── Reveal animation ───────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ── Forms ──────────────────────────────────────────────────────────── */

.field {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 24px;
}
.field label {
    font-family: 'Space Mono', monospace;
    font-size: 10px; color: var(--brand-muted);
    letter-spacing: 0.3em; text-transform: uppercase;
}
.field input, .field textarea, .field select {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--brand-border);
    color: var(--brand-strong);
    padding: 14px 16px; border-radius: 8px;
    font-family: inherit; font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.04);
}
.field textarea { min-height: 140px; resize: vertical; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
    padding: 14px 28px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5);
    color: var(--brand-strong);
    cursor: pointer; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}
.btn:hover {
    background: #ffffff; color: #000000; border-color: #ffffff;
    box-shadow: 0 0 40px rgba(255,255,255,0.1);
}
.btn-primary { background: #ffffff; color: #000000; border-color: #ffffff; }
.btn-primary:hover { background: rgba(255,255,255,0.85); }
.btn-danger { color: #ff6b6b; border-color: rgba(255,107,107,0.3); }
.btn-danger:hover { background: #ff6b6b; color: #000; border-color: #ff6b6b; }
.btn-sm { padding: 8px 16px; font-size: 10px; }

/* ── Utility ────────────────────────────────────────────────────────── */

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; position: relative; z-index: 10; }
.border-t { border-top: 1px solid var(--brand-border); }
.text-mono { font-family: 'Space Mono', monospace; }
.text-muted { color: var(--brand-muted); }
.text-strong { color: var(--brand-strong); }
.text-center { text-align: center; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Typography: scale h1 down on small screens so it doesn't dominate */
.h-display {
    font-size: clamp(2.25rem, 7vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 600;
}
.h-section {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .container { padding: 0 20px; }
    .artifact-card { padding: 24px !important; }
    .video-card { aspect-ratio: 4/5; }
    .btn { padding: 12px 20px; font-size: 10px; }
    .label-eyebrow { font-size: 9px; letter-spacing: 0.2em; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 32px 0; }
    .grid { gap: 16px; }
    nav .max-w-7xl { padding-left: 16px !important; padding-right: 16px !important; }
}

.tag {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 10px; letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-muted);
    border: 1px solid var(--brand-border);
    padding: 4px 10px; border-radius: 999px;
}
.tag.urgency-high { color: #ff6b6b; border-color: rgba(255,107,107,0.3); }
.tag.urgency-medium { color: #ffd166; border-color: rgba(255,209,102,0.3); }
.tag.urgency-low { color: #06d6a0; border-color: rgba(6,214,160,0.3); }
.tag.provider-stub { color: var(--brand-muted); }
.tag.provider-cloud { color: #8ab4ff; border-color: rgba(138,180,255,0.3); }
