/* REVERIE — a dreamcore hotel that exists only while you sleep
   CSS/SVG scenery, no canvas, no images. */

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

:root {
  --fog: #E8DFF5;
  --blush: #FDE2E4;
  --sky: #CDE7F0;
  --twilight: #2A2440;
  --cream: #FFF8E7;

  --ink: #2A2440;
  --ink-dim: rgba(42, 36, 64, .68);
  --ink-faint: rgba(42, 36, 64, .42);
  --hairline: rgba(42, 36, 64, .16);

  --sine: cubic-bezier(.445, .05, .55, .95);
  --soft: cubic-bezier(.22, .61, .16, 1);

  --disp: "Italiana", "Iowan Old Style", Georgia, serif;
  --body: "Mulish", system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(2.4rem, 1.4rem + 4.4vw, 5.4rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2.6vw, 3.4rem);
  --fs-h3: clamp(1.25rem, 1.05rem + .9vw, 1.7rem);
  --fs-lede: clamp(1.02rem, .92rem + .4vw, 1.22rem);
  --fs-body: clamp(.96rem, .92rem + .15vw, 1.05rem);
  --fs-eyebrow: .74rem;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--fog);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: auto;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(205, 231, 240, .65); color: var(--twilight); }

:focus-visible {
  outline: 2px solid var(--twilight);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0;
}

/* ============ SKY / BACKDROP ============ */

.sky {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120vmax 70vmax at 82% -8%, rgba(255, 248, 231, .4), transparent 58%),
    linear-gradient(175deg, var(--fog) 0%, var(--sky) 46%, var(--blush) 100%);
}

.sky-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cloud-field { position: fixed; inset: 0; overflow: hidden; z-index: -2; pointer-events: none; }

.cloud {
  position: absolute;
  filter: blur(20px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 52%, rgba(255, 255, 255, .98), rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 72% 50%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 50% 74%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 42%),
    radial-gradient(ellipse at 50% 100%, rgba(158, 145, 193, .2), rgba(158, 145, 193, 0) 55%);
  opacity: .85;
  will-change: transform;
}
.cloud.c1 { width: 46vw; height: 12vw; top: 8%;  left: -20%; animation: driftA 46s linear infinite, bobA 6s var(--sine) infinite; }
.cloud.c2 { width: 34vw; height: 10vw; top: 22%; left: -30%; opacity: .55; animation: driftB 62s linear infinite, bobB 5s var(--sine) infinite; }
.cloud.c3 { width: 52vw; height: 14vw; top: 46%; left: -25%; opacity: .62; animation: driftA 70s linear infinite reverse, bobA 7s var(--sine) infinite; }
.cloud.c4 { width: 30vw; height: 9vw;  top: 65%; left: -20%; opacity: .5; animation: driftB 50s linear infinite, bobB 4.5s var(--sine) infinite; }
.cloud.c5 { width: 40vw; height: 11vw; top: 83%; left: -30%; opacity: .55; animation: driftA 58s linear infinite; }

/* front clouds: scoped to the hero only, so they never sit over readable
   body copy elsewhere on the page — they pass in front of the doorframe,
   staying in thin bands above/below it so the star-window stays legible. */
.hero-clouds { position: absolute; inset: 0; overflow: hidden; z-index: 5; pointer-events: none; }
.cloud.front1 { width: 24vw; height: 5.5vw; top: 2%; left: -22%; opacity: .55; filter: blur(14px); animation: driftB 26s linear infinite; }
.cloud.front2 { width: 20vw; height: 5vw; top: 84%; left: -18%; opacity: .5; filter: blur(14px); animation: driftA 32s linear infinite reverse; }

@keyframes driftA { to { transform: translateX(160vw); } }
@keyframes driftB { to { transform: translateX(180vw); } }
@keyframes bobA { 0%, 100% { margin-top: 0; } 50% { margin-top: 1.6vw; } }
@keyframes bobB { 0%, 100% { margin-top: 0; } 50% { margin-top: -1.4vw; } }

/* ============ MOON ============ */

