/* "Höhenflug 3048" landing page (template "Hoehenflug 3048", module 89).
   Built from the Northlight design "ICEQ Desktop Macbook 14"" (1512px frame).
   The design uses the commercial family "Widescreen"; until a webfont licence is
   in place, Unbounded (wide cuts) and Figtree (text) stand in - SIL OFL. */

@font-face {
    font-family: 'HF Wide';
    src: url('fonts/Unbounded-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HF Wide';
    src: url('fonts/Unbounded-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HF Text';
    src: url('fonts/Figtree-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --hf-night: #030A14;
    --hf-black: #000;
    --hf-white: #fff;
    --hf-muted: #8b97a8;
    --hf-line: rgba(255, 255, 255, .18);
    --hf-wide: 'HF Wide', 'Arial Black', sans-serif;
    --hf-text: 'HF Text', 'Helvetica Neue', Arial, sans-serif;
    --hf-gutter: 32px;
    --hf-ease: cubic-bezier(.2, .7, .2, 1);
}

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

body.hf {
    margin: 0;
    background: var(--hf-night);
    color: var(--hf-white);
    font-family: var(--hf-text);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.hf img {
    display: block;
    max-width: 100%;
    height: auto;
}

.hf :focus-visible {
    outline: 2px solid var(--hf-white);
    outline-offset: 4px;
}

.hf-page {
    position: relative;
    overflow: hidden;
}

/* The site's cookie consent overlay has white panels but no text colour of its own;
   on this dark page it would inherit white. */
.hf #cookieConsentMINDSTREAM {
    color: #1f2933;
    font-family: var(--hf-text);
}
.hf #cookieConsentMINDSTREAM :focus-visible {
    outline-color: #1f2933;
}

/* ---- Language switch ----------------------------------------------------- */

.hf-lang {
    position: absolute;
    top: 28px;
    right: var(--hf-gutter);
    z-index: 5;
    display: flex;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 8px;
    overflow: hidden;
    font-family: var(--hf-wide);
    font-size: 12px;
    letter-spacing: .04em;
}
.hf .hf-lang a {
    padding: 8px 13px;
    line-height: 1;
    color: var(--hf-white);
    text-decoration: none;
}
.hf .hf-lang a:hover,
.hf .hf-lang a:focus {
    background: rgba(255, 255, 255, .15);
}
.hf .hf-lang a.active {
    background: var(--hf-white);
    color: var(--hf-night);
}

/* ---- Flight paths ---------------------------------------------------------- */

/* Thin curves across the whole page, as in the design; they draw themselves in. */
.hf-orbits {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.hf-orbits path {
    fill: none;
    stroke: rgba(160, 180, 210, .34);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}
.hf-js .hf-orbits path {
    stroke-dasharray: 2600;
    stroke-dashoffset: 2600;
    animation: hf-draw 4.5s var(--hf-ease) forwards;
}
.hf-js .hf-orbits path:nth-child(2) { animation-delay: .6s; }
.hf-js .hf-orbits path:nth-child(3) { animation-delay: 1.2s; }
.hf-js .hf-orbits path:nth-child(4) { animation-delay: 1.8s; }
@keyframes hf-draw {
    to { stroke-dashoffset: 0; }
}
/* With the scroll script the paths grow with the scroll position instead. */
.hf-scroll .hf-orbits path {
    animation: none;
}

/* The aeroplane riding the second flight path (placed by hoehenflug.js). */
.hf-plane {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    fill: rgba(225, 235, 250, .9);
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s ease;
    filter: drop-shadow(0 0 6px rgba(170, 200, 255, .5));
}
.hf-plane.is-flying {
    opacity: 1;
}

/* ---- Hero ---------------------------------------------------------------- */

/* No z-index here: the hero's black ground has to stay below the flight paths,
   while its copy (z-index 2) stays above them. */
.hf-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--hf-black);
    padding: 34px var(--hf-gutter) 120px;
    text-align: center;
}
.hf-logo {
    /* Above the window photo, whose dark surround is pulled up underneath. */
    position: relative;
    z-index: 3;
}
.hf-logo img {
    width: 60px;
    height: 60px;
}
.hf-window {
    position: relative;
    translate: 0 var(--hf-window-drift, 0px);
    width: min(1100px, 100%);
    margin-top: -40px;
    overflow: hidden;
    /* Fade the photo's black edges into the page. */
    -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 48%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 62% at 50% 48%, #000 62%, transparent 100%);
}
.hf-window-img {
    width: 100%;
    transform-origin: 50% 45%;
    animation: hf-approach 10s var(--hf-ease) both;
}
/* Stars twinkle only in the sky inside the window pane (measured on
   hero-window.jpg: pane 39-61 % of the width, sky 29-43 % of the height). */
.hf-stars {
    position: absolute;
    left: 39.5%;
    top: 29%;
    width: 21.5%;
    height: 14%;
    z-index: 1;
    border-radius: 45% 45% 8% 8% / 70% 70% 8% 8%;
    pointer-events: none;
}
.hf-hero-copy {
    margin-top: -150px;
    position: relative;
    z-index: 2;
}
.hf-subline {
    margin: 0 0 22px;
    font-family: var(--hf-wide);
    font-weight: 400;
    font-size: 19px;
    line-height: 22px;
    animation: hf-rise 1.1s var(--hf-ease) .3s both;
}
.hf-hero h1 {
    margin: 0;
    font-family: var(--hf-wide);
    font-weight: 800;
    font-size: clamp(30px, 4.2vw, 56px);
    line-height: 1.05;
    letter-spacing: .02em;
    white-space: nowrap;
    animation: hf-rise 1.2s var(--hf-ease) .5s both;
}
.hf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 30px;
    padding: 12px 26px;
    border: 1px solid var(--hf-white);
    border-radius: 8px;
    font-family: var(--hf-wide);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    animation: hf-rise 1.1s var(--hf-ease) .75s both;
    transition: background-color .25s ease, color .25s ease, box-shadow .35s ease;
}
.hf .hf-btn,
.hf .hf-btn:visited {
    color: var(--hf-white);
}
.hf .hf-btn:hover,
.hf .hf-btn:focus {
    background: var(--hf-white);
    color: var(--hf-night);
    box-shadow: 0 0 30px rgba(170, 200, 255, .35);
}

