:root {
    --bg-canvas: #0b0b0d;
    --bg-surface: #16161a;
    --bg-surface-alt: #1a1a1f;
    --text-primary: #f0f0f5;
    --text-muted: #c0c4cc;
    --accent-primary: #dc2626;
    --border-subtle: #333333;
    --font-serif: Charter, Cambria, Georgia, serif;
    --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
    background-color: var(--bg-canvas);
    color: var(--text-muted);
    font-family: var(--font-serif);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: normal;
    margin-top: 0;
    line-height: 1.2;
}

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

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

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.prose {
    max-width: 68ch;
    margin: 0 auto;
}

.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-subtle);
}

th, td {
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    text-align: left;
}

/* Buttons */
.btn-outline, button {
    border: 1px solid var(--accent-primary);
    background: transparent;
    color: var(--accent-primary);
    padding: 12px 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-serif);
    cursor: pointer;
    display: inline-block;
    transition: all 0.4s var(--ease-kinetic);
    border-radius: 0;
    text-align: center;
    font-size: 0.9rem;
}

.btn-outline:hover, button:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
}

/* Header & Top Bar */
.top-bar {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 5%;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    background: var(--bg-canvas);
    color: var(--text-muted);
}

.top-bar span.small-caps {
    font-variant: small-caps;
}

header {
    position: relative;
    padding: 24px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-canvas);
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation */
nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: var(--text-muted);
    font-variant: small-caps;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0;
}

/* Mobile Nav */
@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-canvas);
        flex-direction: column;
        padding: 24px 5%;
        border-bottom: 1px solid var(--border-subtle);
        box-sizing: border-box;
    }
    nav.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    padding-bottom: 10vh;
    margin-bottom: 4rem;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: grayscale(80%) contrast(1.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 769px) {
    .hero-content { grid-template-columns: 1.5fr 1fr; align-items: center; }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.floating-card {
    border: 1px solid var(--border-subtle);
    background: var(--bg-canvas);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.floating-card .fact {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
    font-variant: small-caps;
    letter-spacing: 1px;
}

/* Bento Grid Architecture */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 4rem 0;
}

@media (min-width: 769px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 300px;
    }
    .bento-large { grid-column: span 2; grid-row: span 2; }
    .bento-wide { grid-column: span 2; grid-row: span 1; }
    .bento-tall { grid-column: span 1; grid-row: span 2; }
}

.bento-tile {
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface-alt);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s var(--ease-kinetic);
}

.bento-tile:hover {
    transform: scale(1.015);
}

.bento-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    opacity: 0.6;
    filter: grayscale(30%);
}

.bento-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, var(--bg-canvas) 0%, transparent 100%);
    box-sizing: border-box;
}

.bento-content.top {
    justify-content: flex-start;
    background: linear-gradient(to bottom, var(--bg-canvas) 0%, transparent 100%);
}

.label {
    font-variant: small-caps;
    color: var(--accent-primary);
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* General Sections */
.section-pad {
    padding: 6rem 0;
}

.clip-diagonal-alt {
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%);
    background: var(--bg-surface);
    padding: 8rem 0;
    margin: 4rem 0;
}

/* Badges & Avatars */
.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--accent-primary);
    object-fit: cover;
}

.badge {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-primary);
    font-size: 1.2rem;
    color: var(--accent-primary);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 5%;
    background: var(--bg-surface);
    position: relative;
}

.footer-grid {
    display: grid;
    background-image: linear-gradient(var(--border-subtle) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 40px 40px;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.05;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    color: var(--text-primary);
    font-variant: small-caps;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0; margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul a {
    color: var(--text-muted);
}

.footer-col ul a:hover {
    color: var(--accent-primary);
}

/* Contact Builder Tool */
.builder-panel {
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    background: var(--bg-surface);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-variant: small-caps;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.form-group textarea, .form-group input {
    width: 100%;
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: var(--font-serif);
    padding: 1rem;
    box-sizing: border-box;
    resize: vertical;
}

.form-group textarea:focus, .form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.brief-output {
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    color: var(--text-muted);
    font-family: monospace;
    white-space: pre-wrap;
    min-height: 150px;
    margin-top: 1rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--ease-kinetic);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ List */
.faq-list {
    display: grid;
    gap: 2rem;
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.faq-item p {
    margin: 0;
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
