.flight-study {
    height: 440svh;
    position: relative;
    padding: 0;
    margin-top: 18px;
    overflow: visible
}

.flight-viewport {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    background: #071525;
    isolation: isolate
}

.flight-world {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden
}

.flight-world > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    will-change: transform
}

.flight-distance {
    transform: scale(calc(1 + var(--flight, 0) * .38));
    transform-origin: 50% 51%
}

.flight-near {
    transform: scale(calc(1 + var(--flight, 0) * 1.1));
    transform-origin: 50% 50%
}

.flight-near-left {
    clip-path: polygon(0 0, 24% 0, 26% 100%, 0 100%);
    mask-image: linear-gradient(90deg, #000 12%, transparent 29%);
    translate: calc(var(--flight, 0) * -10vw) 0
}

.flight-near-right {
    clip-path: polygon(80% 0, 100% 0, 100% 100%, 80% 100%);
    mask-image: linear-gradient(270deg, #000 8%, transparent 22%);
    translate: calc(var(--flight, 0) * 10vw) 0
}

.flight-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #020b1aaf, transparent 70%), linear-gradient(0deg, #020b1a99, transparent 25%)
}

.flight-shade:after {
    content: '';
    position: absolute;
    inset: 0;
    background: #040d1b;
    opacity: var(--final-shade, 0)
}

.flight-intro {
    position: absolute;
    top: 24%;
    left: 7%;
    color: #f6f8fb;
    opacity: var(--intro-opacity, 1);
    transform: translateY(calc(var(--flight, 0) * -35px))
}

.flight-intro .eyebrow {
    font-size: 10px;
    color: #d8d0c2;
    letter-spacing: .16em
}

.flight-intro h1 {
    font-size: clamp(66px, 7.5vw, 115px);
    letter-spacing: -.065em;
    line-height: 1.04;
    font-weight: 500;
    color: #f5f8fb;
    margin: 23px 0
}

.flight-intro h1 > span {
    color: #e6bd52
}

.flight-intro > p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.9;
    color: #c7d6e6
}

.flight-skip {
    color: #dce8f3;
    font-size: 13px;
    border-bottom: 1px solid #ffffff50;
    padding-bottom: 5px;
    display: inline-block;
    margin-top: 12px
}

.flight-bottom {
    position: absolute;
    bottom: 30px;
    left: 7%;
    right: 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #d6e2ef;
    font-size: 10px;
    letter-spacing: .13em;
    gap: 25px
}

.flight-scroll {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 9px
}

.flight-scroll i {
    font-size: 23px
}

.flight-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffffff30
}

.flight-track > span {
    height: 100%;
    display: block;
    background: #e6bd52;
    transform: scaleX(var(--progress, 0));
    transform-origin: left
}

.flight-pause {
    position: absolute;
    top: 110px;
    right: 25px;
    background: #071525a6;
    border: 1px solid #ffffff40;
    color: #d4e2ef;
    border-radius: 100px;
    padding: 9px 14px;
    font-size: 11px;
    backdrop-filter: blur(12px)
}

.flight-logo {
    position: fixed;
    z-index: 135;
    pointer-events: none;
    transform: translate(-50%, -50%);
    width: 350px;
    left: 50%;
    top: 47%;
    opacity: 0;
    visibility: hidden;
    text-align: center
}

.flight-logo.is-present {
    visibility: visible
}

.flight-logo img {
    display: block;
    width: 100%;
    height: auto;
    filter: invert(1)
}

.flight-logo span, .flight-logo small {
    display: block;
    white-space: nowrap;
    opacity: var(--caption-opacity, 1)
}

.flight-logo span {
    color: #f2f6fb;
    font-size: 16px;
    font-weight: 550;
    letter-spacing: .22em;
    margin-top: 20px
}

.flight-logo small {
    color: #cfc7ba;
    letter-spacing: .15em;
    font-size: 8px;
    margin-top: 10px
}

.flight-next h2 {
    font-size: clamp(35px, 4vw, 55px);
    line-height: 1.2;
    font-weight: 550;
    margin-bottom: 25px
}

.flight-next > p:not(.eyebrow) {
    font-size: 16px;
    max-width: 650px;
    margin-bottom: 30px
}

.flight-next .hero-actions {
    display: flex;
    gap: 12px
}

.flight-study.is-paused {
    height: 100svh
}

.flight-study.is-paused .flight-world > img {
    transform: none;
    translate: none
}

.flight-study.is-paused .flight-intro {
    opacity: 1;
    transform: none
}

.flight-study.is-paused .flight-shade:after {
    opacity: 0
}

.flight-study.is-paused .flight-track {
    display: none
}

