/* =============================================================
   muhan.studio — palace of glass and air
   Frutiger-Aero × marble-classical · hexagonal-honeycomb spine
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
    /* Palette */
    --travertine: #FBF7EF;
    --sorbet: #FCEBD9;
    --lilac: #E9D7F2;
    --aqua: #BFE7E3;
    --lagoon: #7FC9D6;
    --carrara: #F3F4F2;
    --vein-lilac: #D7C9E0;
    --vein-aqua: #C9D8DE;
    --slate: #3A4A4F;
    --bronze: #CFA88A;

    /* Type */
    --display: 'Jost', system-ui, sans-serif;
    --body: 'Questrial', system-ui, sans-serif;
    --serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --hangul: 'Gowun Batang', 'Nanum Myeongjo', serif;

    /* Motion */
    --elastic: cubic-bezier(.22, 1.4, .36, 1);
    --ease-soft: cubic-bezier(.4, 0, .2, 1);

    /* Layout */
    --hex-clip: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--body);
    color: var(--slate);
    background: linear-gradient(150deg, var(--travertine), var(--sorbet) 35%, var(--lilac) 70%, var(--aqua));
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.85;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- Latent honeycomb guide ---------- */
.latent-honeycomb {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 50% 50%, transparent 0, transparent 40px, var(--vein-aqua) 40px, var(--vein-aqua) 41px, transparent 41px),
        linear-gradient(60deg, transparent 49.5%, var(--vein-aqua) 49.5%, var(--vein-aqua) 50.5%, transparent 50.5%),
        linear-gradient(-60deg, transparent 49.5%, var(--vein-aqua) 49.5%, var(--vein-aqua) 50.5%, transparent 50.5%);
    background-size: 120px 138px, 120px 138px, 120px 138px;
    mix-blend-mode: multiply;
}

/* ---------- Bubble drift backdrop ---------- */
.bubble-field {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -200px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0%, var(--aqua) 45%, rgba(127, 201, 214, 0.15) 100%);
    box-shadow: 0 8px 30px rgba(127, 201, 214, 0.18), inset 0 8px 14px rgba(255, 255, 255, 0.5);
    animation: bubbleRise linear infinite;
    opacity: 0.55;
    filter: blur(0.5px);
}

.bubble.b1  { left: 6%;  width: 80px;  height: 80px;  animation-duration: 28s; animation-delay: 0s; }
.bubble.b2  { left: 14%; width: 38px;  height: 38px;  animation-duration: 22s; animation-delay: -8s; opacity: 0.4; }
.bubble.b3  { left: 22%; width: 120px; height: 120px; animation-duration: 36s; animation-delay: -18s; filter: blur(2px); opacity: 0.4; }
.bubble.b4  { left: 36%; width: 56px;  height: 56px;  animation-duration: 25s; animation-delay: -3s; }
.bubble.b5  { left: 48%; width: 30px;  height: 30px;  animation-duration: 20s; animation-delay: -12s; opacity: 0.5; }
.bubble.b6  { left: 60%; width: 100px; height: 100px; animation-duration: 32s; animation-delay: -22s; filter: blur(1.5px); opacity: 0.45; }
.bubble.b7  { left: 70%; width: 46px;  height: 46px;  animation-duration: 24s; animation-delay: -7s; }
.bubble.b8  { left: 80%; width: 70px;  height: 70px;  animation-duration: 30s; animation-delay: -16s; opacity: 0.5; }
.bubble.b9  { left: 88%; width: 24px;  height: 24px;  animation-duration: 19s; animation-delay: -2s; opacity: 0.5; }
.bubble.b10 { left: 94%; width: 90px;  height: 90px;  animation-duration: 34s; animation-delay: -26s; filter: blur(2px); opacity: 0.4; }

@keyframes bubbleRise {
    0%   { transform: translate3d(0, 0, 0) translateX(0); opacity: 0; }
    10%  { opacity: var(--max-op, 0.55); }
    50%  { transform: translate3d(0, -55vh, 0) translateX(20px); }
    90%  { opacity: var(--max-op, 0.55); }
    100% { transform: translate3d(0, -110vh, 0) translateX(-15px); opacity: 0; }
}

/* ---------- Compass rail ---------- */
.compass-rail {
    position: fixed;
    top: 50%;
    left: 28px;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 14px;
    pointer-events: auto;
}

