/* ============================================================
   The Acala — design tokens & base
   ============================================================ */

:root {
  /* Palette — The Acala Shri Sedana brand */
  --ink:        #111820;       /* cool near-black */
  --ink-soft:   #2a3a48;
  --muted:      #6a8090;
  --line:       #cad8e0;
  --bone:       #f6f9fb;       /* page bg — cool white */
  --ivory:      #eaf2f6;
  --sand:       #c4d8e4;
  --teak:       #1c5068;       /* THE ACALA brand teal */
  --accent:     #1c5068;       /* same teal for buttons/links */
  --accent-ink: #ffffff;

  /* Type */
  --serif:  "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:   "Manrope", "Inter", system-ui, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, monospace;

  /* Geometry */
  --pad-x: clamp(20px, 5vw, 96px);
  --max:   1440px;
  --col-gap: clamp(20px, 3vw, 48px);
  --section-y: clamp(80px, 12vw, 160px);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Palette variants applied via [data-palette] */
[data-palette="warm"] {
  --ink:#1c1814; --ink-soft:#3a342d; --muted:#7a7066; --line:#d8cfc2;
  --bone:#f5efe6; --ivory:#ede4d3; --sand:#d9c9ad; --teak:#4a3a2a;
  --accent:#a8895c; --accent-ink:#1c1814;
}
[data-palette="deep"] {
  --ink:#0d1a22; --ink-soft:#1e3040; --muted:#567085; --line:#b8cdd8;
  --bone:#f0f6fa; --ivory:#e0ecf4; --sand:#b8d0e0; --teak:#143d52;
  --accent:#143d52; --accent-ink:#ffffff;
}
[data-palette="mono"] {
  --ink:#111111; --ink-soft:#2a2a2a; --muted:#707070; --line:#d5d5d5;
  --bone:#f8f8f8; --ivory:#ededed; --sand:#cccccc; --teak:#1a1a1a;
  --accent:#1a1a1a; --accent-ink:#ffffff;
}

/* ========== reset ========== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display:block; max-width:100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ========== typographic system ========== */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.015em;
  font-size: clamp(56px, 9vw, 144px);
  font-style: italic;
}
.display em { font-style: normal; }
.h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
}
.lead {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.body {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.caption {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ========== brand mark ========== */
.mark {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -0.08em;
}
.mark svg { width: 100%; height: 100%; display: block; }

/* ========== layout helpers ========== */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(60px, 8vw, 120px); }

/* ========== nav ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  color: #f5efe6;
  transition: background .4s var(--ease), color .4s var(--ease), padding .3s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246,249,251,0.95);
  backdrop-filter: blur(14px);
  color: var(--ink);
  padding-block: 14px;
  border-bottom-color: var(--line);
}
.nav-links {
  display: flex;
  gap: clamp(16px, 2.2vw, 32px);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links a { opacity: 0.85; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-align: center;
  display: flex; align-items: center; gap: 10px;
  justify-content: center;
}
.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  transition: background .22s, color .22s, border-color .22s;
  color: #f6f9fb;
}
/* On hero (transparent nav) */
.nav-pill:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.9);
}
/* Scrolled nav — pills switch to dark/teal */
.nav.scrolled .nav-pill {
  color: var(--ink);
  border-color: var(--line);
}
.nav.scrolled .nav-pill:hover {
  background: var(--teak);
  color: #f6f9fb;
  border-color: var(--teak);
}
/* Reserve pill — always more prominent */
.nav.scrolled .nav-pill.book {
  color: var(--teak);
  border-color: var(--teak);
}
.nav.scrolled .nav-pill.book:hover {
  background: var(--teak);
  color: #f6f9fb;
}

