/* ══════════════════════════════════════
   Landing Page (index.html)
   ══════════════════════════════════════ */

.page-landing {
    overflow: hidden;
}

.page-landing body {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.hero {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 4rem;
    gap: 1rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.hero-greeting {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--fg-muted);
    margin-bottom: 0.25rem;
    opacity: 0;
    animation: fadeInSubtle 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.1s;
}

.hero-name {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(4rem, 7.5vw, 7.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.05;
    overflow: hidden;
}

.hero-name span {
    display: block;
    transform: translateY(105%);
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.hero-divider {
    height: 2px;
    background: var(--fg-muted);
    margin: 2rem 0;
    width: 0;
    animation: expandWidth 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.7s;
    transition: background 0.5s;
}

.hero-socials {
    display: flex;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeInSubtle 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.85s;
}

/* ── Latest adventure line ── */
.hero-latest {
    margin-top: 3rem;
    opacity: 0;
    animation: fadeInSubtle 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 1s;
    transition: opacity 0.5s ease;
}

.hero-latest-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--fg-muted);
    font-size: 0.8rem;
    transition: color 0.3s;
}

.hero-latest-link:hover {
    color: var(--fg);
}

.hero-latest-label {
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-latest-text {
    font-size: 0.8rem;
    font-style: italic;
}

.hero-photo {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    min-height: 0;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.4s;
}

.hero-photo img {
    width: 100%;
    max-width: 440px;
    height: auto;
    object-fit: contain;
    image-rendering: auto;
}

/* Landing – Tablet */
@media (max-width: 960px) {
    .hero {
        padding: 2.5rem 2.5rem;
        gap: 1rem;
    }
    .hero-photo img { max-width: 360px; }
}

/* Landing – Mobile */
@media (max-width: 680px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        min-height: 100dvh;
    }

    .hero-content {
        text-align: center;
        padding: 0;
        order: 1;
    }

    .hero-greeting { font-size: 1.1rem; }
    .hero-name { font-size: clamp(3.2rem, 14vw, 4.5rem); }
    .hero-divider { margin: 1.25rem auto; }
    .hero-socials { justify-content: center; }
    .hero-latest { position: static; margin-top: 1.25rem; text-align: center; }
    .hero-latest-link { justify-content: center; }

    .hero-photo {
        order: 2;
        align-items: flex-end;
        justify-content: center;
    }

    .hero-photo img {
        max-width: 260px;
        max-height: 50vh;
    }
}

/* Landing – Very small */
@media (max-width: 380px) {
    .hero { padding: 4.5rem 1.25rem 1.25rem; }
    .hero-name { font-size: 3rem; }
}


/* ══════════════════════════════════════
   About Page
   ══════════════════════════════════════ */

.about {
    max-width: 1100px;
    margin: 0 auto;
    padding: 7rem 4rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.about-text {
    opacity: 0;
    animation: fadeInSubtle 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.2s;
}

.about-headline {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 2rem;
    overflow: hidden;
}

.about-headline span {
    display: block;
    transform: translateY(105%);
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.about-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-photo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.3s;
}

.about-photo {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 340px;
    height: auto;
    object-fit: contain;
}

.about-photo-caption {
    display: block;
    text-align: right;
    z-index: 6;
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-size: 0.7rem;
    font-style: italic;
    letter-spacing: 0.02em;
    color: var(--fg-muted);
    opacity: 0.6;
    margin-top: 0.5rem;
    pointer-events: none;
}

/* ── Flight path — masked behind the person ── */

/*
 * The orbit SVG is drawn ON TOP of the photo.
 * A CSS mask using the person's image punches out their silhouette,
 * so the path is invisible over the body — genuinely "behind" them.
 * A second unmasked layer draws the front-crossing segment over the body.
 */

.flight-orbit {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Mask is set dynamically via inline style using the photo URL.
       Shows everything MINUS the person silhouette. */
    -webkit-mask-size: contain, 100% 100%;
    -webkit-mask-position: center, center;
    -webkit-mask-repeat: no-repeat, no-repeat;
    -webkit-mask-composite: xor;
    mask-size: contain, 100% 100%;
    mask-position: center, center;
    mask-repeat: no-repeat, no-repeat;
    mask-composite: exclude;
}

.flight-orbit svg {
    width: 120%;
    height: 120%;
    overflow: visible;
}

/* Front crossing — unmasked, drawn ON TOP of the person */
.flight-cross {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flight-cross svg {
    width: 140%;
    height: 140%;
    overflow: visible;
}

/* Destination dots */
.flight-dot {
    fill: var(--fg-muted);
    opacity: 0;
}

/* Airplane */
.flight-plane {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    animation: planeReveal 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 2s;
}

.flight-plane svg {
    fill: var(--fg);
    opacity: 0.55;
    transition: fill 0.5s;
}

@keyframes planeReveal {
    from { opacity: 0; transform: translate(-4px, 4px); }
    to   { opacity: 1; transform: translate(0, 0); }
}

@keyframes drawArc {
    to { stroke-dashoffset: 0; }
}

@keyframes dotReveal {
    to { opacity: 0.45; }
}

.about-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--fg);
}

.about-body p {
    margin-bottom: 1.25rem;
}

.about-loading {
    color: var(--fg-muted);
    font-style: italic;
}

@media (max-width: 860px) {
    .about {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 6rem 2.5rem 3rem;
        min-height: auto;
    }
    .about-photo-wrap {
        order: -1;
    }
    .about-photo {
        max-width: 280px;
    }
    .flight-plane svg { width: 18px; height: 18px; }
}

@media (max-width: 680px) {
    .about {
        padding: 5.5rem 1.5rem 3rem;
        gap: 2rem;
    }
    .about-text { text-align: center; }
    .about-photo { max-width: 240px; }
}


/* ══════════════════════════════════════
   Adventures Listing Page
   ══════════════════════════════════════ */

.adventures {
    max-width: 1100px;
    margin: 0 auto;
    padding: 7rem 4rem 4rem;
}

.adventures-header {
    margin-bottom: 3rem;
}

.adventures-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 0;
    overflow: hidden;
}

