@font-face {
    font-family: "Most Wazted";
    src: url("/assets/fonts/mostwasted.ttf") format("truetype");
    font-display: block;
}

@font-face {
    font-family: "Eurostile";
    src: url("/assets/fonts/eurostile.ttf") format("truetype");
    font-display: block;
}

:root {
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: dark;
    background: #000000;
    scrollbar-color: rgba(251, 245, 239, 0.28) #000000;
    scrollbar-width: thin;
}

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

html,
body {
    width: 100%;
    margin: 0;
    background: #000000;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    color: #fbf5ef;
    font-family: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    color: #000000;
    background: #f3dfe2;
}

/* ------------------------------------------------------------------ shell */

.landing {
    --ivory: #fbf5ef;
    --ivory-soft: rgba(251, 245, 239, 0.8);
    --accent: var(--ivory);
    --accent-rgb: 251, 245, 239;
    --pad: clamp(1.15rem, 3vw, 2.75rem);
    --frame: clamp(0.6rem, 1.5vw, 1.4rem);
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    isolation: isolate;
    background: #000000;
}

/* The landing stays pinned while the portfolio scrolls up over it.
   --cover runs 0 to 1 over the first screen of scrolling (landing.js);
   its selected scene softens into the portfolio's background. */
.landing::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #000000;
    opacity: calc(var(--cover, 0) * 0.35);
    pointer-events: none;
}

.cover-spacer {
    height: 100vh;
    height: 100svh;
}

.landing[data-mode="garage"] {
    --accent: #ff8a1f;
    --accent-rgb: 255, 138, 31;
}

.landing[data-mode="dashboard"] {
    --accent: #00ff66;
    --accent-rgb: 0, 255, 102;
}

/* Black until the rest photo and the display fonts are ready. */
html.js:not(.is-ready) .landing > :not(.scene):not(.landing-loader),
html.js:not(.is-ready) .scene__layer--rest,
html.js:not(.is-ready) .landing-petals {
    opacity: 0;
}

.landing-loader {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 4;
    place-items: center;
    pointer-events: none;
}

html.js:not(.is-ready) .landing-loader {
    display: grid;
}

.landing-loader__ring {
    width: 3rem;
    height: 3rem;
    border: 2px solid rgba(251, 245, 239, 0.2);
    border-top-color: var(--ivory);
    border-radius: 50%;
    animation: landing-load 0.85s linear infinite;
}

@keyframes landing-load {
    to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------------ scene */

.scene,
.scene__layer,
.scene__scrim,
.scene__frame {
    position: absolute;
    inset: 0;
}

.scene {
    z-index: 0;
    pointer-events: none;
    filter: blur(calc(var(--cover, 0) * 28px));
    transform: scale(calc(1 + var(--cover, 0) * 0.1));
}

.scene__layer {
    opacity: 0;
    transition: opacity 0.9s ease;
}

.landing[data-mode="rest"] .scene__layer--rest,
.landing[data-mode="garage"] .scene__layer--garage,
.landing[data-mode="dashboard"] .scene__layer--dashboard {
    opacity: 1;
}

.scene__layer--rest {
    background: #000000;
    filter: brightness(0.56) saturate(1.05);
    transition: opacity 0.9s ease;
}

/* Responsive variants of /assets/index.jpg, chosen by srcset in index.html. */
.scene__photo,
.scene__baked {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 38% 40%;
}

/* Fully covered in rest mode, the photo's brightness, saturation and 28px
   blur are baked into a quarter-size canvas (landing.js). A live CSS blur is
   re-run on every frame the petals or the cursor make; a static layer is
   just recomposited, which halves the GPU load while the portfolio is read. */
.scene__baked {
    display: none;
}

.landing.is-baked .scene,
.landing.is-baked .scene__layer--rest {
    filter: none;
}

.landing.is-baked .scene__photo {
    visibility: hidden;
}

.landing.is-baked .scene__baked {
    display: block;
}

html.js.is-ready .scene__layer--rest {
    transition: opacity 0.5s ease;
}

.scene__layer--garage {
    overflow: hidden;
    background: #000000;
}

/* The Blender still shows until the live room is on screen. It is only
   fetched once Garage is hovered, focused or chosen (landing.js arms it). */
.scene__layer--garage::before {
    content: "";
    position: absolute;
    inset: -4%;
    background: 50% 55% / cover no-repeat;
    filter: brightness(0.66) contrast(1.06) saturate(1.08);
    animation: drift 26s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.landing.is-garage-armed .scene__layer--garage::before {
    background-image: url("/assets/landing/garage-aerial.jpg");
}

.landing[data-mode="garage"] .scene__layer--garage::before {
    animation-play-state: running;
}

/* Under the live room the still is hidden; its endless drift otherwise kept
   the compositor (and the cover blur) redrawing every display frame. */
.scene__layer--garage:has(.scene__garage-canvas.is-live)::before {
    animation: none;
    visibility: hidden;
}

.scene__garage-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    filter: brightness(0.78) contrast(1.05);
    transition: opacity 1.2s ease;
}

.scene__garage-canvas.is-live {
    opacity: 1;
}

#field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.scene__scanlines {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background:
        radial-gradient(ellipse at center, transparent 30%, rgba(5, 8, 6, 0.6) 100%),
        repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0 1px, transparent 2px 4px);
}

