:root {
  color-scheme: dark;
  --ink: #100c0d;
  --panel: #181213;
  --cream: #f2e9df;
  --muted: #b9aaa2;
  --amber: #d9a977;
  --violet: #a66bd2;
  --line: rgba(242, 233, 223, 0.18);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--cream); font-family: var(--sans); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.entry-page { min-height: 100svh; overflow: hidden; }
.entry-shell { min-height: 100svh; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, #261a1e 0, #100c0d 58%, #090707 100%); }
.entry-portal { position: relative; width: 100%; height: 100svh; overflow: hidden; isolation: isolate; background: #171012; }
.entry-image { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.82) contrast(1.04); }
.entry-vignette { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,6,7,.46), transparent 28%, transparent 62%, rgba(7,5,6,.74)), radial-gradient(circle at 50% 47%, transparent 18%, rgba(9,6,7,.42) 100%); }
.ambient { position: absolute; z-index: 2; border-radius: 50%; filter: blur(44px); opacity: .18; pointer-events: none; animation: breathe 7s ease-in-out infinite alternate; }
.ambient-one { width: 14rem; height: 14rem; left: -7rem; top: 27%; background: var(--violet); }
.ambient-two { width: 12rem; height: 12rem; right: -6rem; bottom: 16%; background: var(--amber); animation-delay: -3s; }
.entry-brand { position: absolute; z-index: 3; top: max(1.4rem, env(safe-area-inset-top)); left: 1.35rem; display: grid; gap: .15rem; text-transform: uppercase; letter-spacing: .18em; }
.entry-brand span { color: var(--muted); font-size: .58rem; }
.entry-brand strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; letter-spacing: .12em; }
.hold-wrap { position: absolute; z-index: 4; inset: 0; display: grid; place-content: center; justify-items: center; padding: 1.5rem; text-align: center; }
.eyebrow { margin: 0 0 .8rem; color: #d7c7bd; font-family: var(--serif); font-size: .8rem; font-style: italic; letter-spacing: .08em; }
.hold-button { position: relative; width: 7.5rem; height: 7.5rem; border: 0; border-radius: 50%; padding: 0; background: rgba(20,14,16,.36); color: var(--cream); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; backdrop-filter: blur(10px); transition: transform .3s ease, background .3s ease, box-shadow .3s ease; }
.hold-button::before { content: ""; position: absolute; inset: .55rem; border: 1px solid rgba(255,255,255,.19); border-radius: 50%; }
.hold-button:hover, .hold-button:focus-visible { background: rgba(34,23,26,.58); box-shadow: 0 0 3rem rgba(202,143,103,.2); outline: none; }
.hold-button:focus-visible { outline: 1px solid var(--cream); outline-offset: .35rem; }
.hold-button.is-holding { transform: scale(.96); }
.hold-button.is-complete { transform: scale(1.08); background: rgba(110,73,62,.72); }
.hold-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track, .ring-progress { fill: none; stroke-width: 1.5; }
.ring-track { stroke: rgba(255,255,255,.18); }
.ring-progress { stroke: #f4dfca; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(242,205,171,.7)); }
.hold-copy { position: relative; display: grid; gap: .15rem; line-height: 1; }
.hold-copy small { color: var(--muted); font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; }
.hold-copy strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; letter-spacing: .05em; }
.hold-status { min-height: 1rem; margin: .8rem 0 0; color: var(--muted); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.entry-note { position: absolute; z-index: 3; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); margin: 0; color: rgba(242,233,223,.48); font-size: .55rem; letter-spacing: .06em; }
.noscript-link { position: fixed; z-index: 9; left: 50%; bottom: 1rem; transform: translateX(-50%); padding: .7rem 1rem; background: #1d1517; }
.is-leaving .entry-portal { animation: enter-room .34s ease both; }

.room-page { background: linear-gradient(180deg, #0c090a, #171012 52%, #0c090a); }
.room-nav { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(1rem, env(safe-area-inset-top)) 1.1rem 1rem; }
.back-link { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 50%; background: rgba(15,11,12,.36); text-decoration: none; backdrop-filter: blur(8px); }
.room-nav p { display: grid; margin: 0; text-align: right; text-transform: uppercase; letter-spacing: .15em; }
.room-nav span { color: var(--muted); font-size: .5rem; }
.room-nav strong { font-family: var(--serif); font-size: .95rem; font-weight: 400; }
.room-main { max-width: 86rem; margin: 0 auto; }
.room-hero { min-height: 100svh; display: grid; }
.room-photo { position: relative; min-height: 65svh; overflow: hidden; }
.room-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.room-photo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,6,7,.28), transparent 35%, #100c0d 100%); }
.presence { position: absolute; right: 1rem; bottom: 2.5rem; color: rgba(242,233,223,.62); font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; }
.presence::before { content: ""; display: inline-block; width: .35rem; height: .35rem; margin-right: .45rem; border-radius: 50%; background: #cca368; box-shadow: 0 0 .65rem #cca368; }
.room-copy { position: relative; z-index: 2; margin-top: -2rem; padding: 1.4rem 1.35rem 3.5rem; }
.room-copy h1, .section-heading h2 { margin: 0; max-width: 12ch; font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: 0; }
.room-copy h1 { font-size: clamp(2.65rem, 11vw, 5.8rem); }
.intro { max-width: 34rem; margin: 1.2rem 0 1.5rem; color: var(--muted); font-family: var(--serif); font-size: 1rem; line-height: 1.75; }
.profile { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin: 0 0 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile div { min-width: 0; }
.profile dt { color: #82746e; font-size: .52rem; letter-spacing: .13em; text-transform: uppercase; }
.profile dd { margin: .3rem 0 0; overflow: hidden; color: #d5c8c0; font-family: var(--serif); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.primary-cta { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 3.7rem; padding: 0 1.2rem; border: 1px solid rgba(242,233,223,.45); background: linear-gradient(90deg, rgba(118,73,56,.8), rgba(89,55,84,.78)); text-decoration: none; font-family: var(--serif); transition: transform .2s ease, filter .2s ease; }
.primary-cta:not(.is-disabled):hover { transform: translateY(-2px); filter: brightness(1.12); }
.primary-cta.is-disabled { cursor: not-allowed; opacity: .48; }
.cta-note { margin: .65rem 0 0; color: #897a74; font-size: .58rem; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.social-links { margin-top: 1rem; text-align: center; }
.social-links a { margin: 0 .6rem; color: var(--muted); font-size: .7rem; }
.gallery-section { padding: 2rem 1.1rem 5rem; }
.section-heading { margin-bottom: 1.6rem; }
.section-heading h2 { font-size: clamp(2rem, 8vw, 4rem); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.gallery figure { position: relative; min-height: 14rem; margin: 0; overflow: hidden; background: #1a1415; }
.gallery figure:first-child { grid-column: 1 / -1; min-height: 26rem; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery figure:hover img { transform: scale(1.025); }
.site-footer { max-width: 86rem; margin: 0 auto; padding: 1.5rem 1.1rem max(1.5rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: #786b67; font-size: .58rem; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; }
.site-footer p { margin: .25rem 0; }

@media (min-width: 760px) {
  .entry-portal { width: min(50rem, 60vw); height: min(92svh, 64rem); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 2rem 8rem rgba(0,0,0,.65); }
  .room-hero { grid-template-columns: minmax(0, 1.2fr) minmax(22rem, .8fr); min-height: 100svh; align-items: stretch; }
  .room-photo { height: 100svh; min-height: 0; }
  .room-photo-shade { background: linear-gradient(90deg, rgba(8,6,7,.1), transparent 45%, rgba(12,9,10,.45)); }
  .room-copy { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 7rem clamp(2rem, 5vw, 5rem) 4rem; background: radial-gradient(circle at 0 50%, rgba(122,77,133,.15), transparent 55%); }
  .gallery-section { padding: 7rem clamp(2rem, 5vw, 5rem); }
  .gallery { grid-template-columns: 1.15fr 1fr 1fr; gap: 1rem; }
  .gallery figure, .gallery figure:first-child { grid-column: auto; min-height: min(54vw, 40rem); }
  .site-footer { display: flex; justify-content: space-between; padding-inline: clamp(2rem, 5vw, 5rem); }
}

@media (min-width: 1200px) {
  .entry-portal { width: min(42rem, 42vw); }
  .hold-button { width: 8.4rem; height: 8.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ambient { animation: none; }
}

@keyframes breathe { from { transform: scale(.88); opacity: .1; } to { transform: scale(1.14); opacity: .25; } }
@keyframes enter-room { to { opacity: 0; transform: scale(1.025); filter: blur(3px); } }
