/* ==========================================================================
   Buddha Bar Boutique — design tokens
   Palette pulled from the shopfront itself: the sage-green woodwork
   itself as the page ground, black fascia signboard picked out in
   aged brass lettering. A painted shop, not a jewel box.
   ========================================================================== */
:root {
  --ink: #d8ddc5;
  --ink-raised: #c7cea9;
  --ink-line: #abb77b;
  --ink-deep: #1b1611;

  --brass: #b8873a;
  --brass-light: #d9b26a;
  --brass-dim: #7a5f34;

  --sage: #717854;
  --sage-light: #545a3f;
  --sage-dim: #4b4f3b;

  --paper: #211d16;
  --paper-dim: #5b5646;
  --paper-faint: #635e4b;

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --container: 1180px;
  --gap: clamp(1.25rem, 2vw, 2.5rem);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

section[id] { scroll-margin-top: 5.5rem; }

::selection { background: var(--brass); color: var(--ink-deep); }

:focus-visible {
  outline: 2px solid var(--sage-light);
  outline-offset: 3px;
}

/* ==========================================================================
   Type
   ========================================================================== */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--paper); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-dim);
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: var(--brass);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  margin-top: 0.6rem;
}
.section-head p {
  margin-top: 0.9rem;
  color: var(--paper-dim);
  max-width: 34rem;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--alt { background: var(--ink-raised); }
.rule {
  border: 0;
  border-top: 1px solid var(--ink-line);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.6em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--brass);
  color: var(--brass-dim);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover, .btn:focus-visible {
  background: var(--brass);
  color: var(--ink-deep);
}
.btn--ghost {
  border-color: var(--ink-line);
  color: var(--paper-dim);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--paper-dim);
  background: transparent;
  color: var(--paper);
}
.btn--arrow::after { content: "\2192"; transition: transform 0.35s var(--ease); }
.btn--arrow:hover::after { transform: translateX(3px); }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; }

/* ==========================================================================
   Reveal-on-scroll
   Content is visible by default. Only once JS confirms it can both flag
   readiness (.js) and observe intersection does it hide-then-reveal —
   so a JS error, a blocked observer, or a no-scroll capture never leaves
   real content invisible.
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .vitrine img, .btn, .btn--arrow::after { transition: none !important; }
}

/* ==========================================================================
   Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(216, 221, 197, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.brand .icon { width: 1.6rem; height: 1.6rem; stroke: var(--brass-dim); }
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--paper-faint);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a { color: var(--paper-dim); position: relative; padding-block: 0.3rem; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--brass-dim); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transition: right 0.35s var(--ease);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { right: 0; }
.nav-links .btn { text-transform: uppercase; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span { width: 22px; height: 1px; background: var(--paper); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--ink-raised);
    border-bottom: 1px solid var(--ink-line);
    padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
    gap: 1.1rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-links.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.hero::before {
  /* faint mandala watermark, hand-built rings + spokes */
  content: "";
  position: absolute;
  top: -18%;
  right: -14%;
  width: 62vw;
  height: 62vw;
  max-width: 760px;
  max-height: 760px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><g fill="none" stroke="%23b8873a" stroke-width="0.7"><circle cx="200" cy="200" r="60"/><circle cx="200" cy="200" r="110"/><circle cx="200" cy="200" r="160"/><circle cx="200" cy="200" r="196"/><g stroke-dasharray="2 6"><circle cx="200" cy="200" r="135"/><circle cx="200" cy="200" r="180"/></g><g><line x1="200" y1="4" x2="200" y2="396"/><line x1="4" y1="200" x2="396" y2="200"/><line x1="58" y1="58" x2="342" y2="342"/><line x1="342" y1="58" x2="58" y2="342"/></g></g></svg>');
  background-repeat: no-repeat;
  opacity: 0.16;
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  margin-top: 0.9rem;
  color: var(--paper);
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--brass-dim);
}
.hero-copy p {
  margin-top: 1.4rem;
  max-width: 32rem;
  font-size: 1.05rem;
  color: var(--paper-dim);
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-frame {
  position: relative;
}
.hero-frame .vitrine { margin-inline: auto; }
.hero-frame .vitrine-inner { aspect-ratio: 4 / 5; background: var(--ink-raised); }
.hero-frame .vitrine-inner img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame figcaption {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--paper-faint);
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-frame { order: -1; }
  .hero-frame .vitrine { max-width: 380px; }
}

/* Vitrine: the museum-case frame used for every photograph on the page */
.vitrine {
  border: 1px solid var(--brass);
  padding: 6px;
  background: var(--ink-raised);
}
.vitrine .vitrine-inner {
  overflow: hidden;
  border: 1px solid var(--ink-line);
}
.vitrine img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.vitrine:hover img { transform: scale(1.035); }

/* ==========================================================================
   Announcement ledger strip
   ========================================================================== */
.ledger-strip {
  border-block: 1px solid var(--ink-line);
  background: var(--ink-raised);
}
.ledger-strip .container {
  padding-block: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dim);
}
.ledger-strip .icon { width: 0.9rem; height: 0.9rem; flex: none; }

/* ==========================================================================
   Story
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.story-grid .section-head { margin-bottom: 1.4rem; }
.story-copy p { color: var(--paper-dim); margin-bottom: 1rem; }
.story-copy p:last-child { margin-bottom: 0; }
.dropcap {
  float: left;
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 0.8;
  padding: 0.08em 0.12em 0 0;
  color: var(--brass-dim);
}
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-grid figure { order: -1; }
}

/* ==========================================================================
   Collections — the dealer's catalogue
   ========================================================================== */