.moon-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.moon {
  position: absolute;
  top: 6vh; right: 8vw;
  width: clamp(160px, 20vw, 340px);
  height: clamp(160px, 20vw, 340px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,.9), transparent 45%),
    radial-gradient(circle at 68% 70%, rgba(205,231,240,.5), transparent 40%),
    radial-gradient(circle at 50% 50%, var(--cream), #F3E9CE 70%, #E9DCB9 100%);
  box-shadow: 0 0 90px rgba(255, 248, 231, .55), 0 0 240px rgba(253, 226, 228, .3);
  will-change: transform;
}
.moon::before, .moon::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, rgba(180, 160, 130, .22), rgba(180, 160, 130, .05) 72%, transparent);
}
.moon::before { width: 24%; height: 24%; top: 20%; left: 22%; }
.moon::after  { width: 15%; height: 15%; top: 55%; left: 58%; }
.moon-crater { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 32%, rgba(180, 160, 130, .18), transparent 72%); width: 11%; height: 11%; top: 62%; left: 22%; }

/* ============ SCROLL PROGRESS ============ */

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--blush), var(--sky), var(--fog));
  z-index: 90; transition: width .08s linear;
}

/* ============ WORDMARK ============ */

.mark {
  position: fixed; top: clamp(16px, 3vw, 30px); left: clamp(16px, 3vw, 30px);
  z-index: 60;
  font-family: var(--disp);
  font-size: 1.1rem;
  letter-spacing: .16em;
  color: var(--ink);
  text-decoration: none;
  mix-blend-mode: normal;
}
.mark span { display: block; font-family: var(--body); font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-faint); margin-top: 2px; }

/* ============ LAYOUT ============ */

main { position: relative; z-index: 1; }
section { position: relative; padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 6vw, 6rem); }
.wrap { max-width: 1180px; margin: 0 auto; }
.narrow { max-width: 680px; }

.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1.1rem;
  display: inline-block;
}
.eyebrow::before { content: "· "; }

h1, h2, h3 { font-family: var(--disp); font-weight: 400; letter-spacing: .01em; }

/* ============ HERO ============ */

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-top: clamp(5rem, 12vh, 8rem);
  padding-bottom: 3rem;
}

.portal-wrap { position: relative; perspective: 1800px; margin-bottom: clamp(1.5rem, 4vw, 3rem); }

.doorframe {
  position: relative;
  width: clamp(190px, 24vw, 340px);
  height: clamp(300px, 38vw, 520px);
  margin: 0 auto;
  transform-style: preserve-3d;
  border-radius: 8px 8px 130px 130px / 8px 8px 84px 84px;
  background: linear-gradient(160deg, var(--cream), var(--blush) 60%, var(--sky));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.5) inset,
    0 40px 70px -20px rgba(42, 36, 64, .35);
  animation: doorSway 7s var(--sine) infinite;
}
@keyframes doorSway {
  0%, 100% { transform: rotateY(-7deg) rotateX(2deg) translateY(0); }
  50%      { transform: rotateY(7deg) rotateX(-2.4deg) translateY(-8px); }
}
.doorframe::before {
  content: ""; position: absolute; top: -16px; left: 6px; right: 6px; height: 16px;
  background: linear-gradient(90deg, var(--cream), var(--blush));
  filter: brightness(1.06);
  transform-origin: center bottom;
  transform: rotateX(90deg);
}
.doorframe::after {
  content: ""; position: absolute; top: 0; right: -22px; bottom: 22%; width: 22px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, var(--blush), var(--sky));
  filter: brightness(.82);
  transform-origin: left center;
  transform: rotateY(90deg);
  box-shadow: 6px 0 14px -4px rgba(42, 36, 64, .25);
}

