:root {
  --ink: #151a17;
  --ink-2: #1c2320;
  --surface: #222a26;
  --fog: #f0f3ef;
  --mist: #a7b2ab;
  --copper: #d08945;
  --copper-hot: #e4a35c;
  --line: rgba(240, 243, 239, 0.14);
  --hero-fog: #f5f7f4;
  --hero-mist: rgba(245, 247, 244, 0.88);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fog);
  background: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Top —— */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(180deg, rgba(21, 26, 23, 0.88), rgba(21, 26, 23, 0.45) 70%, transparent);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--copper);
  color: var(--copper-hot);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}
.brand-text small {
  color: var(--mist);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.nav {
  margin-left: auto;
  display: none;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--mist);
}
.nav a:hover { color: var(--fog); }

@media (min-width: 780px) {
  .nav { display: flex; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border: 0;
  background: var(--copper);
  color: #1a120a;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s ease;
}
.btn:hover { background: var(--copper-hot); transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fog);
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
}
.btn-ghost:hover { border-color: var(--copper); color: var(--copper-hot); background: transparent; }

.btn-line {
  background: transparent;
  border: 1px solid rgba(224, 163, 92, 0.55);
  color: var(--hero-fog);
}
.btn-line:hover { border-color: var(--copper-hot); background: rgba(208, 137, 69, 0.16); }

.btn-sm { padding: 0.65rem 1rem; font-size: 0.9rem; }

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6.5rem 1.25rem 2rem;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.02);
  filter: brightness(1.05) saturate(1.04);
  animation: heroPulse 14s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 26, 23, 0.35) 0%,
    rgba(21, 26, 23, 0.22) 40%,
    rgba(21, 26, 23, 0.72) 100%
  );
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.45;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin-inline: auto;
  animation: rise 0.9s var(--ease) both;
  color: var(--hero-fog);
}

.brand-hero {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--hero-fog);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.6vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--hero-fog);
}

.hero .lead {
  color: var(--hero-mist);
}

.hero-foot {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 2.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--hero-mist);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  animation: rise 1.1s 0.15s var(--ease) both;
}

.lead {
  margin: 0 0 1.5rem;
  max-width: 36ch;
  color: var(--mist);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroPulse {
  from { filter: saturate(1) brightness(0.95); }
  to { filter: saturate(1.08) brightness(1.02); }
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}
.section-alt { background: var(--ink-2); }

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 18ch;
}

.section-lead {
  margin: 0 0 2rem;
  max-width: 48ch;
  color: var(--mist);
}

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.guide-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.guide-list li.in { opacity: 1; transform: none; }

.guide-list .n {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--copper);
  font-size: 1.1rem;
  padding-top: 0.15rem;
}

.guide-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.guide-list p {
  margin: 0;
  color: var(--mist);
  max-width: 52ch;
}

/* M.A.P */
.map-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) {
  .map-split { grid-template-columns: 1fr 1.05fr; gap: 2.5rem; }
}
.map-photo {
  margin: 0;
  overflow: hidden;
}
.map-photo img {
  width: 100%;
  height: min(52vw, 420px);
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.05);
}

.space-photo {
  margin: 0 0 2rem;
  overflow: hidden;
}
.space-photo img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
.space-meta { margin-top: 0.5rem; }

.gate-cta {
  text-align: left;
  max-width: 40rem;
}
.gate-cta .btn { margin-top: 0.5rem; }

