:root {
    --bg: #0b1117;
    --bg-elevated: rgba(17, 25, 34, 0.88);
    --bg-soft: rgba(255, 255, 255, 0.04);
    --surface: rgba(14, 21, 30, 0.78);
    --surface-strong: rgba(18, 26, 37, 0.96);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text-main: #f3efe7;
    --text-soft: rgba(243, 239, 231, 0.74);
    --text-faint: rgba(243, 239, 231, 0.5);
    --accent: #d5a56a;
    --accent-soft: rgba(213, 165, 106, 0.2);
    --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.28);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max-width: 1180px;
    --page-padding: clamp(20px, 3vw, 36px);
    --mobile-page-gutter: 18px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(86, 124, 160, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(213, 165, 106, 0.12), transparent 28%),
        linear-gradient(180deg, #0c1219 0%, #091016 100%);
    color: var(--text-main);
    font-family: "Manrope", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
    pointer-events: none;
    opacity: 0.32;
    z-index: -2;
}

a {
    color: inherit;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

.page-shell {
    width: min(var(--max-width), calc(100% - (var(--page-padding) * 2)));
    margin: 0 auto;
    padding: 32px 0 88px;
}

.page-topbar {
    position: sticky;
    top: 14px;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(9, 16, 23, 0.72);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.brand-mark {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-left: 8px;
}

.brand-mark strong,
.brand-mark span {
    margin: 0;
}

.brand-mark strong {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.brand-mark span {
    color: var(--text-faint);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.topbar-links a,
.ghost-link,
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-soft);
    text-decoration: none;
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.topbar-links a:hover,
.ghost-link:hover,
.nav-link:hover,
.back-link:hover,
.cta-link:hover,
.chip:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.eyebrow,
.section-kicker,
.meta-kicker {
    margin: 0;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.headline {
    margin: 12px 0 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(3.4rem, 8vw, 6.2rem);
    line-height: 0.94;
    letter-spacing: -0.04em;
    font-weight: 600;
}

.lede {
    margin: 0;
    max-width: 62ch;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-title {
    margin: 10px 0 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 600;
}

.section-copy {
    margin: 0;
    max-width: 52ch;
    color: var(--text-faint);
}

.glass-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.metric-grid,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.metric-card,
.detail-card {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.metric-card span,
.detail-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-faint);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.metric-card p,
.detail-card p {
    margin: 0;
    color: var(--text-soft);
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(213, 165, 106, 0.18), rgba(255, 255, 255, 0.04));
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.cta-link--muted {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
}

.frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-lg);
}

.frame img {
    height: 100%;
    object-fit: cover;
}

.stack {
    display: grid;
    gap: 24px;
}

.soft-rule {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    margin: 0;
}

.page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--text-faint);
    font-size: 0.9rem;
}

.page-footer p {
    margin: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .metric-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(var(--max-width), calc(100% - (var(--mobile-page-gutter) * 2)));
        padding: 16px 0 56px;
    }

    .page-topbar,
    .section-head,
    .page-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-topbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        top: 10px;
        gap: 8px;
        margin-bottom: 24px;
        padding: 8px;
        border-radius: 999px;
    }

    .topbar-links {
        width: auto;
        gap: 8px;
    }

    .home-page .page-topbar {
        gap: 10px;
        margin-bottom: 26px;
    }

    .home-page .brand-mark {
        gap: 4px;
    }

    .home-page .brand-mark strong {
        font-size: 0.84rem;
        letter-spacing: 0.18em;
    }

    .home-page .brand-mark span {
        font-size: 0.72rem;
        letter-spacing: 0.06em;
    }

    .home-page .topbar-links--home {
        width: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .home-page .topbar-links--home a {
        width: auto;
        flex: 0 0 auto;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .topbar-links a,
    .ghost-link,
    .nav-link,
    .back-link {
        width: auto;
        justify-content: center;
        padding: 8px 11px;
        font-size: 0.78rem;
        letter-spacing: 0.04em;
    }

    .cta-link,
    .chip {
        width: auto;
        justify-content: center;
        padding: 9px 12px;
        font-size: 0.84rem;
    }

    .headline {
        font-size: clamp(3rem, 18vw, 4.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