.door-opening {
  position: absolute; inset: 15px;
  border-radius: 3px 3px 118px 118px / 3px 3px 74px 74px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, rgba(232,223,245,.15), transparent 60%), var(--twilight);
  box-shadow: inset 0 0 46px rgba(0,0,0,.5);
}
.door-stars {
  position: absolute; inset: -10%;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 28% 8%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 44% 26%, #FFF8E7, transparent),
    radial-gradient(1.1px 1.1px at 62% 14%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 30%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 88% 12%, #fff, transparent),
    radial-gradient(1.7px 1.7px at 18% 46%, #FDE2E4, transparent),
    radial-gradient(1.1px 1.1px at 34% 58%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 52% 44%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 70% 52%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 84% 62%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 8% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 30% 78%, #CDE7F0, transparent),
    radial-gradient(1.1px 1.1px at 58% 74%, #fff, transparent),
    radial-gradient(1.7px 1.7px at 92% 80%, #fff, transparent);
  animation: twinkle 5s var(--sine) infinite alternate;
}
.door-moonglow {
  position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%;
  top: 10%; left: 55%;
  background: radial-gradient(circle, rgba(255,248,231,.5), transparent 70%);
  filter: blur(6px);
}
@keyframes twinkle { from { opacity: .65; } to { opacity: 1; } }

/* the door's shadow: same silhouette as the doorframe itself, but laid on
   its side and cast down-and-left into empty air — there is no floor for
   it to fall on, so it just hangs there, wrong. */
.door-shadow {
  position: absolute;
  width: clamp(190px, 24vw, 340px);
  height: clamp(300px, 38vw, 520px);
  top: 8%; left: -6%;
  border-radius: 8px 8px 130px 130px / 8px 8px 84px 84px;
  background: linear-gradient(160deg, rgba(42,36,64,.5), rgba(42,36,64,.22) 70%);
  filter: blur(19px);
  transform-origin: 30% 20%;
  transform: rotate(-72deg) scale(.82, .5);
  opacity: .48;
  animation: shadowDrift 9s var(--sine) infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes shadowDrift {
  0%, 100% { transform: rotate(-72deg) scale(.82, .5) translate(0, 0); opacity: .48; }
  50%      { transform: rotate(-66deg) scale(.86, .46) translate(-1vw, 1vh); opacity: .3; }
}

.hero-copy { max-width: 54rem; }
.hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.06;
  letter-spacing: -.005em;
  margin-bottom: 1.3rem;
}
.hero .lede {
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 40rem;
  margin: 0 auto;
}

.scroll-cue {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-faint);
  animation: cueBob 4s var(--sine) infinite;
}
@keyframes cueBob { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(8px); opacity: 1; } }

/* ============ NOTE SECTION ============ */

.note-section { padding-top: clamp(2rem, 6vw, 3rem); }
.note-card {
  max-width: 44rem; margin: 0 auto; text-align: center;
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.6rem, 5vw, 3rem);
  background: rgba(255, 248, 231, .5);
  border: 1px solid rgba(42, 36, 64, .1);
  border-radius: 4px;
  backdrop-filter: blur(2px);
}
.note-card p {
  font-size: var(--fs-lede);
  line-height: 1.8;
  font-style: italic;
  color: var(--ink-dim);
}
.note-card p strong { color: var(--ink); font-style: normal; font-weight: 700; }

/* ============ LOST & FOUND ============ */

.objects-heading { text-align: center; margin-bottom: clamp(3rem, 7vw, 5rem); }
.objects-heading h2 { font-size: var(--fs-h2); }

.objects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1080px; margin: 0 auto;
}

.object-card { text-align: center; }
.object-stage {
  position: relative;
  height: clamp(140px, 16vw, 200px);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.6rem;
}
.object-shadow {
  position: absolute;
  bottom: 6%;
  width: 62%; height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(42, 36, 64, .28), transparent 75%);
  filter: blur(3px);
}
.object-art {
  position: relative;
  width: 62%;
  color: var(--twilight);
}
.object-art svg { width: 100%; height: auto; overflow: visible; }

.object-card.key .object-art    { animation: bobKey 5s var(--sine) infinite; }
.object-card.chair .object-art  { animation: bobChair 6s var(--sine) infinite; }
.object-card.umbrella .object-art { animation: bobUmbrella 4.5s var(--sine) infinite; }

.object-card.key .object-shadow      { animation: shadowKey 6.5s var(--sine) infinite; left: 8%; }
.object-card.chair .object-shadow    { animation: shadowChair 7.5s var(--sine) infinite; left: 22%; }
.object-card.umbrella .object-shadow { animation: shadowUmbrella 5.5s var(--sine) infinite; left: 14%; }

