:root {
    --bg: #fbf7f4;
    --bg-deep: #f2e9e2;
    --text: #251f1d;
    --muted: #6f615c;
    --brand: #ab6565;
    --brand-deep: #8c5252;
    --line: #111111;
    --sand: #c3b29e;
    --blush: #f2e4e4;
    --gold: #e8b14d;
    --border: rgba(103, 82, 70, 0.14);
    --shadow: 0 22px 60px rgba(73, 49, 38, 0.1);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 18px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(242, 228, 228, 0.96), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(232, 177, 77, 0.14), transparent 16%),
        linear-gradient(180deg, #fffefd 0%, var(--bg) 50%, var(--bg-deep) 100%);
}

body.is-loading {
    overflow: hidden;
}

#header,
main,
.footer {
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

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

h1,
h2,
h3 {
    font-family: "The Seasons", "Cormorant Garamond", "Baskerville", Georgia, serif;
    font-weight: 500;
    letter-spacing: 0.04em;
}

p {
    color: var(--muted);
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: 6.5rem 0;
    scroll-margin-top: 100px;
}

.section-contrast {
    background: linear-gradient(180deg, rgba(255, 248, 244, 0.72), rgba(245, 235, 227, 0.96));
    border-top: 1px solid rgba(103, 82, 70, 0.08);
    border-bottom: 1px solid rgba(103, 82, 70, 0.08);
}

.eyebrow,
.panel-kicker,
.card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand);
}

.intro-loader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 2rem;
    background:
        radial-gradient(circle at 50% 44%, rgba(242, 228, 228, 0.42), transparent 28%),
        linear-gradient(180deg, rgba(255, 253, 249, 0.99), rgba(249, 242, 236, 0.99));
    z-index: 2000;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro-loader::before {
    content: "";
    position: absolute;
    width: min(60vw, 560px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(171, 101, 101, 0.16), rgba(232, 177, 77, 0.12) 40%, transparent 72%);
    filter: blur(8px);
    animation: introHalo 2.6s ease-in-out infinite;
}

.intro-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-logo-svg {
    position: relative;
    z-index: 1;
    width: min(760px, 92vw);
    filter: drop-shadow(0 24px 44px rgba(86, 60, 60, 0.08));
}

.intro-hanger-path {
    fill: none;
    stroke: var(--line);
    stroke-width: 3.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1880;
    stroke-dashoffset: 1880;
    animation: introDraw 1.6s cubic-bezier(0.22, 0.72, 0.2, 1) forwards;
}

.intro-word-path {
    fill: var(--brand);
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    transform-origin: center;
    transform-box: fill-box;
    filter: blur(7px);
    animation: introPop 0.34s cubic-bezier(0.16, 0.9, 0.26, 1.18) 1.12s forwards;
}

#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
}

.navbar {
    position: relative;
    width: min(1240px, calc(100% - 1.25rem));
    margin: 0.9rem auto 0;
    padding: 0.95rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(103, 82, 70, 0.12);
    border-radius: 999px;
    background: rgba(255, 251, 247, 0.72);
    box-shadow: 0 16px 50px rgba(82, 58, 44, 0.08);
}

body.is-loading .navbar {
    opacity: 0;
    transform: translateY(-18px);
}

body.is-ready .navbar {
    animation: navSlideIn 0.72s cubic-bezier(0.22, 0.68, 0.18, 1) 0.08s both;
}

.logo {
    display: block;
}

.nav-logo {
    width: min(182px, 28vw);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.4rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand-deep);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-deep);
}

.hero {
    position: relative;
    padding: 4rem 0 3rem;
    overflow: hidden;
    isolation: isolate;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(6px);
}

.hero::before {
    top: -8rem;
    left: -8rem;
    width: min(32rem, 42vw);
    height: min(32rem, 42vw);
    background: radial-gradient(circle, rgba(242, 228, 228, 0.86), transparent 68%);
    animation: heroBloom 18s ease-in-out infinite;
}

.hero::after {
    right: -6rem;
    top: 20%;
    width: min(22rem, 28vw);
    height: min(22rem, 28vw);
    background: radial-gradient(circle, rgba(232, 177, 77, 0.16), transparent 70%);
    animation: heroBloom 16s ease-in-out infinite reverse;
}

.hero-shell,
.wardrobe-shell,
.waitlist-shell,
.split-heading {
    display: grid;
    gap: 2rem;
}

.hero-shell {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: stretch;
}

.hero-copy,
.hero-panel,
.study-card,
.waitlist-form,
.founder-card,
.visual-card {
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}

