/* =========================================================
   OCEAN VOYAGE — Zoom-blur sections + shared boat
========================================================= */

:root {
    --ink: #061018;
    --fog: rgba(255, 255, 255, 0.96);
    --fog-dim: rgba(255, 255, 255, 0.82);
    --text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75), 0 12px 40px rgba(0, 0, 0, 0.55);
    --text-shadow-title: 0 3px 12px rgba(0, 0, 0, 0.85), 0 18px 48px rgba(0, 0, 0, 0.65);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --font-display: "Cormorant Garamond", "Times New Roman", serif;
    --font-ui: "Outfit", "Segoe UI", sans-serif;
}

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

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
    touch-action: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}


/* =========================================================
   NAV
========================================================= */

.voyage-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: calc(72px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) clamp(20px, 3.5vw, 48px) 0;
    padding-left: max(clamp(20px, 3.5vw, 48px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(20px, 3.5vw, 48px), env(safe-area-inset-right, 0px));
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.42),
        rgba(0, 0, 0, 0)
    );
}

.voyage-nav a {
    pointer-events: auto;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.nav-links {
    display: flex;
    gap: clamp(18px, 2.4vw, 36px);
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.nav-links a {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fog-dim);
    transition: color 0.35s var(--ease-out);
}

.nav-links a:hover {
    color: #fff;
}

.nav-progress {
    position: absolute;
    left: 50%;
    top: 54px;
    width: min(160px, 28vw);
    height: 1px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
}

.progress-line {
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
    transform-origin: left center;
    will-change: transform;
    transform: scaleX(0.143);
}

.nav-counter {
    justify-self: end;
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.nav-sep {
    opacity: 0.45;
}

#currentScene {
    min-width: 1.4em;
    text-align: right;
}


/* =========================================================
   STAGE
========================================================= */

.journey {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.cinematic-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    background: #071722;
}


/* =========================================================
   FULL BACKGROUNDS
========================================================= */

.bg-stack {
    position: absolute;
    inset: 0;
    z-index: 1;
    transform-origin: center center;
    will-change: transform;
    backface-visibility: hidden;
}

.scene-bg {
    position: absolute;
    inset: -4%;
    width: 108%;
    height: 108%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0px);
    clip-path: circle(150% at 50% 58%);
    -webkit-clip-path: circle(150% at 50% 58%);
    will-change: transform, opacity, filter, clip-path;
    transform-origin: center center;
    backface-visibility: hidden;
}

.scene-bg.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.scene-bg.is-leaving {
    z-index: 3;
    visibility: visible;
}

.scene-bg.is-entering {
    z-index: 4;
    visibility: visible;
}


/* =========================================================
   WATER RIPPLE TRANSITION
========================================================= */

.ripple-svg {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.water-ripple-fx {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

.water-ripple-fx.is-active {
    visibility: visible;
}

.water-shimmer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 50% 58%,
            rgba(180, 220, 255, 0.22),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            rgba(8, 40, 70, 0.04),
            rgba(8, 50, 80, 0.18) 55%,
            rgba(8, 40, 70, 0.06)
        );
    opacity: 0;
    will-change: opacity;
}

.ripple-ring {
    position: absolute;
    left: 50%;
    top: 58%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    border: 1.5px solid rgba(210, 235, 255, 0.55);
    box-shadow:
        0 0 30px rgba(140, 200, 255, 0.18),
        inset 0 0 20px rgba(180, 220, 255, 0.1);
    opacity: 0;
    transform: scale(0.15);
    will-change: transform, opacity;
}

.ripple-ring.r2 {
    border-color: rgba(190, 225, 255, 0.42);
}

.ripple-ring.r3 {
    border-color: rgba(170, 210, 250, 0.32);
}

.ripple-ring.r4 {
    border-color: rgba(150, 195, 240, 0.22);
    border-width: 1px;
}

.scene-vignette {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(0, 0, 0, 0.42) 100%
    );
}

.scene-grain {
    position: absolute;
    inset: -20%;
    z-index: 9;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    mix-blend-mode: overlay;
}


