:root {
    --bg: #0b0c10; /* deep background similar to dark hero */
    --card: #121319; /* card background */
    --muted: #9aa3af; /* secondary text */
    --text: #f5f7fa; /* primary text */
    --accent: #3b82f6; /* blue accent */
    --ring: rgba(59,130,246,.35);
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --hero-h: 520px;
    --nav-h: 110px;
    --pad: 48px;
    --textM: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.78);
    --line: rgba(255, 255, 255, 0.22);
    --panel-hover: rgba(255, 255, 255, 0.12);
    --panel-idle: rgba(0, 0, 0, 0.18);
    --bg-0: #07090d;
    --bg-1: #0b0e14;
    --bg-2: #111520;
    --bg-3: #151a26;
    --ink: #f4efe6;
    --ink-soft: #c3bdb0;
    --ink-dim: #7d7768;
    --line: rgba(244, 239, 230, 0.12);
    --line-bright: rgba(244, 239, 230, 0.35);
    --gold: #c9a14a;
    --gold-bright: #e8c574;
    --gold-dim: #8f7535;
    --time: #b68d4a;
    --emotion: #c56b6b;
    --digital: #6fb0c8;
    --culture: #9a8bbd;
    --ease: cubic-bezier(.2, .85, .3, 1);
    --ease-out: cubic-bezier(.2, .9, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    background:
      radial-gradient(1600px 900px at 50% 0%, #131828 0%, var(--bg-0) 60%, #040608 100%);
    color: var(--ink);
    font-family: "Manrope", system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--bg-0); }

/* Grain overlay for cinematic feel */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
      radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.5;
    mix-blend-mode: overlay;
    z-index: 1000;
}

h1, h2, h3, h4 { font-family: "Fraunces", "Cormorant Garamond", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }



.navbar-container {
    display: flex;
    flex-direction: column;
    position: relative;
    height: var(--nav-h, 110px);
    z-index: 100;
}

.hero {
    position: relative;
    height: var(--hero-h);
    width: 100%;
    overflow: hidden;
    background: #0b0f14;
    margin-top: 5px;
}

/* 背景图层：一次只显示一张 */
.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
    transition: opacity 420ms cubic-bezier(.2,.8,.2,1);
    will-change: opacity;
}

.bg-current {
    opacity: 1;
    z-index: 1;
}

.bg-next {
    opacity: 0;
    z-index: 2;
}

.hero,
.hero * {
    user-select: none;
    -webkit-user-select: none;
}

.hero__bg::before,
.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
    /* 新增：避免图片未就绪时闪白/闪空 */
    background-color: #0b0f14;
    /* 新增：优化过渡渲染 */
    will-change: opacity;
}

/* 当前图（显示） */
.hero__bg::before {
    background-image: var(--bg-current);
    opacity: 1;
    transition: opacity 420ms var(--ease);
}

/* 下一张图（用来做淡入淡出） */
.hero__bg::after {
    background-image: var(--bg-next);
    opacity: 0;
    transition: opacity 420ms var(--ease);
}

.hero.is-switching .hero__bg::before {
    opacity: 0;
}

.hero.is-switching .hero__bg::after {
    opacity: 1;
}

.hero:hover .hero__navArrows {
    opacity: 1;
}

/* 整体暗化 + 轻微玻璃感 */
.hero__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__top {
    position: absolute;
    left: var(--pad);
    top: 36px;
    right: var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 2;
}

.hero__headline {
    font-size: 44px;
    font-weight: 500;
    letter-spacing: 0.2px;
    margin: 0;
}

.hero__navArrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 240ms ease;
    z-index: 3;
}

.hero__arrowBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    /* border-radius: 999px; */
    /* border: 1px solid rgba(255,255,255,0.3); */
    /* background: rgba(0, 0, 0, 0.25); */
    /* backdrop-filter: blur(6px); */
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    pointer-events: auto; /* 恢复按钮可点击 */
    transition: all 200ms ease;
}

.arrow-icon {
    width: 28px;      /* 控制大小 */
    height: 28px;
    stroke: white;    /* 线条颜色 */
    stroke-width: 2; /* 粗细 */
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero__arrowBtn:first-child {
    left: 0px;
}

.hero__arrowBtn:last-child {
    right: 0px;
}

.hero__arrowBtn:hover .arrow-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.hero__arrowBtn:hover svg {
    transform: translateX(-2px);
}

/* 底部四栏 */
.hero__panels {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    z-index: 2;
    display: flex;                 /* 关键：改成横向长条 */
    flex-wrap: nowrap;
    transition: transform 500ms cubic-bezier(.2,.8,.2,1);
    will-change: transform;
}

.panel {
    position: relative;
    padding: 28px 28px 22px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--panel-idle);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    cursor: pointer;
    transition: background 240ms var(--ease);
    overflow: hidden;
    /* 新增 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;   /* 关键：内容贴到底部 */
    flex: 0 0 25%; 
}

