/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.5;
  color: #eaeef7;
  background: #0e1a2b;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== GRAIN OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ===== VARIABLES ===== */
:root {
  --bg: #0e1a2b;
  --ink: #eaeef7;
  --accent: #ccff33;
  --accent-dim: #a0cc28;
  --gutter: #1f2d42;
  --card-bg: rgba(255,255,255,0.04);
  --radius: 8px;
}

/* ===== MARQUEE TICKER ===== */
.marquee-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 36px;
  background: rgba(12, 22, 38, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(204, 255, 51, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.marquee {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  font-weight: 200;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.marquee span:nth-child(even) { color: rgba(204, 255, 51, 0.35); font-size: 0.5rem; }
@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

/* ===== BOOK SPREAD LAYOUT ===== */
.spread {
  display: grid;
  grid-template-columns: 1fr 4px 1fr;
  min-height: 100vh;
  padding-top: 36px; /* marquee height */
  padding-bottom: 2rem;
}
.gutter {
  position: relative;
  background: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gutter-line {
  width: 1px;
  height: 60%;
  background: var(--accent);
  opacity: 0.3;
}

/* ===== PAGES ===== */
.page {
  padding: 3rem 2.5rem 4rem;
  display: flex;
  flex-direction: column;
}
.page-inner {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}
.page-left {
  justify-content: center;
  align-items: flex-end;
  text-align: right;
}
.page-left .page-inner { margin: 0 0 0 auto; }
.page-right {
  overflow-y: auto;
}

/* ===== LEFT PAGE — TITLE ===== */
.label {
  font-weight: 200;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem 0;
  opacity: 0.7;
}
.site-title {
  font-family: 'Fraunces', serif;
  font-weight: 200;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ===== DICTATED QUOTE ===== */
.dictated {
  min-height: 3.5rem;
  margin-bottom: 2.5rem;
  font-weight: 200;
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(234, 238, 247, 0.85);
}
.word {
  display: inline-block;
  opacity: 0;
  animation: reveal-word 0.3s ease-out forwards;
  animation-delay: var(--reveal-delay);
}
@keyframes reveal-word {
  to { opacity: 1; }
}
.cursor {
  display: inline-block;
  font-weight: 200;
  color: var(--accent);
  opacity: 0;
  animation: cursor-blink 0.8s step-end infinite;
  animation-delay: var(--cursor-start, 5s);
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== ACCENT BUTTON ===== */
.btn-accent {
  display: inline-block;
  background: var(--accent);
  color: #0e1a2b;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.btn-accent:hover {
  background: var(--accent-dim);
  transform: scale(1.03);
}
.btn-accent:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ===== RIGHT PAGE SECTIONS ===== */
.section-block {
  margin-bottom: 3rem;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 200;
  font-size: 1.6rem;
  margin: 0 0 1rem 0;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* ===== SERVICES ===== */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.service-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}
.service-name { font-weight: 200; }
.service-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

/* ===== HOURS ===== */
.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hour-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hour-row span:first-child { font-weight: 200; }

/* ===== LOCATION ===== */
.address {
  font-size: 1.05rem;
  margin: 0 0 1rem 0;
  font-weight: 200;
}
.accent { color: var(--accent); font-weight: 700; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.map-embed iframe { display: block; }

/* ===== PHOTOS ===== */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.photo-placeholder {
  background: var(--card-bg);
  border: 1px dashed rgba(204, 255, 51, 0.2);
  border-radius: var(--radius);
  height: var(--h, 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 200;
  font-size: 0.85rem;
  color: rgba(234, 238, 247, 0.4);
}
.photo-note {
  font-weight: 200;
  font-size: 0.8rem;
  margin: 0.6rem 0 0;
  opacity: 0.5;
}

/* ===== BOOKING FORM ===== */
#booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
#booking-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 200;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(234, 238, 247, 0.7);
}
#booking-form input,
#booking-form select,
#booking-form textarea {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--ink);
  transition: border-color 0.2s;
}
#booking-form input:focus,
#booking-form select:focus,
#booking-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(204, 255, 51, 0.15);
}
#booking-form select option { background: #0e1a2b; color: var(--ink); }
#booking-form textarea { resize: vertical; }
.form-status {
  font-weight: 200;
  font-size: 0.85rem;
  margin: 0;
  color: var(--accent);
}

/* ===== ATTRIBUTION FOOTER ===== */
.attribution {
  position: fixed;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.7rem;
  opacity: 0.4;
  font-weight: 200;
  z-index: 10000;
}
.attribution a { color: var(--ink); }

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .spread {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }
  .gutter { display: none; }
  .page {
    padding: 2rem 1.5rem 3rem;
  }
  .page-left {
    align-items: flex-start;
    text-align: left;
    padding-bottom: 0.5rem;
  }
  .page-left .page-inner { margin: 0; }
  .page-right {
    padding-top: 0.5rem;
  }
  .service-grid,
  .photo-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; }
  .word { opacity: 1; animation: none; }
  .cursor { display: none; }
  .btn-accent:hover { transform: none; }
  html { scroll-behavior: auto; }
}
