:root {
    --bg-canvas: #09090b;
    --bg-surface: rgba(245, 245, 244, 0.04);
    --bg-surface-hover: rgba(245, 245, 244, 0.08);
    --text-primary: #f5f5f4;
    --text-muted: rgba(245, 245, 244, 0.6);
    --accent-primary: #ff6f59;
    --accent-muted: rgba(255, 111, 89, 0.2);
    
    --font-serif: Charter, Cambria, Georgia, serif;
    --font-sans: system-ui, -apple-system, sans-serif;
    
    --radius: 20px;
    --radius-btn: 0px;
    
    --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
    --glass-backdrop: blur(16px) saturate(180%);
    --nav-height: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; padding: 0; }

body {
    font-family: var(--font-serif);
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    hyphens: auto;
}

a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-primary); }
img { max-width: 100%; display: block; object-fit: cover; }

/* Small Caps Labels */
.label, nav a, .btn {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Header & Nav */
header {
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(9,9,11,1) 0%, rgba(9,9,11,0) 100%);
}

.brand-logo {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.brand-logo span { color: var(--accent-primary); }

.desktop-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.mobile-nav-toggle {
    display: none;
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-canvas);
    padding: 2rem;
    border-bottom: 1px solid var(--bg-surface);
    backdrop-filter: var(--glass-backdrop);
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-nav-toggle { display: block; }
    /* Override centering for mobile as per prompt requirements */
    header { text-align: left; padding: 2rem 2rem 1rem; }
    .brand-logo { margin-bottom: 0; }
}

/* Background Patterns */
.bg-grid {
    position: relative;
}
.bg-grid::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--text-muted) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* Layout Architecture: Cinematic Narrow Column & Breakout */
.main-content {
    padding-top: 2rem;
    padding-bottom: 6rem;
}

.reading-col {
    max-width: 68ch;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.reading-col h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.reading-col h2 {
    font-size: 2rem;
    margin: 3rem 0 1rem;
    font-weight: normal;
    color: var(--text-primary);
}

.reading-col p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-muted);
}

.pull-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent-primary);
    border-left: 2px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin: 3rem 0;
    line-height: 1.4;
}

.breakout-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 4rem 1rem;
    display: flex;
    justify-content: center;
}

.breakout-inner {
    max-width: 1200px;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--text-muted);
    background: transparent;
    color: var(--text-primary);
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all 0.3s var(--ease-kinetic);
    text-align: center;
}

.btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: inset 0 0 0 1px var(--accent-primary);
}

.btn.primary {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
.btn.primary:hover {
    background-color: var(--accent-muted);
}

/* Cards (Translucent) */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.4s var(--ease-kinetic), background 0.3s;
}

.glass-card:hover {
    background: var(--bg-surface-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-elevation);
}

.glass-card img {
    border-radius: calc(var(--radius) - 8px);
    margin-bottom: 1.5rem;
    width: 100%;
    aspect-ratio: 4/3;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

/* Hero Section (Index) */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    align-items: center;
    min-height: 70vh;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-visual {
    position: relative;
    height: 500px;
    width: 100%;
}

.hero-img {
    position: absolute;
    border-radius: var(--radius);
    box-shadow: var(--shadow-elevation);
    transition: transform 0.5s var(--ease-kinetic);
}

.hero-img:nth-child(1) { top: 0; left: 0; width: 60%; aspect-ratio: 4/5; z-index: 3; }
.hero-img:nth-child(2) { top: 15%; right: 0; width: 55%; aspect-ratio: 1/1; z-index: 2; }
.hero-img:nth-child(3) { bottom: 0; left: 20%; width: 70%; aspect-ratio: 16/9; z-index: 1; }

.hero-visual:hover .hero-img:nth-child(1) { transform: translate(-10px, -10px) rotate(-2deg); }
.hero-visual:hover .hero-img:nth-child(2) { transform: translate(10px, -5px) rotate(2deg); }
.hero-visual:hover .hero-img:nth-child(3) { transform: translate(0, 10px); }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 2rem; }
    .hero-content p { margin: 0 auto 2.5rem; }
    .hero-visual { height: 400px; max-width: 500px; margin: 0 auto; }
}

/* Masonry / Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.masonry {
    column-count: 3;
    column-gap: 2rem;
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
}
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 600px) { .masonry { column-count: 1; } }

/* Forms & Tools */
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); }
.form-control {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    border-radius: var(--radius-btn);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
}
textarea.form-control { resize: vertical; min-height: 120px; }

.tool-output {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--accent-muted);
    border-radius: var(--radius);
    display: none;
}
.tool-output.active { display: block; }

/* Scroll Reveals */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s var(--ease-kinetic); }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }

/* Footer */
footer {
    border-top: 1px solid var(--bg-surface);
    padding: 4rem 1.5rem 2rem;
    text-align: center;
    background: var(--bg-canvas);
}

.footer-mission {
    max-width: 600px;
    margin: 1.5rem auto 3rem;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.1rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
}

.footer-legal {
    font-size: 0.8rem;
    color: rgba(245, 245, 244, 0.4);
    font-family: var(--font-sans);
}
.footer-legal a { color: rgba(245, 245, 244, 0.6); margin: 0 0.5rem; text-decoration: underline; }

/* Utility */
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.block-img { border-radius: var(--radius); width: 100%; aspect-ratio: 16/9; margin: 2rem 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}}
