/* ============================================
   RESET & BASE STYLES
   Fonts load via <link> in HTML (avoids @import render delay).
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-display: 'Lobster', ui-serif, Georgia, 'Times New Roman', Times, serif;
    --color-border: rgba(232, 232, 232, 0.6);
    --color-surface: rgba(255, 255, 255, 0.92);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Softer tap flash on mobile; orbit links avoid double-tap zoom delay */
a,
button {
    -webkit-tap-highlight-color: rgba(26, 26, 26, 0.07);
}

.orbit-link {
    touch-action: manipulation;
}

body.landing {
    height: 100svh;
    overflow: hidden;
}

a {
    color: inherit;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-surface);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: opacity 0.6s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.6;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 0.9px;
    color: var(--color-text-light);
    transition: opacity 0.25s ease, color 0.25s ease;
}

.nav-link:hover {
    opacity: 0.75;
    color: var(--color-text);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 1.25rem 2.85rem;
    padding-top: max(1rem, env(safe-area-inset-top, 0px));
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(2.85rem, env(safe-area-inset-bottom, 0px));
}

.hero-content {
    max-width: 800px;
    opacity: 0;
    animation: fadeIn 1.2s ease 0.3s forwards;
}

.hero-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(0.65rem, 2.5vw, 1.5rem);
    margin-bottom: 0.35rem;
    flex-wrap: nowrap;
}

.hero-brand .site-logo {
    display: block;
    margin: 0;
    flex-shrink: 0;
    max-height: clamp(2.75rem, 9vmin, 4.5rem);
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ============================================
   ORBIT HERO
   ============================================
   .orbit-link-label and .orbit-hit-wrap each use plain left/top/width/height % of .orbit.
   ============================================ */
.orbit {
    --orbit-flower-width: 58%;
    position: relative;
    width: clamp(260px, 64vmin, 480px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.orbit-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.flower {
    width: var(--orbit-flower-width);
    max-width: 390px;
    height: auto;
    display: block;
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.08));
}

/* Full-orbit anchor so each link can stack; only .orbit-hit-wrap receives pointer events */
.orbit-link {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    pointer-events: none;
    z-index: 3;
}

.orbit-hit-wrap {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    border-radius: 4px;
    background: transparent;
}

.orbit-link-label {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.3vw, 2.15rem);
    letter-spacing: 0.4px;
    color: var(--color-text);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(6px);
}

/* Hover reveal only when hover is meaningful (avoids sticky/fake hover on phones) */
@media (hover: hover) and (pointer: fine) {
    .orbit-link:hover .orbit-link-label {
        opacity: 1;
        transform: translateY(0);
    }
}

.orbit-link:focus-visible .orbit-link-label {
    opacity: 1;
    transform: translateY(0);
}

.orbit-link:focus-visible {
    outline: none;
}

/* Touch / coarse pointer: labels always visible; no hover dependency */
@media (hover: none), (pointer: coarse) {
    .orbit-link-label {
        opacity: 1;
        transform: translateY(0);
    }
}

.orbit-link:focus-visible .orbit-hit-wrap {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Text boxes (tune these for where labels sit) */
.orbit-link--contact .orbit-link-label {
    left: 7%;
    top: 34%;
    width: 24%;
    height: 18%;
}

.orbit-link--about .orbit-link-label {
    left: 12%;
    top: 8%;
    width: 24%;
    height: 20%;
}

.orbit-link--animation .orbit-link-label {
    left: 12%;
    top: 70%;
    width: 28%;
    height: 20%;
}

.orbit-link--illustration .orbit-link-label {
    left: 68%;
    top: 32%;
    width: 30%;
    height: 22%;
}

/* Hover targets over petals — same four numbers as labels: left / top / width / height % */
.orbit-link--contact .orbit-hit-wrap {
    left: 24%;
    top: 38%;
    width: 24%;
    height: 23%;
}

.orbit-link--about .orbit-hit-wrap {
    left: 37%;
    top: 5%;
    width: 35%;
    height: 30%;
}

.orbit-link--animation .orbit-hit-wrap {
    left: 41%;
    top: 67%;
    width: 26%;
    height: 30%;
}

.orbit-link--illustration .orbit-hit-wrap {
    left: 55%;
    top: 37%;
    width: 17%;
    height: 25%;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.65rem);
    font-weight: 300;
    letter-spacing: 1.8px;
    color: var(--color-text);
    line-height: 1.15;
    margin: 0;
    font-family: var(--font-display);
}