.compass-hex {
    display: block;
    width: 22px;
    height: 22px;
    clip-path: var(--hex-clip);
    background: rgba(127, 201, 214, 0.12);
    border: 1px solid rgba(127, 201, 214, 0.4);
    transition: transform 0.7s var(--elastic), background 0.5s ease;
    cursor: pointer;
    position: relative;
}

.compass-hex span {
    position: absolute;
    inset: 0;
    clip-path: var(--hex-clip);
    background: var(--lagoon);
    transform: scale(0.2);
    opacity: 0;
    transition: transform 0.6s var(--elastic), opacity 0.5s ease;
}

.compass-hex.active span {
    transform: scale(1);
    opacity: 1;
}

.compass-hex.active {
    transform: scale(1.18);
}

/* ---------- Procession layout ---------- */
.procession {
    position: relative;
    z-index: 2;
}

.chamber {
    position: relative;
    min-height: 100vh;
    padding: 120px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chamber-header {
    text-align: center;
    margin-bottom: 80px;
    z-index: 4;
}

.chamber-header--inline {
    margin-bottom: 40px;
}

.chamber-numeral {
    font-family: var(--serif);
    font-style: italic;
    color: var(--bronze);
    font-size: 1.4rem;
    letter-spacing: 0.18em;
}

.chamber-numeral em { font-style: italic; }

.chamber-title {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 0.95;
    color: var(--slate);
    margin: 12px 0 18px;
}

.chamber-line {
    font-family: var(--body);
    font-size: 1.0625rem;
    color: var(--slate);
    max-width: 38ch;
    margin: 0 auto;
    opacity: 0.85;
}

.chamber-plate {
    font-family: var(--serif);
    font-style: italic;
    text-align: center;
    color: var(--slate);
    opacity: 0.7;
    max-width: 38ch;
    margin: 64px auto 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.chamber-plate em { color: var(--bronze); }

/* ============== I. THE ATRIUM ============== */
.chamber--atrium {
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 80px;
    overflow: hidden;
}

.column {
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s var(--elastic), transform 1.4s var(--elastic);
}

.column--left { left: 0; }
.column--right { right: 0; }

.chamber--atrium.in-view .column { opacity: 0.65; transform: translateY(0); }
.chamber--atrium.in-view .column--right { transition-delay: 0.15s; }

.atrium-stage {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
}

.atrium-hex {
    position: relative;
    width: min(72vmin, 640px);
    aspect-ratio: 1 / 0.866;
    clip-path: var(--hex-clip);
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.7), transparent 45%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.55), rgba(191, 231, 227, 0.35) 60%, rgba(233, 215, 242, 0.45));
    backdrop-filter: blur(4px);
    box-shadow:
        0 30px 80px rgba(127, 201, 214, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transform: scale(0.6);
    opacity: 0;
    transition: transform 1.6s var(--elastic), opacity 1.2s var(--ease-soft);
    animation: atriumBreathe 7s ease-in-out infinite 2s;
}

.chamber--atrium.in-view .atrium-hex {
    transform: scale(1);
    opacity: 1;
}

@keyframes atriumBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.atrium-hex__gloss {
    position: absolute;
    top: 6%;
    left: 14%;
    width: 30%;
    height: 18%;
    background: radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.85), transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.atrium-hex__rim {
    position: absolute;
    inset: 0;
    clip-path: var(--hex-clip);
    background: linear-gradient(135deg, var(--lagoon), var(--lilac), var(--aqua), var(--lagoon));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    padding: 2px;
    opacity: 0.6;
    pointer-events: none;
}

