:root {
    color-scheme: dark;
    --text: #fffaf1;
    --muted: #d0d5d7;
    --accent: #edd4ad;
    font-family: Arial, Helvetica, sans-serif
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #23333e;
    color: var(--text)
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit;
    color: inherit
}

button, a {
    -webkit-tap-highlight-color: transparent
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px
}

button {
    cursor: pointer
}

.skip {
    position: fixed;
    top: -100px;
    left: 10px;
    z-index: 100;
    background: #23333e;
    padding: 15px
}

.skip:focus {
    top: 10px
}

.journey {
    height: 440svh
}

.stage {
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    overflow: clip;
    isolation: isolate;
    background: #23333e
}

html, body {
    max-width: 100%;
    overflow-x: clip;
}

.footer-actions { display: flex; align-items: center; gap: 22px; }
.legal-link { pointer-events: auto; letter-spacing: .4px; font-size: 10px; border: 0; background: none; padding: 8px 0; }

.landscape {
    position: absolute;
    inset: -5%;
    transform-origin: 65% 46%;
    will-change: transform
}

.landscape:before {
    content: none
}

.landscape img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    mask-image: none;
    -webkit-mask-image: none
}

.vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 22, 32, .2), transparent 23%, transparent 76%, rgba(8, 22, 32, .28))
}

#clouds {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2
}

.fog-fallback {
    position: absolute;
    inset: -20%;
    pointer-events: none;
    opacity: .16;
    background: radial-gradient(ellipse at 4% 60%, #d9e2e6 0, transparent 48%), radial-gradient(ellipse at 93% 58%, #e9e1d6 0, transparent 48%);
    z-index: 1
}

.masthead {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    padding: 27px 4.5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    white-space: nowrap;
    line-height: 1;
    padding: 5px 0;
    flex-shrink: 0;
    transition: opacity .2s ease
}

.brand:hover { opacity: .8; }

.brand .brand-given {
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -1.6px
}

.brand .brand-family {
    color: var(--text);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase
}

.brand .brand-dot {
    color: var(--accent);
    font-size: 18px;
    margin-left: -5px
}

.masthead-caption, .eyebrow, .time, .bottom-bar, .chapter-label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.7px
}

.masthead-caption {
    opacity: .8
}

.motion-toggle {
    border: 1px solid #ffffff30;
    background: #24374638;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 99px;
    padding: 11px 14px;
    font-size: 10px
}

.motion-toggle span {
    margin-left: 6px
}

.panels {
    position: absolute;
    inset: 0;
    z-index: 4;
    perspective: 1200px;
    pointer-events: none
}

.glass {
    border: 1px solid rgba(255, 255, 255, .3);
    background: linear-gradient(132deg, rgba(191, 211, 220, .15), rgba(20, 40, 54, .38) 58%, rgba(83, 98, 105, .19));
    backdrop-filter: blur(24px) saturate(1.12);
    -webkit-backdrop-filter: blur(24px) saturate(1.12);
    box-shadow: inset 0 1px 0 #ffffff40, inset 0 -1px 0 #ffffff10, 0 25px 70px #03132130
}

.panel {
    position: absolute;
    width: 420px;
    top: 50%;
    padding: 29px 32px 24px;
    border-radius: 30px;
    transform: translateY(-50%);
    pointer-events: auto;
    will-change: transform, opacity
}

.panel:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(ellipse at 0 0, #ffffff12, transparent 55%);
    z-index: -1
}

.profile-card {
    left: 12vw
}

.profile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px
}

.eyebrow {
    color: #eef1f1
}

.status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    color: #e5e9e5
}

.status i {
    width: 5px;
    height: 5px;
    background: #c3d8c3;
    border-radius: 50%;
    box-shadow: 0 0 12px #cdf1cd70
}

.identity {
    display: flex;
    align-items: center;
    gap: 23px
}

.portrait {
    width: 112px;
    height: 140px;
    border-radius: 23px;
    overflow: hidden;
    border: 1px solid #ffffff55;
    flex-shrink: 0;
    box-shadow: 0 12px 23px #06172626
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%
}

.location {
    font-size: 10px;
    margin: 0 0 10px;
    color: #d8dedf;
    letter-spacing: .2px
}

