body, html {
    margin: 0; padding: 0;
    background: radial-gradient(circle at top, #281912 0%, #1a120e 60%, #120d0a 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overscroll-behavior: none;
    overflow: hidden; height: 100vh; height: 100dvh;
}

#loading-screen {
    position: fixed; z-index: 2000; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh;
    background: radial-gradient(circle at top, #281912 0%, #1a120e 60%, #120d0a 100%);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; transition: opacity 0.8s ease;
}
.loading-text { color:#fff; margin-top:20px; letter-spacing:0.2em; text-transform:uppercase; font-size:0.8rem; }

.spinner { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.1); border-top: 3px solid #fff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

#intro-overlay {
    position:fixed; z-index:1000; top:0; left:0; width:100vw; height:100vh; height:100dvh;
    background:transparent; display:flex; align-items:center; justify-content:center;
    flex-direction:column; transition:opacity 1s ease; overflow:hidden;
}

.scroll-track { height: 100vh; height: 100dvh; width: 100vw; overflow: hidden; }
.sticky-view { position: relative; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; background: transparent; }

.scene {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: transparent; background-size: cover; background-position: center;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.media-layer { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; pointer-events: none; }

.text-overlay {
    position: absolute; width: 90%; max-width: 500px;
    pointer-events: none; z-index: 100; top: 12%; 
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene-inline-cta {
    pointer-events: auto;
}

.scene-inline-cta .story-card {
    pointer-events: auto;
}

.portfolio-link {
    position: absolute; width: 90%; max-width: 480px; z-index: 100;
    display: block; text-decoration: none; top: 12%; 
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-disappear-tile {
    transition: opacity 180ms ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-disappear-tile.is-hidden-by-interaction {
    opacity: 0 !important;
}

body.screen-hold-active {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

body.screen-hold-active .text-overlay,
body.screen-hold-active .portfolio-link,
body.screen-hold-active .scroll-indicator {
    opacity: 0 !important;
    pointer-events: none !important;
}

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
.floating-wrapper { animation: float 6s ease-in-out infinite; }

.story-card, .portfolio-card {
    background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7); position: relative;
}
.story-card { padding: 2.5rem 3rem; text-align: left; }
.portfolio-card { padding: 1rem; overflow: hidden; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease; }
.portfolio-img { width: 100%; height: auto; border-radius: 8px; display: block; }
.image-card {
    position: relative;
    padding: 0;
    overflow: hidden;
}
.sketch-card {
    isolation: isolate;
}
.sketch-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 244, 214, 0.24);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 42px rgba(255, 226, 160, 0.12);
    opacity: 0;
    transform: scale(1.015);
    animation: sketchBorder 3s ease-out forwards;
    pointer-events: none;
    z-index: 3;
}
.sketch-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background:
        linear-gradient(130deg, transparent 0 18%, rgba(255, 255, 255, 0.16) 24%, transparent 31%),
        repeating-linear-gradient(90deg, rgba(255, 244, 214, 0.03) 0 3px, rgba(255, 244, 214, 0.09) 3px 4px, transparent 4px 9px),
        repeating-linear-gradient(0deg, rgba(255, 244, 214, 0.02) 0 5px, rgba(255, 244, 214, 0.08) 5px 6px, transparent 6px 12px);
    background-size: 200% 100%, 100% 100%, 100% 100%;
    background-position: -120% 0, 0 0, 0 0;
    mix-blend-mode: screen;
    opacity: 0;
    animation: sketchSweep 3s ease-out forwards, sketchNoise 6s linear 3s infinite;
    pointer-events: none;
    z-index: 2;
}
.image-card-img {
    display: block;
    width: 100%;
    height: auto;
}
.sketch-reveal {
    opacity: 0;
    filter: blur(18px) contrast(1.4) brightness(1.22) saturate(0.82);
    clip-path: inset(0 100% 0 0);
    animation:
        sketchDraw 3s cubic-bezier(0.2, 0.9, 0.2, 1) forwards,
        sketchFloat 6s ease-in-out 3s infinite;
}
.image-shine {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0.08) 58%, transparent 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.18));
    background-size: 220% 100%, 100% 100%;
    background-position: -140% 0, 0 0;
    mix-blend-mode: screen;
    animation: imageShine 4.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}
