:root {
    --red: #f71920;
    --orange: #ff6a00;
    --ink: #111111;
    --wood: #7a4219;
    --wood-light: #c47a2f;
    --gold: #ffc15a;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: "Instrument Sans", Arial, sans-serif;
    color: #ffffff;
    background: #070504;
}

button,
a {
    font: inherit;
}

.intro-shell {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 143, 35, 0.18), transparent 34%),
        linear-gradient(135deg, #0c0805 0%, #160d08 45%, #050404 100%);
}

.intro-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    pointer-events: none;
}

.intro-topbar {
    position: fixed;
    z-index: 5;
    top: clamp(18px, 3vw, 36px);
    left: clamp(18px, 4vw, 64px);
    display: flex;
    align-items: center;
    gap: 14px;
}

.intro-topbar img {
    width: clamp(112px, 12vw, 170px);
    height: auto;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.3));
}

.intro-topbar div {
    display: grid;
    gap: 2px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.intro-topbar span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.intro-topbar strong {
    font-size: 15px;
}

.intro-stage {
    min-height: 100vh;
    position: relative;
    display: grid;
    place-items: center;
    perspective: 1700px;
}

.scene-viewport {
    width: min(94vw, 1480px);
    height: min(78vh, 820px);
    cursor: grab;
    touch-action: none;
    perspective: 1800px;
}

.scene-viewport:active {
    cursor: grabbing;
}

.scene-orbit {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform:
        scale(var(--zoom))
        rotateX(var(--rx))
        rotateY(var(--ry));
    transition: transform 0.12s ease-out;
}

.studio-room {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-80px);
}

.room-wall {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.back-wall {
    inset: 8% 7% 8%;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.72)),
        repeating-linear-gradient(90deg, #5c3217 0 18px, #77421d 18px 36px, #8f5426 36px 54px);
    box-shadow:
        inset 0 0 120px rgba(0, 0, 0, 0.62),
        0 36px 120px rgba(0, 0, 0, 0.48);
    transform: translateZ(-240px);
}

.left-wall,
.right-wall {
    top: 8%;
    width: 14%;
    height: 84%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.55));
}

.left-wall {
    left: 0;
    transform: rotateY(76deg) translateZ(-32px);
}

.right-wall {
    right: 0;
    transform: rotateY(-76deg) translateZ(-32px);
}

.ceiling,
.floor {
    left: 7%;
    width: 86%;
    height: 18%;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 90px),
        linear-gradient(180deg, #5b3219, #1f1009);
}

.ceiling {
    top: -2%;
    transform: rotateX(-78deg) translateZ(-24px);
}

.floor {
    bottom: -4%;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 112px),
        linear-gradient(180deg, #9b6531, #39200f);
    transform: rotateX(78deg) translateZ(-30px);
}

.wardrobe {
    position: absolute;
    inset: 7% 7% 9%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    transform-style: preserve-3d;
}

.wardrobe::before {
    content: "";
    position: absolute;
    inset: -3% -1%;
    background:
        linear-gradient(90deg, transparent, rgba(255, 194, 92, 0.24), transparent),
        repeating-linear-gradient(90deg, transparent 0 19.5%, rgba(0, 0, 0, 0.88) 19.5% 20.1%);
    pointer-events: none;
}

.wardrobe-bay {
    position: relative;
    min-width: 0;
    border-inline: 4px solid rgba(4, 4, 4, 0.82);
    background:
        linear-gradient(180deg, rgba(255, 207, 104, 0.34), transparent 15%, transparent 70%, rgba(255, 183, 72, 0.2)),
        repeating-linear-gradient(90deg, #704018 0 22px, #965a25 22px 44px);
    box-shadow: inset 0 0 36px rgba(255, 187, 69, 0.25);
}

.wardrobe-bay::before,
.wardrobe-bay::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    height: 2px;
    background: rgba(255, 198, 85, 0.55);
    box-shadow: 0 0 22px rgba(255, 177, 44, 0.95);
}

