:root,
[data-theme="light"] {
  --bg: #f4efe6;
  --bg-2: #fffdf8;
  --bg-3: #ebe4d6;
  --card: #ffffff;
  --text: #1b1713;
  --muted: #6d6559;
  --faint: #9a9184;
  --line: rgba(92, 72, 40, 0.14);
  --line-strong: rgba(92, 72, 40, 0.28);
  --gold: #9a7533;
  --gold-2: #c4a15a;
  --ok: #3f7a4c;
  --bad: #b55242;
  --shadow: 0 24px 60px rgba(40, 28, 12, 0.08);
  --hero-scrim: linear-gradient(90deg, #f4efe6 0%, rgba(244, 239, 230, 0.88) 42%, rgba(244, 239, 230, 0.2) 70%, transparent 100%);
  --noise: 0.035;
  --invert-mark: none;
}

[data-theme="dark"] {
  --bg: #0c0b0a;
  --bg-2: #141311;
  --bg-3: #1c1a17;
  --card: #161411;
  --text: #f3ece2;
  --muted: #9a9388;
  --faint: #6d675e;
  --line: rgba(214, 184, 126, 0.16);
  --line-strong: rgba(214, 184, 126, 0.32);
  --gold: #d6b87e;
  --gold-2: #f0d7a4;
  --ok: #8fbf98;
  --bad: #c46b5a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --hero-scrim: linear-gradient(90deg, #0c0b0a 0%, rgba(12, 11, 10, 0.96) 46%, rgba(12, 11, 10, 0.55) 68%, transparent 100%);
  --noise: 0.05;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--gold); color: #111; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  opacity: var(--noise);
  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='.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(1120px, calc(100% - 40px)); margin: 0 auto; }
.wrap-wide { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

h1, h2, h3, .serif {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.gold { color: var(--gold); }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  position: relative;
}
.brand-mark span {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  line-height: 1;
}
.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  letter-spacing: 0.12em;
}
.brand-sub {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--bg-2);
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn > div,
.icon-btn svg { width: 18px; height: 18px; display: grid; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  background: var(--bg-2);
  transition: 0.2s ease;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a140c;
  border-color: transparent;
  font-weight: 600;
}
.btn-gold:hover { filter: brightness(1.05); color: #1a140c; }
.btn-full { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 11px; }
.menu-toggle { display: none; }

.banner {
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  background-image: var(--hero-scrim), var(--hero-image);
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-copy { position: relative; z-index: 2; padding: 64px 0; max-width: 640px; }
.hero h1 {
  font-size: clamp(52px, 8vw, 96px);
  margin: 12px 0 16px;
  text-shadow: 0 8px 40px var(--bg);
}
.hero-lead { color: var(--muted); font-size: 18px; max-width: 38ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn { background: var(--card); }
.hero .btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}
.live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent);
}

.orbit {
  position: absolute;
  right: 8%;
  bottom: 12%;
  width: 160px;
  height: 160px;
  z-index: 2;
  pointer-events: none;
  color: var(--gold);
  opacity: 0.7;
}
.orbit svg { width: 100%; height: 100%; }
.spin { animation: spin 28s linear infinite; transform-origin: center; }
.float { animation: float 5.5s ease-in-out infinite; }

.section { padding: 84px 0; }
.section-head { margin-bottom: 32px; max-width: 44ch; }
.section-head h2 { font-size: clamp(36px, 5vw, 60px); margin-top: 8px; }

.path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}
.path::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px);
  opacity: 0.45;
}
.path-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 22px 24px;
  box-shadow: var(--shadow);
  position: relative;
  text-align: center;
}
.fig {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  color: var(--gold);
}
.fig svg { width: 100%; height: 100%; }
.path-card h3 { font-size: 30px; margin-bottom: 8px; }
.path-card p { color: var(--muted); font-size: 14px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 230px;
  transition: transform 0.25s, border-color 0.25s;
}
.service:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.service-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.mini-fig { width: 44px; height: 44px; color: var(--gold); }
.mini-fig svg { width: 100%; height: 100%; }
.service h3 { font-size: 30px; }
.price { font-family: "Cormorant Garamond", serif; font-size: 28px; color: var(--gold); }
.service .btn { margin-top: auto; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.team-card img { height: 280px; width: 100%; object-fit: cover; }
.team-card div { padding: 16px; }
.team-card h3 { font-size: 28px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.review {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.stars { color: var(--gold); letter-spacing: 2px; }

.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.page-hero { padding: 48px 0 20px; }
.page-hero h1 { font-size: clamp(44px, 7vw, 80px); margin: 8px 0 10px; }

.wizard { padding: 20px 0 80px; }
.steps-fig {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0 28px;
}
.step-fig {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  color: var(--faint);
}
.step-fig.on { border-color: var(--gold); color: var(--text); box-shadow: inset 0 0 0 1px var(--gold); }
.step-fig .mini-fig { margin: 0 auto 6px; }
.step-fig span { font-size: 12px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice, .day-slot, .time-slot, .team-pick {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  width: 100%;
}
.choice.on, .day-slot.on, .time-slot.on, .team-pick.on {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.day-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 16px; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.team-pick { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.team-pick img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.span { grid-column: 1 / -1; }
.field span { font-size: 12px; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); }

.ticket {
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  padding: 28px;
  background: var(--card);
}
.ticket h2 { font-size: 46px; margin: 8px 0 12px; }
.qr {
  width: 84px;
  height: 84px;
  border: 2px solid var(--gold);
  background:
    repeating-linear-gradient(90deg, var(--gold) 0 3px, transparent 3px 6px),
    repeating-linear-gradient(0deg, var(--gold) 0 3px, transparent 3px 6px);
  opacity: 0.85;
}

.appt {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  margin-bottom: 10px;
  align-items: center;
}
.empty {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
  padding-bottom: 80px;
}
.login-card, .cred-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.cred-card h3 { font-size: 32px; margin: 8px 0 16px; }
.cred-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.cred-row code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  color: var(--gold);
}
.login-error {
  color: var(--bad);
  font-size: 14px;
  margin-bottom: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  padding-bottom: 80px;
}
.admin-nav { display: flex; flex-direction: column; gap: 6px; }
.admin-nav button,
.admin-nav a {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  display: block;
}
.admin-nav button.on, .admin-nav button:hover,
.admin-nav a.on, .admin-nav a:hover {
  background: var(--card);
  color: var(--text);
}
.inline-form { display: inline; }
.choice-grid form, .day-row form, .slot-grid form { margin: 0; }
.admin-item + form { margin: -4px 0 14px; text-align: right; }
.theme-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.theme-pick button {
  min-width: 140px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  text-align: left;
}
.theme-pick button.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }

.admin-item {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 12px;
}
.admin-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.admin-item-head strong { font-family: "Cormorant Garamond", serif; font-size: 26px; }
.thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-3);
}
.thumb-row { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.color-row {
  display: grid;
  grid-template-columns: 28px 1fr 110px;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.color-row input[type="color"] {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
}
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.file-pick {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.copy-group {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 18px 0 4px;
}
.admin-nav-group {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 14px 14px 4px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: 0.25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
  color: var(--muted);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.foot-grid h3 { color: var(--text); font-size: 28px; margin-bottom: 8px; }
.foot-grid a, .foot-grid p { display: block; margin: 6px 0; font-size: 14px; }
.legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .spin, .float, .service { animation: none; transition: none; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 20px;
    align-items: flex-start;
  }
  .path, .service-grid, .team-grid, .gallery, .review-grid, .visit,
  .choice-grid, .form-grid, .admin-grid, .foot-grid, .day-row, .slot-grid, .steps-fig,
  .login-layout {
    grid-template-columns: 1fr;
  }
  .path::before { display: none; }
  .gallery, .slot-grid, .choice-grid, .steps-fig { grid-template-columns: 1fr 1fr; }
  .orbit { display: none; }
  .hero { min-height: auto; }
  .hero-photo { opacity: 0.28; }
}

@media (max-width: 640px) {
  .wrap, .wrap-wide, .nav-inner { width: calc(100% - 28px); }
  .gallery, .steps-fig { grid-template-columns: 1fr 1fr; }
  .legal { flex-direction: column; }
  .nav-tools .btn { display: none; }
}