h1 {
    font-size: 60px;
    line-height: .94;
    letter-spacing: -3.2px;
    margin: 0;
    font-weight: 500
}

h1 span, h2 span {
    color: var(--accent)
}

.role {
    font-size: 21px;
    line-height: 1.4;
    letter-spacing: -.5px;
    margin: 27px 0 21px
}

.role span {
    color: #d5dfe4
}

.current {
    display: flex;
    align-items: center;
    gap: 13px;
    border-top: 1px solid #ffffff26;
    padding-top: 20px
}

.current-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #ffffff30;
    border-radius: 11px;
    font-size: 20px
}

.current p {
    font-size: 12px;
    line-height: 1.5;
    margin: 0
}

.current strong {
    font-weight: 500
}

.current small {
    display: block;
    color: #d0d9de;
    font-size: 10px;
    margin-top: 4px
}

.profile-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 26px
}

.socials {
    display: flex;
    gap: 10px
}

.circle-link {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid #ffffff55;
    background: linear-gradient(135deg, #ffffff22, #ffffff06);
    position: relative;
    transition: background .3s, transform .3s
}

.circle-link:hover {
    background: #ffffff35;
    transform: translateY(-3px)
}

.linkedin {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -1px
}

.circle-link svg {
    width: 22px;
    height: 22px
}

.tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    white-space: nowrap;
    background: #203542ef;
    border: 1px solid #ffffff40;
    padding: 8px 11px;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    font-size: 10px;
    transition: opacity .2s
}

.circle-link:hover .tooltip, .circle-link:focus-visible .tooltip {
    opacity: 1
}

.next-link {
    font-size: 11px;
    color: #e4e9eb;
    display: flex;
    gap: 17px
}

.next-link span {
    font-size: 15px
}

.resume-card {
    right: 12vw;
    opacity: 0;
    pointer-events: none;
    max-width: 440px;
    width: 440px
}

.resume-card h2 {
    font-size: 43px;
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -1.9px;
    margin: 0 0 14px
}

.resume-intro {
    font-size: 12px;
    line-height: 1.6;
    color: #d6dfe3;
    margin-bottom: 26px
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
    border-left: 1px solid #ffffff40
}

.timeline li {
    position: relative;
    padding: 0 0 28px 10px
}

.timeline li:before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    left: -24px;
    top: 2px;
    box-shadow: 0 0 0 5px #ffffff0a
}

.timeline li:last-child {
    padding-bottom: 0
}

.time {
    font-size: 8px;
    color: #ced9df
}

.timeline h3 {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -.4px;
    margin: 10px 0 6px
}

.timeline p {
    font-size: 12px;
    color: #d0dbe0;
    margin: 0 0 11px
}

.tag {
    border: 1px solid #ffffff28;
    border-radius: 20px;
    padding: 5px 9px;
    font-size: 9px;
    color: #e1e7e8;
    display: inline-block
}

.resume-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #ffffff26;
    margin-top: 23px;
    padding-top: 18px;
    font-size: 10px;
    color: #d0dbe0
}

.resume-footer a {
    font-size: 23px
}

.chapters {
    position: absolute;
    z-index: 10;
    right: 4.5vw;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px 11px;
    border-radius: 40px;
    display: grid;
    gap: 19px
}

.chapters a {
    display: flex;
    gap: 9px;
    align-items: center;
    opacity: .55;
    font-size: 9px;
    padding: 4px
}

.chapters i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor
}

.chapters .active {
    opacity: 1
}

.chapters .active i {
    box-shadow: 0 0 0 4px #ffffff22;
    background: var(--accent)
}

.bottom-bar {
    position: absolute;
    z-index: 8;
    bottom: 30px;
    left: 4.5vw;
    right: 4.5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
    pointer-events: none
}

.bottom-label span {
    padding: 0 6px;
    opacity: .5
}

.scroll-cue {
    display: flex;
    align-items: center;
    gap: 13px;
    pointer-events: auto
}

.scroll-track {
    height: 28px;
    width: 15px;
    border-radius: 12px;
    border: 1px solid #ffffff70;
    display: flex;
    justify-content: center;
    padding-top: 5px
}

.scroll-track i {
    width: 2px;
    height: 5px;
    background: var(--text);
    animation: scroll 2s infinite
}

