:root {
    /* DESIGN vocabulary: IntersectionObserver` to toggle `animation-play-state` IntersectionObserver` with a 0.15 threshold to trigger individual element `spring` scale-ins when they enter the viewport. Each element animates independently based on its own intersection */
    --cream: #faf7f5;
    --plum: #2d2040;
    --muted: #4a3f5c;
    --dust: #9b8fb0;
    --lavender: #d4b8e8;
    --rose: #e8b4c8;
    --mint: #b8e8d4;
    --butter: #e8e0b4;
    --periwinkle: #b4c0e8;
    --tier-one: #e8d5ef;
    --tier-two: #e0cde8;
    --tier-three: #d8c5e0;
    --tier-four: #d0bdd8;
    --shadow: rgba(180, 140, 200, 0.15);
    --shadow-soft: rgba(180, 140, 200, 0.1);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--cream);
    color: var(--plum);
    font-family: "Cormorant Garamond", serif;
}

.showroom-shell {
    width: 100%;
    min-height: 100vh;
    background: var(--cream);
}

.home-hex {
    position: fixed;
    top: clamp(18px, 3vw, 38px);
    left: 50%;
    z-index: 20;
    width: clamp(86px, 10vw, 136px);
    height: clamp(78px, 9vw, 122px);
    transform: translateX(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
    animation: home-arrive 900ms var(--spring) both;
}

.hex-clip {
    width: 100%;
    height: 100%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    position: relative;
}

.hex-surface {
    --shine-x: 30%;
    --shine-y: 25%;
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(24px, 4vw, 48px);
    border-radius: 20px;
    background-color: var(--lavender);
    background-image: radial-gradient(ellipse at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.35) 24%, transparent 53%);
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.05), 0 20px 60px var(--shadow), 0 4px 12px var(--shadow-soft);
    transform: translateZ(0) scale(1);
    transition: transform 600ms var(--spring), filter 600ms var(--spring), box-shadow 600ms var(--spring), background-position 600ms var(--spring);
}

.hex-surface::after {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 45%;
    background: radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.42), transparent 22%), linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 52%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.hex-clip:hover .hex-surface,
.word-hex:hover {
    --shine-x: 44%;
    --shine-y: 18%;
    transform: scale(1.04);
    box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.07), 0 28px 78px rgba(180, 140, 200, 0.25), 0 8px 22px var(--shadow);
}

.home-label,
.section-heading span {
    color: var(--dust);
    font-family: "DM Sans", sans-serif;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
.word-hex span {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--plum);
    text-shadow: 0 1px 0 var(--tier-one), 0 2px 0 var(--tier-two), 0 3px 0 var(--tier-three), 0 4px 0 var(--tier-four), 0 5px 15px rgba(180, 140, 200, 0.3);
}

.foyer {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 8vh 5vw;
}

.foyer-stage {
    width: min(82vh, 88vw, 720px);
    aspect-ratio: 1;
    perspective: 1000px;
}

.foyer-hex {
    width: 100%;
    height: 100%;
    animation: foyer-wobble 8s ease-in-out infinite alternate;
    transform-style: preserve-3d;
}

.foyer-hex.is-paused {
    animation-play-state: paused;
}

.foyer-surface {
    background-color: var(--lavender);
}

.foyer h1 {
    position: relative;
    z-index: 2;
    font-size: clamp(5rem, 12vw, 10rem);
}

.foyer p {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-style: italic;
    letter-spacing: 0.04em;
}

.sharp-arrow {
    position: absolute;
    bottom: 13%;
    left: 50%;
    width: 90px;
    height: 34px;
    transform: translateX(-50%);
}

.sharp-arrow::before,
.sharp-arrow::after {
    content: "";
    position: absolute;
    top: 8px;
    width: 48px;
    height: 1px;
    background: rgba(45, 32, 64, 0.45);
    transform-origin: center;
    animation: arrow-pulse 1200ms var(--spring) infinite;
}

.sharp-arrow::before {
    right: 50%;
    transform: rotate(24deg);
}

.sharp-arrow::after {
    left: 50%;
    transform: rotate(-24deg);
}

.crystal {
    position: absolute;
    z-index: 1;
    display: block;
    background: rgba(255, 255, 255, 0.16);
    clip-path: polygon(50% 0, 100% 40%, 68% 100%, 0 74%, 14% 18%);
}

