/* ============================================================
   LAYOUT — shell, header, footer, section rhythm
   ============================================================ */

.shell {
  width: var(--shell);
  margin-inline: auto;
}
.shell--narrow { width: min(92vw, 940px); }
.shell--read   { width: min(92vw, 760px); }

/* Sections sit close together. Generous inside, tight between. */
.room {
  padding-block: var(--space-room);
  position: relative;
}
.room--tight { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.room--flush { padding-block: 0; }

/* ============================================================
   HEADER
   ------------------------------------------------------------
   Sits over the hero transparently, then earns a background as
   soon as the page scrolls. Slim on mobile — no giant menus.
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.site-header::after {
  /* hairline that fades in with the background */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-whisper) 20%,
                              var(--gold-whisper) 80%, transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.site-header.is-settled {
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  padding-block: 0.7rem;
}
.site-header.is-settled::after { opacity: 1; }

/* On light pages the header needs a light settled state. */
.site-header.is-settled.on-light {
  background: rgba(246, 241, 232, 0.93);
}

.header-inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* ---- The mark: the House logo itself ----
   Header lays the glyph and the wordmark out side by side so the
   lockup stays short. The footer gets the full stacked logo. */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}
/* Each variant sets its own box — keep the shared rule off width and
   height so it cannot out-rank the classes below on specificity. */
.mark img {
  display: block;
  flex: none;
  transition: filter 0.4s var(--ease);
}
.mark-glyph    { width: auto; height: 38px; }
.mark-wordmark { width: auto; height: 28px; }

.mark--stacked { display: inline-block; }
.mark-lockup   { width: 132px; height: auto; }

/* Gold reads pale against cream, so the logo is burnished only where it
   actually sits on light: the settled light header, and the top of a
   daylit page whose header is still transparent. A light page opening
   on a dark hero keeps the bright gold until the header settles. */
.site-header.is-settled.on-light .mark img,
.site-header.on-light:not(.over-photo) .mark img,
body.lit-day .site-header:not(.is-settled):not(.on-light) .mark img {
  filter: brightness(0.62) saturate(1.55) contrast(1.06);
}

/* ---- Desktop navigation ---- */
.nav { display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 2rem); }
.nav a {
  font-family: var(--font-house);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light-soft);
  padding-block: 0.5rem;
  position: relative;
  transition: color 0.3s var(--ease);
  white-space: nowrap;
}
.on-light .nav a { color: var(--ink-soft); }

/* The underline is a shallow curve, not a straight rule. */
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  border-bottom: 1px solid var(--gold);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease);
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current='page'] { color: var(--gold); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.header-tools { display: flex; align-items: center; gap: 0.5rem; flex: none; }

/* Small round icon buttons (favourites, menu) */
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-light-soft);
  border: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
              background 0.3s var(--ease);
  position: relative;
}
.on-light .icon-btn { color: var(--ink-soft); }
.icon-btn:hover, .icon-btn:focus-visible {
  color: var(--gold);
  border-color: var(--gold-whisper);
  background: var(--gold-breath);
}
.icon-btn svg { width: 19px; height: 19px; }

/* Count bubble on the favourites icon */
.icon-btn .tally {
  position: absolute;
  top: 1px; right: 1px;
  min-width: 17px; height: 17px;
  padding-inline: 4px;
  border-radius: 100px;
  background: var(--gold);
  color: var(--obsidian);
  font-size: 0.6rem;
  font-weight: 600;
  display: grid; place-items: center;
  font-family: var(--font-body);
}
.icon-btn .tally[hidden] { display: none; }

.menu-btn { display: none; }

/* ============================================================
   MOBILE MENU
   ------------------------------------------------------------
   A calm full-height panel, not a stacked wall of links.
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--obsidian);
  padding: 5.5rem 1.5rem 2rem;
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease-spiral), visibility 0.5s;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu .close-btn { position: absolute; top: 1.2rem; right: 1.2rem; }

.mobile-menu .rooms-list { display: grid; gap: 0.4rem; margin-bottom: 1.6rem; }
.mobile-menu .rooms-list a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
  color: var(--ink-light);
  padding-block: 0.45rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  border-bottom: 1px solid var(--obsidian-edge);
}
.mobile-menu .rooms-list a span {
  font-family: var(--font-house);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.mobile-menu .rooms-list a:hover { color: var(--gold); }

.mobile-menu .more-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.2rem 1rem;
}
.mobile-menu .more-list a {
  font-family: var(--font-house);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light-soft);
  padding-block: 0.65rem;
}
.mobile-menu .more-list a:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--obsidian);
  color: var(--ink-light-soft);
  padding-block: var(--space-lg) var(--space-md);
  position: relative;
  border-top: 1px solid var(--obsidian-edge);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.footer-col h3 {
  font-family: var(--font-house);
  font-size: var(--t-xs);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  padding-block: 0.3rem;
  font-size: var(--t-sm);
  color: var(--ink-light-soft);
  transition: color 0.25s var(--ease);
}
.footer-col a:hover, .footer-col a:focus-visible { color: var(--gold-champagne); }

.footer-brand .mark { margin-bottom: 1rem; }
.footer-brand p { font-size: var(--t-sm); max-width: 34ch; line-height: 1.6; }

.footer-base {
  border-top: 1px solid var(--obsidian-edge);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem var(--space-md);
  align-items: center;
  justify-content: space-between;
  font-size: var(--t-xs);
}
.footer-base .legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* A quiet way to turn motion off without changing the whole machine. */
.motion-toggle {
  font-family: var(--font-house);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b635a;
  padding: 0.5rem 0.9rem;
  min-height: 40px;
  border: 1px solid var(--obsidian-edge);
  border-radius: var(--curve-pill);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.motion-toggle:hover, .motion-toggle:focus-visible {
  color: var(--gold);
  border-color: var(--gold-whisper);
}
.motion-toggle[aria-pressed='true'] { color: var(--gold); border-color: var(--gold-whisper); }

/* Powered-by line — required on all deliverables. */
.powered {
  font-family: var(--font-house);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: #6b635a;
}
.powered a:hover { color: var(--gold); }

/* ---- Back to top: a small spiral ---- */
.to-top {
  position: fixed;
  right: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.8);
  border: 1px solid var(--gold-whisper);
  color: var(--gold);
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.4s var(--ease);
  z-index: 90;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--obsidian); }
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   PAGE HEADS (interior pages)
   ============================================================ */