.progress {
    position: absolute;
    height: 2px;
    background: #ffffff12;
    bottom: 0;
    width: 100%;
    z-index: 10
}

.progress div {
    height: 100%;
    width: 100%;
    background: #edd4ad88;
    transform-origin: left;
    transform: scaleX(0)
}

@keyframes scroll {
    50% {
        transform: translateY(8px);
        opacity: .4
    }
}

@media (max-width: 700px) {
    .landscape img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        mask-image: none;
        -webkit-mask-image: none
    }
}

@media (max-width: 700px) {
    .journey {
        height: 400svh
    }

    .landscape img {
        object-fit: cover;
        object-position: 63% center
    }

    .masthead {
        padding: 17px 22px
    }

    .masthead-caption {
        display: none
    }

    .motion-toggle {
        font-size: 9px;
        padding: 9px 11px
    }

    .panel {
        width: calc(100% - 48px);
        max-width: 400px;
        left: 24px;
        right: auto;
        padding: 24px;
        border-radius: 27px;
        top: 48%
    }

    .profile-top {
        margin-bottom: 23px
    }

    .portrait {
        width: 94px;
        height: 121px
    }

    .identity {
        gap: 18px
    }

    h1 {
        font-size: 53px
    }

    .location {
        font-size: 9px
    }

    .role {
        font-size: 20px;
        margin-top: 24px
    }

    .profile-bottom {
        margin-top: 23px
    }

    .resume-card h2 {
        font-size: 37px
    }

    .chapters {
        top: auto;
        bottom: 71px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        display: flex;
        padding: 8px 18px;
        gap: 25px
    }

    .bottom-bar {
        bottom: 22px;
        left: 22px;
        right: 22px
    }

    .bottom-label {
        display: none
    }

    .chapter-label {
        font-size: 8px
    }

    .scroll-cue {
        font-size: 8px
    }

    .current small {
        font-size: 9px
    }

    .footer-actions { gap: 12px; }
    .legal-link { font-size: 9px; }
}

@media (max-width: 370px) {
    .identity { gap: 13px; }
    .portrait { width: 78px; height: 108px; }
    h1 { font-size: 43px; letter-spacing: -2px; }
    .masthead { padding-left: 16px; padding-right: 16px; gap: 10px; }
    .brand { font-size: 22px; }
    .motion-toggle { font-size: 8px; padding: 8px; }
    .bottom-bar { left: 16px; right: 16px; }
    .chapter-label { letter-spacing: .6px; font-size: 7px; }
}

@media (max-height: 650px) {
    .panel {
        padding: 20px 25px;
        transform-origin: center
    }

    .profile-top {
        margin-bottom: 17px
    }

    .portrait {
        height: 100px;
        width: 85px
    }

    h1 {
        font-size: 48px
    }

    .role {
        font-size: 18px;
        margin: 16px 0
    }

    .current {
        padding-top: 14px
    }

    .profile-bottom {
        margin-top: 18px
    }

    .resume-card h2 {
        font-size: 33px
    }

    .resume-intro {
        margin-bottom: 16px
    }

    .timeline li {
        padding-bottom: 19px
    }

    .masthead {
        padding-top: 15px
    }

    .bottom-bar {
        bottom: 15px
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        scroll-behavior: auto !important
    }

    .panel {
        will-change: auto
    }
}

body.motion-off .scroll-track i {
    animation: none
}