.wardrobe-bay::before {
    top: 17%;
}

.wardrobe-bay::after {
    bottom: 28%;
}

.shelf {
    position: absolute;
    top: 4%;
    left: 10%;
    right: 10%;
    height: 12%;
}

.shelf span {
    position: absolute;
    display: block;
    bottom: 8%;
    width: 38%;
    height: 44%;
    border-radius: 7px;
    background: linear-gradient(135deg, #1b1713, #72543a);
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.32);
}

.shelf span + span {
    right: 2%;
    width: 30%;
    height: 58%;
}

.hanger-rail {
    position: absolute;
    top: 35%;
    left: 15%;
    right: 15%;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #090909, #ffe4a5, #111111);
}

.garments {
    position: absolute;
    top: 37%;
    left: 18%;
    right: 16%;
    height: 30%;
    display: flex;
    justify-content: space-around;
}

.garments i {
    display: block;
    width: 18%;
    height: 100%;
    border-radius: 36px 36px 8px 8px;
    background: linear-gradient(90deg, #0d0b0a, #4a3728 48%, #e9dfd1 52%, #493323);
    transform: skewX(-4deg);
}

.drawer-stack {
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 4%;
    height: 22%;
    display: grid;
    gap: 7px;
}

.drawer-stack span {
    border-radius: 2px;
    background: linear-gradient(180deg, #5e3518, #2d170b);
    border: 1px solid rgba(255, 190, 76, 0.28);
}

.door-panel {
    position: absolute;
    top: -1%;
    width: 50%;
    height: 102%;
    transform-style: preserve-3d;
    border: 6px solid rgba(7, 7, 7, 0.9);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05) 40%, rgba(0, 0, 0, 0.32)),
        rgba(20, 16, 12, 0.18);
    box-shadow:
        inset 0 0 36px rgba(255, 255, 255, 0.12),
        0 0 28px rgba(0, 0, 0, 0.42);
    transition: transform 1.25s cubic-bezier(0.2, 0.78, 0.18, 1);
}

.door-left {
    left: 0;
    transform-origin: left center;
}

.door-right {
    right: 0;
    transform-origin: right center;
}

.door-handle {
    position: absolute;
    top: 43%;
    width: 10px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff8e7, #c99745, #fff4ca);
    box-shadow: 0 0 20px rgba(255, 188, 77, 0.82);
}

.door-left .door-handle {
    right: 26px;
}

.door-right .door-handle {
    left: 26px;
}

.intro-shell.is-opening .door-left {
    transform: rotateY(-98deg);
}

.intro-shell.is-opening .door-right {
    transform: rotateY(98deg);
}

.intro-shell.is-opening .scene-orbit {
    transition: transform 1.1s cubic-bezier(0.2, 0.74, 0.18, 1);
    transform: scale(1.18) rotateX(-2deg) rotateY(0deg) translateZ(120px);
}

.intro-shell.is-opening::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 10;
    background: #ffffff;
    opacity: 0;
    animation: enterFlash 1.35s 0.65s forwards;
    pointer-events: none;
}

.intro-copy {
    position: fixed;
    z-index: 4;
    left: clamp(18px, 5vw, 78px);
    bottom: clamp(28px, 8vh, 96px);
    max-width: min(560px, calc(100vw - 36px));
}