.atrium-hex__droplets {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.droplet {
    position: absolute;
    top: -10%;
    width: 10px;
    height: 14px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(circle at 30% 25%, #fff 0%, var(--aqua) 50%, var(--lagoon) 100%);
    box-shadow: inset 0 4px 4px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(127, 201, 214, 0.4);
    opacity: 0.85;
    animation: dropFall linear forwards;
}

@keyframes dropFall {
    0%   { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
    8%   { opacity: 0.85; }
    50%  { transform: translateY(40vmin) translateX(8px) scale(1); }
    92%  { opacity: 0.85; }
    100% { transform: translateY(80vmin) translateX(-4px) scale(0.4); opacity: 0; }
}

.atrium-hex__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 3;
}

.atrium-title {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(2.6rem, 8vw, 7rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 0.95;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 0.12em;
    flex-wrap: wrap;
    justify-content: center;
}

.atrium-title__hangul {
    font-family: var(--hangul);
    font-weight: 700;
    color: var(--slate);
    margin-right: 0.18em;
    letter-spacing: -0.02em;
}

.atrium-title__divider {
    color: var(--bronze);
    font-weight: 300;
    margin: 0 0.18em;
    opacity: 0.6;
}

.atrium-title__latin {
    display: inline-flex;
    gap: 0.04em;
}

.atrium-title__latin span {
    display: inline-block;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.9s var(--elastic), opacity 0.7s ease;
}

.chamber--atrium.in-view .atrium-title__latin span {
    transform: translateY(0);
    opacity: 1;
}

.chamber--atrium.in-view .atrium-title__latin span:nth-child(1) { transition-delay: 0.4s; }
.chamber--atrium.in-view .atrium-title__latin span:nth-child(2) { transition-delay: 0.44s; }
.chamber--atrium.in-view .atrium-title__latin span:nth-child(3) { transition-delay: 0.48s; }
.chamber--atrium.in-view .atrium-title__latin span:nth-child(4) { transition-delay: 0.52s; }
.chamber--atrium.in-view .atrium-title__latin span:nth-child(5) { transition-delay: 0.56s; }

.atrium-tagline {
    font-family: var(--serif);
    font-style: italic;
    color: var(--bronze);
    margin-top: 22px;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.8s, transform 1s var(--elastic) 0.8s;
}

.chamber--atrium.in-view .atrium-tagline {
    opacity: 1;
    transform: translateY(0);
}

.atrium-numeral {
    margin-top: 32px;
    font-family: var(--serif);
    font-style: italic;
    color: var(--bronze);
    letter-spacing: 0.2em;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ============== II. THE CONSERVATORY ============== */
.chamber--conservatory {
    padding-top: 100px;
    padding-bottom: 120px;
}

.honeycomb {
    --hex-w: 220px;
    --hex-h: 254px; /* w * 1.155 */
    --gap: 14px;
    display: grid;
    grid-template-columns: repeat(4, var(--hex-w));
    gap: var(--gap);
    justify-content: center;
    margin-top: 30px;
    position: relative;
    z-index: 3;
}

.honeycomb .hex-cell:nth-child(1),
.honeycomb .hex-cell:nth-child(2),
.honeycomb .hex-cell:nth-child(3) {
    grid-column: span 1;
}

.honeycomb .hex-cell:nth-child(1) { grid-column: 1 / 2; transform: translateX(calc(var(--hex-w) / 2 + var(--gap) / 2)); }
.honeycomb .hex-cell:nth-child(2) { grid-column: 2 / 3; transform: translateX(calc(var(--hex-w) / 2 + var(--gap) / 2)); }
.honeycomb .hex-cell:nth-child(3) { grid-column: 3 / 4; transform: translateX(calc(var(--hex-w) / 2 + var(--gap) / 2)); }

.honeycomb .hex-cell:nth-child(4)  { grid-column: 1 / 2; grid-row: 2; margin-top: -65px; }
.honeycomb .hex-cell:nth-child(5)  { grid-column: 2 / 3; grid-row: 2; margin-top: -65px; }
.honeycomb .hex-cell:nth-child(6)  { grid-column: 3 / 4; grid-row: 2; margin-top: -65px; }
.honeycomb .hex-cell:nth-child(7)  { grid-column: 4 / 5; grid-row: 2; margin-top: -65px; }

.honeycomb .hex-cell:nth-child(8)  { grid-column: 1 / 2; grid-row: 3; margin-top: -65px; transform: translateX(calc(var(--hex-w) / 2 + var(--gap) / 2)); }
.honeycomb .hex-cell:nth-child(9)  { grid-column: 2 / 3; grid-row: 3; margin-top: -65px; transform: translateX(calc(var(--hex-w) / 2 + var(--gap) / 2)); }
.honeycomb .hex-cell:nth-child(10) { grid-column: 3 / 4; grid-row: 3; margin-top: -65px; transform: translateX(calc(var(--hex-w) / 2 + var(--gap) / 2)); }

.hex-cell {
    width: var(--hex-w);
    height: var(--hex-h);
    position: relative;
    cursor: pointer;
    opacity: 0;
    transition: transform 0.9s var(--elastic), opacity 0.6s ease;
    will-change: transform;
}

.hex-cell.revealed {
    opacity: 1;
}

.hex-cell__inner {
    position: absolute;
    inset: 0;
    clip-path: var(--hex-clip);
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.85), transparent 50%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.55), rgba(191, 231, 227, 0.35) 60%, rgba(233, 215, 242, 0.4));
    box-shadow:
        0 18px 40px rgba(127, 201, 214, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 18px;
    transition: transform 0.7s var(--elastic), box-shadow 0.6s ease;
}

.hex-cell:hover {
    z-index: 5;
}

.hex-cell:hover .hex-cell__inner {
    transform: scale(1.06);
    box-shadow:
        0 30px 60px rgba(127, 201, 214, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.85),
        0 0 0 2px rgba(127, 201, 214, 0.25);
}

.hex-cell--center .hex-cell__inner {
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), transparent 55%),
        linear-gradient(155deg, var(--carrara), rgba(191, 231, 227, 0.5));
}