@keyframes hf-approach {
    from { transform: scale(1.12); opacity: .4; }
    to   { transform: scale(1); opacity: 1; }
}
@keyframes hf-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

/* ---- Stamp between hero and content --------------------------------------- */

.hf-stamp {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    margin-top: -80px;
}
.hf-stamp img {
    width: 160px;
    height: 160px;
    rotate: var(--hf-stamp-turn, 0deg);
}
.hf-js .hf-stamp.is-visible img {
    animation: hf-stamp 1.1s var(--hf-ease) both;
}
@keyframes hf-stamp {
    0%   { transform: rotate(-14deg) scale(1.25); opacity: 0; }
    60%  { transform: rotate(3deg) scale(.97); opacity: 1; }
    100% { transform: rotate(0) scale(1); }
}

/* ---- Sections -------------------------------------------------------------- */

.hf main {
    position: relative;
    z-index: 2;
}
.hf-media {
    margin: 0;
    overflow: hidden;
}
.hf-media img {
    width: 100%;
    object-fit: cover;
}

.hf-label {
    margin: 0;
    font-family: var(--hf-wide);
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hf-muted);
}
.hf-lead,
.hf-intro-text p {
    margin: 0;
    font-size: 28px;
    line-height: 36px;
}
.hf-intro-text strong {
    font-weight: 500;
}
.hf-small {
    margin: 0;
    font-size: 17px;
    line-height: 24px;
}
.hf-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: var(--hf-wide);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity .25s ease;
}
.hf .hf-link,
.hf .hf-link:visited {
    color: var(--hf-white);
}
.hf .hf-link:hover,
.hf .hf-link:focus {
    opacity: .7;
}

.hf-intro {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 90px;
    align-items: center;
    max-width: 1260px;
    margin: 90px auto 0;
    padding: 0 var(--hf-gutter);
}
.hf-intro-img img {
    aspect-ratio: 464 / 555;
}
.hf-intro-text .hf-link {
    margin-top: 14px;
}

.hf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 130px;
    max-width: 1320px;
    margin: 150px auto 0;
    padding: 0 var(--hf-gutter);
    align-items: start;
}
.hf-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hf-card--menu {
    grid-column: 2;
    grid-row: 1;
}
.hf-card--menu img {
    aspect-ratio: 557 / 836;
}
.hf-card--location {
    grid-column: 1;
    grid-row: 1;
    margin-top: 460px;
}
.hf-card--location img {
    aspect-ratio: 626 / 782;
}

.hf-closing {
    position: relative;
    max-width: 1448px;
    margin: 160px auto 0;
    padding: 0 var(--hf-gutter);
}
.hf-closing-img {
    overflow: hidden;
}
.hf-closing-img img {
    width: 100%;
    aspect-ratio: 1448 / 920;
    object-fit: cover;
}
.hf-closing p {
    position: absolute;
    top: 20px;
    left: calc(var(--hf-gutter) + 20px);
    right: calc(var(--hf-gutter) + 20px);
    margin: 0;
    font-size: 20px;
    line-height: 26px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
}

/* ---- Booking --------------------------------------------------------------- */