@media (max-width: 650px) {
    .flight-study {
        height: 350svh;
        margin-top: 14px
    }

    .flight-intro {
        top: 27%;
        left: 7%;
        right: 7%
    }

    .flight-intro h1 {
        font-size: clamp(56px, 13vw, 85px)
    }

    .flight-intro .eyebrow {
        font-size: 8px;
        letter-spacing: .1em
    }

    .flight-intro > p:not(.eyebrow) {
        font-size: 15px
    }

    .flight-world > img {
        width: 170%;
        left: -35%;
        max-width: none
    }

    .flight-bottom {
        font-size: 8px;
        letter-spacing: .07em;
        bottom: 25px
    }

    .flight-scroll {
        font-size: 7px;
        gap: 7px
    }

    .flight-logo span {
        font-size: 13px
    }

    .flight-logo small {
        font-size: 6px
    }

    .flight-pause {
        font-size: 10px;
        right: 18px;
        top: 95px
    }

    .flight-next .hero-actions {
        flex-wrap: wrap
    }
}

@media (prefers-reduced-motion: reduce) {
    .flight-study {
        height: 100svh
    }

    .flight-world > img {
        transform: none !important;
        translate: none !important;
        will-change: auto
    }

    .flight-intro {
        opacity: 1 !important;
        transform: none !important
    }

    .flight-shade:after, .flight-track, .flight-pause {
        display: none
    }

    .flight-logo {
        visibility: hidden !important
    }
}

.flight-world > .flight-poster {
    transform: none;
    translate: none;
    will-change: auto
}

.flight-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    pointer-events: none
}

.flight-video.is-ready {
    opacity: 1
}

.flight-study.is-static {
    height: 100svh
}

.flight-pause[hidden] {
    display: none
}

.flight-study.is-static .flight-track {
    display: none
}

.flight-study.is-paused .flight-video {
    opacity: 0
}

@media (max-width: 650px) {
    .flight-world > .flight-poster {
        width: 100%;
        left: 0;
        object-position: center
    }

    .flight-video {
        object-position: center
    }
}

@media (prefers-reduced-motion: reduce) {
    .flight-video {
        display: none
    }
}

.flight-poster[data-theme="light"] {
    display: block
}

.flight-poster[data-theme="dark"] {
    display: none
}

[data-theme="dark"] .flight-poster[data-theme="light"] {
    display: none
}

[data-theme="dark"] .flight-poster[data-theme="dark"] {
    display: block
}

:root:not([data-theme="dark"]) .flight-shade {
    background: linear-gradient(90deg, #081629a6, transparent 78%), linear-gradient(0deg, #08162960, transparent 25%)
}

/* Overlay the navigation without reserving a strip above the full-screen film. */
.flight-study-page .studio-header {
    opacity: var(--flight-header-opacity, 0);
    pointer-events: none
}

.flight-study-page .studio-header:not([inert]) {
    pointer-events: auto
}

.flight-study-page .studio-header:focus-within {
    opacity: 1
}

.flight-study-page .studio-header {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    top: 18px
}

.flight-study-page .flight-study {
    margin-top: 0
}

@media (max-width: 800px) {
    .flight-study-page .studio-header {
        top: 12px
    }
}

/* Centre and land the image box itself; faded captions must not offset its anchor. */
.flight-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.flight-logo > span, .flight-logo > small {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    margin: 0
}

.flight-logo > span {
    top: calc(100% + 20px)
}

.flight-logo > small {
    top: calc(100% + 53px)
}

/* One persistent image avoids a subpixel/rasterisation jump between two logos. */
.flight-study-page.flight-single-logo .studio-header .astrea-original-logo {
    visibility: hidden !important
}

.flight-logo, .flight-logo > img {
    transition: none;
    animation: none
}

.flight-theme-control {
    position: absolute;
    top: 22px;
    right: 25px;
    z-index: 10;
    padding: 3px;
    border-radius: 100px;
    background: rgba(26, 39, 58, .28);
    border-color: #ffffff35;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px)
}

.flight-theme-control[hidden] {
    display: none
}

.flight-theme-control .theme-switch {
    background: transparent;
    border: 0;
    padding: 0
}

.flight-theme-control .theme-switch button {
    width: 27px;
    height: 27px;
    color: #d7e4f1;
    font-size: 12px
}

.flight-theme-control .theme-switch button[aria-pressed="true"] {
    background: rgba(245, 248, 252, .88);
    color: #162135
}

@media (max-width: 650px) {
    .flight-theme-control {
        top: 18px;
        right: 18px
    }
}

.flight-intro-controls {
    position: absolute;
    top: 22px;
    right: 25px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px
}

.flight-intro-controls .flight-theme-control, .flight-intro-controls .flight-pause {
    position: static
}

.flight-intro-controls .flight-pause {
    height: 35px;
    padding: 7px 12px;
    font-size: 11px
}

.flight-study-page:has(.studio-header:not([inert])) .flight-intro-controls {
    top: 110px
}

@media (max-width: 800px) {
    .flight-study-page:has(.studio-header:not([inert])) .flight-intro-controls {
        top: 95px
    }
}

@media (max-width: 650px) {
    .flight-intro-controls {
        top: 18px;
        right: 18px;
        gap: 7px
    }

    .flight-intro-controls .flight-pause {
        font-size: 10px
    }
}

@media (prefers-reduced-motion: reduce) {
    .flight-intro-controls .flight-pause {
        display: none
    }
}

.flight-logo > img[src*="astrea-wing-emblem"] {
    filter: none
}

.flight-logo > span {
    font-size: clamp(10px, 1.5vw, 16px);
    letter-spacing: .05em;
    text-transform: none
}

@media (prefers-reduced-motion: reduce) {
    .flight-study-page .studio-header {
        opacity: 1
    }
}

@media (min-width: 801px) {
    .flight-study-page .studio-header .header-controls {
        position: absolute;
        left: calc(50% + (50% - 25px) * var(--header-logo-space, 0));
        transform: translateX(calc(-50% - 50% * var(--header-logo-space, 0)));
        margin: 0
    }

    .flight-study-page .studio-header .header-controls .studio-nav {
        margin-left: 0
    }
}

.flight-logo > span {
    font-size: clamp(14px, 1.8vw, 22px);
    letter-spacing: .035em
}

.flight-logo > small {
    font-size: clamp(9px, .95vw, 12px);
    letter-spacing: .12em;
    top: calc(100% + 56px)
}

/* Scroll-driven reveal: soft atmospheric bloom, gentle scale, lifted captions. */
.flight-logo {
    isolation: isolate
}

.flight-logo:before {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset: -40% -22%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(230, 189, 82, .2), rgba(201, 160, 51, .1) 35%, transparent 68%);
    opacity: var(--bloom, 0);
    transform: scale(calc(.75 + var(--reveal, 0) * .25))
}