.hex-art {
    width: 70%;
    height: 50%;
    margin-top: 18px;
}

.hex-label {
    margin-top: 8px;
    font-family: var(--serif);
    font-style: italic;
    color: var(--slate);
    font-size: 0.95rem;
    text-align: center;
    opacity: 0.85;
}

.hex-label em { color: var(--bronze); margin-right: 0.18em; }

/* ============== III. THE LONG GALLERY ============== */
.chamber--gallery {
    padding: 0;
    height: 320vh;
    position: relative;
}

.gallery-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
}

.gallery-river {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
    margin-top: 40px;
}

.gallery-track {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 100px;
    height: 100%;
    will-change: transform;
    transition: transform 0.1s linear;
}

.work-hex {
    flex: 0 0 auto;
    width: 320px;
    height: 370px;
    position: relative;
    clip-path: var(--hex-clip);
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.9), transparent 55%),
        linear-gradient(155deg, var(--carrara), rgba(191, 231, 227, 0.4) 60%, rgba(233, 215, 242, 0.45));
    box-shadow: 0 24px 50px rgba(127, 201, 214, 0.22);
    transition: transform 0.7s var(--elastic);
}

.work-hex:nth-child(even) {
    transform: translateY(60px);
}

.work-hex__inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 36px;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    clip-path: var(--hex-clip);
}

.work-hex__plate {
    font-family: var(--serif);
    font-style: italic;
    color: var(--bronze);
    font-size: 1.5rem;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
}

.work-hex__name {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--slate);
    line-height: 1.15;
    margin-bottom: 14px;
}

.work-hex__body {
    font-family: var(--body);
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 24ch;
}

.marble-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28%;
    background: linear-gradient(180deg, transparent, rgba(243, 244, 242, 0.6) 30%, var(--carrara) 100%);
    pointer-events: none;
}

.marble-floor__reflection {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(60deg, transparent 49%, var(--vein-aqua) 49.5%, var(--vein-aqua) 50.5%, transparent 51%),
        linear-gradient(-60deg, transparent 49%, var(--vein-lilac) 49.5%, var(--vein-lilac) 50.5%, transparent 51%);
    background-size: 280px 220px;
    opacity: 0.18;
    animation: floorRipple 9s ease-in-out infinite;
}

@keyframes floorRipple {
    0%, 100% { transform: skewX(-1deg); }
    50%      { transform: skewX(1deg); }
}

/* ============== IV. THE REFLECTING POOL ============== */
.chamber--pool {
    padding-bottom: 80px;
}

.pool-stack {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.pool-half {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.pool-half--top { z-index: 3; }

.pool-half--bottom {
    transform: scaleY(-1) skewX(2deg);
    opacity: 0.55;
    margin-top: 6px;
    filter: blur(0.6px);
    animation: poolWobble 6.5s ease-in-out infinite;
}

@keyframes poolWobble {
    0%, 100% { transform: scaleY(-1) skewX(2deg); }
    50%      { transform: scaleY(-1) skewX(-2deg); }
}

.pool-hex {
    width: 180px;
    height: 208px;
    cursor: default;
}

.pool-hex .hex-cell__inner {
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.85), transparent 55%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.6), rgba(191, 231, 227, 0.45), rgba(233, 215, 242, 0.45));
}

.pool-hex.nudged .hex-cell__inner {
    transform: translateY(-8px) scale(1.03);
    transition: transform 0.6s var(--elastic);
}

.ripple-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border: 2px solid var(--lagoon);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.9;
    animation: rippleOut 2.6s ease-out forwards;
    box-shadow: 0 0 14px rgba(127, 201, 214, 0.5);
}

@keyframes rippleOut {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0.9; }
    50%  { opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(14); opacity: 0; }
}

.chamber-plate--pool { margin-top: 64px; }