.hf-booking {
    max-width: 1000px;
    margin: 150px auto 0;
    padding: 0 var(--hf-gutter);
}
.hf-booking h2 {
    margin: 0 0 32px;
    text-align: center;
    font-family: var(--hf-wide);
    font-weight: 400;
    font-size: 30px;
    line-height: 36px;
    text-transform: uppercase;
}
.hf-booking-grid {
    display: grid;
    grid-template-columns: 1fr 230px;
    gap: 16px;
    align-items: stretch;
}
.hf-booking-grid--single {
    grid-template-columns: 1fr;
}
.hf-booking-panel {
    padding: 20px;
    border: 1px solid var(--hf-line);
}
.hf-facts {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}
.hf-facts li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hf-line);
    font-size: 15px;
    line-height: 21px;
}
.hf-facts span:first-child {
    font-family: var(--hf-wide);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hf-muted);
    flex-shrink: 0;
}
.hf-facts span:last-child {
    text-align: right;
}
.hf-dates-title {
    margin: 0 0 14px;
    font-family: var(--hf-wide);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hf-muted);
}
.hf-dates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.hf .hf-dates a {
    display: block;
    padding: 11px 6px;
    border: 1px solid var(--hf-line);
    text-align: center;
    text-decoration: none;
    color: var(--hf-white);
    font-size: 15px;
    line-height: 20px;
    transition: background-color .25s ease, color .25s ease;
}
.hf-dates small {
    display: block;
    font-family: var(--hf-wide);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hf-muted);
}
.hf .hf-dates a:hover,
.hf .hf-dates a:focus {
    background: var(--hf-white);
    color: var(--hf-night);
}
.hf-dates a:hover small,
.hf-dates a:focus small {
    color: var(--hf-night);
}
.hf-booking-note {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--hf-muted);
}
.hf .hf-booking-note a {
    color: var(--hf-white);
}