/* Independent modal: the two-chapter journey stays behind it unchanged. */
.panel.legal-card {
    --legal-width: min(1080px, calc(100% - 260px));
    width: var(--legal-width);
    max-width: none;
    left: calc((100% - var(--legal-width)) / 2);
    right: auto;
    top: 50%;
    height: calc(100dvh - 184px);
    max-height: 820px;
    margin: 0;
    padding: 30px 34px 22px;
    position: fixed;
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 1;
    pointer-events: auto;
    color: var(--text);
    background: linear-gradient(135deg, #223743e8, #21313fd9);
}

.panel.legal-card[open] { display: flex; }
.legal-card::backdrop { background: #10212d50; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.legal-close { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); padding: 0; transition: background .2s, color .2s; }
.legal-close svg { width: 18px; height: 18px; }
.legal-close:hover { color: var(--text); background: #ffffff12; }
.legal-card .resume-footer button { border: 0; background: none; padding: 0; font-size: 11px; color: inherit; }

.legal-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 23px; border-bottom: 1px solid #ffffff26; }
.legal-heading h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 500; letter-spacing: -1.8px; margin: 12px 0 8px; line-height: 1; }
.legal-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.legal-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 30px; flex: 1; min-height: 0; padding-top: 23px; }
.legal-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 4px 0; scrollbar-width: thin; }
.legal-nav a { display: flex; gap: 10px; align-items: baseline; font-size: 12px; padding: 5px 9px; min-height: 24px; border-radius: 10px; color: var(--muted); transition: background .2s, color .2s; }
.legal-nav a span { font-size: 9px; letter-spacing: 1px; color: var(--accent); }
.legal-nav a:hover, .legal-nav a[aria-current] { background: #ffffff12; color: var(--text); }
.legal-nav a:focus-visible { outline-offset: -2px; }
.legal-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #edd4ad77 transparent; padding: 2px 18px 12px 2px; }
.legal-scroll:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; border-radius: 5px; }
.legal-content { font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.legal-content section { padding: 30px 0; border-bottom: 1px solid #ffffff22; scroll-margin-top: 4px; }
.legal-content section:last-child { border-bottom: 0; padding-bottom: 10px; }
.legal-number { font-size: 9px; letter-spacing: 1.8px; color: var(--accent); }
.legal-content h3 { font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -.6px; margin: 10px 0 18px; }
.legal-content p { margin: 0 0 16px; color: #e2e6e7; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a { text-decoration: underline; text-underline-offset: 3px; }
.legal-content ul { padding-left: 19px; color: #e2e6e7; }
.legal-content .legal-notice { padding: 14px 16px; background: #edd4ad0e; border: 1px solid #edd4ad40; border-radius: 12px; color: var(--accent); font-size: 12px; }
.legal-content .legal-pending { padding-left: 13px; border-left: 2px solid #edd4ad70; color: var(--accent); font-size: 12px; }
.legal-content .legal-source { font-size: 11px; color: var(--muted); }
.legal-card .resume-footer { flex-shrink: 0; margin-top: 18px; padding-top: 16px; gap: 12px; }
.legal-card .resume-footer a { font-size: 11px; }

@media (max-width: 1000px) {
    .panel.legal-card { --legal-width: calc(100% - 220px); padding: 25px; }
    .legal-body { grid-template-columns: 170px minmax(0, 1fr); gap: 18px; }
    .legal-nav a { font-size: 11px; }
}

@media (max-width: 700px) {
    .panel.legal-card { --legal-width: calc(100% - 32px); height: calc(100dvh - 192px); max-height: none; top: calc(50% - 23px); padding: 20px 18px 16px; border-radius: 24px; }
    .legal-heading { padding-bottom: 16px; gap: 10px; }
    .legal-heading h2 { font-size: 32px; margin-top: 10px; }
    .legal-heading p { font-size: 10px; }
    .legal-close { width: 40px; height: 40px; }
    .legal-body { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
    .legal-nav { flex-shrink: 0; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 3px 0 6px; gap: 4px; }
    .legal-nav a { white-space: nowrap; padding: 8px 10px; background: #ffffff07; font-size: 10px; }
    .legal-scroll { padding-right: 10px; }
    .legal-content { font-size: 13px; }
    .legal-content h3 { font-size: 22px; }
    .legal-content section { padding: 24px 0; }
    .legal-card .resume-footer { margin-top: 10px; padding-top: 12px; }
    .legal-card .resume-footer > span { display: none; }
}

@media (max-height: 500px) {
    .panel.legal-card { height: calc(100dvh - 142px); top: calc(50% + 8px); padding: 14px 20px; }
    .legal-heading { padding-bottom: 10px; }
    .legal-heading h2 { font-size: 26px; margin: 5px 0; }
    .legal-heading p { display: none; }
    .legal-body { padding-top: 10px; gap: 10px; }
    .legal-card .resume-footer { padding-top: 8px; margin-top: 8px; }
}

@media (max-width: 370px) {
    .legal-heading h2 { font-size: 28px; }
    .legal-heading .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
}
