:root {
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Syne', system-ui, -apple-system, sans-serif;
    --bg-primary: #f5f1ea;
    --bg-secondary: #efe9e1;
    --bg-card: #faf7f2;
    --bg-card-strong: #ffffff;
    --bg-chip: #efe1d2;
    --text-primary: #1a1625;
    --text-secondary: #2d2838;
    --text-muted: #5c5468;
    --text-accent: #4a5568;
    --accent-primary: #a64500;
    --accent-secondary: #8f3a00;
    --accent-tertiary: #5a7d9a;
    --accent-cool: #5a7d9a;
    --success-color: #1b7f44;
    --error-color: #c0392b;
    --border-color: rgba(45, 31, 56, 0.11);
    --border-strong: rgba(45, 31, 56, 0.18);
    --shadow-soft: 0 8px 20px rgba(26, 22, 37, 0.06);
    --shadow-strong: 0 16px 32px rgba(26, 22, 37, 0.1);
}

/* Skeleton Loading States */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    aspect-ratio: 1.1;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
p,
ul {
    margin: 0;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-body);
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-primary);
}

a {
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    z-index: 10000;
    padding: 10px 16px;
    border-radius: 0 0 6px 0;
    color: #ffffff;
    background: var(--accent-primary);
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1100;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--bg-card-strong) 97%, white);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(26, 22, 37, 0.04);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.logo {
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-menu-shell {
    display: flex;
    align-items: center;
}

.nav-backdrop,
.nav-menu-mobile-extra {
    display: none;
}

.nav-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-menu-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    list-style: none;
}

.nav-dropdown-item,
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.98rem;
    font-weight: 600;
    list-style: none;
    white-space: nowrap;
}

.nav-dropdown-toggle::-webkit-details-marker {
    display: none;
}