.scene8-card {
    max-width: 420px;
}
.scene-image-panel {
    top: 12%;
    transform: translateY(0);
}
.scene-image-panel .portfolio-card {
    padding: 0;
}
.image-caption {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}
@keyframes imageShine {
    0%, 100% { background-position: -140% 0, 0 0; opacity: 0.55; }
    50% { background-position: 140% 0, 0 0; opacity: 0.9; }
}
@keyframes sketchBorder {
    0% { opacity: 0; }
    20% { opacity: 0.45; }
    100% { opacity: 1; }
}
@keyframes sketchSweep {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    15% {
        opacity: 0.85;
    }
    45% {
        clip-path: inset(0 58% 0 0);
    }
    75% {
        clip-path: inset(0 10% 0 0);
    }
    100% {
        opacity: 0.65;
        clip-path: inset(0 0 0 0);
    }
}
@keyframes sketchNoise {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.7; }
}
@keyframes sketchDraw {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        filter: blur(16px) contrast(1.3) brightness(1.2) saturate(0.9);
    }
    35% {
        opacity: 1;
        clip-path: inset(0 65% 0 0);
        filter: blur(10px) contrast(1.35) brightness(1.12) saturate(0.95);
    }
    70% {
        clip-path: inset(0 15% 0 0);
        filter: blur(3px) contrast(1.18) brightness(1.05) saturate(1);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        filter: blur(0) contrast(1) brightness(1) saturate(1);
    }
}
@keyframes sketchFloat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
}

.story-card p {
    color: #ffffff !important;
    font-size: 1.25rem;
    line-height: 1.625;
}
.story-text {
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.625;
    font-weight: 400;
}
.inline-cta-wrap {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}
.contact-panel {
    pointer-events: auto;
}
.contact-card {
    padding: 2rem;
    text-align: center;
}
.final-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.final-cta-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-family: Georgia, "Times New Roman", serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 0.95rem 1.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #120d0a;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease;
}
.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
    background: #ffffff;
}
.cta-button-large {
    min-width: 240px;
}
@media (min-width: 768px) {
    .story-card p { font-size: 1.5rem; }
    .story-text { font-size: 1.5rem; }
}

#portfolio-17 .final-cta-title {
    font-size: clamp(1.7rem, 2.8vw, 3rem);
}

#portfolio-17 .final-cta-content {
    gap: 1.8rem;
}

.scene-return-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(238, 214, 168, 0.92);
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(201, 141, 38, 0.3);
    transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.scene-return-link:hover {
    color: #f5dfb7;
    transform: translateY(-2px);
}

.scene-return-arrow {
    font-size: 1rem;
    line-height: 1;
}

.scene-return-inline {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    letter-spacing: 0.09em;
    opacity: 0.92;
}

#portfolio-8 {
    left: 5%;
    right: auto;
    margin: 0;
    top: 12%;
}