/* Logo images */
.nav-logo {
  height: 44px;
  width: auto;
  display: block;
  /* light version — shows white on dark hero */
  filter: brightness(0) invert(1);
  transition: filter .4s var(--ease), opacity .3s;
}
.nav.scrolled .nav-logo {
  /* on scrolled (light bg) — show as brand teal */
  filter: brightness(0) saturate(100%) invert(24%) sepia(60%) saturate(600%) hue-rotate(168deg) brightness(90%);
}
.foot-logo {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
  opacity: 0.9;
}

/* ---- Hamburger nav redesign ---- */
.nav {
  grid-template-columns: auto 1fr auto !important;
}
.nav-links { display: none !important; }

/* Burger button */
.nav-burger {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 12px 8px 0;
  cursor: pointer;
  align-items: flex-start;
  position: relative;
  width: 48px;
  height: 44px;
  justify-content: center;
}
.nav-burger .b-lines {
  display: flex; flex-direction: column; gap: 6px;
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  transition: opacity .25s var(--ease);
}
.nav-burger .b-lines span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: width .4s var(--ease);
}
.nav-burger .b-lines span:nth-child(1) { width: 26px; }
.nav-burger .b-lines span:nth-child(2) { width: 17px; }
.nav-burger .b-lines span:nth-child(3) { width: 22px; }

/* X cross */
.nav-burger .b-cross {
  display: flex; flex-direction: column; gap: 6px;
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.nav-burger .b-cross span {
  display: block; width: 22px; height: 1px;
  background: currentColor;
  transition: transform .4s cubic-bezier(.77,0,.18,1), opacity .2s;
}
.nav-burger .b-cross span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger .b-cross span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Hover: all lines go full width */
.nav-burger:not(.open):hover .b-lines span { width: 26px !important; }

/* Open state: lines → cross */
.nav-burger.open .b-lines { opacity: 0; }
.nav-burger.open .b-cross { opacity: 1; }

.nav-burger-label {
  position: absolute;
  bottom: -2px; left: 0;
  font-size: 8.5px; letter-spacing: 0.32em; text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity .2s;
}
.nav-burger:hover .nav-burger-label { opacity: 1; }
.nav-burger.open .nav-burger-label { opacity: 0; }

/* ---- Overlay ---- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 89;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background .55s var(--ease);
}
.drawer-overlay.show {
  background: rgba(0,0,0,0.35);
  pointer-events: auto;
}

/* ---- Full-screen drawer ---- */
.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(520px, 100vw);
  z-index: 90;
  background: var(--teak);
  display: grid;
  grid-template-rows: 72px 1fr auto;
  transform: translateX(-100%);
  transition: transform .6s cubic-bezier(.77,0,.18,1);
  overflow: hidden;
  box-shadow: 8px 0 60px rgba(0,0,0,0);
}
.drawer.open {
  transform: none;
  box-shadow: 8px 0 80px rgba(0,0,0,0.35);
}

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(28px,4vw,56px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.drawer-logo img {
  height: 34px; filter: brightness(0) invert(1); opacity: .8;
}
.drawer-close {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); font-size: 16px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 50%;
  transition: color .2s, border-color .2s, background .2s, transform .35s var(--ease);
  font-family: var(--sans);
  letter-spacing: 0;
}
.drawer-close:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  transform: rotate(90deg);
}

.drawer-nav {
  padding: clamp(16px,3vh,32px) clamp(28px,4vw,56px);
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 0;
  overflow-y: auto;
}