/* ============== V. THE THRESHOLD ============== */
.chamber--threshold {
    background: linear-gradient(180deg, transparent 0%, rgba(251, 247, 239, 0.6) 50%, var(--travertine) 100%);
    padding-top: 100px;
    padding-bottom: 140px;
}

.threshold-stage {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.threshold-fade-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 200px);
    gap: 12px;
    justify-content: center;
    margin-bottom: 60px;
}

.threshold-fade-grid .t-hex { width: 200px; height: 230px; }
.threshold-fade-grid .t-hex:nth-child(2) { margin-top: -60px; }
.threshold-fade-grid .t-hex:nth-child(5) { margin-top: -60px; }
.threshold-fade-grid .t-hex:nth-child(8) { margin-top: -60px; }
.threshold-fade-grid .t-hex:nth-child(4) { transform: translateY(-30px); }
.threshold-fade-grid .t-hex:nth-child(6) { transform: translateY(-30px); }

.t-hex .hex-cell__inner {
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.85), transparent 50%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.6), rgba(191, 231, 227, 0.4));
    transition: opacity 1.2s ease, transform 1.4s var(--elastic);
}

.t-hex--center .hex-cell__inner {
    background:
        radial-gradient(circle at 50% 50%, #fff 0%, rgba(252, 235, 217, 0.6) 60%, var(--travertine) 100%);
    box-shadow:
        0 0 50px rgba(255, 255, 255, 0.8),
        inset 0 0 0 1px rgba(207, 168, 138, 0.4);
    transition: clip-path 1.4s var(--elastic), transform 1.2s var(--elastic);
}

.t-hex.faded .hex-cell__inner {
    opacity: 0;
    transform: scale(0.9);
}

.t-hex--center.opened .hex-cell__inner {
    transform: scale(1.25);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow:
        0 0 100px rgba(255, 255, 255, 0.9),
        inset 0 0 0 2px rgba(207, 168, 138, 0.5);
}

.threshold-line {
    font-family: var(--serif);
    font-style: italic;
    color: var(--slate);
    font-size: 1.4rem;
    text-align: center;
    margin: 20px 0 50px;
    opacity: 0.85;
    max-width: 38ch;
}

.threshold-name {
    width: 100%;
    max-width: 680px;
    height: auto;
    margin-top: 20px;
}

.threshold-name__text {
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    transition: stroke-dashoffset 3s ease-out;
}

.threshold-name__text.drawn {
    stroke-dashoffset: 0;
}

/* ---------- Film grain ---------- */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 60;
    opacity: 0.04;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: multiply;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .chamber {
        padding: 80px 24px;
    }

    .compass-rail {
        left: 14px;
    }

    .compass-hex {
        width: 16px;
        height: 16px;
    }

    .column { width: 50px; opacity: 0.4 !important; }

    .atrium-hex { width: min(86vw, 460px); }
    .atrium-title { font-size: clamp(2rem, 14vw, 4rem); }

    .honeycomb {
        --hex-w: 84vw;
        --hex-h: 92vw;
        grid-template-columns: 1fr;
    }

    .honeycomb .hex-cell {
        grid-column: 1 / -1 !important;
        transform: none !important;
        margin-top: -8vw !important;
    }

    .honeycomb .hex-cell:first-child { margin-top: 0 !important; }

    .chamber--gallery { height: auto; }

    .gallery-pin {
        position: relative;
        height: auto;
        padding: 80px 0;
    }

    .gallery-track {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 20px;
    }

    .work-hex {
        width: 80vw;
        height: 90vw;
    }

    .work-hex:nth-child(even) {
        transform: none;
    }

    .threshold-fade-grid {
        grid-template-columns: repeat(3, 28vw);
        gap: 6px;
    }

    .threshold-fade-grid .t-hex { width: 28vw; height: 32vw; }
    .threshold-fade-grid .t-hex:nth-child(2) { margin-top: -8vw; }
    .threshold-fade-grid .t-hex:nth-child(5) { margin-top: -8vw; }
    .threshold-fade-grid .t-hex:nth-child(8) { margin-top: -8vw; }
}

@media (max-width: 540px) {
    .chamber-title { font-size: clamp(1.6rem, 8vw, 2.4rem); }
    .threshold-line { font-size: 1.1rem; }
    .threshold-name { width: 92%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .atrium-hex { transform: scale(1); opacity: 1; }
    .column { opacity: 0.65; transform: none; }
    .atrium-title__latin span { transform: none; opacity: 1; }
    .atrium-tagline { opacity: 1; transform: none; }
    .hex-cell { opacity: 1; }
}