/* ============================================
   SECTIONS
   ============================================ */
.page {
    min-height: 100vh;
}

.page-top {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 2rem 0;
    padding-left: max(2rem, env(safe-area-inset-left, 0px));
    padding-right: max(2rem, env(safe-area-inset-right, 0px));
}

.page-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 2rem 0;
    padding-left: max(2rem, env(safe-area-inset-left, 0px));
    padding-right: max(2rem, env(safe-area-inset-right, 0px));
    text-align: center;
}

.page-title {
    font-family: var(--font-display);
    font-weight: 300;
    letter-spacing: 2px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--color-text-light);
    letter-spacing: 1px;
    font-weight: 300;
}

.back-link {
    position: static;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(232, 232, 232, 0.85);
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-bottom: 0.25rem;
}

.back-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.section {
    padding: 5rem 2rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 300;
    letter-spacing: 2px;
    font-size: clamp(1.4rem, 2.2vw, 2.2rem);
    margin-bottom: 1.25rem;
}

.section-lede {
    max-width: 70ch;
    color: var(--color-text-light);
    line-height: 1.9;
    letter-spacing: 0.2px;
}

.text-link {
    color: var(--color-text);
    text-underline-offset: 4px;
}

.section--contact .section-inner {
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.contact-links {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.contact-links li + li {
    border-top: 1px solid var(--color-border);
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1rem 0.25rem;
    text-decoration: none;
    color: var(--color-text);
    letter-spacing: 0.2px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.contact-link:hover {
    color: var(--color-text-light);
}

.contact-link span {
    text-underline-offset: 3px;
}

.contact-link:hover span {
    text-decoration: underline;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: var(--color-text);
    opacity: 0.88;
}

.contact-icon--social {
    width: 1.4rem;
    height: 1.4rem;
}

.section--media .section-inner {
    max-width: 1200px;
}

/* About: full-viewport column; desktop = two columns, no vertical scroll */
body.page-about {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

body.page-about .page {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body.page-about .page > .page-top,
body.page-about .page > .page-header,
body.page-about .page > .section--about {
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
}

body.page-about .section--about {
    flex: 1;
    padding-top: 1rem;
    padding-bottom: 2.5rem;
    min-height: 0;
}

.page-header--compact {
    padding-bottom: 0.25rem;
}

.about-prose {
    max-width: 62ch;
    margin: 0 auto;
    text-align: left;
}

.about-paragraph {
    color: var(--color-text-light);
    line-height: 1.88;
    letter-spacing: 0.015em;
    margin-bottom: 1.85rem;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.about-paragraph:last-child {
    margin-bottom: 0;
}

.about-paragraph em {
    font-style: italic;
}

body.page-about .footer {
    margin-top: auto;
}

@media (min-width: 900px) {
    body.page-about {
        min-height: 100svh;
    }

    body.page-about .section--about {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 0.5rem;
        padding-bottom: 1.25rem;
    }

    body.page-about .page-header--compact {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    /* Flowing two columns (not a 2×2 grid of paragraphs) */
    .about-prose {
        columns: 2;
        column-gap: 2.5rem;
        column-fill: balance;
        max-width: min(1180px, 94vw);
        width: 100%;
        margin: 0 auto;
        text-align: left;
    }

    .about-paragraph {
        margin-bottom: 1.25rem;
        break-inside: avoid;
        font-size: clamp(0.95rem, 1.15vw, 1.05rem);
        line-height: 1.58;
    }

    .about-paragraph:last-child {
        margin-bottom: 0;
    }
}

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-grid--six {
    max-width: 1100px;
}

@media (min-width: 900px) {
    .gallery-grid--six {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background-color: #fafafa;
    transition: opacity 0.4s ease;
    border: 0;
    padding: 0;
    width: 100%;
}

.gallery-item:focus-visible {
    outline: 2px solid rgba(26, 26, 26, 0.5);
    outline-offset: 3px;
}

.gallery-item:hover {
    opacity: 0.9;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.02);
}

/* Illustration: hover caption + clickable tile (carousel) */
figure.gallery-item {
    margin: 0;
    display: block;
}

.gallery-item--hover-caption {
    cursor: default;
}

.gallery-tile {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: center;
    overflow: hidden;
}

.gallery-tile:focus-visible {
    outline: 2px solid rgba(26, 26, 26, 0.55);
    outline-offset: 3px;
}

.gallery-item--hover-caption:hover,
.gallery-item--hover-caption:focus-within {
    opacity: 1;
}

.gallery-item--hover-caption:hover .gallery-image,
.gallery-item--hover-caption:focus-within .gallery-image,
.gallery-tile:hover .gallery-image,
.gallery-tile:focus-visible .gallery-image {
    transform: scale(1.03);
}

.gallery-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.65) 45%,
        rgba(0, 0, 0, 0.82) 100%
    );
    color: #fff;
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.gallery-tile:hover .gallery-caption,
.gallery-tile:focus-visible .gallery-caption {
    opacity: 1;
}

.gallery-caption-name {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.25;
}

.gallery-caption-meta {
    font-size: clamp(0.8rem, 1.5vw, 0.92rem);
    font-weight: 300;
    letter-spacing: 0.35px;
    opacity: 0.95;
    line-height: 1.35;
}

@media (hover: none) {
    .gallery-item--hover-caption .gallery-tile .gallery-caption {
        opacity: 1;
        top: auto;
        height: auto;
        min-height: 42%;
        justify-content: flex-end;
        padding-bottom: 1rem;
        background: linear-gradient(
            transparent 0%,
            rgba(0, 0, 0, 0.55) 40%,
            rgba(0, 0, 0, 0.88) 100%
        );
    }
}

/* Illustration carousel (modal) */
.illustration-carousel .carousel-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: min(96vw, 1200px);
    max-height: 88vh;
}

.illustration-carousel .carousel-main-image {
    max-width: 100%;
    max-height: min(78vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.carousel-caption-block {
    margin-top: 1rem;
    color: #fff;
    text-align: center;
    line-height: 1.45;
    max-width: 42rem;
    padding: 0 0.5rem;
}

.carousel-caption-block .carousel-caption-name {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    display: inline-block;
    margin-bottom: 0.35rem;
}

.carousel-caption-block .carousel-caption-meta {
    font-size: clamp(0.88rem, 1.8vw, 1rem);
    font-weight: 300;
    opacity: 0.92;
}

/* ============================================
   VIDEO WORK FRAME & ANIMATION PAGE
   ============================================ */
.work-video .work-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
}

.animation-video {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    background-color: #0a0a0a;
}

/* Hero: demo reel visible without scrolling (first paint fits in viewport) */
body.page-animation {
    --animation-reel-chrome: 8.75rem;
}

@media (max-width: 480px) {
    body.page-animation {
        --animation-reel-chrome: 9.5rem;
    }
}

body.page-animation .page-top {
    padding-top: 0.4rem;
    padding-bottom: 0;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

body.page-animation .back-link {
    margin-bottom: 0;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
}

body.page-animation .page-header--animation.page-header--compact {
    padding: 0.2rem 1rem 0.1rem;
}

body.page-animation .page-header--animation .page-title {
    margin-bottom: 0;
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    letter-spacing: 1px;
}

.section-inner--wide {
    max-width: 1100px;
}

/* Featured demo reel */
.section--animation-feature {
    padding-top: 0.75rem;
    padding-bottom: 1.25rem;
}

body.page-animation .section.section--animation-feature {
    padding-top: 0.3rem;
    padding-bottom: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.animation-feature {
    text-align: center;
}

.animation-feature-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.2vw, 2.25rem);
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 0.65rem;
    color: var(--color-text);
}

body.page-animation .animation-feature-title {
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    margin-bottom: 0.4rem;
}

.animation-feature-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
}

/* Full-area tap before first play (no native bar). After playback, leave room for controls when paused. */
.video-tap-to-play {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-tap-to-play:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: -4px;
    border-radius: 4px;
}

.video-tap-to-play__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(52px, 14vmin, 72px);
    height: clamp(52px, 14vmin, 72px);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.95);
    pointer-events: none;
}

.video-tap-to-play__icon svg {
    width: 42%;
    height: 42%;
    margin-left: 6%;
    display: block;
}

.video-tap-to-play.video-tap-to-play--with-controls {
    bottom: clamp(2.75rem, 11vmin, 3.75rem);
}

.animation-feature-frame .video-tap-to-play[hidden],
.animation-carousel-video-wrap .video-tap-to-play[hidden] {
    display: none;
}

.animation-video--featured {
    max-height: min(78vh, 820px);
    width: 100%;
}

/* Cap height so reel + headings stay within first screen (no scroll to see player) */
body.page-animation .animation-video--featured {
    max-height: min(calc(100svh - var(--animation-reel-chrome)), 820px);
}

/* Carousel */
.section--animation-more {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.animation-more-heading {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.5px;
    margin-bottom: 1.1rem;
}

.animation-carousel-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    gap: 0.35rem;
    max-width: 100%;
    margin: 0 auto;
}

.animation-carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    min-height: 0;
    overscroll-behavior-x: contain;
}

.animation-carousel-viewport:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 4px;
}