/* Staggered entrance */
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1;
  color: rgba(255,255,255,0.72);
  padding: clamp(11px,1.8vh,18px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color .22s, padding-left .3s var(--ease),
              opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
  opacity: 0;
  transform: translateX(-14px);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.drawer-nav a:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
.drawer-nav a:hover { color: #fff; padding-left: 10px; }
.drawer-nav a.active { color: #fff; }

.drawer.open .drawer-nav a {
  opacity: 1;
  transform: none;
}

.drawer-nav a .arr {
  font-style: normal;
  font-size: 14px;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .2s, transform .3s var(--ease);
  transform: translateX(-6px);
  color: rgba(255,255,255,0.5);
}
.drawer-nav a:hover .arr { opacity: 1; transform: none; color: rgba(255,255,255,0.9); }
.drawer-nav a.active .arr { opacity: 0.4; transform: none; }

.drawer-nav a .num {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
  font-family: var(--sans);
  flex-shrink: 0;
  width: 24px;
  text-align: right;
}
.drawer-nav a.active .num { color: rgba(255,255,255,0.55); }
.drawer-nav a:hover .num { color: rgba(255,255,255,0.5); }

.drawer-foot {
  padding: clamp(18px,2.5vh,28px) clamp(28px,4vw,56px);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-shrink: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease) .48s, transform .5s var(--ease) .48s;
}
.drawer.open .drawer-foot {
  opacity: 1;
  transform: none;
}
.drawer-foot .info {
  font-size: 11.5px; color: rgba(255,255,255,0.4); letter-spacing: 0.06em;
  line-height: 1.65;
}
.drawer-foot a.reserve {
  flex-shrink: 0;
  padding: 11px 24px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: background .25s, border-color .25s, color .25s;
}
.drawer-foot a.reserve:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

/* scroll lock */
body.drawer-open { overflow: hidden; }

@media (max-width: 480px) {
  .drawer { width: 100vw; }
  .drawer-nav a { font-size: clamp(22px, 7vw, 36px); }
  .nav-burger-label { display: none; }
}

/* ========== buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn-light { color: #f5efe6; }
.btn-light:hover { background: #f5efe6; color: var(--ink); border-color: #f5efe6; }
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--ink); color: var(--bone); border-color: var(--ink);
}
.btn .arrow { width: 14px; height: 1px; background: currentColor; position: relative; }
.btn .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.linkarrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: gap .25s var(--ease), opacity .2s;
}
.linkarrow:hover { gap: 18px; }

/* ========== hero ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: #f5efe6;
  display: grid;
  grid-template-rows: 1fr auto;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img,
.hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-bg iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: max(100%, 177.8vh);
  height: max(100%, 56.25vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad-x) clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.hero-tag {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0.85;
}
.hero-tag::before {
  content: ""; width: 36px; height: 1px; background: currentColor;
}
.hero-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(56px, 10vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-title em { font-style: normal; font-weight: 400; }
.hero-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 32px;
  padding: 0 var(--pad-x) clamp(28px, 4vw, 56px);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
}
.hero-meta { display: flex; gap: 28px; opacity: 0.85; }
.hero-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0.85;
}
.hero-scroll .line {
  width: 1px; height: 56px; background: currentColor;
  position: relative; overflow: hidden;
}
.hero-scroll .line::after {
  content: ""; position: absolute; top: -56px; left: 0; width: 100%; height: 56px;
  background: rgba(245,239,230,0.95);
  animation: scrollDot 2.4s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { top: -56px; }
  60%  { top: 56px; }
  100% { top: 56px; }
}
.hero-right { text-align: right; opacity: 0.85; }

/* ========== booking bar ========== */
.bookbar {
  position: fixed;
  bottom: clamp(16px, 2vw, 28px);
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 45;
  display: flex;
  align-items: stretch;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 22px 60px -22px rgba(0,0,0,0.35), 0 6px 20px -8px rgba(0,0,0,0.18);
  padding: 6px;
  gap: 0;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
  max-width: calc(100vw - 32px);
}
.bookbar.hidden {
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
}
.bookbar-field {
  padding: 10px 22px;
  display: flex; flex-direction: column; gap: 2px;
  border-right: 1px solid var(--line);
  min-width: 130px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.bookbar-field:hover { background: var(--ivory); }
.bookbar-field:last-of-type { border-right: none; }
.bookbar-field .lbl {
  font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.bookbar-field .val {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.1;
  color: var(--ink);
}

/* Custom calendar */
.bb-calendar {
  position: fixed;
  bottom: calc(clamp(16px,2vw,28px) + 72px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 46;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 32px 64px -24px rgba(0,0,0,0.3), 0 8px 24px -8px rgba(0,0,0,0.15);
  width: 320px;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.bb-calendar.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.bb-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.bb-cal-month {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}
.bb-cal-nav {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  font-size: 14px; color: var(--ink);
  cursor: pointer; transition: background .2s, border-color .2s;
  background: transparent;
}
.bb-cal-nav:hover { background: var(--ivory); border-color: var(--teak); }
.bb-cal-grid {
  display: grid; grid-template-columns: repeat(7,1fr);
  margin-bottom: 8px;
}
.bb-cal-dow {
  text-align: center;
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); padding: 4px 0;
}
.bb-cal-days {
  display: grid; grid-template-columns: repeat(7,1fr); gap: 2px;
}
.bb-cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 15px;
  color: var(--ink); cursor: pointer; border-radius: 50%;
  position: relative;
  transition: background .15s, color .15s;
}
.bb-cal-day:hover:not(.empty):not(.past) { background: var(--ivory); }
.bb-cal-day.empty, .bb-cal-day.past { color: var(--line); cursor: default; pointer-events: none; }
.bb-cal-day.check-in, .bb-cal-day.check-out {
  background: var(--teak); color: #fff; border-radius: 50%;
}
.bb-cal-day.in-range {
  background: rgba(28,80,104,0.12); border-radius: 0;
  color: var(--ink);
}
.bb-cal-day.check-in { border-radius: 50% 0 0 50%; }
.bb-cal-day.check-out { border-radius: 0 50% 50% 0; }
.bb-cal-day.check-in.check-out { border-radius: 50%; }
.bb-cal-foot {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.bb-cal-hint {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); text-align: center;
}

/* Guests popup */
.bb-guests-popup {
  position: fixed;
  bottom: calc(clamp(16px,2vw,28px) + 72px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 46;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 32px 64px -24px rgba(0,0,0,0.3);
  width: 280px;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.bb-guests-popup.open {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.bb-g-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.bb-g-row:first-child { border-top: 1px solid var(--line); }
.bb-g-label span { font-family: var(--serif); font-size: 18px; display: block; }
.bb-g-label small { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.bb-g-ctrl { display: flex; align-items: center; gap: 18px; }
.bb-g-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  font-size: 18px; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.bb-g-btn:hover { background: var(--ivory); border-color: var(--teak); }
.bb-g-btn:disabled { color: var(--line); cursor: default; border-color: var(--line); }
.bb-g-num { font-family: var(--serif); font-size: 22px; min-width: 24px; text-align: center; }
.bb-g-done {
  width: 100%; margin-top: 18px;
  padding: 12px;
  background: var(--teak); color: #fff;
  border-radius: 999px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer; transition: background .2s;
}
.bb-g-done:hover { background: var(--ink); }
.bookbar-cta {
  display: flex; align-items: center; gap: 12px;
  padding: 0 26px;
  background: var(--ink);
  color: var(--bone);
  border-radius: 999px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  transition: background .25s;
  cursor: pointer;
  min-height: 44px;
}
.bookbar-cta:hover { background: var(--teak); color: #fff; }
@media (max-width: 720px) {
  .bookbar-field { padding: 8px 14px; min-width: 0; }
  .bookbar-field .val { font-size: 14px; }
  .bookbar-cta { padding: 0 18px; font-size: 10px; }
  .bookbar-field:nth-child(3) { display: none; }
}

/* ========== reveal on scroll ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ========== misc ========== */
.divider {
  width: 100%; height: 1px; background: var(--line); margin-block: clamp(40px, 6vw, 80px);
}
.rule-with-mark {
  display: flex; align-items: center; gap: 18px;
  color: var(--muted);
}
.rule-with-mark::before,
.rule-with-mark::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
