.home-experience {
    --home-paper: #fbf8ef;
    --home-ink: #20362f;
    --home-muted: #637168;
    --home-accent: #788d79;
    --home-gold: #d6a542;
    position: relative;
    overflow: hidden;
    background: var(--home-paper);
    color: var(--home-ink);
    font-family: "DM Sans", Arial, sans-serif;
}

[data-theme=dark] .home-experience {
    --home-paper: #1b2520;
    --home-ink: #eef0e7;
    --home-muted: #b8c0b4;
    --home-accent: #bdc99d;
    --home-gold: #e4c77f;
}

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

.home-experience a {
    -webkit-tap-highlight-color: transparent;
}

.home-experience .hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    align-items: center;
    gap: clamp(16px, 2vw, 34px);
    max-width: 1360px;
    min-height: 620px;
    margin: auto;
    padding: 62px clamp(28px, 5.7vw, 82px) 58px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 78% 53%, color-mix(in srgb, #efd49b 27%, transparent), transparent 48%),
        var(--home-paper);
}

.home-experience .copy {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.home-experience .eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #8b7754;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
}

[data-theme=dark] .home-experience .eyebrow {
    color: #d6c28f;
}

.home-experience .eyebrow::before {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--home-gold);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--home-gold) 19%, transparent);
    content: "";
}

.home-experience h1 {
    margin: 22px 0 18px;
    color: var(--home-ink);
    font: 500 clamp(46px, 5.3vw, 76px)/1.04 "Playfair Display", Georgia, serif;
    letter-spacing: -.055em;
}

.home-experience h1 em {
    color: var(--home-accent);
    font-weight: 500;
}

.home-experience .copy > p:not(.note) {
    max-width: 510px;
    margin: 0;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.85;
}

.home-experience .actions {
    display: flex;
    align-items: center;
    gap: 12px 20px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.home-experience .actions a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.home-experience .actions .primary {
    gap: 18px;
    padding: 0 20px;
    background: var(--home-gold);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--home-gold) 25%, transparent);
    color: #26352b;
}

.home-experience .actions .primary:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.home-experience .actions .secondary,
.home-experience .actions .package-link {
    gap: 6px;
    min-height: 40px;
    color: var(--home-ink);
}

.home-experience .actions .package-link {
    color: var(--home-muted);
    font-size: 11px;
}

.home-experience .trust-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.home-experience .trust-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--home-gold) 35%, transparent);
    border-radius: 50%;
    color: var(--home-gold);
    font-size: 18px;
}

.home-experience .trust-line b,
.home-experience .trust-line small {
    display: block;
}

.home-experience .trust-line b {
    color: var(--home-ink);
    font-size: 11px;
}

.home-experience .trust-line small {
    margin-top: 3px;
    color: var(--home-muted);
    font-size: 10px;
}

.home-experience .note {
    max-width: 480px;
    margin: 17px 0 0;
    color: var(--home-muted);
    font-size: 10px;
    line-height: 1.7;
}

