:root {
    --bg: #ffffff;
    --fg: #0f172a; /* slate-900 */
    --muted: #475569; /* slate-600 */
    --border: #e5e7eb; /* gray-200 */
    --accent: #111111;
    --card: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
    --container: 1100px;
    --px: clamp(1rem, 4vw, 2rem); /* horizontal padding */
}

    /* Alignment utility */
    .container { max-width: var(--container); margin: 0 auto; padding-left: var(--px); padding-right: var(--px); }

html, body { height: 100%; }

body {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    overflow-x: hidden;
}

/* Lock scroll while intro cover is visible */
body.no-scroll { overflow: hidden; height: 100dvh; }

/* Intro (typewriter) */
.intro {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 4rem 1.25rem;
    background: var(--bg);
    transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1);
}

.intro-text {
    width: min(1200px, 92vw);
    line-height: 1.06;
    letter-spacing: -0.01em;
    font-weight: 800;
    font-size: clamp(2rem, 8vw, 6rem);
}

.cursor {
    display: inline-block;
    width: 1ch;
    color: var(--fg);
    animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Main site */
.intro.outro { opacity: 0; transform: translateY(-16px) scale(.98); pointer-events: none; }

/* Site transitions in after intro */
.site { 
    opacity: 0; 
    transform: translateY(16px);
}

.site.reveal { 
    opacity: 1; 
    transform: none; 
    transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}

.hero { padding: 4rem 0 1.5rem; }
.hero .container { display: grid; gap: .75rem; }

.site-title {
    margin: 0 0 .5rem;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.05;
}

.tagline {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.grid { max-width: var(--container); margin: 0 auto; padding: 1.5rem var(--px); display: grid; gap: 1.25rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; justify-items: stretch; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.3rem 1.3rem;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    gap: .5rem;
        height: 100%;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,0.08); }
.card h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }

.about { align-items: start; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.blurb h2 { margin: 0 0 .5rem; }
.blurb p { margin: 0; color: var(--muted); }

.list {
    margin: 0;
    padding: .2rem 0 0 1rem;
    color: var(--muted);
}

.cta { 
    text-align: center; 
    padding: 2rem var(--px) 3.5rem;
}
.cta .container { display: grid; gap: .75rem; justify-items: center; }

.button {
    background: var(--accent);
    color: #fff;
    border: 1px solid #000;
    border-radius: 12px;
    padding: .9rem 1.2rem;
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,0.16); background: #000; }

.smallprint { color: var(--muted); margin-top: .75rem; }

.footer {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1rem var(--px) 3rem;
    color: var(--muted);
}

/* Section title and banded section */
.section-title {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1rem var(--px) 0;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.band {
    background: #fafafa;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 1.25rem 0 2rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .site-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
    .tagline { font-size: .95rem; }
    .grid { grid-template-columns: 1fr; gap: 1rem; padding: 1rem var(--px); }
    .card { padding: 1rem 1rem 1.1rem; }
    .about { grid-template-columns: 1fr; }
    .button { width: 100%; border-radius: 10px; }
    .section-title { padding-top: .25rem; }
    .hero .container { text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
