/* windo.dev — design tokens */
:root,
html[data-theme="light"] {
    --bg: #f4f7f8;
    --bg-alt: #e8eef0;
    --ink: #0f1c24;
    --ink-muted: #4a5c66;
    --teal: #1a6b6b;
    --teal-deep: #145555;
    --brass: #b08a4a;
    --brass-soft: rgba(176, 138, 74, 0.18);
    --surface: rgba(255, 255, 255, 0.55);
    --border: rgba(15, 28, 36, 0.1);
    --btn-on-teal: #f7fafb;
    --mesh-1: rgba(26, 107, 107, 0.22);
    --mesh-2: rgba(176, 138, 74, 0.16);
    --mesh-3: rgba(26, 107, 107, 0.12);
    --mesh-base: linear-gradient(165deg, #f7fafb 0%, #eef3f5 40%, #e4ecee 100%);
    --grain-opacity: 0.35;
    --grain-blend: multiply;
    --theme-active-bg: rgba(15, 28, 36, 0.06);
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "DM Sans", "Segoe UI", sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --page-pad: clamp(1.75rem, 5vw, 4.5rem);
    --max: 58rem;
    color-scheme: light;
}

html[data-theme="dark"] {
    --bg: #0c1216;
    --bg-alt: #141c22;
    --ink: #e8eef1;
    --ink-muted: #9aadb8;
    --teal: #3d9a92;
    --teal-deep: #5cb5ad;
    --brass: #c4a05e;
    --brass-soft: rgba(196, 160, 94, 0.2);
    --surface: rgba(255, 255, 255, 0.04);
    --border: rgba(232, 238, 241, 0.12);
    --btn-on-teal: #0c1216;
    --mesh-1: rgba(61, 154, 146, 0.18);
    --mesh-2: rgba(196, 160, 94, 0.12);
    --mesh-3: rgba(61, 154, 146, 0.1);
    --mesh-base: linear-gradient(165deg, #0c1216 0%, #10181e 45%, #0e151a 100%);
    --grain-opacity: 0.22;
    --grain-blend: soft-light;
    --theme-active-bg: rgba(232, 238, 241, 0.08);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] {
        --bg: #0c1216;
        --bg-alt: #141c22;
        --ink: #e8eef1;
        --ink-muted: #9aadb8;
        --teal: #3d9a92;
        --teal-deep: #5cb5ad;
        --brass: #c4a05e;
        --brass-soft: rgba(196, 160, 94, 0.2);
        --surface: rgba(255, 255, 255, 0.04);
        --border: rgba(232, 238, 241, 0.12);
        --btn-on-teal: #0c1216;
        --mesh-1: rgba(61, 154, 146, 0.18);
        --mesh-2: rgba(196, 160, 94, 0.12);
        --mesh-3: rgba(61, 154, 146, 0.1);
        --mesh-base: linear-gradient(165deg, #0c1216 0%, #10181e 45%, #0e151a 100%);
        --grain-opacity: 0.22;
        --grain-blend: soft-light;
        --theme-active-bg: rgba(232, 238, 241, 0.08);
        color-scheme: dark;
    }
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: transparent;
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.55;
    position: relative;
    overflow-x: hidden;
}

/* Full-bleed atmosphere */
.mesh {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 90% 60% at 15% 20%, var(--mesh-1), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 15%, var(--mesh-2), transparent 50%),
        radial-gradient(ellipse 80% 55% at 60% 85%, var(--mesh-3), transparent 55%),
        var(--mesh-base);
    animation: meshDrift 28s ease-in-out infinite alternate;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: var(--grain-opacity);
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    mix-blend-mode: var(--grain-blend);
}

@keyframes meshDrift {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.06) translate(-1.5%, 1%); }
}

/* Page shell — padded from edges */
.page {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(2.25rem, 6vh, 3.5rem) var(--page-pad) 2.5rem;
}

/* Theme switch */
.theme-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.2rem;
    border: 1px solid var(--border);
    background: var(--surface);
}

.theme-switch button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--ink-muted);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.theme-switch button:hover {
    color: var(--ink);
}

.theme-switch button[aria-pressed="true"] {
    color: var(--ink);
    background: var(--theme-active-bg);
}

.theme-switch button:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(1rem);
    animation: riseIn 0.85s var(--ease-out) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

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

/* Hero — denser first composition (not empty full-bleed void) */
.hero {
    padding: 0 0 2.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.25rem;
}

.brand {
    font-family: var(--font-display);
    font-size: clamp(2.85rem, 8vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
    text-transform: none;
    color: var(--ink);
    margin-bottom: 1rem;
}

.headline {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3.6vw, 2.15rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.28;
    color: var(--ink);
    max-width: 28ch;
    margin-bottom: 0.75rem;
}

.support {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--ink-muted);
    max-width: 42ch;
    margin-bottom: 1.75rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 1.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    padding: 0.85rem 1.4rem;
    border-radius: 2px;
    border: 1px solid transparent;
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.btn:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--teal);
    color: var(--btn-on-teal);
}

.btn-primary:hover {
    background: var(--teal-deep);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--teal);
    color: var(--teal-deep);
    transform: translateY(-1px);
}

.focus-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink-muted);
}

.focus-row li {
    position: relative;
    padding-left: 0.9rem;
}

.focus-row li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--brass);
}

/* Main — three columns on wide, stacked on narrow */
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem 2.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 820px) {
    .main-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        align-items: start;
    }
}

.section {
    padding: 0;
    max-width: none;
}

.section-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 0.65rem;
}

.section-lead {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    max-width: none;
}

.section-action {
    margin-top: 0.85rem;
}

.welcome {
    margin-bottom: 2.25rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.welcome .section-lead {
    font-size: clamp(1.1rem, 2.2vw, 1.25rem);
    max-width: 48ch;
}

.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.25rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 820px) {
    .split {
        grid-template-columns: 1fr 1.35fr;
        gap: 2.75rem;
        align-items: start;
    }
}

.plain-list {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.35rem;
    font-size: 0.9375rem;
    color: var(--ink);
}

.plain-list li {
    color: var(--ink-muted);
}

.plain-list:not(.starters) li:not(:last-child)::after {
    content: "·";
    margin-left: 0.35rem;
    color: var(--brass);
    opacity: 0.7;
}

.plain-list.starters {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.65rem;
}

.plain-list.starters li {
    position: relative;
    padding-left: 1rem;
    color: var(--ink);
    line-height: 1.45;
}

.plain-list.starters li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--teal);
}

.today {
    margin-bottom: 2.5rem;
    padding: 1.5rem 0 2rem;
    border-bottom: 1px solid var(--border);
}

.today .section-lead {
    max-width: 44ch;
    margin-bottom: 1.25rem;
}

.today .section-action {
    margin-top: 0;
}

.text-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
    color: var(--teal-deep);
    border-bottom-color: var(--teal-deep);
}

.text-link:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

/* Footer */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

.footer-studio {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--ink-muted);
}

.footer-sep {
    opacity: 0.45;
}

.site-footer a {
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--teal);
}

.site-footer a:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

@media (max-width: 560px) {
    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .focus-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mesh {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .btn:hover {
        transform: none;
    }
}