.crystal-one {
    top: 15%;
    right: 24%;
    width: 82px;
    height: 118px;
    transform: rotate(22deg);
}

.crystal-two {
    bottom: 18%;
    left: 21%;
    width: 74px;
    height: 98px;
    transform: rotate(-36deg);
}

.section-space {
    min-height: 100vh;
    padding: clamp(70px, 9vw, 130px) clamp(18px, 5vw, 80px);
}

.gallery {
    min-height: 150vh;
}

.section-heading {
    text-align: center;
    margin-bottom: clamp(34px, 6vw, 72px);
}

.section-heading h2 {
    margin-top: 0.35rem;
    font-size: clamp(3rem, 7vw, 8rem);
}

.honeycomb {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    justify-content: center;
}

.gallery-comb {
    grid-template-columns: repeat(6, minmax(86px, 170px));
    grid-auto-rows: minmax(152px, 1fr);
    gap: 32px 28px;
}

.hex-cell {
    height: clamp(176px, 18vw, 280px);
    grid-column: span 2;
    opacity: 0;
    transform: scale(0.6);
}

.hex-cell.offset-row:nth-of-type(4) {
    grid-column: 2 / span 2;
}

.hex-cell.offset-row:nth-of-type(5) {
    grid-column: 4 / span 2;
}

.color-lavender .hex-surface,
.color-lavender.word-hex { background-color: var(--lavender); }
.color-rose .hex-surface,
.color-rose.word-hex { background-color: var(--rose); }
.color-mint .hex-surface,
.color-mint.word-hex { background-color: var(--mint); }
.color-butter .hex-surface,
.color-butter.word-hex { background-color: var(--butter); }
.color-periwinkle .hex-surface,
.color-periwinkle.word-hex { background-color: var(--periwinkle); }

.bubble-photo {
    position: relative;
    width: 76%;
    height: 76%;
    overflow: hidden;
    border-radius: 50%;
    filter: grayscale(100%) contrast(1.3);
    background-color: currentColor;
    box-shadow: inset -12px -18px 34px rgba(45, 32, 64, 0.18), inset 12px 14px 24px rgba(255, 255, 255, 0.38), 0 18px 35px rgba(45, 32, 64, 0.1);
    mix-blend-mode: multiply;
}

.bubble-photo::before,
.bubble-photo::after {
    content: "";
    position: absolute;
    inset: 0;
}

.bubble-photo::before {
    background: var(--photo-pattern);
    filter: contrast(1.2);
}

.bubble-photo::after {
    background: radial-gradient(circle at var(--shine-x, 28%) var(--shine-y, 20%), rgba(255, 255, 255, 0.84), transparent 18%), linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 60%);
    mix-blend-mode: screen;
}