.panel:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

/* title 永远显示、位置不变（只做上浮动效，不改变布局） */
.panel__title {
    font-size: 30px;
    font-weight: 500;
    color: var(--textM);
    letter-spacing: 0.2px;
    margin: 0;
    line-height: 1.06;
    transform: translateY(18px);
    transition: transform 260ms var(--ease);
    will-change: transform;
}

.panel__meta {
    margin-top: 0px;
    max-width: 520px;
    color: var(--textM);
    font-size: 16px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}

.panel__ctaRow {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 240ms var(--ease), transform 240ms var(--ease);
    user-select: none;
}

/* Discover 在箭头左侧 */
.panel__discover {
    font-weight: 600;
    letter-spacing: 0.2px;
    font-size: 15px;
    color: var(--textM);
}

.panel__chev {
    width: 26px;
    height: 26px;
    /* border-radius: 999px; */
    /* border: 1px solid var(--line); */
    display: grid;
    place-items: center;
    /* background: rgba(0, 0, 0, 0.18); */
    color: var(--textM);
}

/* Hover 效果：底色变灰、title 上浮、说明+discover 出现 */
.panel.is-active,
.panel:hover {
    background: var(--panel-hover);
}

.panel.is-active .panel__title,
.panel:hover .panel__title {
    transform: translateY(-12px);
}

.panel.is-active .panel__meta,
.panel:hover .panel__meta {
    opacity: 1;
    transform: translateY(0);
}

.panel.is-active .panel__ctaRow,
.panel:hover .panel__ctaRow {
    opacity: 1;
    transform: translateY(0);
}

/* 一个小小的底部流光线（可删） */
.panel::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 14px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.0), rgba(255,255,255,0.28), rgba(255,255,255,0.0));
    opacity: 0;
    transition: opacity 240ms var(--ease);
}

.panel.is-active::after,
.panel:hover::after {
    opacity: 1;
}

/* ============================================================
   HERO · ART FOR DIMENSION
   ============================================================ */
.hero_b {
    padding: 130px 40px 80px;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Subtle atmospheric glow behind hero */
.hero_b::before {
    content: "";
    position: absolute;
    top: 20%; left: 50%;
    width: 900px; height: 900px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(201, 161, 74, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-eyebrow {
    font-size: 12px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    z-index: 1;
}

.hero-title {
    font-family: "Fraunces", serif;
    font-size: clamp(56px, 8vw, 120px);
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1;
    margin: 0;
    text-align: center;
    z-index: 1;
}
.hero-title em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}

.hero-sub {
    margin: 20px 0 0;
    font-size: 16px;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    text-align: center;
    max-width: 600px;
    z-index: 1;
}

/* ============================================================
   DIMENSION TABS (C3-style)
   ============================================================ */
.dim-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1100px;
    width: 100%;
    margin: 80px auto 50px;
    z-index: 1;
    position: relative;
}
.dim-tab {
    padding: 22px 20px 18px;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    letter-spacing: 0.01em;
    text-align: left;
    color: var(--ink-dim);
    border-top: 1px solid var(--line);
    position: relative;
    transition: color .35s var(--ease);
}
.dim-tab::before {
    content: "";
    position: absolute;
    top: -1px; left: 0;
    height: 1px;
    width: 100%;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease);
}
.dim-tab.active { color: var(--ink); font-weight: 600; }
.dim-tab.active::before { transform: scaleX(1); }
.dim-tab:hover { color: var(--ink-soft); }

/* ============================================================
   HERO STAGE: cube on left, content on right
   ============================================================ */
.hero-stage {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    z-index: 1;
    position: relative;
    min-height: 600px;
}

/* ---------- Cube stage ---------- */
.cube-stage {
    position: relative;
    height: 600px;
    perspective: 1400px;
    perspective-origin: 50% 45%;
}

.cube-scene {
    position: absolute;
    top: 50%; left: 50%;
    width: 1px; height: 1px;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(-18deg) rotateY(-28deg);
    animation: sceneOrbit 28s var(--ease) infinite;
}
.cube-scene.paused { animation-play-state: paused; }