.catalogue {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
}
.piece {
  background: var(--ink);
  padding: clamp(1.25rem, 2vw, 1.75rem);
}
.piece-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--paper-faint);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.piece .vitrine { margin-bottom: 1rem; }
.piece .vitrine-inner { aspect-ratio: 4 / 3; }
.piece h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--paper);
}
.piece p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--paper-dim);
}
.piece--icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink-raised);
}
.piece--icon .icon {
  width: 2.4rem;
  height: 2.4rem;
  stroke: var(--brass);
  margin-bottom: 1rem;
}
.piece--icon .vitrine { display: none; }

.piece { transition: background-color 0.3s var(--ease); border-left: 2px solid transparent; }
.piece:hover { border-left-color: var(--sage); }

@media (max-width: 900px) {
  .catalogue { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .catalogue { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Team
   ========================================================================== */
.expert-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  border: 1px solid var(--ink-line);
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--ink-raised);
}
.expert-portrait {
  width: clamp(120px, 16vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--brass);
  padding: 5px;
}
.expert-portrait span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--ink-line);
}
.expert-portrait img { width: 100%; height: 100%; object-fit: cover; }
.expert-copy blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: var(--brass-dim);
  margin: 0.6rem 0 1.1rem;
  line-height: 1.35;
}
.expert-copy p { color: var(--paper-dim); margin-bottom: 0.9rem; }
.expert-copy p:last-child { margin-bottom: 0; }
.expert-name { color: var(--paper); font-weight: 600; }
.expert-card + .expert-card { margin-top: 1.5rem; }
.expert-portrait--initial span {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--brass);
}

@media (max-width: 640px) {
  .expert-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* ==========================================================================
   Locations
   ========================================================================== */
.location-feature {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 0;
  border: 1px solid var(--ink-line);
  background: var(--ink-raised);
}
.location-feature .vitrine { margin: 14px 0 14px 14px; border: none; padding: 0; }
.location-feature .vitrine-inner { height: 100%; aspect-ratio: auto; border: none; }
.location-feature .card-body { padding: clamp(1.75rem, 3.5vw, 2.75rem); align-self: center; }
.location-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--ink-deep);
  background: var(--brass-light);
  padding: 0.25em 0.6em;
  margin-bottom: 0.8rem;
}
.location-feature h3 { font-size: 1.8rem; }
.location-address {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--paper-dim);
  line-height: 1.7;
}
.location-feature p.desc {
  margin-top: 0.9rem;
  color: var(--paper-dim);
  font-size: 0.95rem;
  max-width: 30rem;
}

.ledger-table {
  margin-top: 1.2rem;
  border-top: 1px solid var(--ink-line);
  max-width: 22rem;
}
.ledger-table div {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.ledger-table dt { color: var(--paper-faint); }
.ledger-table dd { margin: 0; color: var(--paper); }

.location-feature .card-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 780px) {
  .location-feature { grid-template-columns: 1fr; }
  .location-feature .vitrine { margin: 14px; }
  .location-feature .vitrine-inner { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   Sister shop
   ========================================================================== */
.sister {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  border: 1px solid var(--ink-line);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 3.5vw, 2.75rem);
}
.sister h3 { font-size: 1.4rem; margin-top: 0.35rem; }
.sister p:not(.eyebrow) { margin-top: 0.35rem; color: var(--paper-dim); font-size: 0.95rem; max-width: 36rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.contact-tags { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.6rem; }
.contact-tag {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--paper);
  border-bottom: 1px solid var(--ink-line);
  padding-bottom: 0.9rem;
}
.contact-tag .icon { stroke: var(--brass-dim); width: 1.1rem; height: 1.1rem; flex: none; }
.contact-tag:hover .icon { stroke: var(--sage-light); }

.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 0.55rem;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-line);
  padding: 0.6rem 0.1rem;
  color: var(--paper);
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--sage);
}
.field textarea { resize: vertical; min-height: 6rem; }
.form-note {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--paper-faint);
}

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--ink-line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--ink-raised);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand .brand { margin-bottom: 0.9rem; }
.footer-brand p { color: var(--paper-faint); font-size: 0.85rem; max-width: 22rem; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 0.9rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a, .footer-col address { font-size: 0.88rem; color: var(--paper-dim); font-style: normal; }
.footer-col a:hover { color: var(--brass-dim); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--paper-faint);
}
.footer-bottom a { color: var(--paper-faint); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--brass-dim); }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   A Look Around + section background swaps (Nov 2026 photo refresh)
   ========================================================================== */
.look-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.look-grid .vitrine-inner { position: relative; aspect-ratio: 4 / 5; }
.look-grid .look-wide { grid-column: span 2; }
.look-grid .look-wide .vitrine-inner { height: 100%; aspect-ratio: auto; min-height: 12rem; }
.look-wide img { position: absolute; inset: 0; }
@media (max-width: 900px) {
  .look-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .look-grid .look-wide .vitrine-inner { height: auto; aspect-ratio: 8 / 5; }
}
#team .expert-card { background: var(--ink); }
.story-grid .vitrine-inner { aspect-ratio: 4 / 5; }
.story-grid .vitrine-inner img { height: 100%; }