/* Cross-link card to FALCON FIRE (Frame 273 in the design). */
.hf-falcon {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 396px;
    padding: 26px 18px 18px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: var(--hf-white);
    background: #140905;
}
.hf-falcon-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    opacity: .75;
    transition: transform 1.2s var(--hf-ease), opacity .4s ease;
}
.hf-falcon:hover .hf-falcon-bg,
.hf-falcon:focus .hf-falcon-bg {
    transform: scale(1.06);
    opacity: .9;
}
.hf-falcon > span {
    position: relative;
}
.hf-falcon-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.hf-falcon-emblem {
    width: 30px;
    mix-blend-mode: screen;
}
.hf-falcon-wordmark {
    width: 120px;
}
.hf-falcon-kicker {
    margin-top: 4px;
    font-family: var(--hf-wide);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hf-falcon-claim {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
    line-height: 30px;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.hf-falcon-label {
    font-family: var(--hf-wide);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ---- Footer ------------------------------------------------------------------ */

.hf-footer {
    position: relative;
    z-index: 2;
    max-width: 1448px;
    margin: 140px auto 0;
    padding: 30px var(--hf-gutter) 40px;
    border-top: 1px solid var(--hf-line);
    font-size: 14px;
    line-height: 22px;
    color: var(--hf-muted);
    text-align: center;
}
.hf-footer p {
    margin: 0 0 6px;
}
.hf-footer b {
    color: var(--hf-white);
    font-weight: 500;
}
.hf .hf-footer a {
    display: inline-block;
    padding: 6px 0;
    color: var(--hf-muted);
}
.hf .hf-footer a:hover,
.hf .hf-footer a:focus {
    color: var(--hf-white);
}

/* ---- Courses dialog --------------------------------------------------------- */

.hf-courses {
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    padding: 34px 34px 28px;
    border: 1px solid var(--hf-line);
    background: #050d19;
    color: var(--hf-white);
}
.hf-courses::backdrop {
    background: rgba(3, 10, 20, .8);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.hf-courses[open] {
    animation: hf-rise .45s var(--hf-ease) both;
}
.hf-courses ol {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}
.hf-courses li {
    padding: 10px 0;
    font-size: 24px;
    line-height: 30px;
}
.hf-courses li span {
    display: block;
    font-family: var(--hf-wide);
    font-size: 11px;
    line-height: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hf-muted);
}
.hf-pairing {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--hf-line);
    font-size: 15px;
    color: var(--hf-muted);
}
.hf-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    color: var(--hf-white);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

/* ---- Scroll reveal (armed only when the script runs: html.hf-js) --------- */

.hf-js [data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 1s var(--hf-ease), transform 1s var(--hf-ease);
    transition-delay: var(--hf-delay, 0s);
}
.hf-js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}
/* The shutter never sits on an element the IntersectionObserver watches:
   Chrome counts a fully clipped target as never intersecting. Where the figure
   itself is observed (intro), the image carries the shutter instead. */
.hf-js .hf-media:not([data-reveal]),
.hf-js .hf-closing-img,
.hf-js .hf-media[data-reveal] img {
    clip-path: inset(100% 0 0 0);
}
.hf-js .hf-media:not([data-reveal]),
.hf-js .hf-closing-img {
    transition: clip-path 1.4s var(--hf-ease);
}
.hf-js .is-visible .hf-media,
.hf-js .hf-closing.is-visible .hf-closing-img,
.hf-js .is-visible.hf-media img {
    clip-path: inset(0 0 0 0);
}
.hf-js .hf-media img,
.hf-js .hf-closing-img img {
    transform: scale(1.18);
    transition: transform 2s var(--hf-ease), clip-path 1.4s var(--hf-ease);
}
/* Slightly over-scaled even when settled, so the parallax never shows an edge. */
.hf-js .is-visible .hf-media img,
.hf-js .is-visible.hf-media img,
.hf-js .hf-closing.is-visible .hf-closing-img img {
    transform: scale(1.08);
}
.hf-media img,
.hf-closing-img img {
    translate: 0 var(--hf-par, 0px);
}
.hf-js .hf-dates li {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s ease, transform .6s ease;
    transition-delay: calc(var(--i, 0) * 45ms + .2s);
}
.hf-js .hf-booking.is-visible .hf-dates li {
    opacity: 1;
    transform: none;
}

/* ---- Tablet -------------------------------------------------------------- */

@media screen and (max-width: 1100px) {
    .hf-grid {
        gap: 60px;
    }
    .hf-card--location {
        margin-top: 260px;
    }
    .hf-intro {
        gap: 50px;
    }
}

/* ---- Mobile -------------------------------------------------------------- */

@media screen and (max-width: 760px) {
    :root {
        --hf-gutter: 20px;
    }
    .hf-lang {
        top: 18px;
    }
    .hf-hero {
        padding-top: 22px;
        padding-bottom: 80px;
    }
    .hf-logo img {
        width: 48px;
        height: 48px;
    }
    .hf-window {
        width: 150%;
        margin-top: -10px;
    }
    .hf-hero-copy {
        margin-top: -60px;
    }
    .hf-subline {
        font-size: 13px;
        line-height: 17px;
    }
    .hf-hero h1 {
        font-size: clamp(22px, 7.2vw, 34px);
    }
    .hf-stamp {
        margin-top: -40px;
    }
    .hf-stamp img {
        width: 120px;
        height: 120px;
    }
    .hf-intro {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 56px;
    }
    .hf-intro-img {
        max-width: 320px;
    }
    .hf-lead,
    .hf-intro-text p {
        font-size: 21px;
        line-height: 28px;
    }
    .hf-grid {
        grid-template-columns: 1fr;
        gap: 64px;
        margin-top: 80px;
    }
    .hf-card--menu,
    .hf-card--location {
        grid-column: auto;
        grid-row: auto;
    }
    .hf-card--location {
        margin-top: 0;
    }
    .hf-closing {
        margin-top: 80px;
    }
    .hf-closing p {
        position: static;
        margin-top: 16px;
        font-size: 18px;
        text-shadow: none;
    }
    .hf-booking {
        margin-top: 90px;
    }
    .hf-booking h2 {
        font-size: 22px;
    }
    .hf-booking-grid {
        grid-template-columns: 1fr;
    }
    .hf-booking-panel {
        padding: 16px;
    }
    .hf-facts li {
        flex-direction: column;
        gap: 4px;
    }
    .hf-facts span:last-child {
        text-align: left;
    }
    .hf-falcon {
        min-height: 300px;
    }
    .hf-footer {
        margin-top: 90px;
    }
    .hf-orbits,
    .hf-plane {
        display: none;
    }
}

@media (pointer: coarse) {
    .hf .hf-lang a {
        padding: 14px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hf-window-img,
    .hf-subline,
    .hf-hero h1,
    .hf-btn,
    .hf-courses[open],
    .hf-js .hf-stamp.is-visible img {
        animation: none;
    }
    .hf-js .hf-orbits path {
        animation: none;
        stroke-dashoffset: 0;
    }
    .hf-stars {
        display: none;
    }
    .hf-js [data-reveal],
    .hf-js .hf-dates li,
    .hf-js .hf-media img,
    .hf-js .hf-closing-img img {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hf-js .hf-media,
    .hf-js .hf-closing-img,
    .hf-js .hf-media img {
        clip-path: none;
        transition: none;
    }
    .hf-plane {
        display: none;
    }
    .hf-window,
    .hf-stamp img,
    .hf-media img,
    .hf-closing-img img {
        translate: none;
        rotate: none;
    }
}