.page-head {
  padding-top: clamp(7rem, 6rem + 5vw, 11rem);
  padding-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}
.page-head .house-label { margin-bottom: 1rem; display: inline-flex; }
.page-head .display { margin-bottom: 1rem; }
.page-head--center { text-align: center; }
.page-head--center .lede { margin-inline: auto; }
.page-head--center .house-label { text-indent: 0; }

/* Breadcrumbs */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: var(--t-xs);
  font-family: var(--font-house);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 1.4rem;
}
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { opacity: 0.4; }

/* ---- Generic responsive grids that reflow at every width ---- */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-md);
}
.grid-auto--wide {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}
.grid-auto--tight {
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 1rem;
}

/* Split: media one side, words the other, reversible. */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: clamp(1.6rem, 1rem + 3vw, 4rem);
  align-items: center;
}
.split--top { align-items: start; }
.split__media { position: relative; }

/* Same guard as on the product detail: never let a wide child stretch
   a track past the viewport. */
.split > *, .grid-auto > *, .doors > * { min-width: 0; }

@media (min-width: 900px) {
  .split--flip .split__media { order: 2; }
}

/* ---- The Shop dropdown (2026-10-11) ----
   Shop opens the shop; hovering or focusing it, or pressing its arrow
   on a touch screen, shows Jewelry, Keepsakes, Fragrances, All pieces. */