@keyframes bobKey      { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes bobChair    { 0%, 100% { transform: translateY(0) rotate(2deg); }  50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes bobUmbrella { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(4deg); } }

@keyframes shadowKey      { 0%, 100% { transform: translateX(0) scale(1); opacity: .5; } 50% { transform: translateX(18px) scale(.7); opacity: .28; } }
@keyframes shadowChair    { 0%, 100% { transform: translateX(0) scale(1); opacity: .45; } 50% { transform: translateX(-14px) scale(.82); opacity: .3; } }
@keyframes shadowUmbrella { 0%, 100% { transform: translateX(0) scale(.9); opacity: .4; } 50% { transform: translateX(22px) scale(.62); opacity: .22; } }

.object-card h3 { font-size: var(--fs-h3); margin-bottom: .55rem; }
.object-card p { color: var(--ink-dim); line-height: 1.6; font-size: .95rem; max-width: 26rem; margin: 0 auto; }

/* ============ NIGHT / STAIRCASE SECTION ============ */

.night {
  background: var(--twilight);
  --ink: var(--cream);
  --ink-dim: rgba(232, 223, 245, .74);
  --ink-faint: rgba(232, 223, 245, .46);
  color: var(--cream);
  margin-top: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.night .eyebrow, .night h2, .night p, .night .stair-caption { color: inherit; }
.night-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 6% 12%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 14% 34%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 22% 62%, #FFF8E7, transparent),
    radial-gradient(1.2px 1.2px at 32% 18%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 40% 76%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 48% 44%, #fff, transparent),
    radial-gradient(1.7px 1.7px at 58% 10%, #CDE7F0, transparent),
    radial-gradient(1.2px 1.2px at 66% 58%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 74% 28%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 82% 68%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 90% 40%, #FDE2E4, transparent),
    radial-gradient(1.3px 1.3px at 96% 82%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 4% 88%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 54% 90%, #fff, transparent);
  animation: twinkle 6s var(--sine) infinite alternate;
}
.night-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.stair-text h2 { font-size: var(--fs-h2); margin-bottom: 1.1rem; }
.stair-text p { line-height: 1.75; max-width: 32rem; color: var(--ink-dim); }

.stair-stage { position: relative; display: flex; justify-content: center; align-items: center; }
.stair-stage::before {
  content: "";
  position: absolute;
  width: min(72vw, 640px); height: min(72vw, 640px);
  background: radial-gradient(circle, rgba(255, 248, 231, .1), rgba(205, 231, 240, .05) 45%, transparent 72%);
  filter: blur(4px);
  animation: glowPulse 8s var(--sine) infinite;
}
@keyframes glowPulse { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.stair-svg { position: relative; width: 100%; max-width: 560px; overflow: visible; }
.orb {
  filter: drop-shadow(0 0 8px rgba(255, 248, 231, .9)) drop-shadow(0 0 20px rgba(253, 226, 228, .6));
  offset-rotate: 0deg;
  animation: orbMove 6s linear infinite;
}
@keyframes orbMove { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* ============ ROOMS ============ */

.rooms-heading { text-align: center; margin-bottom: clamp(3rem, 7vw, 5rem); }
.rooms-heading h2 { font-size: var(--fs-h2); }

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2rem);
  max-width: 1180px; margin: 0 auto;
}

.room-card {
  padding: clamp(1.8rem, 3vw, 2.4rem);
  border-radius: 6px;
  border: 1px solid rgba(42, 36, 64, .12);
  display: flex; flex-direction: column; min-height: 320px;
  transition: transform .5s var(--soft), box-shadow .5s var(--soft);
}
.room-card:hover, .room-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -18px rgba(42, 36, 64, .28);
}
.room-card.r1 { background: linear-gradient(165deg, rgba(232,223,245,.9), rgba(255,248,231,.6)); }
.room-card.r2 { background: linear-gradient(165deg, rgba(205,231,240,.85), rgba(255,248,231,.55)); }
.room-card.r3 { background: linear-gradient(165deg, rgba(253,226,228,.85), rgba(255,248,231,.55)); }

.room-num { font-family: var(--disp); font-size: 2.4rem; opacity: .5; margin-bottom: .6rem; }
.room-card h3 { font-size: var(--fs-h3); margin-bottom: .9rem; }
.room-amenities {
  font-size: .88rem; line-height: 1.75; color: var(--ink-dim);
  margin-top: auto; padding-top: 1.2rem;
  border-top: 1px dashed var(--hairline);
}

/* ============ CHECK-IN ============ */

.checkin {
  background: linear-gradient(180deg, transparent, rgba(232, 223, 245, .55) 20%, rgba(232, 223, 245, .55) 80%, transparent);
}
.checkin-wrap {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.checkin-copy h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.checkin-copy p { color: var(--ink-dim); line-height: 1.7; max-width: 30rem; margin-bottom: 1.8rem; }

.field {
  margin-bottom: 1.4rem;
}
.field label {
  display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: .5rem;
}
.field input[type="text"] {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: rgba(255,255,255,.5); border: 1px solid var(--hairline); border-radius: 3px;
  padding: .75rem .9rem;
}
.field input[type="text"]:focus { background: rgba(255,255,255,.85); }

.checkin-btn {
  font-family: var(--body); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream); background: var(--twilight);
  border: none; border-radius: 3px; padding: .95rem 1.8rem; cursor: pointer;
  transition: transform .35s var(--soft), background .35s var(--soft), box-shadow .35s var(--soft);
}
.checkin-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(42,36,64,.4); }
.checkin-btn:active { transform: translateY(0); }
.checkin-btn:disabled { opacity: .6; cursor: default; transform: none; }

.checkin-confirm {
  margin-top: 1rem; font-size: .9rem; color: var(--ink);
  min-height: 1.4em;
  opacity: 0; transform: translateY(6px);
  transition: opacity .6s var(--soft), transform .6s var(--soft);
}
.checkin-confirm.show { opacity: 1; transform: translateY(0); }

/* dial */
.dial-block { display: flex; flex-direction: column; align-items: center; }
.dial {
  position: relative; width: clamp(160px, 20vw, 210px); aspect-ratio: 1;
  margin-bottom: .5rem;
}
.dial-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial-track { fill: none; stroke: rgba(42, 36, 64, .14); stroke-width: 8; }
.dial-fill { fill: none; stroke: var(--twilight); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .12s linear; }
.dial-face {
  position: absolute; inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.85), var(--cream) 65%);
  box-shadow: 0 6px 18px rgba(42,36,64,.18), inset 0 0 0 1px rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  cursor: grab;
  touch-action: none;
}
.dial-face:active { cursor: grabbing; }
.dial-rotor { position: absolute; inset: 0; pointer-events: none; }
.dial-mark {
  position: absolute; top: 7%; left: 50%; width: 4px; height: 15%;
  background: var(--twilight); border-radius: 2px;
  transform: translateX(-50%);
  transform-origin: center top;
}
.dial-readout { position: relative; font-family: var(--body); font-weight: 800; font-size: 1.3rem; letter-spacing: .01em; color: var(--ink); text-align: center; line-height: 1.1; }
.dial-readout span { display: block; font-family: var(--body); font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-top: .3rem; }
.dial-hint { font-size: .74rem; color: var(--ink-faint); letter-spacing: .04em; margin-top: .6rem; text-align: center; max-width: 16rem; }

/* ============ FOOTER ============ */

.site-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .8rem 1.5rem;
  padding: 2.4rem clamp(1.25rem, 6vw, 6rem) 3rem;
  font-size: .78rem; letter-spacing: .03em;
  color: var(--ink-dim);
  border-top: 1px solid var(--hairline);
}
.site-foot .foot-links { display: flex; gap: 1.4rem; }
.site-foot a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s var(--soft), color .3s var(--soft); }
.site-foot a:hover { border-color: currentColor; color: var(--ink); }