.photo-arc { --photo-pattern: repeating-radial-gradient(circle at 20% 18%, #2d2040 0 3px, transparent 4px 18px), linear-gradient(135deg, #d4b8e8, #2d2040); }
.photo-ripple { --photo-pattern: repeating-linear-gradient(22deg, #2d2040 0 5px, #e8b4c8 6px 18px), radial-gradient(circle at 70% 20%, #faf7f5, #2d2040); }
.photo-glass { --photo-pattern: conic-gradient(from 30deg, #2d2040, #b8e8d4, #faf7f5, #2d2040, #b8e8d4); }
.photo-fabric { --photo-pattern: repeating-linear-gradient(90deg, #2d2040 0 2px, transparent 3px 13px), repeating-linear-gradient(0deg, #e8e0b4 0 8px, #2d2040 9px 11px); }
.photo-prism { --photo-pattern: linear-gradient(120deg, transparent 0 22%, #2d2040 23% 28%, transparent 29% 52%, #faf7f5 53% 58%, transparent 59%), linear-gradient(30deg, #b4c0e8, #2d2040); }
.photo-orbit { --photo-pattern: radial-gradient(ellipse at 50% 50%, transparent 0 26%, #2d2040 27% 31%, transparent 32% 50%, #2d2040 51% 54%, transparent 55%), linear-gradient(145deg, #e8b4c8, #faf7f5); }
.photo-fold { --photo-pattern: linear-gradient(140deg, #2d2040 0 16%, #b8e8d4 17% 34%, #faf7f5 35% 42%, #2d2040 43% 56%, #b8e8d4 57% 100%); }
.photo-void { --photo-pattern: radial-gradient(circle at 50% 50%, #faf7f5 0 14%, #2d2040 15% 24%, transparent 25%), repeating-conic-gradient(from 15deg, #d4b8e8 0 12deg, #2d2040 13deg 16deg); }

.cut-corner .hex-surface::before {
    content: "";
    position: absolute;
    top: -2px;
    right: 9%;
    z-index: 3;
    width: 34%;
    height: 1px;
    background: rgba(45, 32, 64, 0.18);
    transform: rotate(-29deg);
}

.cut-alt .hex-surface::before {
    right: auto;
    left: 9%;
    transform: rotate(29deg);
}

.archive-comb {
    grid-template-columns: repeat(5, minmax(96px, 170px));
    gap: 28px;
}

.word-hex {
    position: relative;
    aspect-ratio: 1;
    border: 0;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    overflow: hidden;
    border-radius: 20px;
    background-image: radial-gradient(ellipse at var(--shine-x, 30%) var(--shine-y, 25%), rgba(255, 255, 255, 0.66) 0%, transparent 52%);
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.05), 0 20px 60px var(--shadow), 0 4px 12px var(--shadow-soft);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.6);
    transition: transform 600ms var(--spring), filter 600ms var(--spring), box-shadow 600ms var(--spring);
}

.word-hex:hover {
    filter: brightness(0.85);
}

.word-hex span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.word-hex:hover span {
    text-shadow: 0 1px 0 var(--tier-one), 0 2px 0 var(--tier-two), 0 3px 0 var(--tier-three), 0 4px 0 var(--tier-four), 0 6px 20px rgba(45, 32, 64, 0.34);
}

.word-hex.expanding {
    z-index: 30;
    transform: scale(9);
    filter: brightness(1);
}

.statement {
    min-height: 80vh;
    display: grid;
    place-items: center;
    padding: clamp(52px, 7vw, 100px) 0 clamp(86px, 10vw, 140px);
}

.statement-hex {
    width: min(100vw, 1280px);
    height: clamp(460px, 58vw, 720px);
    opacity: 0;
    transform: scale(0.6);
}

.statement-surface {
    background-color: var(--lavender);
    padding: clamp(48px, 7vw, 96px);
}

.statement p {
    position: relative;
    z-index: 2;
    max-width: 680px;
    color: var(--plum);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.7;
    text-align: center;
}

.angle-frame {
    position: relative;
    z-index: 2;
    width: min(220px, 34vw);
    height: 26px;
    margin: 0 auto clamp(22px, 4vw, 44px);
}

.angle-frame.bottom {
    margin: clamp(22px, 4vw, 44px) auto 0;
    transform: rotate(180deg);
}

.angle-frame::before,
.angle-frame::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 52%;
    height: 1px;
    background: rgba(45, 32, 64, 0.22);
}

.angle-frame::before {
    left: 0;
    transform: rotate(14deg);
}

.angle-frame::after {
    right: 0;
    transform: rotate(-14deg);
}

.reveal-item.is-visible,
.word-hex.is-visible {
    animation: inflate-in 700ms var(--spring) both;
}

@keyframes inflate-in {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes foyer-wobble {
    from { transform: rotateY(-3deg); }
    to { transform: rotateY(3deg); }
}

@keyframes arrow-pulse {
    0%, 100% { width: 40px; opacity: 0.38; }
    50% { width: 80px; opacity: 0.84; }
}

@keyframes home-arrive {
    from { opacity: 0; transform: translateX(-50%) scale(0.72); }
    to { opacity: 1; transform: translateX(-50%) scale(1); }
}

@media (max-width: 900px) {
    .gallery-comb {
        grid-template-columns: repeat(4, minmax(90px, 180px));
    }

    .hex-cell.offset-row:nth-of-type(4),
    .hex-cell.offset-row:nth-of-type(5) {
        grid-column: span 2;
    }

    .archive-comb {
        grid-template-columns: repeat(3, minmax(94px, 160px));
    }
}

@media (max-width: 768px) {
    .gallery-comb,
    .archive-comb {
        grid-template-columns: minmax(210px, 76vw);
        gap: 24px;
    }

    .hex-cell,
    .hex-cell.offset-row:nth-of-type(4),
    .hex-cell.offset-row:nth-of-type(5) {
        grid-column: 1;
        height: min(76vw, 330px);
    }

    .word-hex {
        width: min(76vw, 260px);
        justify-self: center;
    }

    .statement-hex {
        width: 100vw;
        height: 620px;
    }
}