.hero-copy {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: clamp(1.6rem, 4vw, 3.4rem);
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(255, 251, 247, 0.96), rgba(247, 239, 234, 0.88));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-copy::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 177, 77, 0.2), transparent 70%);
    animation: glowFloat 10s ease-in-out infinite;
}

.hero h1 {
    max-width: 10.5ch;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.94;
    letter-spacing: -0.03em;
}

.hero-summary,
.hero-detail,
.lede,
.panel-copy,
.wardrobe-copy p,
.study-card p,
.waitlist-copy p,
.study-point p,
.study-statement {
    font-size: 1.02rem;
}

.hero-summary {
    max-width: 58ch;
    margin-bottom: 0.9rem;
}

.hero-detail {
    max-width: 56ch;
}

.hero-panel {
    min-height: 100%;
    padding: 1.6rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 251, 247, 0.94), rgba(244, 233, 225, 0.92));
    display: flex;
    flex-direction: column;
}

body.is-loading .hero-copy .eyebrow,
body.is-loading .hero-copy h1,
body.is-loading .hero-copy .hero-summary,
body.is-loading .hero-copy .hero-detail,
body.is-loading .hero-panel .panel-kicker,
body.is-loading .hero-panel .study-statement,
body.is-loading .flow-step,
body.is-loading .flow-connector {
    opacity: 0;
}

body.is-loading .hero-copy .eyebrow,
body.is-loading .hero-copy h1,
body.is-loading .hero-copy .hero-summary,
body.is-loading .hero-copy .hero-detail,
body.is-loading .hero-panel .panel-kicker,
body.is-loading .hero-panel .study-statement,
body.is-loading .flow-step {
    transform: translateY(18px);
}

body.is-loading .flow-connector {
    transform: scaleY(0);
    transform-origin: top center;
}

.study-statement {
    max-width: 42ch;
    margin: 1rem 0 1.2rem;
}

.flowchart {
    display: grid;
    gap: 0.7rem;
    margin-top: auto;
}

.flow-step {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(103, 82, 70, 0.1);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 30px rgba(73, 49, 38, 0.04);
    backdrop-filter: blur(8px);
}

.flow-step h3 {
    margin-bottom: 0.45rem;
    font-size: 1.2rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.flow-index {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--brand);
}

.flow-connector {
    width: 2px;
    height: 22px;
    margin-left: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(171, 101, 101, 0.75), rgba(171, 101, 101, 0.1));
}

body.is-ready .hero-copy.active .eyebrow {
    animation: riseIn 0.62s ease 0.12s both;
}

body.is-ready .hero-copy.active h1 {
    animation: riseIn 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

body.is-ready .hero-copy.active .hero-summary {
    animation: riseIn 0.68s ease 0.36s both;
}

body.is-ready .hero-copy.active .hero-detail {
    animation: riseIn 0.68s ease 0.48s both;
}

body.is-ready .hero-panel.active .panel-kicker {
    animation: riseIn 0.62s ease 0.26s both;
}

body.is-ready .hero-panel.active .study-statement {
    animation: riseIn 0.68s ease 0.38s both;
}

body.is-ready .hero-panel.active .flow-step:nth-child(1) {
    animation: riseIn 0.62s ease 0.5s both;
}

body.is-ready .hero-panel.active .flow-connector:nth-child(2) {
    animation: connectorGrow 0.34s ease 0.64s both;
}

body.is-ready .hero-panel.active .flow-step:nth-child(3) {
    animation: riseIn 0.62s ease 0.72s both;
}

body.is-ready .hero-panel.active .flow-connector:nth-child(4) {
    animation: connectorGrow 0.34s ease 0.86s both;
}

body.is-ready .hero-panel.active .flow-step:nth-child(5) {
    animation: riseIn 0.62s ease 0.94s both;
}

body.is-ready .hero-panel.active .flow-connector:nth-child(6) {
    animation: connectorGrow 0.34s ease 1.08s both;
}

body.is-ready .hero-panel.active .flow-step:nth-child(7) {
    animation: riseIn 0.62s ease 1.16s both;
}

@media (hover: hover) {
    .hero-copy.reveal.active:hover,
    .hero-panel.reveal.active:hover,
    .study-card:hover,
    .waitlist-form:hover,
    .founder-card:hover,
    .visual-card:hover {
        transform: translateY(-4px);
        border-color: rgba(171, 101, 101, 0.2);
        box-shadow: 0 28px 70px rgba(73, 49, 38, 0.12);
    }

    .flow-step:hover {
        transform: translateY(-4px);
        border-color: rgba(171, 101, 101, 0.2);
        box-shadow: 0 20px 42px rgba(73, 49, 38, 0.08);
    }
}

.split-heading {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: end;
}

.split-heading h2,
.wardrobe-copy h2,
.waitlist-copy h2,
.section-heading h2 {
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.03;
    letter-spacing: -0.03em;
}

.lede {
    max-width: 52ch;
}

.study-grid,
.founders-grid {
    display: grid;
    gap: 1.2rem;
}

.study-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2.5rem;
}