@media (min-width: 768px) and (max-width: 1180px) and (orientation: landscape) {
    .start-btn {
        margin-top: -4rem;
        background: rgba(0, 0, 0, 0.4) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
    }

    #text1,
    #text2 {
        left: 5% !important;
        right: 5% !important;
        top: auto !important;
        bottom: 6% !important;
        max-width: 90% !important;
        text-align: center;
    }

    #text1 .story-card,
    #text2 .story-card,
    #text7 .story-card,
    #text9 .story-card {
        max-width: min(90vw, 48rem);
        margin: 0 auto;
    }

    #portfolio-4,
    #portfolio-5 {
        top: 6% !important;
        left: auto !important;
        right: 5% !important;
        max-width: 40% !important;
    }

    #portfolio-4 .portfolio-card,
    #portfolio-5 .portfolio-card {
        max-width: min(30vw, 18rem);
        margin: 0 auto;
    }

    #text6 {
        left: 5% !important;
        right: auto !important;
        max-width: min(44vw, 30rem) !important;
    }

    #text7 {
        left: 5% !important;
        right: auto !important;
        top: 8% !important;
        bottom: auto !important;
        max-width: min(34vw, 20rem) !important;
        text-align: left;
    }

    #portfolio-8 {
        left: 5% !important;
        right: auto !important;
        top: 14% !important;
        max-width: min(30vw, 18rem) !important;
    }

    #portfolio-8 .scene8-card {
        max-width: min(30vw, 18rem);
        margin: 0;
    }

    #text9 {
        left: 5% !important;
        right: 5% !important;
        top: 50% !important;
        bottom: auto !important;
        max-width: 90% !important;
        transform: translateY(-50%) !important;
        text-align: center;
    }

    #text11 {
        left: 5% !important;
        right: auto !important;
        max-width: min(36vw, 22rem) !important;
    }

    #text13 {
        right: 5% !important;
        left: auto !important;
        max-width: min(34vw, 20rem) !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
    }

    #text13 .story-card {
        padding: 0.85rem 0.95rem !important;
    }

    #text13 .story-text {
        font-size: 1.05rem !important;
        line-height: 1.42 !important;
    }

    #text15 {
        left: 5% !important;
        right: auto !important;
        max-width: min(34vw, 20rem) !important;
    }

    #text15 .story-card {
        padding: 0.85rem 0.95rem !important;
    }

    #text15 .story-text {
        font-size: 1.05rem !important;
        line-height: 1.42 !important;
    }

    #portfolio-17 {
        left: auto !important;
        right: 5% !important;
        max-width: min(28vw, 16rem) !important;
    }


    #portfolio-17 .contact-card {
        padding: 1rem 1.15rem !important;
    }

    #portfolio-17 .final-cta-title {
        font-size: clamp(1.3rem, 2.4vw, 1.85rem);
    }
}

.click-indicator {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95); color: #000 !important; padding: 0.6rem 1.2rem;
    border-radius: 40px; font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}