.adventures-title span {
    display: block;
    transform: translateY(105%);
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.adventures-divider {
    height: 2px;
    background: var(--fg-muted);
    margin-top: 2rem;
    width: 0;
    animation: expandWidth 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.7s;
    transition: background 0.5s;
}

/* ── Featured (first) card ── */
.adventures-featured {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInSubtle 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.85s;
}

.adventure-card-featured {
    text-decoration: none;
    color: var(--fg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.adventure-card-featured:hover {
    transform: translateY(-3px);
}

.adventure-card-featured .adventure-card-image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 2px;
}

.adventure-card-featured .adventure-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.adventure-card-featured:hover .adventure-card-image {
    transform: scale(1.03);
}

.adventure-card-featured .adventure-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--surface);
}

.adventure-card-featured .adventure-card-content {
    padding: 0;
}

.adventure-card-featured .adventure-card-meta {
    margin-bottom: 1.25rem;
}

.adventure-card-featured .adventure-card-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.adventure-card-featured .adventure-card-location {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.adventure-card-featured .adventure-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--fg-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.adventures-section-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInSubtle 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.9s;
}

/* ── Grid cards ── */
.adventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    opacity: 0;
    animation: fadeInSubtle 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 1s;
}

.adventure-card {
    text-decoration: none;
    color: var(--fg);
    display: block;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.adventure-card:hover {
    transform: translateY(-4px);
}

.adventure-card-image-wrap {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 2px;
    margin-bottom: 1rem;
}

.adventure-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.adventure-card:hover .adventure-card-image {
    transform: scale(1.03);
}

/* ── Dark mode: soften bright images ── */
.dark .adventure-card-image,
.dark .adventure-card-featured .adventure-card-image {
    filter: brightness(0.9);
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), filter 0.5s ease;
}

.adventure-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--surface);
    border-radius: 2px;
}

.adventure-card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    color: var(--fg-muted);
    letter-spacing: 0.03em;
}

.adventure-card-category {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

.adventure-card-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin-bottom: 0.25rem;
}