.nav-dropdown-toggle::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    padding: 10px;
    display: grid;
    gap: 4px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg-card-strong) 98%, white);
    box-shadow: var(--shadow-soft);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-links a {
    position: relative;
    color: var(--text-secondary);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nav-cta-btn,
.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 40px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.hero-cta {
    min-height: 48px;
    padding: 13px 24px;
    font-size: 0.98rem;
    line-height: 1.2;
}

.hero-cta.primary {
    color: #ffffff;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.hero-cta.secondary {
    color: var(--text-primary);
    background: var(--bg-card-strong);
    border-color: var(--border-color);
}

main {
    padding-top: 84px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 64px;
}

.hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: start;
    gap: 32px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-content.hero-copy {
    max-width: none;
    margin: 0;
    min-width: 0;
    text-align: left;
}

.hero-content.hero-copy .hero-subtitle,
.hero-content.hero-copy .proof-strip {
    margin-left: 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 22px;
    font-family: var(--font-body);
    font-size: clamp(2.22rem, 4.18vw, 3.28rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.hero-name,
.hero-headline-rest {
    display: block;
}

.hero-name {
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 0.92em;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.032em;
    white-space: nowrap;
}

.hero-headline-rest {
    max-width: 13.4ch;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.78em;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.hero-subtitle {
    max-width: 34rem;
    margin: 0 0 18px;
    color: var(--text-secondary);
    font-size: clamp(0.98rem, 1.05vw, 1.06rem);
    line-height: 1.56;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 18px;
}

.hero-support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 42rem;
    margin: 0 0 20px;
    padding-top: 14px;
    border-top: 1px solid color-mix(in srgb, var(--accent-cool) 14%, var(--border-color));
}

.hero-support-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid color-mix(in srgb, var(--accent-cool) 16%, var(--border-color));
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 620px;
    padding: 0;
    list-style: none;
}

.proof-item {
    display: grid;
    gap: 4px;
    justify-items: start;
    padding: 0;
    text-align: left;
}

.proof-item:not(:first-child) {
    padding-left: 18px;
    box-shadow: inset 1px 0 0 color-mix(in srgb, var(--accent-cool) 18%, var(--border-color));
}

.proof-number {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    letter-spacing: -0.01em;
}

.proof-label {
    color: var(--text-muted);
    font-size: 0.83rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-project-stage {
    display: grid;
    gap: 16px;
}

.hero-project-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hero-project-poster {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: var(--bg-card-strong);
    color: inherit;
    text-decoration: none;
}

.hero-project-image {
    aspect-ratio: 1.45;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.hero-project-poster-primary .hero-project-image {
    aspect-ratio: 1.14;
}

.hero-project-image picture,
.hero-project-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-project-image img {
    object-fit: cover;
}

.hero-project-copy {
    display: grid;
    gap: 8px;
    padding: 16px 18px 18px;
}

.hero-project-poster-primary .hero-project-copy {
    padding: 18px 20px 20px;
}

.hero-project-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border: 1px solid color-mix(in srgb, var(--accent-cool) 24%, var(--border-color));
    border-radius: 999px;
    background: var(--bg-chip);
    color: var(--text-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-project-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.26rem, 2vw, 1.7rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero-project-poster-primary .hero-project-copy h2 {
    font-size: clamp(1.72rem, 2.45vw, 2.18rem);
}

.hero-project-copy p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.hero-project-meta {
    color: var(--text-accent);
    font-size: 0.84rem;
    font-weight: 700;
}

@media (max-width: 1040px) {
    .hero-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .nav-links {
        gap: 16px;
    }

    .nav-cta-btn {
        display: none;
    }

    .hero {
        padding: 88px 0 62px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 14px 0;
    }

    .logo,
    .hero h1 {
        font-weight: 700;
    }

    .nav-right {
        position: relative;
        z-index: 1101;
        gap: 10px;
    }

    main {
        padding-top: 70px;
    }

    .nav-menu-btn {
        position: relative;
        z-index: 1103;
        display: flex;
    }

    .nav-menu-shell {
        position: fixed;
        top: 70px;
        left: 16px;
        right: 16px;
        z-index: 1102;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        max-height: calc(100dvh - 90px);
        padding: 16px;
        overflow-y: auto;
        border: 1px solid var(--border-strong);
        border-radius: 24px;
        background: var(--bg-card-strong);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        box-shadow: var(--shadow-strong);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px) scale(0.98);
        transform-origin: top right;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .nav-links li,
    .nav-dropdown-item,
    .nav-dropdown,
    .nav-dropdown-menu {
        width: 100%;
        max-width: none;
    }

    .nav-links a,
    .nav-dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 48px;
        padding: 13px 16px;
        border: 1px solid var(--border-color);
        border-radius: 16px;
        background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    }

    .nav-dropdown-toggle::after {
        margin-left: auto;
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        margin-top: 8px;
        padding: 8px;
        border-radius: 16px;
        box-shadow: none;
    }

    .nav-menu-mobile-extra {
        display: grid;
        gap: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }

    .nav-open .nav-menu-shell,
    .nav-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .hero {
        padding: 82px 0 56px;
    }

    .hero-shell {
        gap: 24px;
    }

    .hero h1 {
        font-size: clamp(1.78rem, 8.5vw, 2.36rem);
        line-height: 1.05;
    }

    .hero-headline-rest {
        max-width: 11.4ch;
        font-size: 0.84em;
        line-height: 0.94;
    }

    .hero-subtitle {
        max-width: 31ch;
        font-size: 0.96rem;
        line-height: 1.52;
    }

    .hero-cta {
        min-height: 50px;
    }

    .hero-support-links {
        flex-wrap: nowrap;
        gap: 8px;
        margin: 0 -2px 18px;
        padding: 0 2px 2px;
        overflow-x: auto;
        border-top: none;
        scrollbar-width: none;
    }

    .hero-support-links::-webkit-scrollbar {
        display: none;
    }

    .hero-support-link {
        flex: 0 0 auto;
        min-height: 40px;
        font-size: 0.82rem;
    }

    .hero-project-rail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .hero-actions .hero-cta {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* ===== Lean homepage (2026-04) ===== */
.hero-lean {
    display: grid;
    max-width: 900px;
    gap: 0;
}

.hero-lean h1 {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.hero-lean h1 .hero-headline-line,
.hero-lean h1 .hero-headline-accent {
    display: block;
}

.hero-lean h1 .hero-headline-accent {
    color: var(--accent-primary);
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lean .hero-subtitle {
    max-width: 46rem;
    margin: 0 0 22px;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.1vw, 1.12rem);
    line-height: 1.55;
    text-wrap: pretty;
}

.hero-lean .hero-actions {
    margin-bottom: 24px;
}

.hero-lean .hero-support-links {
    margin-bottom: 24px;
}

.hero-lean .proof-strip {
    max-width: 560px;
}

@media (max-width: 768px) {
    .hero-lean {
        max-width: none;
    }
    .hero-lean h1 {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }
    .hero-lean .hero-subtitle {
        font-size: 0.98rem;
    }
    .hero-lean .proof-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .hero-lean .proof-label {
        font-size: 0.72rem;
        letter-spacing: 0.04em;
    }
    .hero-lean .proof-number {
        font-size: clamp(1.15rem, 4vw, 1.4rem);
    }
    .hero-lean .proof-item:not(:first-child) {
        padding-left: 12px;
    }
}