.scene__scrim {
    background:
        radial-gradient(ellipse 64% 46% at 50% 46%, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.24) 56%, rgba(0, 0, 0, 0) 82%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.85) 100%);
}

.scene__frame {
    inset: var(--frame);
    border: 1px solid rgba(255, 255, 255, 0.13);
    opacity: calc(1 - var(--cover, 0));
}

@keyframes drift {
    from { transform: scale(1.02) translate3d(-1.5%, 0.8%, 0); }
    to { transform: scale(1.1) translate3d(1.8%, -1.2%, 0); }
}

/* ------------------------------------------------------------------ stage */

.stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding:
        calc(var(--pad) + env(safe-area-inset-top))
        calc(var(--pad) + env(safe-area-inset-right))
        calc(var(--pad) + env(safe-area-inset-bottom))
        calc(var(--pad) + env(safe-area-inset-left));
    text-align: center;
    opacity: max(0, calc(1 - var(--cover, 0) * 1.6));
    transition: opacity 0.5s ease;
}

.landing.is-covered .stage {
    pointer-events: none;
}

/* Each mode gives the name another face and size. The box keeps the resting
   name's height, bottom-aligned, so the routes under it never move. */
.title {
    --name-size: clamp(3.4rem, min(11.4vw, 22svh), 11.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.6rem, 2svh, 1.25rem);
    height: calc(var(--name-size) * 0.95);
}

.kicker {
    display: none;
    margin: 0;
}

.landing[data-mode="garage"] .kicker--garage,
.landing[data-mode="dashboard"] .kicker--dashboard {
    display: block;
    animation: rise 0.6s var(--ease) both;
}

.kicker--garage {
    color: #ff8a1f;
    font-family: "Eurostile", sans-serif;
    font-size: clamp(0.72rem, 1.1vw, 0.9rem);
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.42em;
    text-shadow: 0 0 18px rgba(255, 138, 31, 0.55);
    text-transform: uppercase;
}

.kicker--dashboard {
    color: rgba(0, 255, 102, 0.75);
    font-family: "VT323", monospace;
    font-size: clamp(1.15rem, 1.8vw, 1.6rem);
    letter-spacing: 0.04em;
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.45);
}

/* The name: one element, three faces. */
.name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0 0.24em;
    margin: 0;
    color: var(--ivory);
    font-family: "Petrona", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-size: var(--name-size);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.025em;
    white-space: nowrap;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 6px 48px rgba(0, 0, 0, 0.7);
}

.name__last {
    font-style: italic;
}

.name__prompt,
.name__cursor {
    display: none;
}