/* =========================================================
   SHARED BOAT
========================================================= */

.voyage-boat {
    position: absolute;
    right: 8%;
    bottom: 12%;
    z-index: 20;
    width: clamp(180px, 48vw, 650px);
    pointer-events: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.voyage-boat img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 22px 20px rgba(0, 0, 0, 0.4));
    will-change: transform;
}


/* =========================================================
   SCENE CONTENT
========================================================= */

.voyage-scene {
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.voyage-scene.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.voyage-scene.is-leaving,
.voyage-scene.is-entering {
    visibility: visible;
    opacity: 1;
    pointer-events: none;
}

.voyage-scene.is-entering {
    z-index: 31;
}

/* Rich editorial layouts */
.content-rich {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: clamp(72px, 9vh, 100px) clamp(20px, 4vw, 56px);
    gap: clamp(16px, 3vw, 40px);
    pointer-events: none;
    overflow: hidden;
}

.layout-split-right {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.layout-split-left {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.layout-split-right .scene-text {
    margin-left: auto;
    margin-right: 0;
}

.layout-split-left .scene-text {
    margin-left: 0;
    margin-right: auto;
}

/* When card + text together */
.layout-split-right .scene-card {
    order: -1;
    margin-right: auto;
}

.layout-split-left .scene-card {
    order: 1;
    margin-left: auto;
}

.layout-center {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.scene-text {
    position: relative;
    isolation: isolate;
    flex: 0 1 min(440px, 42vw);
    padding: clamp(20px, 2.4vw, 36px);
    pointer-events: none;
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    min-width: 0;
}

.scene-text::before {
    content: "";
    position: absolute;
    inset: -8px -14px;
    z-index: -1;
    border-radius: 4px;
    background: linear-gradient(
        155deg,
        rgba(4, 12, 20, 0.78) 0%,
        rgba(4, 12, 20, 0.42) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.scene-text .journey-button {
    pointer-events: auto;
}

.scene-card {
    flex: 0 1 min(320px, 30vw);
    margin: 0;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.25);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    will-change: transform, opacity;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    min-width: 0;
}

.scene-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(38vh, 340px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transform: scale(1.02);
    will-change: transform;
}

.scene-card.card-wide {
    flex: 0 1 min(520px, 46vw);
}

.scene-card.card-wide img {
    aspect-ratio: 16 / 9;
}

.scene-card.card-tall img {
    aspect-ratio: 3 / 4;
    max-height: min(42vh, 360px);
}

.scene-card figcaption {
    display: block;
    padding: 14px 18px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.layout-center .scene-text {
    flex: 0 1 min(520px, 72vw);
}

.layout-center .scene-card {
    flex: 0 1 min(420px, 58vw);
    margin-top: clamp(12px, 2vh, 24px);
}

.layout-center .scene-copy,
.layout-center .scene-meta,
.layout-center .journey-button {
    margin-left: auto;
    margin-right: auto;
}

.scene-content {
    text-shadow: var(--text-shadow);
}

.scene-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(20px, min(2.6vw, 3.8vh), 40px);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1;
    text-shadow: var(--text-shadow);
}

.scene-number {
    display: block;
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.scene-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(36px, min(5.2vw, 7.2vh), 88px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: var(--text-shadow-title);
}

.title-line {
    display: block;
    will-change: transform, opacity;
}

.content-center .scene-title {
    font-size: clamp(34px, min(4.8vw, 6.8vh), 80px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
}

.scene-copy {
    max-width: 420px;
    margin: 16px 0 0;
    font-size: clamp(14px, 1.05vw, 16px);
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0.015em;
    color: var(--fog);
    will-change: transform, opacity;
}

.scene-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    will-change: transform, opacity;
}

.scene-meta li {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.scene-meta strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.26em;
}

.journey-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-shadow: var(--text-shadow);
    transition: opacity 0.35s var(--ease-out);
}

.journey-button:hover {
    opacity: 0.7;
}

.btn-line {
    display: block;
    width: 36px;
    height: 1px;
    background: currentColor;
    transition: width 0.4s var(--ease-out);
}

.journey-button:hover .btn-line {
    width: 52px;
}


/* =========================================================
   FOOTER
========================================================= */

.voyage-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    height: calc(72px + env(safe-area-inset-bottom, 0px));
    padding: 0 clamp(20px, 3.5vw, 48px) env(safe-area-inset-bottom, 0px);
    padding-left: max(clamp(20px, 3.5vw, 48px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(20px, 3.5vw, 48px), env(safe-area-inset-right, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0)
    );
}

.voyage-footer > * {
    pointer-events: auto;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 28px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.9)
    );
    transform-origin: top center;
    animation: scrollPulse 1.8s ease-in-out infinite;
}

.scroll-label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.scroll-label-touch {
    display: none;
    letter-spacing: 0.28em;
}

@keyframes scrollPulse {
    0%,
    100% {
        transform: scaleY(0.45);
        opacity: 0.35;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.scene-nav-btn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    opacity: 0.85;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.scene-nav-btn span {
    display: block;
    width: 8px;
    height: 8px;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.scene-nav-btn.prev-scene span {
    transform: rotate(45deg) translate(1px, -1px);
}

.scene-nav-btn.next-scene span {
    transform: rotate(-135deg) translate(1px, -1px);
}

.scene-nav-btn:hover:not(:disabled) {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.7);
}

.scene-nav-btn:disabled {
    opacity: 0.25;
    cursor: default;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .scroll-line {
        animation: none;
        opacity: 0.8;
        transform: none;
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

/* Laptop / small desktop */
@media (max-width: 1440px) and (min-width: 993px) {
    .content-rich {
        padding: clamp(64px, 8vh, 88px) clamp(18px, 3vw, 40px);
        gap: clamp(14px, 2vw, 28px);
    }

    .scene-text {
        flex: 0 1 min(380px, 40vw);
        padding: clamp(16px, 2vw, 28px);
    }

    .scene-card {
        flex: 0 1 min(280px, 28vw);
    }

    .scene-card img {
        max-height: min(34vh, 280px);
    }

    .scene-card.card-tall img {
        max-height: min(36vh, 300px);
    }

    .scene-title {
        font-size: clamp(32px, min(4.6vw, 6.5vh), 64px);
    }

    .scene-eyebrow {
        font-size: clamp(18px, min(2.2vw, 3.2vh), 30px);
        margin-bottom: 6px;
    }

    .scene-number {
        margin-bottom: 10px;
        font-size: 10px;
        letter-spacing: 0.32em;
    }

    .scene-copy {
        font-size: 14px;
        margin-top: 12px;
        line-height: 1.6;
    }

    .scene-meta {
        margin-top: 14px;
        gap: 10px 18px;
    }

    .journey-button {
        margin-top: 16px;
        font-size: 10px;
    }

    .voyage-boat {
        width: clamp(140px, 20vw, 280px);
        bottom: 10%;
    }
}

/* Short laptop screens — 768px / 800px height */
@media (max-height: 860px) and (min-width: 993px) {
    .content-rich {
        padding-top: 68px;
        padding-bottom: 76px;
        align-items: center;
    }

    .scene-title {
        font-size: clamp(28px, 5.8vh, 52px);
        line-height: 0.92;
    }

    .scene-eyebrow {
        font-size: clamp(16px, 2.8vh, 24px);
    }

    .scene-number {
        margin-bottom: 8px;
    }

    .scene-copy {
        font-size: 13px;
        margin-top: 10px;
    }

    .scene-meta {
        margin-top: 12px;
        gap: 8px 14px;
    }

    .scene-meta li {
        font-size: 10px;
    }

    .journey-button {
        margin-top: 14px;
    }

    .scene-card img,
    .scene-card.card-tall img,
    .scene-card.card-wide img {
        max-height: min(30vh, 240px);
    }

    .layout-center .scene-card {
        margin-top: 10px;
    }

    .voyage-boat {
        width: clamp(150px, 46vw, 350px);
        bottom: 8%;
    }
}

/* Narrow laptop — 1280px and below */
@media (max-width: 1280px) and (min-width: 993px) {
    .scene-text {
        flex: 0 1 min(340px, 44vw);
    }

    .scene-card {
        flex: 0 1 min(240px, 30vw);
    }

    .scene-title {
        font-size: clamp(28px, min(4vw, 6vh), 56px);
    }
}

/* Large tablet / small laptop */
@media (max-width: 1200px) {
    .scene-text {
        flex: 0 1 min(400px, 46vw);
        padding: clamp(18px, 2.4vw, 28px);
    }

    .scene-card {
        flex: 0 1 min(260px, 32vw);
    }

    .scene-title {
        font-size: clamp(30px, min(5vw, 6.5vh), 58px);
    }

    .content-rich {
        padding: clamp(64px, 8vh, 84px) clamp(18px, 3.5vw, 36px);
        gap: clamp(14px, 2.5vw, 28px);
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .voyage-nav {
        grid-template-columns: 1fr auto;
    }

    .nav-progress {
        left: auto;
        right: max(clamp(20px, 3.5vw, 48px), env(safe-area-inset-right, 0px));
        top: calc(48px + env(safe-area-inset-top, 0px));
        transform: none;
        width: 72px;
    }

    .voyage-boat {
        width: clamp(130px, 28vw, 240px);
        bottom: 14%;
        right: 6%;
        opacity: 0.92;
    }

    .scene-text {
        flex: 0 1 min(380px, 46vw);
        padding: 18px 16px;
    }

    .scene-copy {
        font-size: 14px;
        line-height: 1.62;
    }

    .journey-button {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .voyage-nav {
        height: calc(60px + env(safe-area-inset-top, 0px));
    }

    .nav-brand {
        font-size: 24px;
    }

    .nav-counter {
        font-size: 10px;
        letter-spacing: 0.18em;
    }

    .voyage-footer {
        height: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .content-rich {
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-top: calc(64px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
        gap: 12px;
    }

    .layout-split-left,
    .layout-split-right {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .layout-split-left .scene-text,
    .layout-split-right .scene-text {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        max-width: min(480px, 92vw);
    }

    .scene-copy,
    .layout-center .scene-copy {
        margin-left: auto;
        margin-right: auto;
    }

    .scene-meta,
    .layout-center .scene-meta {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .journey-button,
    .layout-center .journey-button {
        margin-left: auto;
        margin-right: auto;
    }

    .scene-card {
        display: none;
    }

    .scene-title,
    .layout-center .scene-title,
    .content-center .scene-title {
        font-size: clamp(40px, 11.5vw, 64px);
        letter-spacing: -0.01em;
        text-transform: none;
        line-height: 0.92;
    }

    .scene-eyebrow {
        font-size: clamp(20px, 5.5vw, 28px);
        margin-bottom: 8px;
    }

    .scene-number {
        font-size: 10px;
        letter-spacing: 0.28em;
        margin-bottom: 12px;
    }

    .voyage-boat {
        right: 4%;
        left: auto;
        bottom: 20%;
        top: auto;
        width: min(46vw, 180px);
        opacity: 0.55;
        z-index: 15;
    }

    .scene-copy {
        font-size: 14px;
        margin-top: 16px;
        line-height: 1.62;
    }

    .scene-meta {
        gap: 10px 16px;
        margin-top: 18px;
    }

    .scene-meta li {
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .scene-meta strong {
        letter-spacing: 0.18em;
        font-size: 9px;
    }

    .journey-button {
        font-size: 10px;
        letter-spacing: 0.22em;
        gap: 10px;
        margin-top: 20px;
    }

    .btn-line {
        width: 28px;
    }

    .scroll-label {
        font-size: 8px;
        letter-spacing: 0.28em;
    }

    .scene-nav-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 22px;
    }

    .nav-progress {
        width: 56px;
        top: calc(44px + env(safe-area-inset-top, 0px));
    }

    .content-rich {
        gap: 10px;
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    .scene-text {
        padding: 16px 14px;
    }

    .scene-title,
    .layout-center .scene-title {
        font-size: clamp(34px, 10.5vw, 48px);
    }

    .scene-eyebrow {
        font-size: 18px;
    }

    .scene-copy {
        font-size: 13px;
        margin-top: 12px;
    }

    .voyage-boat {
        right: 2%;
        bottom: 18%;
        width: min(62vw, 230px);
        opacity: 0.45;
    }

    .scroll-hint {
        gap: 6px;
    }

    .scroll-line {
        height: 22px;
    }

    .scroll-label {
        display: none;
    }

    .scene-nav-btn {
        width: 40px;
        height: 40px;
    }
}

/* Short viewports — phones landscape, small laptops */
@media (max-height: 700px) and (min-width: 769px) {
    .content-rich {
        justify-content: center;
        padding-top: calc(56px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        gap: 10px;
    }

    .scene-card {
        width: min(240px, 42vw);
        order: 0;
        margin-bottom: 0;
    }

    .scene-card img,
    .scene-card.card-tall img,
    .scene-card.card-wide img {
        aspect-ratio: 16 / 10;
        max-height: 22vh;
        object-fit: cover;
    }

    .scene-title,
    .layout-center .scene-title {
        font-size: clamp(32px, 7vh, 52px);
    }

    .scene-eyebrow {
        font-size: clamp(16px, 3.5vh, 22px);
        margin-bottom: 4px;
    }

    .scene-number {
        margin-bottom: 8px;
    }

    .scene-copy {
        font-size: 12px;
        margin-top: 10px;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .scene-meta {
        margin-top: 12px;
        gap: 8px 14px;
    }

    .journey-button {
        margin-top: 14px;
    }

    .voyage-boat {
        top: auto;
        bottom: 18%;
        width: min(120px, 22vw);
        opacity: 0.4;
    }

    .scroll-hint {
        display: none;
    }
}

@media (max-height: 700px) and (max-width: 768px) {
    .content-rich {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .scene-card {
        display: none;
    }

    .scene-copy {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }
}

/* Landscape phone — centered text only on mobile */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .content-rich {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: clamp(8px, 2vw, 16px);
        padding: calc(52px + env(safe-area-inset-top, 0px))
            max(16px, env(safe-area-inset-right, 0px))
            calc(56px + env(safe-area-inset-bottom, 0px))
            max(16px, env(safe-area-inset-left, 0px));
    }

    .layout-split-left,
    .layout-split-right,
    .layout-center {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .scene-card {
        display: none;
    }

    .scene-text {
        flex: none;
        width: 100%;
        max-width: min(520px, 88vw);
        margin: 0 auto;
        padding: 12px 14px;
        text-align: center;
    }

    .scene-copy {
        font-size: 11px;
        margin-top: 8px;
        margin-left: auto;
        margin-right: auto;
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .scene-title,
    .layout-center .scene-title {
        font-size: clamp(26px, 6.5vh, 40px);
    }

    .scene-eyebrow {
        font-size: 16px;
    }

    .scene-meta {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .journey-button {
        margin-top: 10px;
        margin-left: auto;
        margin-right: auto;
        font-size: 9px;
    }

    .voyage-boat {
        top: auto;
        bottom: 12%;
        left: auto;
        right: 4%;
        transform: none;
        width: min(100px, 18vw);
        opacity: 0.35;
    }

    .voyage-footer .scroll-hint {
        display: none;
    }
}

/* Touch devices — larger tap targets */
@media (hover: none) and (pointer: coarse) {
    .scroll-label:not(.scroll-label-touch) {
        display: none;
    }

    .scroll-label-touch {
        display: block;
    }

    .scene-nav-btn {
        width: 48px;
        height: 48px;
    }

    .nav-brand {
        padding: 8px 4px 8px 0;
    }

    .journey-button {
        min-height: 44px;
        align-items: center;
    }
}
