:root {
  --bg: #0c0b0a;
  --bg-2: #141210;
  --surface: #1c1915;
  --text: #f3eee6;
  --muted: #9a9184;
  --accent: #d4b483;
  --accent-ink: #0c0b0a;
  --line: rgba(196, 165, 116, 0.22);
  --danger: #b42318;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 2px;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --max: 1180px;
  --nav-h: 70px;
}

html[data-theme="ivory-ink"] {
  --bg: #ecd8b0;
  --bg-2: #ddc08a;
  --surface: #f2e4c4;
  --text: #221a10;
  --muted: #4a3a22;
  --accent: #8a5a2b;
  --accent-ink: #f7ecd9;
  --line: rgba(34, 26, 16, 0.16);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='0.5' intercept='0.5'/%3E%3CfeFuncG type='linear' slope='0.5' intercept='0.5'/%3E%3CfeFuncB type='linear' slope='0.5' intercept='0.5'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html[data-theme="ivory-ink"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 70% at 8% -12%, rgba(255, 251, 242, 0.45), transparent 55%),
    radial-gradient(ellipse 85% 65% at 108% 118%, rgba(80, 52, 26, 0.16), transparent 60%),
    var(--grain);
  background-blend-mode: soft-light, multiply, multiply;
}

html[data-theme="ivory-ink"] .card,
html[data-theme="ivory-ink"] .person,
html[data-theme="ivory-ink"] .review,
html[data-theme="ivory-ink"] .book,
html[data-theme="ivory-ink"] .customizer__panel {
  background-image: var(--grain);
  background-blend-mode: multiply;
}

html[data-theme="blood-steel"] {
  --bg: #090909;
  --bg-2: #121212;
  --surface: #1a1a1a;
  --text: #ececec;
  --muted: #8d8d8d;
  --accent: #c42b2b;
  --accent-ink: #fff;
  --line: rgba(196, 43, 43, 0.28);
}

html[data-theme="forest-brass"] {
  --bg: #0d1210;
  --bg-2: #141c18;
  --surface: #1a2420;
  --text: #e8efe8;
  --muted: #8aa090;
  --accent: #c9a227;
  --accent-ink: #0d1210;
  --line: rgba(201, 162, 39, 0.22);
}

html[data-theme="ocean-silver"] {
  --bg: #0b1016;
  --bg-2: #121821;
  --surface: #18202b;
  --text: #e8eef6;
  --muted: #8b97a8;
  --accent: #b8c4ce;
  --accent-ink: #0b1016;
  --line: rgba(184, 196, 206, 0.22);
}

.glass-controls {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  box-shadow:
    0 10px 30px -12px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 color-mix(in srgb, white 22%, transparent);
}

.glass-langs {
  position: relative;
  display: flex;
  padding: 3px;
  border-radius: 999px;
}

.glass-langs__highlight {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 34px;
  border-radius: 999px;
  background: var(--text);
  transition:
    left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-langs button {
  position: relative;
  border: none;
  background: transparent;
  color: var(--text);
  opacity: 0.5;
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.05em;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s;
}

.glass-langs button.is-on {
  opacity: 1;
  color: var(--bg);
}

.glass-theme {
  position: relative;
  width: 46px;
  height: 26px;
  border: none;
  border-radius: 999px;
  padding: 3px;
  cursor: pointer;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.glass-theme__knob {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--accent), color-mix(in srgb, var(--accent) 60%, white));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
}

html[data-theme="ivory-ink"] .glass-theme__knob {
  transform: translateX(20px);
}

.glass-theme__knob svg {
  width: 11px;
  height: 11px;
  fill: var(--accent-ink);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="ivory-ink"] .glass-theme__knob svg {
  transform: rotate(180deg);
}

