/* ════════════════════════════════════════════════════════════
   Vishwokarma Labs — Studio Booking
   Premium, monochrome, minimal. No paper texture, no colour.
   ════════════════════════════════════════════════════════════ */

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

:root {
  --paper:     #ffffff;
  --paper-mid: #f6f6f4;
  --paper-dp:  #ececea;
  --ink:       #0d0d0d;
  --muted:     #6d6d67;
  --faint:     #b4b4ae;
  --rule:      #e2e2de;
  --max-w:     1120px;
  --nav-h:     72px;
  --ease:      cubic-bezier(.16,.84,.44,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }

a { color: inherit; }

.eyebrow {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ─── Scroll progress ─────────────────────────── */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--ink); z-index: 999; transition: width 0.1s linear;
}

/* ─── Nav ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--max-w); width: 100%; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logo { width: 28px; height: 28px; object-fit: contain; filter: grayscale(1); }
.nav__brand span {
  font-family: 'DM Mono', ui-monospace, monospace; font-size: 12px;
  letter-spacing: 0.14em; font-weight: 500;
}
.nav__links { display: flex; align-items: center; gap: 20px; }
.nav__links > a:first-child { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav__links > a:first-child:hover { color: var(--ink); }

/* ─── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  padding: 13px 26px; border-radius: 999px;
  border: 1.5px solid var(--ink); cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .2s, color .2s;
  will-change: transform;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--block { width: 100%; padding: 16px; border-radius: 10px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ─── Reveal-on-scroll ─────────────────────────── */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-up    { transform: translateY(28px); }
.reveal-left  { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-scale { transform: scale(0.94); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1; transform: none;
}
.stagger.visible > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ─── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  max-width: var(--max-w); margin: 0 auto;
  padding: 96px 28px 64px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  overflow: hidden;
}
.hero__ghost {
  position: absolute; top: 6%; right: -2%;
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(90px, 16vw, 220px);
  color: var(--paper-dp);
  z-index: 0; user-select: none; line-height: 1;
  animation: driftGhost 14s ease-in-out infinite;
}
@keyframes driftGhost {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-16px) rotate(-2deg); }
}
.hero__inner { position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: 0.98;
  margin-bottom: 22px;
  opacity: 0; transform: translateY(24px);
  animation: heroIn .9s var(--ease) 0.15s forwards;
}
.hero__desc {
  max-width: 440px; color: var(--muted); font-size: 17px; margin-bottom: 34px;
}
.hero__cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.price-pill {
  display: flex; align-items: baseline; gap: 6px;
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 10px 20px; background: var(--paper-mid);
}
.price-pill__amount { font-family: 'DM Mono', monospace; font-size: 18px; font-weight: 500; }
.price-pill__unit { font-size: 12px; color: var(--muted); }
.price-pill--alt { background: var(--ink); border-color: var(--ink); }
.price-pill--alt .price-pill__amount { color: #fff; }
.price-pill--alt .price-pill__unit { color: rgba(255,255,255,0.65); }

.hero__photo {
  position: relative; z-index: 1;
  border-radius: 18px; overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.25);
  animation: floatPhoto 6s ease-in-out infinite;
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition: filter .6s var(--ease), transform 8s linear;
}
.hero__photo:hover img { filter: grayscale(0.15) contrast(1.05); transform: scale(1.04); }
@keyframes floatPhoto {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* ─── Ticker ───────────────────────────────────── */
.ticker {
  background: var(--ink); color: #fff;
  padding: 14px 0; overflow: hidden; white-space: nowrap;
}
.ticker__track {
  display: inline-flex; gap: 14px;
  font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 0.14em;
  animation: tickerScroll 22s linear infinite;
}
.ticker__dot { color: rgba(255,255,255,0.35); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Section shell ────────────────────────────── */
.section { max-width: var(--max-w); margin: 0 auto; padding: 88px 28px; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; }

/* ─── Gallery ──────────────────────────────────── */
.gallery__grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.gallery__item {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 3/4; background: var(--paper-mid);
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .5s var(--ease), transform .5s var(--ease);
}
.gallery__item:hover img { filter: grayscale(0) contrast(1.02); transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
}

/* ─── Included ─────────────────────────────────── */
.included { background: var(--paper-mid); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.included__grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule); border-radius: 14px; overflow: hidden;
}
.included__item { background: var(--paper); padding: 32px; transition: background .3s; }
.included__item:hover { background: var(--paper-mid); }
.included__n { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--faint); }
.included__item h3 { font-size: 21px; margin: 10px 0 8px; }
.included__item p { color: var(--muted); font-size: 14.5px; }

/* ─── Booking ──────────────────────────────────── */
.book__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.book__info h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 28px; }
.rate-card {
  border: 1px solid var(--rule); border-radius: 14px; padding: 24px;
  background: var(--paper-mid);
}
.rate-card__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; font-size: 15px;
}
.rate-card__row + .rate-card__row { border-top: 1px solid var(--rule); }
.rate-card__row--muted { color: var(--muted); font-size: 13px; }
.rate-card__row--total { font-weight: 700; font-size: 18px; }
.rate-card__row--total span:last-child { font-family: 'DM Mono', monospace; }
.book__hint  { margin-top: 18px; color: var(--muted); font-size: 13.5px; max-width: 380px; }
.book__hours { margin-top: 10px; color: var(--ink); font-size: 13.5px; }

.book__panel {
  border: 1px solid var(--rule); border-radius: 16px; padding: 32px;
  background: var(--paper);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,0.25);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field { margin-bottom: 18px; }