.landing[data-mode="garage"] .name {
    gap: 0 0.3em;
    color: #ffffff;
    font-family: "Most Wazted", "Eurostile", sans-serif;
    font-weight: 400;
    font-size: clamp(2.6rem, min(8.1vw, 17svh), 8.4rem);
    line-height: 1.04;
    letter-spacing: 0.01em;
    text-shadow: 0 0 2px #000000, 0.04em 0.05em 0 rgba(0, 0, 0, 0.88), 0 0 0.5em rgba(255, 138, 31, 0.4);
}

.landing[data-mode="garage"] .name__last,
.landing[data-mode="dashboard"] .name__last {
    font-style: normal;
}

.landing[data-mode="dashboard"] .name {
    gap: 0 0.5em;
    color: #c9ffd4;
    font-family: "VT323", "Lucida Console", monospace;
    font-weight: 400;
    font-size: clamp(3.6rem, min(11.6vw, 24svh), 12rem);
    line-height: 0.9;
    letter-spacing: 0;
    text-shadow: 0 0 0.03em rgba(0, 255, 102, 0.9), 0 0 0.2em rgba(0, 255, 102, 0.4);
}

.landing[data-mode="dashboard"] .name__prompt {
    display: inline;
    margin-right: -0.5em;
    color: #00ff66;
}

.landing[data-mode="dashboard"] .name__cursor {
    display: inline-block;
    width: 0.48em;
    height: 0.74em;
    margin-left: 0.08em;
    vertical-align: -0.02em;
    background: #00ff66;
    box-shadow: 0 0 0.12em rgba(0, 255, 102, 0.8);
    animation: blink 1.05s steps(1) infinite;
}

.name.is-swapping {
    animation: name-swap 0.55s var(--ease) both;
}

/* ------------------------------------------------------------------ CTAs */

/* Reserved in every mode, so revealing an action never moves the routes. */
.cta-slot {
    display: grid;
    min-height: clamp(3.25rem, 7svh, 3.75rem);
    margin-top: clamp(1.1rem, 3.2svh, 1.9rem);
    place-items: center;
}

.cta {
    grid-area: 1 / 1;
    display: none;
    align-items: center;
    height: clamp(3.25rem, 7svh, 3.75rem);
    color: inherit;
    text-decoration: none;
    outline: none;
}

.landing[data-mode="garage"] .cta--garage,
.landing[data-mode="dashboard"] .cta--dashboard {
    display: inline-flex;
    animation: pop 0.6s 0.12s var(--ease) both;
}