@media (max-width: 640px) {
  .glass-controls {
    top: auto;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 10px);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.has-cursor {
  cursor: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(3.4rem, 9vw, 7.4rem);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 0.55rem 0.15rem;
  vertical-align: middle;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.35rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn--sm {
  min-height: 40px;
  padding: 0 1rem;
  font-size: 0.72rem;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem var(--pad);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
}

.nav__logo {
  height: 36px;
  width: auto;
}

.nav__links {
  margin-left: auto;
  display: flex;
  gap: 1.4rem;
  font-size: 0.82rem;
}

.nav__links a {
  color: var(--muted);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__menu {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  margin-left: auto;
}

.nav__menu span {
  display: block;
  height: 1px;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}

.hero__copy {
  padding: clamp(2.5rem, 7vh, 6rem) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.lede {
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 28rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 1.4rem;
}

.hero__status {
  font-size: 0.85rem;
}

.hero__status.is-open {
  color: #7dba7a;
}

.hero__status.is-closed {
  color: var(--muted);
}

.hero__media {
  position: relative;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  filter: saturate(0.86) contrast(1.05);
}

.hero__badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.hero__badge strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__badge span {
  color: var(--muted);
  font-size: 0.82rem;
}

.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
}

.marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: drift 28s linear infinite;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

@keyframes drift {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border-bottom: 1px solid var(--line);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.about__text {
  padding: var(--pad);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.checks li {
  position: relative;
  padding-left: 1.3rem;
  margin: 0.4rem 0;
  color: var(--text);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
}

.stat span {
  font-size: 0.75rem;
  color: var(--muted);
}

.section {
  padding: calc(var(--pad) * 1.15) var(--pad);
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
}

.section--tight {
  padding-top: 0.2rem;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.filters button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.filters button.is-on {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

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

.card {
  background: var(--bg);
  padding: 1.35rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
}

.card h3 {
  font-size: 1.55rem;
  margin: 0;
}

.card .meta {
  font-size: 0.78rem;
  color: var(--muted);
  grid-column: 1;
}

.card .price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--accent);
}

.card p {
  grid-column: 1 / -1;
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
}

.card .book-this {
  grid-column: 1 / -1;
  margin-top: 0.7rem;
  justify-self: start;
}

.ba {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  border-block: 1px solid var(--line);
}

.ba__copy {
  padding: var(--pad);
}

.ba__stage {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.ba__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba__before {
  position: absolute;
  inset: 0;
  width: 52%;
  overflow: hidden;
  border-right: 2px solid var(--accent);
}

.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.team,
.reviews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.person {
  background: var(--surface);
  border: 1px solid var(--line);
}

.person img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  filter: grayscale(0.25);
}

.person div {
  padding: 1rem;
}

.person h3 {
  font-size: 1.35rem;
  margin: 0 0 0.2rem;
}

.person .role {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.gallery button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.book {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  margin: 0 var(--pad) var(--pad);
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.book__intro,
.form {
  padding: var(--pad);
}

.hours {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  border-left: 1px solid var(--line);
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.7rem 0.75rem;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.span-2 {
  grid-column: 1 / -1;
}

.form__ok {
  color: #7dba7a;
  margin: 0;
}

.review {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.stars {
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 0.6rem 0 0;
}

.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 420px;
  border-top: 1px solid var(--line);
}

.contact__card {
  padding: var(--pad);
}

.contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--pad) 5.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a:hover {
  color: var(--text);
}

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.mobile-bar a {
  flex: 1;
  text-align: center;
  padding: 0.95rem 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-bar .is-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.88);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox img {
  max-height: 84vh;
  max-width: 92vw;
}

.lightbox button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid var(--line);
  color: #fff;
  padding: 0.5rem 0.8rem;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid;
  place-content: center;
  gap: 1.2rem;
  text-align: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__mark {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0;
}

.loader__bar {
  width: 140px;
  height: 1px;
  background: var(--line);
  margin: 0 auto;
}

.loader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  animation: load 1.1s ease forwards;
}

@keyframes load {
  to {
    width: 100%;
  }
}

.customizer {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 60;
}

.customizer__panel {
  display: none;
  width: 230px;
  margin-bottom: 0.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.customizer.is-open .customizer__panel {
  display: block;
}

.customizer label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  margin: 0.6rem 0;
}

.customizer select,
.customizer input {
  width: 100%;
}

.hint {
  font-size: 0.72rem;
  color: var(--muted);
}

.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 200;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.15s ease;
}

body.has-cursor.cursor-active .cursor,
body.has-cursor.cursor-active .cursor-dot {
  opacity: 1;
}

.cursor {
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

@media (max-width: 960px) {
  .hero,
  .about,
  .ba,
  .book,
  .contact,
  .team,
  .reviews,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    height: auto;
    overflow: visible;
  }

  .hero__media img {
    min-height: 320px;
  }

  .form {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem var(--pad) 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__cta {
    display: none;
  }

  .nav__menu {
    display: flex;
  }

  .mobile-bar {
    display: flex;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .team,
  .reviews {
    grid-template-columns: 1fr 1fr;
  }

  .form {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }
}

@media (hover: none), (pointer: coarse) {
  body.has-cursor {
    cursor: auto;
  }

  .cursor,
  .cursor-dot {
    display: none !important;
  }
}

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

  .marquee__track,
  .loader__bar span {
    animation: none;
  }
}