@keyframes sceneOrbit {
    0%   { transform: translate(-50%, -50%) rotateX(-18deg) rotateY(-28deg); }
    50%  { transform: translate(-50%, -50%) rotateX(-14deg) rotateY(22deg); }
    100% { transform: translate(-50%, -50%) rotateX(-18deg) rotateY(-28deg); }
}

/* --- Outer frosted-glass cube --- */
.outer-cube {
    position: absolute;
    top: 50%; left: 50%;
    width: 320px; height: 320px;
    transform-style: preserve-3d;
    transform: translate3d(-160px, -160px, 0);
    transition: opacity .6s var(--ease);
}
.outer-cube.dim { opacity: 0.22; }

.face {
    position: absolute;
    width: 320px; height: 320px;
    background:
      linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 60%, rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow:
      inset 0 0 60px rgba(255,255,255,0.03),
      inset 0 0 1px rgba(255,255,255,0.25);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    /* Critical: let clicks pass through glass to the books behind */
    pointer-events: none;
}
/* Subtle inner light on faces */
.face::after {
    content: "";
    position: absolute;
    inset: 10%;
    border: 1px solid rgba(255,255,255,0.06);
    pointer-events: none;
}

.f-front  { transform: translateZ(160px); }
.f-back   { transform: translateZ(-160px) rotateY(180deg); }
.f-right  { transform: translateX(160px) rotateY(90deg); }
.f-left   { transform: translateX(-160px) rotateY(-90deg); }
.f-top    { transform: translateY(-160px) rotateX(90deg); }
.f-bottom {
    transform: translateY(160px) rotateX(-90deg);
    background:
      linear-gradient(145deg, rgba(20,22,30,0.95), rgba(15,17,24,0.9));
    border-color: rgba(255,255,255,0.1);
}
/* Bottom gets a grid like a museum floor */
.f-bottom::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      linear-gradient(0deg, rgba(201,161,74,0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(201,161,74,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* --- Books container --- */
.books {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    transform-style: preserve-3d;
}

/* --- Individual book --- */
.book {
    position: absolute;
    top: 0; left: 0;
    width: 110px;
    height: 220px;
    transform-style: preserve-3d;
    /* Rotate around the book-body's center axis (left:-55 offset puts bb center
       at book-local x=0), not around the book element's own center — otherwise
       rotateY(90) would fling every book +55 in X and +55 in Z. */
    transform-origin: 0 50%;
    /* Centers book body around its anchor point */
    transform: translate3d(var(--bx), var(--by), var(--bz)) rotateY(var(--bry, 0deg));
    transition: transform 1.2s var(--ease);
    cursor: pointer;
}

.book-body {
    position: absolute;
    top: -110px; left: -55px;
    width: 110px;
    height: 220px;
    transform-style: preserve-3d;
    transition: transform .8s var(--ease);
}

/* Each book face */
.bf {
    position: absolute;
    left: 0; top: 0;
    width: 110px;
    height: 220px;
    background: linear-gradient(160deg, var(--book-color, #2a2f3e), var(--book-color-dark, #15171f));
    box-shadow: inset 0 0 30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 26px 14px;
    overflow: hidden;
}

/* Subtle texture overlay on covers */
.bf::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    pointer-events: none;
}

.bf-front { transform: translateZ(25px); }
.bf-back  { transform: translateZ(-25px) rotateY(180deg); background: linear-gradient(160deg, var(--book-color-dark), #0d0e14); }
.bf-top {
    width: 110px; height: 50px;
    transform: translateY(-25px) rotateX(90deg);
    background:
      repeating-linear-gradient(90deg, #e5dfc7 0 1px, #cac2a3 1px 2px),
      linear-gradient(180deg, #d6cfad, #b9b087);
    box-shadow: inset 0 0 18px rgba(0,0,0,0.4);
    padding: 0;
}
.bf-bottom {
    width: 110px; height: 50px;
    transform: translateY(195px) rotateX(-90deg);
    background:
      repeating-linear-gradient(90deg, #d6cfad 0 1px, #b9b087 1px 2px);
    padding: 0;
}
.bf-spine {
    width: 50px; height: 220px;
    transform: translateX(-25px) rotateY(-90deg);
    background: linear-gradient(90deg, var(--book-color-dark), var(--book-color));
    padding: 0;
    display: flex; align-items: center; justify-content: center;
}
.bf-edge {
    width: 50px; height: 220px;
    transform: translateX(85px) rotateY(90deg);
    background:
      repeating-linear-gradient(0deg, #d6cfad 0 1px, #b9b087 1px 2px);
    padding: 0;
}

/* Cover-front label */
.cover-label {
    font-family: "Fraunces", serif;
    font-weight: 400;
    font-size: 22px;
    color: var(--gold-bright);
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2;
}
.cover-num {
    position: absolute;
    top: 24px; left: 50%;
    transform: translateX(-50%);
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 16px;
    color: var(--gold-bright);
    opacity: 0.8;
    letter-spacing: 0.2em;
}

.spine-label {
    font-family: "Fraunces", serif;
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* Book color variants */
.book[data-dim="time"]    { --book-color: #3e3324; --book-color-dark: #1c1712; }
.book[data-dim="emotion"] { --book-color: #4a1f1f; --book-color-dark: #1a0d0d; }
.book[data-dim="digital"] { --book-color: #1a3240; --book-color-dark: #0a141a; }
.book[data-dim="culture"] { --book-color: #2a2149; --book-color-dark: #120e24; }

/* Hover: gentle lift within cube */
.book:hover .book-body { transform: translateY(-14px); }
.book:hover .bf-front { box-shadow: inset 0 0 30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.12), 0 0 22px rgba(201,161,74,0.25); }

/* Tab-highlighted book: mild glow (not opened) */
.book.highlighted .bf-front { box-shadow: inset 0 0 30px rgba(0,0,0,0.6), 0 0 0 1px var(--gold-bright), 0 0 30px rgba(232,197,116,0.4); }

/* --- OPEN STATE --- */
.book.open {
    transform: translate3d(var(--bx-open, 0px), -260px, var(--bz-open, 0px)) rotateY(0deg);
    z-index: 10;
}

.book.open .book-body {
    transform: rotateX(6deg);
}

/* Front cover flips open on the spine (left edge) */
.book.open .bf-front {
    transform: translateZ(25px) rotateY(-158deg);
    transform-origin: left center;
}

/* The inside spread appears between the opened cover and the rest of the book */
.book-open-content {
    position: absolute;
    top: -110px; left: -55px;
    width: 110px;
    height: 220px;
    transform: translateZ(26px);
    transform-style: preserve-3d;
    pointer-events: none;
}

/* Open content: two-page spread, revealed on open */
.book-spread {
    position: absolute;
    top: 0; left: 0;
    width: 110px;
    height: 220px;
    background: linear-gradient(95deg, #f5efdc 0%, #fbf7e7 48%, #e8e1c9 52%, #f5efdc 100%);
    transform: rotateY(0deg);
    transform-origin: left center;
    opacity: 0;
    transition: opacity .5s var(--ease) 0.4s;
    box-shadow:
      inset 5px 0 10px rgba(0,0,0,0.1),
      inset -5px 0 10px rgba(0,0,0,0.1),
      inset 0 0 2px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* The spread expands dramatically (scaleX) when opened to look like two pages */
.book.open .book-spread {
    opacity: 1;
    transform: rotateY(0) scaleX(2) translateX(0px);
}
/* Subtle fold gutter */
.book-spread::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25), transparent);
    transform: translateX(-1px);
    z-index: 2;
}

.spread-content {
    position: absolute;
    inset: 0;
    display: flex;
    color: #2a2420;
    font-family: "Cormorant Garamond", Georgia, serif;
    padding: 12px 10px;
    gap: 4px;
    font-size: 8px;
    line-height: 1.4;
}
.spread-left, .spread-right {
    flex: 1;
    padding: 2px 4px;
    display: flex;
    flex-direction: column;
}
.spread-left {
    align-items: center;
    justify-content: center;
    color: rgba(42,36,32,0.9);
}
.spread-left .glyph {
    font-family: "Fraunces", serif;
    font-size: 38px;
    font-style: italic;
    line-height: 1;
    margin-bottom: 6px;
    color: var(--dim-color, #8b5a2b);
}
.spread-left .glyph-sub {
    font-size: 6px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #7a6b55;
}
.spread-right h4 {
    font-family: "Fraunces", serif;
    font-size: 10px;
    margin: 0 0 4px;
    color: var(--dim-color, #8b5a2b);
    letter-spacing: 0.04em;
}
.spread-right p {
    margin: 0 0 4px;
    font-size: 7px;
    line-height: 1.5;
}

.book[data-dim="time"]    { --dim-color: #8b5a2b; }
.book[data-dim="emotion"] { --dim-color: #a84545; }
.book[data-dim="digital"] { --dim-color: #3a7a94; }
.book[data-dim="culture"] { --dim-color: #604ea8; }

/* ---------- Right-hand info panel ---------- */
.dim-panels {
    position: relative;
    min-height: 520px;
}
.dim-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    pointer-events: none;
}
.dim-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dim-panel h2 {
    font-size: 56px;
    font-weight: 300;
    margin: 0 0 24px;
    line-height: 1;
    color: var(--ink);
}
.dim-panel h2 em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}

.dim-panel > p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 440px;
    margin: 0 0 30px;
}

.dim-list {
    list-style: none;
    padding: 0; margin: 0 0 40px;
}
.dim-list li {
    padding: 14px 0 14px 22px;
    border-top: 1px solid var(--line);
    position: relative;
    font-size: 15px;
    color: var(--ink);
    transition: color .2s ease, padding-left .3s var(--ease);
    cursor: pointer;
}
.dim-list li:last-child { border-bottom: 1px solid var(--line); }
.dim-list li::before {
    content: "→";
    position: absolute;
    left: 0; top: 14px;
    color: var(--gold);
    opacity: 0.5;
    transition: all .3s var(--ease);
}
.dim-list li:hover { color: var(--gold-bright); padding-left: 30px; }
.dim-list li:hover::before { opacity: 1; transform: translateX(3px); }

.dim-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-bright);
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
    transition: border-color .3s ease, gap .3s var(--ease);
}
.dim-cta:hover {
    border-color: var(--gold-bright);
    gap: 20px;
}
.dim-cta .arr {
    font-size: 18px;
    transition: transform .3s var(--ease);
}
.dim-cta:hover .arr { transform: translateX(4px); }

/* ---------- Cube footer caption ---------- */
.cube-caption {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-dim);
    pointer-events: none;
    white-space: nowrap;
}

.close-book {
    position: fixed;
    top: 100px; right: 40px;
    width: 44px; height: 44px;
    border: 1px solid var(--line-bright);
    border-radius: 50%;
    color: var(--ink-soft);
    font-size: 16px;
    background: rgba(7, 9, 13, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.85);
    transition: opacity .35s var(--ease), transform .35s var(--ease), background .25s ease;
    z-index: 100;
}
.close-book.show { opacity: 1; transform: scale(1); pointer-events: auto; }
.close-book:hover { background: var(--gold); color: var(--bg-0); border-color: var(--gold); }

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */
.section {
    padding: 110px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
    border-top: 1px solid var(--line);
    padding-top: 40px;
}

.section-eyebrow {
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: clamp(36px, 5vw, 68px);
    font-weight: 300;
    margin: 0;
    line-height: 1.05;
    max-width: 720px;
}
.section-title em { font-style: italic; color: var(--gold); font-weight: 400; }

.section-desc {
    font-size: 16px;
    color: var(--ink-soft);
    max-width: 380px;
    line-height: 1.6;
}

/* ============================================================
   SPECIAL EXHIBITIONS
   ============================================================ */
.special-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: 280px 280px;
    gap: 16px;
}

.exh-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-2);
    cursor: pointer;
    transition: transform .6s var(--ease);
}
.exh-card:hover { transform: translateY(-4px); }

.exh-card.big { grid-row: 1 / 3; grid-column: 1 / 2; }
.exh-card.big .exh-title { font-size: 38px; }

.exh-bg {
    position: absolute;
    inset: 0;
    transition: transform 1s var(--ease);
}
.exh-card:hover .exh-bg { transform: scale(1.06); }

.exh-card::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85));
    z-index: 1;
}

.exh-body {
    position: absolute;
    left: 28px; right: 28px; bottom: 26px;
    z-index: 2;
}

.exh-tag {
    font-size: 10px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--gold);
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.exh-title {
    font-family: "Fraunces", serif;
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 8px;
    line-height: 1.1;
}
.exh-meta {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 0;
}
.exh-date {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--ink);
    margin-top: 14px;
}

/* ============================================================
   FREE EXHIBITIONS (rooms of world famous paintings)
   ============================================================ */
.rooms-wrap {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.room {
    position: relative;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    padding: 0 4px;
}
.room-number {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}
.room-name {
    font-family: "Fraunces", serif;
    font-size: 30px;
    font-weight: 400;
    margin: 4px 0 0;
    color: var(--ink);
}
.room-note { font-size: 14px; color: var(--ink-dim); }

/* Virtual wall: horizontal scroll with perspective */
.wall {
    position: relative;
    padding: 50px 0 5px;
    background:
        linear-gradient(180deg,
            #0f0b07 0%,
            #1c1308 45%,
            #0a0705 70%,
            #2a1c12 72%,
            #1a120a 100%);
    overflow: hidden;
    border-top: 1px solid rgba(201,161,74,0.15);
    border-bottom: 1px solid rgba(201,161,74,0.1);
}
.wall::before {
    /* Wall light */
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 120%; height: 70%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 0%, rgba(255,220,160,0.12), transparent 60%);
    pointer-events: none;
}
.wall::after {
    /* Floor reflection hint */
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 28%;
    background:
        linear-gradient(180deg, transparent, rgba(0,0,0,0.5)),
        repeating-linear-gradient(90deg, rgba(201,161,74,0.03) 0 2px, transparent 2px 80px);
    pointer-events: none;
}

.wall-scroll {
    display: flex;
    gap: 60px;
    padding: 0px 60px 50px 0px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
    perspective: 1200px;
    align-items: center;
}
.wall-scroll::-webkit-scrollbar { height: 4px; }
.wall-scroll::-webkit-scrollbar-track { background: transparent; }
.wall-scroll::-webkit-scrollbar-thumb { background: var(--gold-dim); }

.painting {
    position: relative;
    flex: 0 0 auto;
    scroll-snap-align: center;
    text-align: center;
    transition: transform .6s var(--ease);
}

.painting:hover { transform: translateY(-6px); }

.frame {
    display: inline-block;
    padding: 22px;
    background:
        linear-gradient(135deg, #8a6a2a, #d4a84a 40%, #735318 60%, #c39a40);
    box-shadow:
        0 24px 60px rgba(0,0,0,0.6),
        0 2px 0 rgba(255,255,255,0.15) inset,
        0 0 0 1px rgba(0,0,0,0.2) inset;
    position: relative;
}
.frame::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 2px solid rgba(0,0,0,0.2);
    pointer-events: none;
}
.frame img {
    display: block;
    max-height: 340px;
    max-width: 300px;
    object-fit: contain;
    border: 1px solid rgba(0,0,0,0.3);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

.painting-meta {
    margin-top: 24px;
    text-align: center;
}
.painting-title {
    font-family: "Fraunces", serif;
    font-size: 16px;
    font-style: italic;
    color: var(--ink);
    margin: 0;
}
.painting-artist {
    font-size: 12px;
    color: var(--ink-dim);
    margin: 4px 0 0;
    letter-spacing: 0.06em;
}

/* Spotlight from top of each painting */
.painting .spotlight {
    position: absolute;
    top: -50px; left: 50%;
    width: 180px; height: 90px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 0%, rgba(255,230,180,0.35), transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.painting:hover .spotlight {
    opacity: 1;
}

/* ============================================================
   CREATIVE SPACE
   ============================================================ */
.creative-intro {
    max-width: 720px;
    margin-bottom: 48px;
    font-size: 18px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.creative-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.mood {
    position: relative;
    padding: 40px 32px 44px;
    background: var(--bg-1);
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    cursor: pointer;
    transition: background .5s var(--ease);
}
.mood:hover { background: var(--bg-2); }

.mood-orb {
    position: absolute;
    top: -80px; right: -80px;
    width: 240px; height: 240px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
    transition: transform 1.5s var(--ease), opacity .5s var(--ease);
}
.mood:hover .mood-orb { transform: translate(-30px, 30px) scale(1.2); opacity: 0.75; }

.mood[data-mood="wellbeing"]  .mood-orb { background: radial-gradient(circle, #d4b66a, transparent 60%); }
.mood[data-mood="calm"]       .mood-orb { background: radial-gradient(circle, #7fa6c4, transparent 60%); }
.mood[data-mood="stressfree"] .mood-orb { background: radial-gradient(circle, #8fb896, transparent 60%); }
.mood[data-mood="passion"]    .mood-orb { background: radial-gradient(circle, #d77a6a, transparent 60%); }

.mood-num {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.mood-title {
    font-family: "Fraunces", serif;
    font-size: 32px;
    font-weight: 300;
    margin: 24px 0 14px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.mood-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0 0 24px;
    position: relative;
    z-index: 1;
}

.mood-cta {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    position: relative;
    z-index: 1;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    transition: color .25s ease;
}
.mood:hover .mood-cta { color: var(--gold-bright); }

/* ============================================================
   ARTISTS
   ============================================================ */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2px;
    background: var(--line);
    border: 1px solid var(--line);
}

.artist {
    position: relative;
    padding: 30px 24px;
    background: var(--bg-1);
    overflow: hidden;
    cursor: pointer;
    transition: background .4s var(--ease);
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.artist:hover { background: var(--bg-2); }

.artist-silhouette {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.35;
    transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.artist:hover .artist-silhouette { opacity: 0.6; transform: scale(1.04); }

.artist-silhouette svg {
    width: 70%; height: auto;
}

.artist-body {
    position: relative;
    z-index: 2;
}

.artist-era {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 0.15em;
}
.artist-name {
    font-family: "Fraunces", serif;
    font-size: 22px;
    font-weight: 400;
    margin: 4px 0 6px;
    line-height: 1.15;
}
.artist-tag {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #05070b;
    border-top: 1px solid var(--line);
    padding: 60px 40px 40px;
    color: var(--ink-soft);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 50px;
}

.footer-brand-name {
    font-family: "Fraunces", serif;
    font-size: 28px;
    font-weight: 400;
    margin: 16px 0 10px;
}
.footer-brand-name em { color: var(--gold); font-style: italic; }

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    max-width: 340px;
}

.footer-col h4 {
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 20px;
    font-weight: 600;
}
.footer-col ul {
    list-style: none;
    padding: 0; margin: 0;
    font-size: 14px;
}
.footer-col li {
    margin-bottom: 10px;
    transition: color .25s ease;
    cursor: pointer;
}
.footer-col li:hover { color: var(--ink); }

.footer-legal {
    max-width: 1400px;
    margin: 50px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ink-dim);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* -------- Tablet + small desktop -------- */
@media (max-width: 1100px) {
    .hero-stage { grid-template-columns: 1fr; gap: 40px; }
    .cube-stage { height: 540px; }
    .special-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .exh-card.big { grid-row: auto; grid-column: 1 / -1; height: 360px; }
    .creative-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* -------- Tablet / large phone -------- */
@media (max-width: 900px) {
    :root {
        --nav-h: 64px;   /* matches shrunken logo + padding in navbar.css */
        --pad: 20px;
    }

    .navbar-container {
        height: 64px;
    }

    /* Section padding */
    .section { padding: 80px 22px; }
    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-top: 30px;
        margin-bottom: 40px;
    }
    .section-desc { max-width: 100%; }

    /* Hero (top slideshow) */
    .hero { height: auto; min-height: 520px; margin-top: -30px;}
    .hero__top { top: 24px; left: 20px; right: 20px; }
    .hero__headline { font-size: 26px; }
    .hero__arrowBtn { width: 48px; height: 48px; }
    .hero__navArrows { opacity: 1; }  /* keep arrows visible on touch */

    /* Panels: one at a time on mobile (JS picks visibleCount=1 below 640px) */
    .panel {
        flex: 0 0 50%;                 /* 2 visible on tablet */
        padding: 22px 22px 20px;
    }
    .panel__title { font-size: 26px; }
    .panel__meta { font-size: 14px; }

    /* Dimension hero */
    .hero_b { padding: 100px 22px 60px; }
    .hero_b::before { width: 600px; height: 600px; }
    .dim-tabs {
        margin: 50px auto 40px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .dim-tabs::-webkit-scrollbar { display: none; }
    .dim-tab { padding: 16px 18px 14px; font-size: 15px; white-space: nowrap; }
    .hero-stage { min-height: auto; gap: 30px; }

    /* Cube stage: scale down so it fits small screens */
    .cube-stage { height: 440px; }
    .cube-scene { transform: translate(-50%, -50%) rotateX(-18deg) rotateY(-28deg) scale(0.75); }
    @keyframes sceneOrbit {
        0%   { transform: translate(-50%, -50%) rotateX(-18deg) rotateY(-28deg) scale(0.75); }
        50%  { transform: translate(-50%, -50%) rotateX(-14deg) rotateY(22deg) scale(0.75); }
        100% { transform: translate(-50%, -50%) rotateX(-18deg) rotateY(-28deg) scale(0.75); }
    }

    .dim-panels { min-height: auto; }
    .dim-panel { position: relative; }
    .dim-panel:not(.active) { display: none; }
    .dim-panel h2 { font-size: 40px; margin-bottom: 18px; }
    .dim-panel > p { font-size: 15px; max-width: 100%; margin-bottom: 22px; }
    .dim-list { margin-bottom: 28px; }

    /* Close book button — adjust so it doesn't hit the smaller navbar */
    .close-book { top: calc(var(--nav-h) + 10px); right: 18px; }

    /* Special exhibitions */
    .special-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 12px;
    }
    .exh-card { height: 260px; }
    .exh-card.big { grid-column: 1 / -1; height: 320px; }
    .exh-card.big .exh-title { font-size: 28px; }
    .exh-title { font-size: 20px; }
    .exh-body { left: 20px; right: 20px; bottom: 20px; }

    /* Free exhibitions (paintings wall) */
    .rooms-wrap { gap: 50px; }
    .room-header { flex-wrap: wrap; gap: 6px; }
    .room-name { font-size: 24px; }
    .wall { padding: 36px 0 4px; }
    .wall-scroll { gap: 36px; padding: 0 22px 36px; }
    .frame { padding: 16px; }
    .frame img { max-height: 260px; max-width: 220px; }

    /* Creative */
    .creative-grid { grid-template-columns: repeat(2, 1fr); }
    .creative-intro { font-size: 16px; }
    .mood { padding: 32px 24px 36px; min-height: 300px; }
    .mood-title { font-size: 26px; margin: 18px 0 10px; }

    /* Artists */
    .artists-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .artist { padding: 22px 18px; }
    .artist-name { font-size: 19px; }

    /* Footer */
    .site-footer { padding: 50px 22px 30px; }
    .footer-inner { gap: 36px; }
    .footer-legal {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        margin-top: 36px;
    }
}

/* -------- Phone -------- */
@media (max-width: 640px) {
    :root {
        --pad: 16px;
    }

    /* Section padding tightens further */
    .section { padding: 60px 16px; }
    .section-head { padding-top: 24px; margin-bottom: 32px; }
    .section-title { font-size: clamp(30px, 9vw, 44px); }

    /* Hero slideshow — ONE panel at a time */
    .hero { min-height: 480px; }
    .hero__arrowBtn { width: 44px; height: 44px; }
    .arrow-icon { width: 22px; height: 22px; }
    .hero__headline { font-size: 22px; }
    .panel {
        flex: 0 0 100%;                /* full viewport width per panel */
        padding: 20px 18px 18px;
    }
    .panel__title { font-size: 24px; }
    .panel__meta { font-size: 13px; max-width: 100%; }
    .panel__ctaRow { margin-top: 12px; }
    /* Non-active panels still need to reveal content cleanly on tap */
    .panel__meta { opacity: 1; transform: translateY(0); }
    .panel__ctaRow { opacity: 1; transform: translateY(0); }
    .panel.is-active .panel__title,
    .panel:hover .panel__title { transform: translateY(0); }
    .panel__title { transform: translateY(0); }

    /* Dimension hero */
    .hero_b { padding: 80px 16px 50px; }
    .hero-eyebrow { font-size: 11px; letter-spacing: 0.3em; }
    .hero-sub { font-size: 14px; }

    .dim-tabs { margin: 40px auto 30px; }
    .dim-tab { padding: 14px 14px 12px; font-size: 13px; }

    /* Cube — shrink a touch more */
    .cube-stage { height: 380px; }
    .cube-scene { transform: translate(-50%, -50%) rotateX(-18deg) rotateY(-28deg) scale(0.62); }
    @keyframes sceneOrbit {
        0%   { transform: translate(-50%, -50%) rotateX(-18deg) rotateY(-28deg) scale(0.62); }
        50%  { transform: translate(-50%, -50%) rotateX(-14deg) rotateY(22deg) scale(0.62); }
        100% { transform: translate(-50%, -50%) rotateX(-18deg) rotateY(-28deg) scale(0.62); }
    }
    .dim-panel h2 { font-size: 32px; }

    /* Close book button */
    .close-book { width: 40px; height: 40px; top: calc(var(--nav-h) + 8px); right: 14px; }

    /* Special grid: single column on phones */
    .special-grid { grid-template-columns: 1fr; }
    .exh-card { height: 240px; }
    .exh-card.big { height: 280px; }
    .exh-card.big .exh-title { font-size: 24px; }

    /* Paintings wall */
    .wall-scroll { gap: 28px; padding: 0 16px 30px; }
    .frame { padding: 12px; }
    .frame img { max-height: 220px; max-width: 180px; }
    .painting-title { font-size: 14px; }

    /* Creative */
    .creative-grid { grid-template-columns: 1fr; }
    .mood { min-height: 260px; padding: 28px 22px 30px; }
    .mood-title { font-size: 24px; }

    /* Artists: 2-up on phones */
    .artists-grid { grid-template-columns: repeat(2, 1fr); }
    .artist { padding: 18px 14px; }
    .artist-era { font-size: 11px; }
    .artist-name { font-size: 16px; }
    .artist-tag { font-size: 10px; }

    /* Footer */
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .site-footer { padding: 40px 18px 28px; }
}

/* -------- Very small phones -------- */
@media (max-width: 380px) {
    .section { padding: 50px 14px; }
    .hero__headline { font-size: 20px; }
    .hero__top { top: 18px; left: 14px; right: 14px; }
    .dim-panel h2 { font-size: 28px; }
    .section-title { font-size: clamp(26px, 9vw, 38px); }
    .artists-grid { grid-template-columns: repeat(2, 1fr); }
    .frame img { max-height: 200px; max-width: 160px; }
}