.intro-kicker {
    margin: 0 0 12px;
    color: var(--gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.intro-copy h1 {
    margin: 0;
    max-width: 640px;
    font-size: clamp(46px, 7vw, 112px);
    line-height: 0.92;
}

.intro-copy p:not(.intro-kicker) {
    max-width: 480px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.6;
}

.intro-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.intro-open,
.intro-actions a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.intro-open {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), #b10008);
    box-shadow: 0 18px 38px rgba(247, 25, 32, 0.35);
    cursor: pointer;
}

.intro-actions a {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.intro-hint {
    position: fixed;
    z-index: 4;
    right: clamp(18px, 4vw, 56px);
    bottom: clamp(24px, 6vh, 76px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
}

.intro-hint span {
    width: 54px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #111111;
    background: #ffffff;
    font-weight: 900;
}

@keyframes enterFlash {
    45% {
        opacity: 0.94;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 760px) {
    .scene-viewport {
        width: 114vw;
        height: 66vh;
        margin-top: -8vh;
    }

    .intro-copy {
        bottom: 86px;
    }

    .intro-copy h1 {
        font-size: clamp(42px, 14vw, 72px);
    }

    .intro-hint {
        right: auto;
        left: 18px;
        bottom: 18px;
    }

    .intro-topbar div {
        display: none;
    }
}

.scene-viewport {
    width: min(100vw, 1920px);
    height: min(100vh, 980px);
    margin: 0;
}

.scene-orbit {
    display: grid;
    place-items: center;
}

.photo-room {
    width: min(100vw, 1920px);
    height: min(100vh, 980px);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #110905;
    transform-style: preserve-3d;
    box-shadow: 0 38px 130px rgba(0, 0, 0, 0.58);
}

.photo-room img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: translateZ(-80px) scale(1.08);
    filter: saturate(1.04) contrast(1.03);
}

.photo-glow {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 22%, transparent 76%, rgba(0, 0, 0, 0.38)),
        radial-gradient(circle at 50% 38%, transparent 0 44%, rgba(0, 0, 0, 0.34) 86%);
    pointer-events: none;
}

.photo-door {
    position: absolute;
    top: 8%;
    width: 42%;
    height: 78%;
    transform-style: preserve-3d;
    border: 5px solid rgba(6, 6, 6, 0.86);
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 42%, rgba(0, 0, 0, 0.36)),
        rgba(18, 14, 10, 0.08);
    box-shadow:
        inset 0 0 38px rgba(255, 255, 255, 0.12),
        0 0 28px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(0.8px);
    transition: transform 1.25s cubic-bezier(0.2, 0.78, 0.18, 1), opacity 0.6s ease;
}

.photo-door-left {
    left: 8%;
    transform-origin: left center;
}

.photo-door-right {
    right: 8%;
    transform-origin: right center;
}

.photo-door::before,
.photo-door::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(0, 0, 0, 0.88);
}

.photo-door::before {
    left: 30%;
}

.photo-door::after {
    right: 30%;
}

.photo-handle {
    position: absolute;
    top: 42%;
    width: 9px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff2c7, #9d6b24, #ffdda0);
    box-shadow: 0 0 22px rgba(255, 190, 72, 0.85);
}

.photo-door-left .photo-handle {
    right: 22px;
}

.photo-door-right .photo-handle {
    left: 22px;
}

.intro-shell.is-opening .photo-door-left {
    transform: rotateY(-104deg);
}

.intro-shell.is-opening .photo-door-right {
    transform: rotateY(104deg);
}

.intro-shell.is-opening .photo-room img {
    transition: transform 1.35s cubic-bezier(0.2, 0.78, 0.18, 1);
    transform: translateZ(70px) scale(1.2);
}

.intro-copy {
    max-width: min(460px, calc(100vw - 36px));
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.16));
    backdrop-filter: blur(10px);
}

.intro-copy h1 {
    font-size: clamp(38px, 5.8vw, 88px);
}

@media (max-width: 760px) {
    .scene-viewport,
    .photo-room {
        width: 100vw;
        height: 100vh;
        margin: 0;
    }

    .intro-copy {
        bottom: 88px;
        padding: 16px;
    }

    .intro-actions {
        flex-wrap: wrap;
    }
}