.map-steps {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 1.5rem;
}
@media (min-width: 720px) {
  .map-steps { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}

.map-steps article {
  padding-top: 1rem;
  border-top: 2px solid var(--copper);
}
.map-steps h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.map-steps p { margin: 0; color: var(--mist); font-size: 0.95rem; }

.map-note {
  margin: 0;
  color: var(--mist);
  max-width: 55ch;
}
.map-note em { color: var(--copper-hot); font-style: normal; font-weight: 600; }

.split-info {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .split-info { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.addr {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.addr li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.addr strong { font-family: var(--font-display); }
.addr span { color: var(--mist); font-size: 0.95rem; }

.fine { color: var(--mist); font-size: 0.9rem; max-width: 42ch; }

.hours-box {
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 800px) {
  .hours-box {
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }
}
.hours-label { margin: 0; color: var(--mist); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hours-val {
  margin: 0.35rem 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}
.hours-sub { margin: 0 0 1.25rem; color: var(--mist); font-size: 0.9rem; }

/* Book */
.section-book { background: linear-gradient(180deg, var(--ink) 0%, #1a211d 100%); }

.book-wrap {
  display: grid;
  gap: 2rem;
}
@media (min-width: 860px) {
  .book-wrap { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

.book-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .book-form { grid-template-columns: 1fr 1fr; }
  .book-form .full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: var(--mist);
  letter-spacing: 0.03em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(15, 18, 16, 0.55);
  color: var(--fog);
  border-radius: 0;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(184, 106, 46, 0.7);
}
.field input:disabled {
  background: var(--ink-2);
  color: var(--mist);
}

.form-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.form-msg { margin: 0; font-size: 0.92rem; color: var(--copper-hot); }
.form-msg.err { color: #c44a4a; }

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 5.5rem;
  color: var(--mist);
  font-size: 0.9rem;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.foot strong {
  font-family: var(--font-display);
  color: var(--fog);
  margin-right: 0.35rem;
}
.foot span { display: block; font-size: 0.8rem; margin-top: 0.2rem; color: var(--copper); }
.foot-links { display: flex; gap: 1.25rem; }
.foot-links a:hover { color: var(--fog); }

/* Chat */
.chat-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 45;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 0;
  border: 0;
  background: var(--copper);
  color: #1a120a;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease), background 0.2s;
}
.chat-fab:hover { background: var(--copper-hot); transform: scale(1.04); }
.chat-fab[hidden] { display: none !important; }

.chat-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 46;
  width: min(100% - 2rem, 380px);
  height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(28, 36, 32, 0.18);
  animation: rise 0.35s var(--ease) both;
}
.chat-panel[hidden] { display: none !important; }

.chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.chat-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.chat-head small { color: var(--mist); font-size: 0.75rem; }
.chat-close {
  border: 0;
  background: transparent;
  color: var(--mist);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}
.chat-close:hover { color: var(--fog); }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bubble {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.bubble.bot {
  align-self: flex-start;
  background: var(--ink-2);
  border-left: 2px solid var(--copper);
}
.bubble.user {
  align-self: flex-end;
  background: rgba(184, 106, 46, 0.12);
  border: 1px solid rgba(184, 106, 46, 0.28);
}
.bubble.err { color: #c44a4a; border-left-color: #c44a4a; }

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
}
.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fog);
  outline: none;
}
.chat-form input:focus { border-color: rgba(184, 106, 46, 0.65); }

/* Auth */
.auth-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.auth-shell {
  width: min(100%, 920px);
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
@media (min-width: 800px) {
  .auth-shell { grid-template-columns: 1.05fr 1fr; }
}
.auth-brand {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
}
.auth-visual {
  display: none;
  min-height: 420px;
  position: relative;
}
@media (min-width: 800px) {
  .auth-visual { display: block; }
}
.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(1.02);
}
.auth-panel {
  padding: 2rem 1.5rem 1.75rem;
  position: relative;
}
.auth-panel h1 {
  margin: 2.5rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}
.auth-lead { color: var(--mist); margin: 0 0 1.25rem; font-size: 0.95rem; }
.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.auth-tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
}
.auth-tab.is-on {
  border-color: var(--copper);
  color: var(--fog);
}
.auth-form .btn { width: 100%; margin-top: 0.35rem; }
.auth-fine {
  margin: 1.25rem 0 0;
  color: var(--mist);
  font-size: 0.82rem;
}

/* App (logged-in) */
.app-page { padding-bottom: 4rem; }
.app-top { position: sticky; background: rgba(21, 26, 23, 0.94); }
.app-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--mist);
  font-size: 0.85rem;
}
.app-main { padding-top: 5.5rem; }
.app-hero { margin-bottom: 2rem; }
.app-hero-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  margin-bottom: 1.25rem;
}
.app-hero-copy h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.app-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 3rem;
}
@media (min-width: 900px) {
  .app-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
}
.app-side img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  margin-bottom: 1rem;
}
.app-side-copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.booking-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.booking-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.booking-list span { color: var(--mist); font-size: 0.85rem; }
.booking-list small { color: var(--mist); font-size: 0.75rem; }
.booking-list .muted { color: var(--mist); border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