.home-experience .feedback-link {
    display: inline-block;
    min-height: 40px;
    margin-top: 7px;
    padding: 10px 0;
    color: var(--home-muted);
    font-size: 10px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-experience .scene {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    min-height: 480px;
    align-items: flex-end;
    justify-content: center;
    margin: 0;
}

.home-experience .scene-glow {
    position: absolute;
    inset: 8% 0 0;
    background: radial-gradient(ellipse at 57% 62%, color-mix(in srgb, #efbf60 26%, transparent), transparent 60%);
    filter: blur(18px);
    pointer-events: none;
}

.home-experience .scene img {
    position: relative;
    z-index: 1;
    display: block;
    width: min(122%, 760px);
    max-width: none;
    height: auto;
    margin-right: -3%;
    filter: drop-shadow(0 18px 24px #38251124);
}

.home-experience .scene figcaption {
    position: absolute;
    z-index: 2;
    right: 8%;
    bottom: 10px;
    color: color-mix(in srgb, var(--home-ink) 76%, transparent);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .2em;
}

.home-experience a:focus-visible {
    outline: 2px solid var(--home-gold);
    outline-offset: 4px;
}

.account-dashboard .account-welcome {
    --welcome-paper: #faf6eb;
    --welcome-ink: #243a31;
    --welcome-muted: #68756b;
    position: relative;
    isolation: isolate;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 36px;
    margin: 18px 0 20px;
    padding: 40px 44px;
    overflow: hidden;
    border: 1px solid #e7dfcf;
    border-radius: 18px;
    background:
        radial-gradient(ellipse at 82% 50%, #ead9b366, transparent 42%),
        linear-gradient(120deg, var(--welcome-paper), #f6f1e5);
    box-shadow: 0 14px 34px #3b33200a;
    color: var(--welcome-ink);
}

[data-theme=dark] .account-dashboard .account-welcome {
    --welcome-paper: #202a24;
    --welcome-ink: #eef0e7;
    --welcome-muted: #bdc7bd;
    border-color: #3b4940;
    background:
        radial-gradient(ellipse at 82% 50%, #75603b2b, transparent 44%),
        linear-gradient(120deg, #202a24, #26322b);
}

.account-dashboard .account-welcome-copy {
    position: relative;
    z-index: 1;
}

.account-dashboard .account-welcome h2 {
    margin: 18px 0 12px;
    color: var(--welcome-ink);
    font: 500 clamp(32px, 4vw, 46px)/1.15 "Playfair Display", Georgia, serif;
    letter-spacing: -.04em;
}

.account-dashboard .account-welcome h2 em {
    color: #788d79;
}

[data-theme=dark] .account-dashboard .account-welcome h2 em {
    color: #bdc99d;
}

.account-dashboard .account-welcome-copy > p {
    max-width: 510px;
    color: var(--welcome-muted);
    font-size: 13px;
    line-height: 1.8;
}

.account-dashboard .account-welcome-actions {
    gap: 12px 20px;
    margin-top: 22px;
}

.account-dashboard .account-welcome-actions .button {
    min-height: 48px;
    border-radius: 10px;
}

.account-dashboard .account-secondary-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    color: var(--welcome-ink);
}

.account-dashboard .memory-count-card {
    min-height: 230px;
    padding: 27px 28px;
    overflow: hidden;
    border: 1px solid #ffffff2c;
    border-radius: 15px;
    background: linear-gradient(145deg, #355a49, #203d33);
    box-shadow: 0 14px 30px #26392b20;
}

.account-dashboard .memory-count-card .eyebrow {
    color: #d7dfcd;
}

.account-dashboard .memory-count-card strong {
    color: #fffaf0;
}

.account-dashboard .memory-count-card > span:not(.eyebrow):not(.memory-count-icon) {
    color: #e5e9dc;
}

.account-dashboard .memory-count-card small {
    color: #d0d9cb;
}

.account-dashboard .memory-count-orbit {
    width: 205px;
    height: 205px;
    right: -76px;
    bottom: -104px;
    border-color: #f4dfaa42;
    box-shadow: 0 0 0 22px #f4dfaa10, 0 0 0 47px #f4dfaa0a;
}

@media (max-width: 950px) {
    .home-experience .hero {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        min-height: 560px;
        padding-right: 34px;
        padding-left: 38px;
    }

    .home-experience h1 {
        font-size: clamp(43px, 5.4vw, 60px);
    }

    .home-experience .scene {
        min-height: 410px;
    }
}

@media (max-width: 760px) {
    .home-experience .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        min-height: 0;
        padding: 35px 22px 28px;
    }

    .home-experience .copy {
        display: contents;
    }

    .home-experience .copy > .eyebrow {
        grid-row: 1;
        margin-bottom: 16px;
    }

    .home-experience h1 {
        grid-row: 2;
        margin: 0 0 13px;
        font-size: clamp(40px, 11vw, 54px);
        line-height: 1.07;
    }

    .home-experience .copy > p:not(.note) {
        grid-row: 3;
        font-size: 13px;
        line-height: 1.8;
    }

    .home-experience .scene {
        grid-row: 4;
        width: auto;
        height: auto;
        min-height: 0;
        margin: 4px -5px 0;
    }

    .home-experience .copy > p.note {
        grid-row: 7;
        color: var(--home-muted);
        font-size: 10px;
        line-height: 1.7;
    }

    .home-experience .scene img {
        width: 100%;
        margin: 0;
    }

    .home-experience .scene figcaption {
        right: 5%;
        bottom: 2px;
        font-size: 6px;
    }

    .home-experience .actions {
        grid-row: 5;
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
        margin-top: 8px;
    }

    .home-experience .actions .primary {
        width: 100%;
        min-height: 49px;
    }

    .home-experience .actions .secondary,
    .home-experience .actions .package-link {
        justify-content: center;
        min-height: 42px;
    }

    .home-experience .trust-line {
        grid-row: 6;
        margin-top: 13px;
        padding-top: 14px;
        border-top: 1px solid color-mix(in srgb, var(--home-ink) 12%, transparent);
    }

    .home-experience .note {
        grid-row: 7;
        margin-top: 12px;
    }

    .home-experience .feedback-link {
        grid-row: 8;
    }

    .account-dashboard .account-welcome {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 28px 24px;
        border-radius: 15px;
    }

    .account-dashboard .memory-count-card {
        min-height: 190px;
    }
}

@media (max-width: 480px) {
    .home-experience .hero {
        padding: 30px 18px 24px;
    }

    .home-experience .eyebrow {
        font-size: 8px;
        letter-spacing: .14em;
    }

    .home-experience .scene {
        margin-right: -6px;
        margin-left: -6px;
    }

    .home-experience .trust-line small {
        font-size: 9px;
    }

    .account-dashboard .account-welcome {
        padding: 24px 18px;
    }

    .account-dashboard .account-welcome h2 {
        font-size: 32px;
    }

    .account-dashboard .account-welcome-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .account-dashboard .memory-count-card {
        min-height: 170px;
        padding: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-experience *,
    .home-experience *::before,
    .home-experience *::after,
    .account-dashboard .account-welcome * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