/* Garage: slanted chrome plate with an orange edge, NFS menu style. */
.cta--garage {
    padding: 0 1.9rem 0 2.1rem;
    color: #0b0b0c;
    background: linear-gradient(180deg, #ffffff 0%, #e4e6ea 48%, #b9bdc4 52%, #d5d8dd 100%);
    border-left: 7px solid #ff8a1f;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 #ffffff;
    transform: skewX(-14deg);
    transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}

.cta--garage .cta__inner {
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    transform: skewX(14deg);
}

.cta--garage .cta__label {
    font-family: "Eurostile", sans-serif;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cta__chevrons {
    width: 1.6rem;
    height: 1rem;
    fill: none;
    stroke: #ff8a1f;
    stroke-width: 2.6;
    stroke-linecap: square;
    transition: transform 0.3s var(--ease);
}

.cta--garage:hover,
.cta--garage:focus-visible {
    background: linear-gradient(180deg, #ffffff 0%, #f1f2f4 48%, #ccd0d6 52%, #e6e8eb 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 34px rgba(255, 138, 31, 0.45), inset 0 1px 0 #ffffff;
    transform: skewX(-14deg) translateX(0.2rem);
}

.cta--garage:hover .cta__chevrons,
.cta--garage:focus-visible .cta__chevrons {
    transform: translateX(0.35rem);
}

.cta--garage:focus-visible {
    outline: 2px solid #ff8a1f;
    outline-offset: 4px;
}

/* Dashboard: a terminal command with a lit keycap. */
.cta--dashboard {
    gap: 1.1rem;
    padding: 0 1.4rem;
    color: #c9ffd4;
    font-family: "VT323", monospace;
    background: rgba(0, 16, 7, 0.8);
    border: 1px solid rgba(0, 255, 102, 0.7);
    box-shadow: 0 0 0 4px rgba(0, 255, 102, 0.07), 0 0 28px rgba(0, 255, 102, 0.22), inset 0 0 22px rgba(0, 255, 102, 0.1);
    transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.cta__key {
    padding: 0.1rem 0.5rem;
    color: #001a0a;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #00ff66;
    box-shadow: 0 2px 0 #00a443;
}

.cta--dashboard .cta__label {
    font-size: clamp(1.45rem, 2vw, 1.75rem);
    letter-spacing: 0.04em;
}

.cta__sigil,
.cta__caret {
    color: #00ff66;
}

.cta__caret {
    font-size: 1.75rem;
    animation: blink 1.05s steps(1) infinite;
}

.cta--dashboard:hover,
.cta--dashboard:focus-visible {
    background: rgba(0, 40, 16, 0.88);
    border-color: #00ff66;
    box-shadow: 0 0 0 4px rgba(0, 255, 102, 0.14), 0 0 44px rgba(0, 255, 102, 0.4), inset 0 0 26px rgba(0, 255, 102, 0.16);
}

.cta--dashboard:focus-visible {
    outline: 2px solid #00ff66;
    outline-offset: 4px;
}

/* ------------------------------------------------------------------ scroll cue */

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: calc(var(--frame) + clamp(1rem, 3svh, 1.75rem) + env(safe-area-inset-bottom));
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.15rem;
    max-width: calc(100% - var(--pad) * 2);
    min-height: 4.5rem;
    padding: 0.25rem 0.75rem;
    color: var(--ivory);
    text-decoration: none;
    cursor: pointer;
    transform: translateX(-50%);
    transition: color 0.4s ease, opacity 0.5s ease;
}

/* Gone by the time a quarter of the landing is covered. */
html.is-ready .scroll-cue {
    opacity: calc(1 - var(--cover, 0) * 4);
}

.scroll-cue__copy {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    white-space: nowrap;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.scroll-cue__label {
    font-family: "Petrona", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-style: italic;
    line-height: 1.1;
}

.scroll-cue__hint {
    color: var(--ivory-soft);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

.scroll-cue__arrow {
    flex: 0 0 auto;
    width: 3rem;
    height: 3.85rem;
    color: var(--accent);
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: color 0.4s ease;
}

html.is-ready .scroll-cue__arrow {
    animation: cue-invite 3s 0.6s var(--ease) infinite;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
    color: var(--accent);
}

.scroll-cue:hover .scroll-cue__hint,
.scroll-cue:focus-visible .scroll-cue__hint {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.scroll-cue:active .scroll-cue__copy {
    transform: translateY(2px);
}

.scroll-cue:focus-visible {
    outline: 1px solid rgba(var(--accent-rgb), 0.9);
    outline-offset: 2px;
}

.landing.is-covered .scroll-cue__arrow {
    animation-play-state: paused;
}

@keyframes cue-invite {
    0%, 55%, 100% { transform: translateY(0); }
    25% { transform: translateY(7px); }
}

@media (max-height: 600px) {
    .scroll-cue {
        bottom: calc(var(--frame) + 0.5rem + env(safe-area-inset-bottom));
        min-height: 2.75rem;
        gap: 0.7rem;
    }

    .scroll-cue__label {
        display: none;
    }

    .scroll-cue__hint {
        font-size: 0.875rem;
    }

    .scroll-cue__arrow {
        width: 1.75rem;
        height: 2.25rem;
    }
}

/* ------------------------------------------------------------------ routes */

.routes {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(36.25rem, 100%);
    margin-top: clamp(1.75rem, 5svh, 3rem);
    background: rgba(8, 8, 8, 0.55);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    backdrop-filter: blur(16px) saturate(1.25);
    transition: border-color 0.6s ease, opacity 0.5s ease;
}

.landing:not([data-mode="rest"]) .routes {
    border-color: rgba(var(--accent-rgb), 0.55);
}

/* A band of light crosses both routes, left to right, then rests. It also
   passes over the bar's border, so the frame catches a glint. */
.routes__sheen {
    position: absolute;
    inset: -1px;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.routes__sheen::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 38%;
    background: linear-gradient(90deg,
        rgba(var(--accent-rgb), 0) 0%,
        rgba(var(--accent-rgb), 0.06) 32%,
        rgba(255, 255, 255, 0.2) 46%,
        rgba(255, 255, 255, 0.34) 50%,
        rgba(255, 255, 255, 0.2) 54%,
        rgba(var(--accent-rgb), 0.06) 68%,
        rgba(var(--accent-rgb), 0) 100%);
    mix-blend-mode: screen;
    transform: translateX(-160%) skewX(-22deg);
}

html.is-ready .routes__sheen::before {
    animation: routes-sheen 3s 0.4s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
}

.landing.is-covered .routes__sheen::before {
    animation-play-state: paused;
}

@keyframes routes-sheen {
    0% { transform: translateX(-160%) skewX(-22deg); }
    58%, 100% { transform: translateX(310%) skewX(-22deg); }
}

.route {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: clamp(4.25rem, 9svh, 5rem);
    margin: 0;
    padding: 0 1.1rem;
    color: var(--ivory-soft);
    font: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background 0.5s ease, color 0.4s ease;
}

.route + .route {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.route::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease);
}

.route__numeral {
    min-width: 1.1em;
    color: rgba(251, 245, 239, 0.5);
    font-size: 1.1rem;
    font-style: italic;
    text-align: center;
    transition: color 0.4s ease;
}

.route__text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.route__title {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.route__caption {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.62;
}

.route:hover,
.route:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.route:hover::after {
    transform: scaleX(0.35);
}

.route:focus-visible {
    outline: 1px solid rgba(var(--accent-rgb), 0.9);
    outline-offset: -4px;
}

.route[aria-pressed="true"] {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.04));
}

.route[aria-pressed="true"]::after {
    transform: scaleX(1);
}

.route[aria-pressed="true"] .route__numeral {
    color: var(--accent);
}

/* ------------------------------------------------------------------ motion */

@keyframes name-swap {
    from { opacity: 0; filter: blur(10px); transform: scale(0.97); }
    to { opacity: 1; filter: blur(0); transform: none; }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(0.6rem); }
    to { opacity: 1; transform: none; }
}

@keyframes pop {
    from { opacity: 0; transform: translateY(0.9rem) scale(0.96); }
    to { opacity: 1; }
}

.landing[data-mode="garage"] .cta--garage {
    animation-name: pop-skew;
}

@keyframes pop-skew {
    from { opacity: 0; transform: skewX(-14deg) translateY(0.9rem) scale(0.96); }
    to { opacity: 1; transform: skewX(-14deg); }
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ------------------------------------------------------------------ small screens */

@media (max-width: 640px) {
    .title {
        --name-size: min(23.5vw, 12.5svh);
        height: calc(var(--name-size) * 0.98 * 2);
    }

    .name {
        flex-direction: column;
        align-items: center;
        line-height: 0.98;
    }

    .landing[data-mode="garage"] .name {
        font-size: min(17vw, 9.5svh);
    }

    .landing[data-mode="dashboard"] .name {
        font-size: min(21vw, 13svh);
        line-height: 0.86;
    }

    .landing[data-mode="dashboard"] .name__prompt {
        display: none;
    }

    .route {
        gap: 0.7rem;
        padding: 0 0.6rem;
    }

    .route__title {
        font-size: 0.78rem;
        letter-spacing: 0.24em;
    }

    .route__caption {
        font-size: 0.74rem;
    }

    .cta--dashboard {
        gap: 0.8rem;
        padding: 0 1rem;
    }
}

@media (max-height: 460px) and (orientation: landscape) {
    .routes {
        margin-top: 1rem;
    }

    .cta-slot {
        margin-top: 0.6rem;
    }

    .route {
        min-height: 3.6rem;
    }

    .route__caption,
    .kicker {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .routes__sheen {
        display: none;
    }

    .landing-loader__ring {
        animation: none;
    }

    html.is-ready .scroll-cue__arrow {
        animation: none;
    }

    .stage {
        translate: none;
    }
}

/* ------------------------------------------------------------------ cursor */

.landing-cursor {
    --cursor: #f4e3e6;
    --cursor-rgb: 244, 227, 230;
    position: fixed;
    inset: 0;
    z-index: 60;
    color: var(--cursor);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s var(--ease), color 0.6s ease;
}

.landing-cursor.is-on {
    opacity: 1;
}

.landing-cursor.is-on.is-text {
    opacity: 0;
}

html[data-landing-mode="garage"] .landing-cursor:not(.is-site) {
    --cursor: #ff8a1f;
    --cursor-rgb: 255, 138, 31;
}

html[data-landing-mode="dashboard"] .landing-cursor:not(.is-site) {
    --cursor: #8dffb4;
    --cursor-rgb: 141, 255, 180;
}

.landing-cursor__trail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.landing-cursor__bloom,
.landing-cursor__core {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.landing-cursor__bloom {
    width: 44px;
    height: 44px;
    will-change: transform;
}

.landing-cursor__mark {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter:
        drop-shadow(0 1px 1px rgba(0, 0, 0, 0.72))
        drop-shadow(0 0 5px rgba(var(--cursor-rgb), 0.22));
    /* The resting turn, 16 degrees a second; landing-cursor.js adds the extra
       turn that speed gives. On the compositor, so the script can sleep, and
       stepped ten times a second (1.6 degrees): every step makes the
       compositor redraw, and over the blurred landing a redraw re-runs the
       28px blur, so a smooth 165 Hz turn doubled the GPU load. */
    animation: landing-cursor-turn 22.5s steps(225) infinite;
    animation-play-state: paused;
}

.landing-cursor.is-on .landing-cursor__mark {
    animation-play-state: running;
}

@keyframes landing-cursor-turn {
    from { transform: rotate(-8deg); }
    to { transform: rotate(352deg); }
}

@media (prefers-reduced-motion: reduce) {
    .landing-cursor__mark {
        animation: none;
    }
}

.landing-cursor__shade {
    opacity: 0.4;
}

.landing-cursor__veins {
    opacity: 0.55;
}

.landing-cursor__petals {
    fill: color-mix(in srgb, currentColor 16%, transparent);
    transition: fill 0.35s var(--ease);
}

.landing-cursor.is-hot .landing-cursor__petals {
    fill: color-mix(in srgb, currentColor 42%, transparent);
}

.landing-cursor__core {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 0 6px currentColor;
    will-change: transform;
}

.landing-cursor__ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
}

.landing-cursor__ripple.is-on {
    animation: landing-cursor-ripple 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes landing-cursor-ripple {
    0% {
        opacity: 0.65;
        transform: translate(-50%, -50%) scale(0.35);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.9);
    }
}

@media (max-width: 640px) {
    .landing-cursor__bloom {
        width: 31px;
        height: 31px;
    }
}

@media (any-hover: hover) and (any-pointer: fine) {
    html.has-landing-cursor,
    html.has-landing-cursor * {
        cursor: none !important;
    }

    /* Text fields keep the system caret; the blossom hides over them. */
    html.has-landing-cursor input,
    html.has-landing-cursor textarea {
        cursor: text !important;
    }

    html.has-landing-cursor select {
        cursor: default !important;
    }
}

/* ------------------------------------------------------------------ petals */

.landing-petals {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ------------------------------------------------------------------ misc */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Without JavaScript the route buttons cannot switch modes, so plain links
   take their place under the name. */
html:not(.js) .routes {
    display: none;
}

.noscript-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: clamp(1.75rem, 5svh, 3rem);
}

.noscript-nav a {
    padding: 0.9rem 1.6rem;
    color: #fbf5ef;
    text-decoration: none;
    border: 1px solid rgba(251, 245, 239, 0.4);
}

html:not(.js) .landing > * {
    opacity: 1;
}