.intro-shell {
    background: linear-gradient(180deg, #191919 0, #080808 10%, #080808 100%);
}

.intro-shell::before {
    opacity: 0.28;
}

.intro-stage {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    place-items: stretch;
    padding-top: 18px;
    perspective: 2200px;
}

.intro-topbar {
    z-index: 8;
    top: 26px;
    left: 34px;
    transform: scale(0.78);
    transform-origin: left top;
}

.intro-view-title {
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 6px 18px 16px;
    color: #ffffff;
    font-size: clamp(34px, 3.6vw, 54px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #1c1c1c, #101010);
}

.scene-viewport {
    width: 100vw;
    height: calc(100vh - 84px);
    min-height: 0;
    overflow: hidden;
    perspective: 2100px;
}

.scene-orbit {
    width: 100%;
    height: 100%;
    display: block;
    transform:
        scale(var(--zoom))
        rotateX(var(--rx))
        rotateY(var(--ry));
    transform-origin: center center;
}

.view-360-board {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1.18fr) minmax(0, 1fr);
    gap: 2px;
    background: #0a0a0a;
    transform-style: preserve-3d;
}

.view-tile {
    min-width: 0;
    min-height: 0;
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 0;
    background: #120b07;
    box-shadow: none;
}

.view-tile-wide {
    grid-column: 1 / -1;
}

.view-tile img,
.photo-room img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: none;
    filter: saturate(1.06) contrast(1.04);
}

.view-tile-wide img {
    object-position: center center;
}

.view-left img {
    object-position: left center;
    transform: scale(1.12);
}

.view-top img {
    object-position: center top;
    transform: scale(1.18) rotate(180deg);
}

.view-bottom img {
    object-position: center bottom;
    transform: scale(1.12);
}

.view-close img {
    object-position: 72% center;
    transform: scale(1.34);
}

.view-tile::after {
    content: attr(data-view-label);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(11, 11, 11, 0.08), rgba(11, 11, 11, 0.88));
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.view-tile figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(11, 11, 11, 0.08), rgba(11, 11, 11, 0.9));
    font-size: 14px;
    font-weight: 900;
}

.photo-glow {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.25), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.24)),
        radial-gradient(circle at 50% 48%, transparent 0 32%, rgba(0, 0, 0, 0.18) 88%);
}

.view-center-badge {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.view-center-badge span {
    width: clamp(72px, 7vw, 104px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    border: 4px solid #ffffff;
    background: rgba(0, 0, 0, 0.08);
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 900;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22), 0 18px 40px rgba(0, 0, 0, 0.3);
}

.photo-door {
    top: 0;
    width: 50%;
    height: 100%;
    border-width: 4px;
    transition:
        transform 3.8s cubic-bezier(0.12, 0.7, 0.08, 1),
        opacity 1.5s ease;
}

.photo-door-left {
    left: 0;
}

.photo-door-right {
    right: 0;
}

.photo-handle {
    top: 45%;
}

.intro-shell.is-opening .photo-door-left {
    transform: rotateY(-116deg);
}

.intro-shell.is-opening .photo-door-right {
    transform: rotateY(116deg);
}

.intro-shell.is-opening .photo-door {
    opacity: 0.32;
}

.intro-shell.is-opening .photo-room img {
    transition: transform 4.1s cubic-bezier(0.12, 0.7, 0.08, 1), filter 3.6s ease;
    transform: scale(1.1);
    filter: brightness(1.12) saturate(1.08);
}

.intro-shell.is-opening .view-center-badge,
.intro-shell.is-opening .intro-hint {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.intro-shell.is-opening::after {
    animation: enterFlash 2.1s 3s forwards;
}

.intro-copy {
    z-index: 7;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    width: min(720px, calc(100vw - 32px));
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.72);
}

.intro-copy h1 {
    display: none;
}

.intro-copy p {
    margin: 0;
}

.intro-kicker {
    color: #ffffff;
}

.intro-actions {
    margin: 0;
}

.intro-open,
.intro-actions a {
    min-height: 44px;
    white-space: nowrap;
}

.intro-hint {
    right: 28px;
    bottom: 42px;
}

@media (max-width: 860px) {
    .intro-stage {
        padding-top: 10px;
    }

    .scene-viewport {
        height: calc(100vh - 68px);
    }

    .view-360-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 1.2fr 0.82fr 0.82fr;
    }

    .view-tile-wide {
        grid-column: 1 / -1;
    }

    .intro-copy {
        bottom: 14px;
        border-radius: 22px;
        flex-wrap: wrap;
    }

    .intro-copy > p:not(.intro-kicker) {
        display: none;
    }

    .intro-hint {
        display: none;
    }
}