.intro-video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: opacity 0.8s ease; }
.intro-title {
    color: transparent; font-size: 10rem; letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
    font-weight: 700; z-index: 2; line-height: 1.1; font-family: Georgia, "Times New Roman", serif;
    background-image: linear-gradient(135deg, #c9a96e, #ffffff 50%, #c9a96e);
    -webkit-background-clip: text; background-clip: text; text-shadow: 0 10px 20px rgba(0,0,0,0.6);
    margin-bottom: 12rem; transition: opacity 0.6s ease;
}

.start-btn {
    padding: 1rem 3rem; font-size: 0.95rem; letter-spacing: 0.15em; text-transform: uppercase;
    border-radius: 3rem; background: rgba(0, 0, 0, 0.4); color: #fff;
    font-weight: 500; border: 1px solid rgba(255, 255, 255, 0.4); cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease; z-index: 10;
    backdrop-filter: blur(4px); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.start-btn:hover { background: #fff; color: #000; transform: translateY(-5px) scale(1.05); border-color: #fff; }

.animated-word {
    display: inline-block;
    margin-right: 0;
    white-space: pre-wrap;
    color: #ffffff;
}
.highlight-word {
    position: relative;
    color: #c8922a;
    font-weight: 800;
    background: linear-gradient(120deg, #5a3b10 0%, #9c6718 18%, #c8922a 34%, #e4bb5a 48%, #f0cc73 58%, #c98d26 74%, #7a4f13 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 1px rgba(255, 220, 140, 0.18),
        0 0 8px rgba(201, 141, 38, 0.2),
        0 2px 10px rgba(0, 0, 0, 0.32);
    filter: drop-shadow(0 0 5px rgba(201, 141, 38, 0.14));
    animation: highlightGlow 3.6s ease-in-out infinite;
}
.highlight-word::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: rgba(240, 202, 110, 0.78);
    -webkit-text-fill-color: rgba(240, 202, 110, 0.78);
    text-shadow:
        0 0 5px rgba(240, 202, 110, 0.3),
        0 0 12px rgba(201, 141, 38, 0.2);
    filter: blur(0.2px);
    opacity: 0.7;
    mix-blend-mode: screen;
    animation: dustTwinkle 2.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes highlightGlow {
    0%, 100% {
        background-position: 0% 50%;
        text-shadow:
            0 0 1px rgba(255, 220, 140, 0.18),
            0 0 8px rgba(201, 141, 38, 0.18),
            0 2px 10px rgba(0, 0, 0, 0.32);
        filter: drop-shadow(0 0 5px rgba(201, 141, 38, 0.12));
    }
    50% {
        background-position: 100% 50%;
        text-shadow:
            0 0 1px rgba(255, 228, 160, 0.26),
            0 0 12px rgba(201, 141, 38, 0.24),
            0 2px 10px rgba(0, 0, 0, 0.32);
        filter: drop-shadow(0 0 8px rgba(201, 141, 38, 0.16));
    }
}
@keyframes dustTwinkle {
    0%, 100% {
        opacity: 0.55;
        transform: translateY(0) scale(1);
        filter: blur(0.25px);
    }
    40% {
        opacity: 0.88;
        transform: translateY(-0.2px) scale(1.01);
        filter: blur(0px);
    }
    60% {
        opacity: 0.72;
        transform: translateY(0.15px) scale(1);
        filter: blur(0.2px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .highlight-word {
        animation: none;
    }
    .highlight-word::after {
        animation: none;
    }
    .sketch-card::before,
    .sketch-card::after,
    .sketch-reveal,
    .image-shine {
        animation: none;
    }
    .sketch-reveal {
        clip-path: inset(0 0 0 0);
        filter: none;
        opacity: 1;
    }
}

@media (pointer: coarse) {
    .floating-wrapper,
    .highlight-word,
    .highlight-word::after,
    .sketch-card::before,
    .sketch-card::after,
    .sketch-reveal,
    .image-shine {
        animation: none !important;
    }

    .sketch-reveal {
        clip-path: inset(0 0 0 0);
        filter: none;
        opacity: 1;
    }
}

.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7); font-size: 0.875rem; letter-spacing: 0.1em;
    text-transform: uppercase; display: flex; flex-direction: column; align-items: center;
    gap: 10px; animation: pulse 2s infinite; z-index: 101; transition: opacity 0.3s ease-out;
}
.scroll-indicator.hide { opacity: 0 !important; pointer-events: none; }
.mouse { width: 24px; height: 36px; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 12px; position: relative; }
.wheel { width: 4px; height: 6px; background: rgba(255, 255, 255, 0.7); border-radius: 2px; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); animation: scroll 1.5s infinite; }
@keyframes scroll { 0% { top: 6px; opacity: 1; } 100% { top: 18px; opacity: 0; } }
@keyframes pulse { 0% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } 100% { transform: translate(-50%, 0); } }

.skeleton-container {
    display: flex; flex-direction: column; gap: 12px;
    width: 100%; background: rgba(10, 10, 15, 0.5);
    border-radius: 8px; padding: 1.5rem;
    box-sizing: border-box; overflow: hidden;
}
.skel-elem { background: rgba(255, 255, 255, 0.08); border-radius: 4px; position: relative; overflow: hidden; }
.skel-elem::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transform: translateX(-100%); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

.skel-nav { height: 16px; width: 30%; border-radius: 8px; margin-bottom: 8px; flex-shrink: 0; }
.skel-hero { height: 120px; width: 100%; border-radius: 6px; flex-shrink: 0; }
.skel-row { display: flex; gap: 10px; flex-shrink: 0; }
.skel-col { height: 40px; width: 50%; border-radius: 4px; }
.skel-line { height: 12px; width: 80%; border-radius: 6px; flex-shrink: 0; }
.skel-line-short { height: 12px; width: 50%; border-radius: 6px; flex-shrink: 0; }