/* ============ CURSOR HALO ============ */

.cursor-halo {
  position: fixed; top: 0; left: 0; width: 34px; height: 34px;
  border-radius: 50%; pointer-events: none; z-index: 80;
  background: radial-gradient(circle, rgba(253, 226, 228, .55), rgba(232, 223, 245, .18) 60%, transparent 72%);
  filter: blur(2px);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .4s var(--soft);
  will-change: transform;
}
.cursor-halo.active { opacity: 1; }

/* ============ REVEAL ============ */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--soft), transform .9s var(--soft); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .cloud { animation: none !important; opacity: .35; }
  .doorframe { animation: none !important; transform: rotateY(-4deg) rotateX(1deg); }
  .door-shadow { animation: none !important; }
  .object-card .object-art, .object-card .object-shadow { animation: none !important; }
  .scroll-cue { animation: none !important; }
  .orb { animation: none !important; offset-distance: 0%; }
  .reveal { opacity: 1; transform: none; }
  .cursor-halo { display: none; }
}

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

@media (max-width: 900px) {
  .objects-grid { grid-template-columns: 1fr; gap: 3rem; max-width: 360px; }
  .rooms-grid { grid-template-columns: 1fr; max-width: 460px; }
  .night-content { grid-template-columns: 1fr; text-align: center; }
  .stair-text p { margin-left: auto; margin-right: auto; }
  .checkin-wrap { grid-template-columns: 1fr; }
  .checkin-copy { text-align: center; }
  .checkin-copy p { margin-left: auto; margin-right: auto; }
  .cloud.front1, .cloud.front2 { display: none; }
}

@media (max-width: 560px) {
  .moon { width: 46vw; height: 46vw; top: 3vh; right: -10vw; }
  .hero { padding-top: 6rem; }
  section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .site-foot { justify-content: center; text-align: center; }
}

@media (hover: none), (pointer: coarse) {
  .cursor-halo { display: none; }
}