.animation-carousel-track {
    display: flex;
    gap: 0;
    padding: 0.5rem 0 1rem;
}

/* One slide per view so a single film is clearly “active” (dots stay in sync) */
.animation-carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 0 0.5rem;
}

.animation-carousel-slide-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

/* Uniform 16:9 frame so every clip (e.g. horror) matches the same footprint */
.animation-carousel-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.animation-carousel-video-wrap .animation-video--card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.animation-carousel-arrow {
    align-self: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px 0;
    transition: background 0.2s ease, transform 0.15s ease;
}

.animation-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.04);
}

.animation-carousel-arrow:active {
    transform: scale(0.96);
}

.animation-carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1rem;
}

.animation-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.animation-carousel-dot[aria-current="true"] {
    background: var(--color-text);
    transform: scale(1.15);
}

@media (max-width: 600px) {
    .animation-carousel-shell {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .animation-carousel-arrow {
        display: none;
    }

    .animation-carousel-viewport {
        border-radius: 10px;
    }
}


/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.97);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    line-height: 1;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 1.1rem max(1rem, env(safe-area-inset-right, 0px))
        max(1.1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--color-border);
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

body.landing .footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
}

.footer-text {
    color: var(--color-text-light);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-link {
    color: var(--color-text-light);
    text-decoration: none;
    letter-spacing: 0.8px;
    font-size: 0.85rem;
}

.footer-link:hover {
    color: var(--color-text);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MOBILE RESPONSIVE
   Orbit link positions: desktop is defined earlier under ORBIT HERO (no media query).
   Only this @media (max-width: 768px) block overrides left/top for small screens — PC unchanged.
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding-top: max(1rem, env(safe-area-inset-top, 0px));
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
        padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
    }

    .orbit {
        --orbit-flower-width: 64%;
    }

    .flower {
        max-width: 340px;
    }

    .orbit-link-label {
        font-size: clamp(1.3rem, 4.4vw, 1.8rem);
    }

    /* Phone — labels + hit areas identical */
    .orbit-link--contact .orbit-link-label { left: 0%; top: 40%; width: 34%; height: 20%; }
    .orbit-link--about .orbit-link-label { left: 6%; top: 6%; width: 38%; height: 20%; }
    .orbit-link--animation .orbit-link-label { left: 12%; top: 76%; width: 38%; height: 22%; }
    .orbit-link--illustration .orbit-link-label { left: 62%; top: 38%; width: 36%; height: 24%; }

    .orbit-link--contact .orbit-hit-wrap {
        left: 0%;
        top: 40%;
        width: 34%;
        height: 20%;
    }
    .orbit-link--about .orbit-hit-wrap {
        left: 6%;
        top: 6%;
        width: 38%;
        height: 20%;
    }
    .orbit-link--animation .orbit-hit-wrap {
        left: 12%;
        top: 76%;
        width: 38%;
        height: 22%;
    }
    .orbit-link--illustration .orbit-hit-wrap {
        left: 62%;
        top: 38%;
        width: 36%;
        height: 24%;
    }

    .section {
        padding: 4rem 1rem;
    }

    .page-top {
        padding-top: 1rem;
        padding-bottom: 0;
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }

    .page-header {
        padding-top: 1rem;
        padding-bottom: 0;
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-brand .site-logo {
        max-height: clamp(2.1rem, 8vmin, 3.25rem);
    }

    .hero-title {
        font-size: clamp(1.55rem, 7vw, 2.15rem);
    }

    .gallery-grid {
        gap: 0.5rem;
    }

    .orbit {
        width: 94vw;
    }

    .orbit-link-label {
        font-size: 1.2rem;
    }
}