.flight-logo > span, .flight-logo > small {
    translate: 0 var(--caption-rise, 0px);
    filter: blur(var(--caption-blur, 0px))
}

@media (prefers-reduced-motion: reduce) {
    .flight-logo:before {
        display: none
    }

    .flight-logo > span, .flight-logo > small {
        translate: none;
        filter: none
    }
}

.flight-intro h1 > span {
    color: #d4af37;
    background: linear-gradient(110deg, #b8860b 0%, #f4d675 30%, #d4af37 55%, #f3d77c 78%, #ba8c20 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent
}

.flight-notes {
    position: absolute;
    inset: 0;
    pointer-events: none
}

.flight-note {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    padding: 18px 22px;
    border-left: 1px solid #d4af3799;
    background: linear-gradient(110deg, rgba(12, 14, 17, .66), rgba(12, 14, 17, .24));
    border-radius: 0 13px 13px 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: min(390px, 86vw)
}

.flight-note > span {
    display: block;
    color: #e6bd52;
    font-size: 10px;
    font-weight: 550;
    letter-spacing: .15em;
    margin-bottom: 10px
}

.flight-note > p {
    color: #f4f2ed;
    font-size: clamp(22px, 2.15vw, 31px);
    line-height: 1.4;
    letter-spacing: -.025em;
    margin: 0
}

.note-left {
    top: 39%;
    left: 9%
}

.note-right {
    top: 33%;
    right: 10%
}

.note-lower {
    top: 58%;
    left: 17%
}

@media (max-width: 650px) {
    .flight-note {
        max-width: 86vw;
        padding: 15px 18px
    }

    .flight-note > p {
        font-size: 23px
    }

    .note-left {
        left: 7%;
        top: 39%
    }

    .note-right {
        right: 7%;
        top: 36%
    }

    .note-lower {
        left: 9%;
        top: 52%
    }
}

@media (prefers-reduced-motion: reduce) {
    .flight-notes {
        display: none
    }
}

.flight-note {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35)
}

:root:not([data-theme=dark]) .flight-study-page .studio-header {
    background: rgba(250, 250, 252, .95);
    border-color: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 36px #00000024, inset 0 1px 0 #fff;
    backdrop-filter: blur(24px) saturate(110%);
    -webkit-backdrop-filter: blur(24px) saturate(110%)
}

:root:not([data-theme=dark]) .flight-study-page .studio-header .studio-nav > a {
    color: #3d4048;
    font-weight: 550
}

:root:not([data-theme=dark]) .flight-study-page .studio-header .studio-nav > a:hover, :root:not([data-theme=dark]) .flight-study-page .studio-header .studio-nav > a:focus-visible {
    background: #fff;
    color: #17191f;
    border-color: rgba(167, 123, 22, .28)
}

:root:not([data-theme=dark]) .flight-study-page .studio-header .studio-nav > a[aria-current=page] {
    background: #fff7df;
    color: #29200a;
    border-color: rgba(167, 123, 22, .28);
    box-shadow: inset 0 1px 0 #fff
}

:root:not([data-theme=dark]) .flight-study-page .studio-header .theme-switch {
    background: #e8e8ed;
    border-color: #d0d1d8
}

:root:not([data-theme=dark]) .flight-study-page .studio-header .theme-switch button {
    color: #444750
}

:root:not([data-theme=dark]) .flight-study-page .studio-header .theme-switch button[aria-pressed=true] {
    background: #fff;
    color: #1d2028
}