.field label {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.field-hint { text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--faint); }
.field input[type="text"], .field input[type="tel"], .field input[type="date"],
.field input[type="email"], .field input[type="password"] {
  border: 1.5px solid var(--rule); border-radius: 8px; padding: 12px 14px;
  font-family: 'Instrument Sans', sans-serif; font-size: 15px; outline: none;
  transition: border-color .2s;
}
.field input:focus { border-color: var(--ink); }

/* ─── Auth gate ────────────────────────────────── */
.auth-gate__tabs { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.auth-gate__tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 0 2px 12px; margin-bottom: -1px;
  font-family: 'Instrument Sans', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s;
}
.auth-gate__tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.auth-gate__note { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.auth-gate__hint-sm { color: var(--faint); font-size: 12px; margin: -8px 0 14px; }
.book__account {
  font-size: 13px; color: var(--muted); margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--rule);
}
.book__account strong { color: var(--ink); }
.book__account a { color: var(--muted); text-decoration: underline; cursor: pointer; }
.book__account a:hover { color: var(--ink); }

/* ─── Day strip ────────────────────────────────── */
.day-strip {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin;
}
.day-chip {
  flex: 0 0 auto; min-width: 58px;
  border: 1.5px solid var(--rule); border-radius: 10px; background: var(--paper);
  padding: 8px 6px; text-align: center; cursor: pointer;
  transition: all .2s var(--ease);
}
.day-chip:hover { border-color: var(--faint); }
.day-chip.is-selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.day-chip__dow  { font-family: 'DM Mono', monospace; font-size: 10px; text-transform: uppercase; opacity: .6; }
.day-chip__num  { font-size: 17px; font-weight: 700; margin: 2px 0; }
.day-chip__status { font-size: 9px; font-family: 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .04em; }
.day-chip__status--open    { color: #1a6e3d; }
.day-chip__status--limited { color: #b8860b; }
.day-chip__status--full    { color: #b92020; }
.day-chip.is-selected .day-chip__status--open    { color: #6fe3a4; }
.day-chip.is-selected .day-chip__status--limited { color: #ffcf6b; }
.day-chip.is-selected .day-chip__status--full    { color: #ff9d9d; }

/* ─── Slot grid ────────────────────────────────── */
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot-btn {
  border: 1.5px solid var(--rule); border-radius: 8px; background: var(--paper);
  padding: 10px 4px; font-family: 'DM Mono', monospace; font-size: 12.5px;
  cursor: pointer; transition: all .2s var(--ease);
}
.slot-btn:hover:not(:disabled) { border-color: var(--faint); }
.slot-btn.is-selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.slot-btn:disabled {
  background: var(--paper-mid); color: var(--faint); text-decoration: line-through;
  cursor: not-allowed;
}
.slot-grid__legend {
  display: flex; gap: 16px; margin-top: 10px; font-size: 11.5px; color: var(--muted);
}
.slot-grid__legend span { display: inline-flex; align-items: center; gap: 5px; }
.slot-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.slot-dot--free { background: var(--paper); border: 1.5px solid var(--rule); }
.slot-dot--busy { background: var(--paper-mid); border: 1.5px solid var(--faint); }

.toggle {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.toggle__btn {
  flex: 1; min-width: 140px;
  border: 1.5px solid var(--rule); background: var(--paper);
  border-radius: 8px; padding: 12px 14px;
  font-family: 'Instrument Sans', sans-serif; font-size: 13.5px; font-weight: 600;
  color: var(--muted); cursor: pointer; text-align: center;
  transition: all .2s var(--ease);
}
.toggle__btn:hover { border-color: var(--faint); }
.toggle__btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.stepper {
  display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid var(--rule); border-radius: 8px; overflow: hidden;
}
.stepper__btn {
  background: var(--paper-mid); border: none; width: 42px; height: 44px;
  font-size: 18px; cursor: pointer; transition: background .2s, transform .1s;
}
.stepper__btn:hover { background: var(--paper-dp); }
.stepper__btn:active { transform: scale(0.9); }
.stepper input {
  flex: 1; text-align: center; border: none; font-family: 'DM Mono', monospace;
  font-size: 15px; outline: none; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.field-err { color: #b92020; font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.hours-nudge {
  margin-top: 10px; padding: 10px 14px;
  background: var(--paper-mid); border: 1px solid var(--rule); border-radius: 8px;
  font-size: 13px; color: var(--ink);
  animation: nudgeIn .35s var(--ease);
}
.hours-nudge strong { font-family: 'DM Mono', monospace; }
@keyframes nudgeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.book__secure { text-align: center; font-size: 12.5px; color: var(--faint); margin-top: 14px; }

/* ─── Footer ───────────────────────────────────── */
.footer { border-top: 1px solid var(--rule); padding: 56px 28px; }
.footer__inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.footer__brand {
  display: block; font-family: 'DM Mono', monospace; font-size: 14px; letter-spacing: 0.14em;
  text-decoration: none; margin-bottom: 10px;
}
.footer__contact { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.footer__contact a { text-decoration: underline; }
.footer__back { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer__back:hover { color: var(--ink); }

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero__photo { order: -1; aspect-ratio: 16/10; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .included__grid { grid-template-columns: 1fr; }
  .book__grid { grid-template-columns: 1fr; gap: 40px; }
  .nav__brand span { display: none; }
}
@media (max-width: 560px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__cta-row { flex-direction: column; align-items: flex-start; }
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__ghost, .hero__photo, .ticker__track { animation: none !important; }
  .reveal-up, .reveal-left, .reveal-right, .reveal-scale, .hero__title { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
}