.adventure-card-location {
    font-size: 0.85rem;
    color: var(--fg-muted);
    font-style: italic;
}

.adventures-empty {
    color: var(--fg-muted);
    font-style: italic;
    text-align: center;
    padding: 6rem 0;
    opacity: 0;
    animation: fadeInSubtle 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.4s;
}

/* Adventures – Tablet */
@media (max-width: 960px) {
    .adventures {
        padding: 7rem 2.5rem 4rem;
    }
}

@media (max-width: 860px) {
    .adventure-card-featured {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 680px) {
    .adventures {
        padding: 5.5rem 1.5rem 3rem;
    }
    .adventures-header {
        margin-bottom: 2.5rem;
    }
    .adventures-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    .adventures-featured {
        margin-bottom: 2rem;
    }
    .adventures-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 380px) {
    .adventures {
        padding: 4.5rem 1.25rem 2rem;
    }
}


/* ══════════════════════════════════════
   Single Adventure Page
   ══════════════════════════════════════ */

.adventure {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2.5rem 4rem;
}

/* ── Cover image ── */
.adventure-cover-wrap {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 520px;
    overflow: hidden;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.1s;
}

.adventure-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.5s ease;
}

.dark .adventure-cover {
    filter: brightness(0.85);
}

.adventure-cover-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none;
}

/* ── No cover: add top padding ── */
.adventure--no-cover {
    padding-top: 7rem;
}

/* ── Header ── */
.adventure-header {
    margin-bottom: 2.5rem;
}

.adventure-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: var(--fg-muted);
    letter-spacing: 0.03em;
    opacity: 0;
    animation: fadeInSubtle 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.2s;
}

.adventure-category {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

.adventure-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.5rem, 5.5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.adventure-title span {
    display: block;
    transform: translateY(105%);
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.35s;
}

.adventure-location {
    font-size: 0.95rem;
    color: var(--fg-muted);
    font-style: italic;
    opacity: 0;
    animation: fadeInSubtle 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.55s;
}

.adventure-header-divider {
    height: 2px;
    background: var(--fg-muted);
    margin-top: 2rem;
    width: 0;
    animation: expandWidth 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.7s;
    transition: background 0.5s;
}

/* ── Body ── */
.adventure-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--fg);
    opacity: 0;
    animation: fadeInSubtle 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.85s;
}

.adventure-body p { margin-bottom: 1.5rem; }

.adventure-body p:first-child::first-line {
    font-weight: 500;
}

.adventure-body h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 3rem 0 1.25rem;
}
.adventure-body h3 {
    font-size: 1.15rem;
    font-weight: 500;
    margin: 2.5rem 0 0.75rem;
}
.adventure-body img {
    width: calc(100% + 5rem);
    margin-left: -2.5rem;
    border-radius: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
    transition: filter 0.5s ease;
}

.dark .adventure-body img {
    filter: brightness(0.88);
}
.adventure-body blockquote {
    border-left: 2px solid var(--fg);
    padding-left: 1.5rem;
    color: var(--fg-muted);
    font-family: 'DM Serif Display', Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 2.5rem 0;
}
.adventure-body a {
    color: var(--fg);
    text-decoration-color: var(--fg-muted);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s;
}
.adventure-body a:hover {
    text-decoration-color: var(--fg);
}

/* ── Back link ── */
.adventure-back {
    display: inline-block;
    margin-top: 4rem;
    font-size: 0.9rem;
    color: var(--fg-muted);
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0;
    animation: fadeInSubtle 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.9s;
}
.adventure-back:hover {
    color: var(--fg);
}

@media (max-width: 680px) {
    .adventure {
        padding: 0 1.5rem 3rem;
    }
    .adventure--no-cover {
        padding-top: 5.5rem;
    }
    .adventure-cover-wrap {
        height: 360px;
        margin-bottom: 2rem;
    }
    .adventure-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    .adventure-body img {
        width: calc(100% + 3rem);
        margin-left: -1.5rem;
    }
}

@media (max-width: 380px) {
    .adventure {
        padding: 0 1.25rem 2rem;
    }
}