.site-preview {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.4s ease 2.7s, transform 1.8s ease 2.7s;
    pointer-events: none;
}

.intro-shell.is-opening .site-preview {
    opacity: 1;
    transform: scale(1);
}

.intro-stage {
    z-index: 2;
    transition: opacity 1.2s ease 4s, transform 1.2s ease 4s;
}

.intro-shell.is-opening .intro-stage {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

.intro-topbar {
    display: none;
}

.view-360-board {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 1.02fr 1fr;
    gap: 2px;
}

.view-front {
    grid-column: 1 / span 5;
    grid-row: 1;
}

.view-right {
    grid-column: 6 / span 4;
    grid-row: 1;
}

.view-back {
    grid-column: 10 / span 3;
    grid-row: 1;
}

.view-left {
    grid-column: 1 / span 3;
    grid-row: 2;
}

.view-top {
    grid-column: 4 / span 3;
    grid-row: 2;
}

.view-bottom {
    grid-column: 7 / span 3;
    grid-row: 2;
}

.view-close {
    grid-column: 10 / span 3;
    grid-row: 2;
}

.view-tile::after {
    height: 50px;
    font-size: clamp(12px, 1.1vw, 17px);
    letter-spacing: 0;
}

.view-tile img,
.photo-room img {
    will-change: transform;
}

.view-front img {
    object-position: left center;
    transform: scale(1.02);
}

.view-right img {
    object-position: center center;
    transform: scale(1.18);
}

.view-back img {
    object-position: 76% center;
    transform: scale(1.08);
}

.view-left img {
    object-position: 42% center;
    transform: scale(1.28);
}

.view-top img {
    object-position: center center;
    transform: scale(1.28) rotate(180deg);
}

.view-bottom img {
    object-position: 58% center;
    transform: scale(1.18);
}

.view-close img {
    object-position: 88% center;
    transform: scale(1.62);
}

.photo-door {
    backdrop-filter: blur(1.4px);
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 36%, rgba(0, 0, 0, 0.4)),
        rgba(11, 10, 9, 0.12);
    transition:
        transform 4.8s cubic-bezier(0.08, 0.68, 0.08, 1),
        opacity 1.8s ease 1.8s;
}

.intro-shell.is-opening .photo-door-left {
    transform: perspective(1300px) rotateY(-122deg) translateX(-4%);
}

.intro-shell.is-opening .photo-door-right {
    transform: perspective(1300px) rotateY(122deg) translateX(4%);
}

.intro-shell.is-opening .photo-door {
    opacity: 0.05;
}

.intro-shell.is-opening .photo-room img {
    transition: transform 5s cubic-bezier(0.08, 0.68, 0.08, 1), filter 4s ease;
    transform: scale(1.2);
}

.intro-shell.is-opening::after {
    display: none;
}

.intro-copy {
    width: auto;
    max-width: calc(100vw - 32px);
    bottom: 18px;
    padding: 10px 14px;
}

.intro-copy > p:not(.intro-kicker) {
    display: none;
}

.intro-kicker {
    display: none;
}

.intro-actions {
    gap: 10px;
}

.intro-open,
.intro-actions a {
    min-height: 42px;
    padding-inline: 18px;
}

.intro-open:disabled {
    cursor: wait;
    opacity: 0.86;
}

.intro-hint {
    right: 34px;
    bottom: 34px;
}

@media (max-width: 860px) {
    .view-360-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 1.08fr 0.86fr 0.86fr 0.86fr;
    }

    .view-front,
    .view-right,
    .view-back,
    .view-left,
    .view-top,
    .view-bottom,
    .view-close {
        grid-column: auto;
        grid-row: auto;
    }

    .view-front {
        grid-column: 1 / -1;
    }

    .view-tile::after {
        height: 34px;
        font-size: 11px;
    }
}