.nav-drop { position: relative; display: flex; align-items: center; gap: 0.15rem; }
.nav-drop__btn {
  display: grid; place-items: center;
  padding: 0.35rem; margin: 0;
  background: none; border: 0; border-radius: 6px;
  color: var(--ink-light-soft); cursor: pointer;
}
.on-light .nav-drop__btn { color: var(--ink-soft); }
.nav-drop__btn svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.nav-drop__btn:hover, .nav-drop__btn:focus-visible { color: var(--gold); }
.nav-drop.is-open .nav-drop__btn svg { transform: rotate(180deg); }
.nav-drop__menu {
  position: absolute; top: calc(100% + 0.6rem); left: -1.2rem; z-index: 60;
  min-width: 15rem; padding: 0.5rem 0;
  background: var(--obsidian-lift);
  border: 1px solid var(--gold-whisper); border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav-drop__menu::before { content: ''; position: absolute; left: 0; right: 0; top: -0.8rem; height: 0.8rem; }  /* keeps hover alive across the gap */
.nav-drop:hover .nav-drop__menu,
.nav-drop:focus-within .nav-drop__menu,
.nav-drop.is-open .nav-drop__menu { opacity: 1; visibility: visible; transform: none; }
.nav .nav-drop__menu a { display: block; padding: 0.7rem 1.3rem; color: var(--ink-light-soft); }
.nav .nav-drop__menu a::after { display: none; }
.nav .nav-drop__menu a:hover, .nav .nav-drop__menu a:focus-visible, .nav .nav-drop__menu a[aria-current='page'] { color: var(--gold); background: rgba(216, 173, 85, 0.07); }
@media (prefers-reduced-motion: reduce) { .nav-drop__menu, .nav-drop__btn svg { transition: none; } }

/* Readable links over photographs (2026-10-11): on a page that opens with a
   photo banner (.room-banner), the header carries a soft dark shade and light
   type until it settles into its solid bar. app.js adds .over-photo. */
.site-header.over-photo:not(.is-settled)::before {
  content: '';
  position: absolute;
  inset: 0 0 -2.5rem 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.82) 0%, rgba(5, 5, 5, 0.55) 55%, rgba(5, 5, 5, 0) 100%);
}
.site-header.over-photo:not(.is-settled) .nav a:not([aria-current]):not(:hover):not(:focus-visible),
.site-header.over-photo:not(.is-settled) .nav-drop__btn:not(:hover):not(:focus-visible),
.site-header.over-photo:not(.is-settled) .icon-btn { color: var(--ink-light); }
.site-header.over-photo:not(.is-settled) .nav a,
.site-header.over-photo:not(.is-settled) .nav-drop__btn { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
/* The current page on a light header: a deeper gold that reads on cream. */
.site-header.on-light:not(.over-photo) .nav a[aria-current='page'],
.site-header.is-settled.on-light .nav a[aria-current='page'] { color: var(--gold-burnished, #9a6b21); }

/* ---- Count bubbles: at the icon's corner, not over it ---- */
.icon-btn .tally {
  top: 0; right: -3px;
  min-width: 16px; height: 16px;
  padding-inline: 4px;
  font-size: 10px !important;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--obsidian);
}
.on-light .icon-btn .tally { box-shadow: 0 0 0 2px var(--ivory); }

/* A piece's description, reached from "Read the description", clears the fixed header. */
#description { scroll-margin-top: 90px; }

/* ============================================================
   THE MENU (redesigned 2026-10-13)
   Wide screens: her work on the left, changing with the room under
   the pointer; numbered rooms on the right; everything else in three
   labelled groups. Phones: the same without the photograph.
   (Sizes on spans/links carry !important: responsive.css sets a 1em
   floor on them with !important.)
   ============================================================ */
.mobile-menu.mm { padding: 0; display: grid; grid-template-columns: 1fr; }
.mm .close-btn { z-index: 3; }
.mm__media { display: none; }
.mm__main { padding: 5.5rem 1.5rem 2.5rem; display: flex; flex-direction: column; min-height: 100%; }
.mm__label { text-indent: 0; margin-bottom: 0.6rem; }

.mm__rooms { display: grid; border-top: 1px solid var(--obsidian-edge); }
.mm__rooms a {
  display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: center; gap: 0 1rem;
  padding: 1.05rem 0.2rem; border-bottom: 1px solid var(--obsidian-edge);
  color: var(--ink-light); text-decoration: none;
  transition: color 0.3s var(--ease), padding 0.35s var(--ease);
}
.mm__n { font-family: var(--font-house); font-size: 0.75rem !important; letter-spacing: 0.18em; color: var(--gold); }
.mm__text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.mm__name { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem) !important; line-height: 1.05; }
.mm__sub { font-family: var(--font-body); font-size: 0.9rem !important; color: var(--ink-light-soft); letter-spacing: 0.01em; }
.mm__arrow { width: 22px; height: 22px; color: var(--gold); opacity: 0; transform: translateX(-10px); transition: opacity 0.3s var(--ease), transform 0.35s var(--ease); }
.mm__rooms a:hover, .mm__rooms a:focus-visible { color: var(--gold-champagne); padding-left: 0.8rem; }
.mm__rooms a:hover .mm__arrow, .mm__rooms a:focus-visible .mm__arrow { opacity: 1; transform: none; }

.mm__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.5rem; margin-top: 2.2rem; }
.mm__h { font-family: var(--font-house); font-size: 0.72rem !important; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.mm__group a { display: block; padding: 0.38rem 0; color: var(--ink-light-soft); font-size: 0.95rem !important; text-decoration: none; transition: color 0.2s; }
.mm__group a:hover, .mm__group a:focus-visible { color: var(--gold); }
.mm__foot { margin-top: auto; padding-top: 2.2rem; font-size: 0.8rem !important; letter-spacing: 0.08em; color: var(--ink-light-soft); opacity: 0.75; }

/* Rooms ease in one after another as the menu opens. */
.mm__rooms a { opacity: 0; transform: translateY(14px); }
.mm.is-open .mm__rooms a { opacity: 1; transform: none; transition: opacity 0.5s var(--ease) calc(0.12s + var(--i) * 0.07s), transform 0.6s var(--ease) calc(0.12s + var(--i) * 0.07s), color 0.3s var(--ease), padding 0.35s var(--ease); }

@media (min-width: 900px) {
  .mobile-menu.mm { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .mm__media { display: block; position: relative; overflow: hidden; background: var(--obsidian-lift); }
  .mm__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.6s var(--ease), transform 1.2s var(--ease); }
  .mm__media img.is-on { opacity: 1; transform: none; }
  .mm__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,0) 60%, rgba(5,5,5,0.55) 100%); pointer-events: none; }
  .mm__main { padding: 6rem clamp(2rem, 5vw, 5.5rem) 3rem; overflow-y: auto; }
  .mm__groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .mm__rooms a, .mm.is-open .mm__rooms a { opacity: 1; transform: none; transition: none; }
  .mm__media img { transition: none; transform: none; }
}
body.motion-off .mm__rooms a { opacity: 1; transform: none; transition: none; }
@media (hover: none) { .mm__group a { padding: 0.7rem 0; } }   /* comfortable taps on phones */