.study-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 251, 247, 0.82);
}

.study-card h3 {
    margin: 0.8rem 0;
    color: var(--text);
    font-size: 1.65rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.study-card.highlighted {
    background:
        radial-gradient(circle at top right, rgba(232, 177, 77, 0.18), transparent 28%),
        rgba(255, 249, 244, 0.88);
}

.wardrobe-shell {
    grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
    align-items: center;
}

.visual-card {
    padding: 1.7rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 252, 248, 0.82);
}

.visual-card.line-art {
    min-height: 220px;
    display: grid;
    place-items: center;
}

.wardrobe-logo {
    width: min(100%, 500px);
}

.waitlist-shell {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
    align-items: center;
}

.btn-primary,
.btn-secondary {
    min-height: 52px;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
    border: 0;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #fff8f8;
    font-weight: 700;
    cursor: pointer;
}

.btn-secondary {
    border: 1px solid rgba(103, 82, 70, 0.16);
    background: rgba(255, 255, 255, 0.6);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
}

.waitlist-form {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(244, 233, 225, 0.94));
}

.waitlist-form label {
    display: grid;
    gap: 0.45rem;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
}

.waitlist-form input,
.waitlist-form textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(103, 82, 70, 0.16);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font: inherit;
}

.waitlist-form textarea {
    min-height: 140px;
    resize: vertical;
}

.btn-full {
    width: 100%;
}

.section-heading.centered,
.founders-shell {
    text-align: center;
}

.founders-shell .section-heading {
    margin-bottom: 2.3rem;
}

.founders-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.founder-card {
    min-height: 128px;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 251, 247, 0.82);
}

.founder-card h3 {
    color: var(--text);
    font-size: 1.45rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.footer {
    padding: 1.5rem 0 2.8rem;
}

.footer-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
    border-radius: 24px;
    border: 1px solid rgba(103, 82, 70, 0.12);
    background: rgba(255, 251, 247, 0.76);
}

.footer-logo {
    width: min(260px, 40vw);
}

.footer-meta {
    text-align: right;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes introDraw {
    from {
        stroke-dashoffset: 1880;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes introPop {
    from {
        opacity: 0;
        filter: blur(7px);
        transform: translateY(16px) scale(0.95);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

@keyframes introHalo {
    0%,
    100% {
        opacity: 0.48;
        transform: scale(0.94);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.03);
    }
}

@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }

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

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@keyframes connectorGrow {
    from {
        opacity: 0;
        transform: scaleY(0);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes heroBloom {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(12px, -14px, 0) scale(1.07);
    }
}

@keyframes glowFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-10px, 12px, 0) scale(1.06);
    }
}

@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;
    }

    .intro-hanger-path {
        stroke-dashoffset: 0;
    }

    .intro-word-path,
    .flow-step,
    .flow-connector {
        opacity: 1;
        filter: none;
        transform: none;
    }
}

@media (max-width: 1024px) {
    .hero-shell,
    .split-heading,
    .wardrobe-shell,
    .waitlist-shell,
    .study-grid,
    .founders-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: calc(100% - 1rem);
        margin-top: 0.5rem;
        border-radius: 24px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.45rem);
        right: 0;
        width: min(240px, calc(100vw - 1rem));
        padding: 0.45rem;
        display: grid;
        gap: 0.25rem;
        border-radius: 18px;
        border: 1px solid rgba(103, 82, 70, 0.12);
        background: rgba(255, 251, 247, 0.96);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .nav-links a {
        display: block;
        padding: 0.8rem 0.95rem;
        border-radius: 14px;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-logo {
        width: 150px;
    }

    .hero,
    .section {
        padding-top: 3.6rem;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .hero-copy,
    .hero-panel,
    .study-card,
    .waitlist-form,
    .founder-card,
    .visual-card {
        padding: 1.25rem;
    }

    .wardrobe-logo,
    .footer-logo {
        width: 100%;
    }

    .footer-shell {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-meta {
        text-align: left;
    }
}