.scene-viewport {
    width: 100vw;
    height: calc(100vh - 74px);
    overflow: hidden;
}

.scene-orbit {
    width: 100%;
    height: 100%;
    transform: none;
}

.panorama-room {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #100905;
    cursor: grab;
    touch-action: none;
}

.panorama-room:active {
    cursor: grabbing;
}

.panorama-image {
    position: absolute;
    inset: -7%;
    background-image: url("/images/intro-panorama-hq.jpg");
    background-size: calc(160% * var(--pan-scale)) auto;
    background-position: calc(50% + var(--pan-offset)) var(--pan-y);
    background-repeat: repeat-x;
    filter: saturate(1.08) contrast(1.08) brightness(1);
    transform: translateZ(0);
    transition: filter 0.25s ease;
    will-change: background-position, background-size, transform;
}

.panorama-room::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.2)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.34));
    pointer-events: none;
}

.panorama-room .photo-glow {
    z-index: 4;
    background:
        radial-gradient(circle at 50% 52%, transparent 0 34%, rgba(0, 0, 0, 0.22) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 36%, rgba(0, 0, 0, 0.22));
}

.panorama-room .view-center-badge {
    z-index: 7;
}

.panorama-room .photo-door {
    z-index: 8;
    top: 0;
    width: 50%;
    height: 100%;
    backdrop-filter: none;
}

.intro-shell.is-opening .panorama-image {
    transition: transform 5s cubic-bezier(0.08, 0.68, 0.08, 1), filter 4s ease;
    transform: scale(1.16);
    filter: brightness(1.14) saturate(1.08);
}

.intro-shell.is-opening .panorama-room::before {
    opacity: 0;
    transition: opacity 2.8s ease;
}

.intro-view-title {
    height: 74px;
}

.intro-hint {
    z-index: 9;
}

.intro-copy {
    z-index: 10;
}

@media (max-width: 860px) {
    .scene-viewport {
        height: calc(100vh - 62px);
    }

    .intro-view-title {
        height: 62px;
        padding-top: 8px;
    }

    .panorama-image {
        background-size: calc(230% * var(--pan-scale)) auto;
    }
}

.intro-stage {
    grid-template-rows: 1fr auto;
    padding-top: 0;
}

.intro-view-title,
.view-center-badge,
.intro-hint {
    display: none;
}

.scene-viewport {
    height: 100vh;
}

@media (max-width: 860px) {
    .scene-viewport {
        height: 100vh;
    }
}

.site-preview {
    transform: none;
    transition: opacity 1.4s ease 2.9s;
}

.intro-shell.is-opening .site-preview {
    transform: none;
}

.intro-stage {
    transform: none;
    transition: opacity 1.2s ease 4.2s;
}

.intro-shell.is-opening .intro-stage {
    transform: none;
}

.intro-shell.is-opening .panorama-image {
    transform: translateZ(0);
    filter: saturate(1.08) contrast(1.08) brightness(1);
    transition: none;
}

.panorama-room .photo-door {
    opacity: 1;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 38%, rgba(0, 0, 0, 0.28)),
        rgba(12, 12, 12, 0.08);
    transition:
        transform 1.45s cubic-bezier(0.16, 0.82, 0.2, 1),
        box-shadow 1.45s ease;
}

.intro-shell.is-opening .photo-door-left {
    transform: translateX(-104%);
}

.intro-shell.is-opening .photo-door-right {
    transform: translateX(104%);
}

.intro-shell.is-opening .photo-door {
    opacity: 1;
    box-shadow: 0 0 42px rgba(255, 190, 88, 0.26);
}

.intro-shell.is-opening .intro-copy {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.intro-shell.is-opening .intro-stage {
    opacity: 1;
    transform: none;
}

.panorama-room::after {
    content: "";
    position: absolute;
    z-index: 9;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(255, 226, 162, 0.95) 48%, transparent);
    box-shadow: 0 0 0 rgba(255, 208, 116, 0);
    opacity: 0;
    transform: translateX(-50%) scaleY(0.3);
}

.panorama-room .photo-door {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.045) 42%, rgba(0, 0, 0, 0.34)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(255, 211, 126, 0.08), rgba(0, 0, 0, 0.2));
    box-shadow:
        inset 0 0 34px rgba(255, 255, 255, 0.12),
        inset 0 0 0 1px rgba(0, 0, 0, 0.25),
        0 0 0 rgba(255, 196, 98, 0);
    transform: translateX(0) rotateY(0deg);
    transition:
        transform 2s cubic-bezier(0.12, 0.72, 0.14, 1),
        box-shadow 1.4s ease,
        background 1.2s ease;
    will-change: transform;
}

.panorama-room .photo-door-left {
    transform-origin: left center;
}

.panorama-room .photo-door-right {
    transform-origin: right center;
}

.intro-shell.is-opening .panorama-room::after {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
    box-shadow:
        0 0 36px rgba(255, 206, 111, 0.8),
        0 0 120px rgba(255, 188, 80, 0.34);
    transition: opacity 0.45s ease, transform 1.25s cubic-bezier(0.12, 0.72, 0.14, 1), box-shadow 1.2s ease;
}

.intro-shell.is-opening-left .photo-door-left {
    transform: translateX(-102%) rotateY(-9deg);
    box-shadow: 26px 0 64px rgba(0, 0, 0, 0.38);
}

.intro-shell.is-opening-right .photo-door-right {
    transform: translateX(102%) rotateY(9deg);
    box-shadow: -26px 0 64px rgba(0, 0, 0, 0.38);
}

.intro-shell.is-entering .panorama-room::after {
    opacity: 0;
    transform: translateX(-50%) scaleY(1.2);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.intro-shell.is-entering .panorama-room {
    background: #100905;
    transition: background 0.45s ease;
}

.site-preview {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.01);
    transition: opacity 0.7s ease, transform 3.8s cubic-bezier(0.16, 0.78, 0.2, 1);
}

.panorama-image {
    z-index: 2;
    opacity: 1;
    transition: opacity 0.45s ease, filter 0.25s ease;
}

.intro-shell.is-opening .site-preview {
    opacity: 1;
    transform: scale(1);
}

.intro-shell.is-opening .panorama-image,
.intro-shell.is-opening .photo-glow {
    opacity: 0;
    transition: opacity 0.45s ease;
}

.intro-shell.is-opening .intro-topbar {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.intro-shell.is-opening .panorama-room::before {
    opacity: 0;
    transition: opacity 0.45s ease;
}

.panorama-room .photo-door {
    transition:
        transform 3.45s cubic-bezier(0.12, 0.72, 0.14, 1),
        box-shadow 2.3s ease,
        background 1.2s ease;
}

.intro-shell.is-opening-left .photo-door-left {
    transform: translateX(-108%) rotateY(-12deg);
}

.intro-shell.is-opening-right .photo-door-right {
    transform: translateX(108%) rotateY(12deg);
}

/* Keep the revealed website sharp as soon as the doors open. */
.site-preview,
.intro-shell.is-opening .site-preview,
.intro-shell.is-entering .site-preview {
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
}

.site-preview {
    transition: opacity 0.28s ease !important;
}

.intro-shell.is-opening .panorama-image,
.intro-shell.is-entering .panorama-image {
    filter: none !important;
}

.intro-shell.is-opening .photo-door,
.intro-shell.is-entering .photo-door {
    backdrop-filter: none !important;
}

.intro-shell.is-opening .panorama-room::after,
.intro-shell.is-entering .panorama-room::after {
    opacity: 0 !important;
    box-shadow: none !important;
}

.intro-shell.is-opening .site-preview {
    z-index: 20;
}
