/* ═══════════════════════════════════════════════════════
   The Cauldron Black — concept redesign
   Tiny Byte Studio
   ═══════════════════════════════════════════════════════ */

/* ── tokens ─────────────────────────────────────────── */
:root {
  /* --grad      : bright fills (buttons, active states) — always with --btn-fg
     --grad-text : gradient TEXT, darkened on parchment so it stays legible
     --gold      : accent for small text + strokes, theme-adjusted
     --blood     : the oxblood second accent, used sparingly and on purpose  */
  --grad:    linear-gradient(100deg, #E3C05A, #C9722A);
  --btn-fg:  #17110A;
  --gold-2:  #C9722A;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
           "Hoefler Text", "Times New Roman", serif;

  --wrap: 1240px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t: .38s var(--ease);
}

/* dark — the default. A candlelit room: soot, brass and bone. */
html[data-theme="dark"] {
  --bg:        #0A0908;
  --bg-2:      #0D0C0A;
  --surface:   #14120F;
  --surface-2: #1C1916;
  --line:      rgba(233,222,200,.10);
  --line-2:    rgba(233,222,200,.21);
  --text:      #EDE4D3;
  --muted:     #9A8F7E;
  --gold:      #D8B454;
  --blood:     #A63446;
  --grad-text: var(--grad);
  --shadow:    0 26px 62px -24px rgba(0,0,0,.85);
  --glass:     rgba(10,9,8,.76);
  color-scheme: dark;
}

/* light — aged parchment and iron gall ink, not a generic white page */
html[data-theme="light"] {
  --bg:        #EFE8DA;
  --bg-2:      #F5F0E4;
  --surface:   #FBF7EE;
  --surface-2: #EAE1CE;
  --line:      rgba(26,20,16,.13);
  --line-2:    rgba(26,20,16,.24);
  --text:      #1A1410;
  --muted:     #6B5F50;
  --gold:      #8A6410;
  --blood:     #8E2233;
  --grad-text: linear-gradient(100deg, #8A6410, #9B3B18);
  --shadow:    0 22px 48px -24px rgba(50,36,20,.32);
  --glass:     rgba(239,232,218,.82);
  color-scheme: light;
}

/* the footer sits a half-step deeper than the body in both themes */
html[data-theme="dark"]  .foot { --bg-2: #070605; }
html[data-theme="light"] .foot { --bg-2: #E6DDCB; }

/* ── reset / base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: #17110A;
  padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* stroke icon system */
.i {
  width: 1.05em; height: 1.05em; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.muted { color: var(--muted); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .08em .38em;
  word-break: break-word;
}

/* ── type ───────────────────────────────────────────── */
.h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  font-weight: 400;
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.014em;
  font-weight: 400;
  text-wrap: balance;
}
.h1 em, .h2 em {
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.15rem;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent);
}

.lede {
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
  margin-top: 1.5rem;
}

.shead { max-width: 68ch; margin-bottom: 3rem; }
.shead__sub { color: var(--muted); margin-top: 1.15rem; font-size: 1.04rem; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section--alt { background: var(--bg-2); }

/* ── buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem; font-weight: 650; letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background .22s var(--ease), border-color .22s var(--ease),
              color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad);
  color: var(--btn-fg);
  box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--gold) 70%, transparent);
}
.btn--primary:hover {
  box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--gold) 80%, transparent);
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--lg { padding: .98rem 1.75rem; font-size: 1.02rem; }
.btn--sm { padding: .55rem 1rem; font-size: .87rem; }
.btn--block { width: 100%; }

/* ── utility bar ────────────────────────────────────── */
.utility {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: .8rem;
  position: relative; z-index: 60;
}
.utility__in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 40px;
  color: var(--muted);
}
.utility__item { display: inline-flex; align-items: center; gap: .5rem; }
.utility__item--live { color: var(--text); font-weight: 600; }
.utility .themetoggle { margin-left: auto; }

@media (max-width: 780px) { .utility__item--hide { display: none; } }

.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--muted) 20%, transparent);
  flex: none;
}
.pulse.is-open {
  background: #4FAE6B;
  box-shadow: 0 0 0 3px rgba(79,174,107,.22);
  animation: breathe 2.6s var(--ease) infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(79,174,107,.22); }
  50%      { box-shadow: 0 0 0 7px rgba(79,174,107,.05); }
}

.themetoggle {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: var(--muted);
  transition: color var(--t), background var(--t);
}
.themetoggle:hover { color: var(--gold); background: var(--surface-2); }
.themetoggle .i { width: 15px; height: 15px; }
html[data-theme="dark"]  .i--sun  { display: none; }
html[data-theme="light"] .i--moon { display: none; }

/* ── nav ────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: var(--glass);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: var(--line);
}
.nav__in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand__mark {
  width: 34px; height: 34px; flex: none;
  fill: none; stroke: var(--gold);
  stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round;
}
.brand__flame { fill: var(--gold); stroke: none; }
/* Block, not column-flex — an italic <em> inside a flex column would be pushed
   onto its own line and split the shop's name in two. */
.brand__text {
  font-family: var(--serif);
  font-size: 1.16rem; font-weight: 400; line-height: 1.15;
  letter-spacing: -.01em;
  display: block; white-space: nowrap;
}
.brand__text em {
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__text small {
  display: block;
  font-family: var(--sans);
  font-size: .6rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  margin-top: .18rem;
}

.nav__links {
  margin-left: auto;
  display: flex; align-items: center; gap: 1.65rem;
  font-size: .93rem; font-weight: 550;
}
.nav__links > a:not(.btn) {
  color: var(--muted);
  transition: color var(--t);
  position: relative;
}
.nav__links > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -5px;
  height: 1px; background: var(--gold);
  transition: right .3s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--text); }
.nav__links > a:not(.btn):hover::after { right: 0; }
.nav__cta { margin-left: .4rem; }

.burger { display: none; flex-direction: column; gap: 5px; padding: .5rem; margin-left: auto; }
.burger span {
  display: block; width: 22px; height: 1.8px; border-radius: 2px;
  background: var(--text); transition: transform var(--t), opacity var(--t);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: flex; }
  .nav__links {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2);
    border-block: 1px solid var(--line);
    padding: .5rem var(--pad) 1.25rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }
}

/* ── hero ───────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 8rem);
  isolation: isolate;
}
.hero__in { position: relative; z-index: 3; max-width: 900px; }

/* candle smoke — three slow drifting pools of warm light */
.hero__smoke { position: absolute; inset: -25% -10% auto; height: 150%; z-index: 0; filter: blur(78px); }
.hero__smoke i {
  position: absolute; display: block; border-radius: 50%;
  opacity: .5;
  animation: drift 26s var(--ease) infinite alternate;
}
.hero__smoke i:nth-child(1) {
  width: 46vw; height: 46vw; left: -6%; top: 6%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 42%, transparent), transparent 68%);
}
.hero__smoke i:nth-child(2) {
  width: 38vw; height: 38vw; right: 2%; top: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--blood) 40%, transparent), transparent 68%);
  animation-delay: -9s;
}
.hero__smoke i:nth-child(3) {
  width: 34vw; height: 34vw; left: 40%; top: 44%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold-2) 34%, transparent), transparent 70%);
  animation-delay: -17s;
}
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(4%, -7%, 0) scale(1.16); }
}
html[data-theme="light"] .hero__smoke { opacity: .5; }

/* the great seal, turning very slowly behind everything */
.hero__sigil {
  position: absolute; z-index: 1;
  right: -14%; top: 50%; translate: 0 -50%;
  width: min(76vw, 720px); aspect-ratio: 1;
  opacity: .16; pointer-events: none;
}
.hero__sigil svg { width: 100%; height: 100%; }
.hero__sigil circle, .hero__sigil path {
  fill: none; stroke: var(--gold);
  stroke-width: 1; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.hero__sigil svg { animation: turn 190s linear infinite; transform-origin: 50% 50%; }
.hero__sigil-ticks { stroke-width: 2.4; }
@keyframes turn { to { transform: rotate(360deg); } }

/* film grain, so the flat blacks aren't clinical */
.grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: .34; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 2.2rem;
  margin-top: 2.6rem;
  font-size: .9rem; color: var(--muted);
}
.hero__trust strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem; font-weight: 400; line-height: 1.1;
  color: var(--text);
}

.scrollcue {
  position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0; z-index: 4;
  width: 22px; height: 36px; border: 1px solid var(--line-2); border-radius: 12px;
  display: grid; place-items: start center; padding-top: 6px;
}
.scrollcue span {
  width: 3px; height: 7px; border-radius: 2px; background: var(--gold);
  animation: cue 1.9s var(--ease) infinite;
}
@keyframes cue { 0%,100% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; transform: translateY(9px); } }
@media (max-width: 700px) { .scrollcue { display: none; } }

/* ── hero search ────────────────────────────────────── */
.hunt { margin-top: 2.6rem; max-width: 640px; }
.hunt__label {
  display: block;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .6rem;
}
.hunt__field {
  display: flex; align-items: center; gap: .8rem;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: .3rem .35rem .3rem 1.2rem;
  box-shadow: var(--shadow);
  transition: border-color var(--t), box-shadow var(--t);
}
.hunt__field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 15%, transparent), var(--shadow);
}
.hunt__icon { width: 19px; height: 19px; color: var(--gold); }
.hunt__field input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  padding: .85rem 0; font-size: 1.02rem;
}
.hunt__field input::placeholder { color: var(--muted); }
.hunt__field input::-webkit-search-cancel-button { display: none; }
.hunt__clear {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  font-size: 1.35rem; line-height: 1; color: var(--muted);
  display: grid; place-items: center;
  transition: background var(--t), color var(--t);
}
/* display:grid would otherwise beat the [hidden] attribute */
.hunt__clear[hidden] { display: none; }
.hunt__clear:hover { background: var(--surface-2); color: var(--text); }

.hunt__hint { font-size: .84rem; color: var(--muted); margin-top: .75rem; padding-left: .3rem; }
.hunt__hint strong { color: var(--gold); font-weight: 700; }

.hunt__quick {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 1rem;
}
.hunt__quick button {
  padding: .38rem .85rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .82rem; color: var(--muted);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.hunt__quick button:hover {
  color: var(--gold); border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 9%, transparent);
}

/* ── chambers ───────────────────────────────────────── */
/* Ten rooms divides badly into most column counts, so each card carries its own
   border rather than relying on a joined grid that would leave dead cells. */
.chambers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 1rem;
}
.chamber {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.7rem 1.4rem 1.5rem;
  display: flex; flex-direction: column;
  min-height: 248px;
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
  isolation: isolate;
  overflow: hidden;
}
.chamber::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(130% 80% at 50% 0%,
    color-mix(in srgb, var(--gold) 14%, transparent), transparent 64%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.chamber:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.chamber:hover::before { opacity: 1; }

.chamber__g {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-2);
  color: var(--gold);
  margin-bottom: 1.15rem;
  transition: border-color var(--t), transform .45s var(--ease);
}
.chamber:hover .chamber__g { border-color: var(--gold); transform: translateY(-2px); }
.chamber__g .glyph { width: 23px; height: 23px; }

.chamber__h {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.32rem; letter-spacing: -.01em; line-height: 1.2;
}
.chamber__d { font-size: .91rem; color: var(--muted); margin-top: .6rem; flex: 1; }
.chamber__t {
  font-size: .72rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-top: 1.15rem;
}
.chamber__go {
  position: absolute; right: 1.35rem; top: 1.75rem;
  color: var(--gold);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.chamber:hover .chamber__go { opacity: 1; transform: translateX(0); }

/* ── browse ─────────────────────────────────────────── */
.browse {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) { .browse { grid-template-columns: 1fr; } }

.facets {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 1.9rem;
}
@media (max-width: 900px) { .facets { position: static; } }

.facets__h {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .85rem;
}
.facets__list { display: flex; flex-direction: column; gap: .1rem; }
@media (max-width: 900px) { .facets__list { flex-direction: row; flex-wrap: wrap; gap: .5rem; } }

.fchip {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .7rem;
  border-radius: var(--r-sm);
  font-size: .92rem; color: var(--muted);
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.fchip input { position: absolute; opacity: 0; width: 0; height: 0; }
.fchip span { flex: 1; }
.fchip b {
  font-size: .76rem; font-weight: 650;
  color: var(--muted); opacity: .7;
  font-variant-numeric: tabular-nums;
}
.fchip:hover { background: var(--surface); color: var(--text); }
.fchip:has(input:checked) {
  background: color-mix(in srgb, var(--gold) 13%, transparent);
  color: var(--text); font-weight: 600;
}
.fchip:has(input:checked) b { color: var(--gold); opacity: 1; }
.fchip:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 900px) {
  .fchip { border: 1px solid var(--line); }
  .fchip b { display: none; }
}

.results__bar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.results__count { font-size: .95rem; font-weight: 600; }
.results__note { font-size: .8rem; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(206px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  animation: pop .45s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}

/* Product art is drawn, not photographed — the concept ships as three files
   with no external requests, so each chamber gets its own tinted plate. */
.card__art {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  --tint: var(--gold);
  --v: 0;
  background:
    radial-gradient(74% 66% at calc(32% + var(--v) * 12%) calc(16% + var(--v) * 7%),
      color-mix(in srgb, var(--tint) 30%, transparent), transparent 72%),
    var(--surface-2);
}
/* an engraved ring behind the glyph, its size and tilt keyed to the variant */
.card__art::after {
  content: '';
  position: absolute; z-index: 0;
  width: calc(74px + var(--v) * 14px); aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--tint) 24%, transparent);
  border-top-color: transparent;
  rotate: calc(var(--v) * 31deg);
}
.card__art .glyph {
  position: relative; z-index: 1;
  width: 46px; height: 46px;
  color: var(--tint);
  opacity: .88;
  rotate: calc(var(--v) * 4deg - 10deg);
  transition: transform .5s var(--ease);
}
.card:hover .card__art .glyph { transform: scale(1.09); }

.card__art--ritual   { --tint: #D8B454; }
.card__art--library  { --tint: #B08968; }
.card__art--jewel    { --tint: #9BB8D3; }
.card__art--hearth   { --tint: #C98A4B; }
.card__art--parlor   { --tint: #C4869B; }
.card__art--garden   { --tint: #8FB08A; }
.card__art--chapel   { --tint: #A9A2C4; }
.card__art--dressing { --tint: #A63446; }
.card__art--baths    { --tint: #7FB0AE; }
.card__art--boudoir  { --tint: #B37BA4; }

/* On parchment the same tints wash out to nothing, so the plate leans harder on
   the tint and the glyph borrows some ink to keep its edges. */
html[data-theme="light"] .card__art {
  background:
    radial-gradient(74% 66% at calc(32% + var(--v) * 12%) calc(16% + var(--v) * 7%),
      color-mix(in srgb, var(--tint) 52%, transparent), transparent 74%),
    var(--surface-2);
}
html[data-theme="light"] .card__art .glyph {
  color: color-mix(in srgb, var(--tint) 55%, #3A2E1C);
  opacity: 1;
}
html[data-theme="light"] .card__art::after {
  border-color: color-mix(in srgb, var(--tint) 60%, #6B5F50);
  border-top-color: transparent;
}

.card__sheen {
  position: absolute; inset: 0;
  background: linear-gradient(112deg, transparent 38%,
    color-mix(in srgb, #FFF 14%, transparent) 48%, transparent 58%);
  translate: -100% 0;
  transition: translate .8s var(--ease);
}
.card:hover .card__sheen { translate: 100% 0; }

.card__body { padding: .95rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.card__chamber {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .4rem;
}
.card__h {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.02rem; line-height: 1.28; letter-spacing: -.005em;
  flex: 1;
}
.card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin-top: .9rem;
}
.card__price {
  font-size: 1rem; font-weight: 650;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.card__add {
  padding: .38rem .8rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--muted);
  transition: all var(--t);
}
.card__add:hover { border-color: var(--gold); color: var(--gold); }
.card__add.is-added {
  background: var(--gold); border-color: var(--gold); color: var(--btn-fg);
}

.more { display: flex; justify-content: center; margin-top: 1.75rem; }
.more[hidden] { display: none; }

.empty {
  text-align: center; padding: 4rem 1.5rem;
  border: 1px dashed var(--line-2); border-radius: var(--r);
}
.empty__i { width: 42px; height: 42px; margin: 0 auto 1.1rem; color: var(--gold); opacity: .6; }
.empty__h { font-family: var(--serif); font-size: 1.35rem; }
.empty__d { color: var(--muted); margin: .5rem 0 1.3rem; font-size: .95rem; }

/* ── consultations ──────────────────────────────────── */
.consult__in {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 430px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 1000px) { .consult__in { grid-template-columns: 1fr; } }

.consult__copy > p { color: var(--muted); margin-top: 1.15rem; max-width: 56ch; }

.ticks { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.8rem; }
.ticks li {
  position: relative; padding-left: 1.85rem;
  font-size: .96rem;
}
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .52em;
  width: 11px; height: 6px;
  border-left: 1.8px solid var(--gold); border-bottom: 1.8px solid var(--gold);
  transform: rotate(-45deg);
}

.svclist {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin-top: 2.4rem;
}
.svc { background: var(--bg); padding: 1.15rem 1.2rem; transition: background var(--t); }
.svc:hover { background: var(--surface); }
.svc__top { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.svc__h { font-family: var(--serif); font-weight: 400; font-size: 1.06rem; line-height: 1.25; }
.svc__p { font-size: .85rem; font-weight: 650; color: var(--gold); white-space: nowrap; }
.svc__d { font-size: .87rem; color: var(--muted); margin-top: .5rem; }
.svc__m {
  font-size: .7rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-top: .75rem; opacity: .8;
}

/* booking card */
.bcard { position: relative; }
/* kept inside the card's own width — the blur does the spreading, so the box
   never adds horizontal overflow on a narrow screen */
.bcard__glow {
  position: absolute; inset: -14% 0;
  background: radial-gradient(60% 50% at 50% 0%,
    color-mix(in srgb, var(--gold) 26%, transparent), transparent 70%);
  filter: blur(46px); z-index: 0;
}
.bcard__in {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.bcard__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-bottom: 1.15rem; margin-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.bcard__kicker {
  font-size: .73rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--gold);
}
.bcard__steps { display: flex; gap: 5px; }
.bcard__steps i {
  width: 20px; height: 3px; border-radius: 2px; background: var(--line-2);
  transition: background var(--t);
}
.bcard__steps i.on { background: var(--gold); }

.bstep { display: none; }
.bstep.is-active { display: block; animation: slidein .38s var(--ease) both; }
@keyframes slidein { from { opacity: 0; transform: translateX(12px); } }

.bcard__q {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 400;
  margin-bottom: 1.15rem; display: block;
}
.bcard__row { display: flex; gap: .7rem; margin-top: 1.3rem; }
.bcard__row .btn { flex: 1; }
.bcard__fine { font-size: .78rem; color: var(--muted); margin-top: 1rem; }

.opts { display: flex; flex-direction: column; gap: .5rem; max-height: 306px; overflow-y: auto; }
.opts + .btn { margin-top: 1.1rem; }
.opt { cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt__b {
  display: flex; flex-direction: column; gap: .18rem;
  padding: .75rem .9rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color var(--t), background var(--t);
}
.opt:hover .opt__b { border-color: var(--line-2); }
.opt input:checked + .opt__b {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 11%, transparent);
}
.opt input:focus-visible + .opt__b { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt__h { font-size: .95rem; font-weight: 600; }
.opt__m { font-size: .8rem; color: var(--muted); }

.cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: .05rem;
  padding: .55rem .2rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: all var(--t);
}
.day__d { font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.day__n { font-size: 1.05rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.day__m { font-size: .6rem; color: var(--muted); }
.day:hover:not(.is-off) { border-color: var(--line-2); }
.day.is-on {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 13%, transparent);
}
.day.is-on .day__d, .day.is-on .day__m { color: var(--gold); }
.day.is-off { opacity: .3; cursor: not-allowed; }

.cal__label {
  font-size: .73rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin: 1.35rem 0 .7rem;
}
.cal__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.slot {
  padding: .55rem .3rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: .85rem; font-weight: 550;
  transition: all var(--t);
}
.slot:hover:not(.is-off) { border-color: var(--gold); color: var(--gold); }
.slot.is-on {
  border-color: var(--gold); background: var(--gold); color: var(--btn-fg); font-weight: 650;
}
.slot.is-off { opacity: .28; cursor: not-allowed; text-decoration: line-through; }

.field { margin-bottom: .95rem; }
.field label {
  display: block; font-size: .78rem; font-weight: 650;
  letter-spacing: .04em; color: var(--muted); margin-bottom: .38rem;
}
.field input, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: .7rem .85rem;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 15%, transparent);
}
.field input::placeholder { color: var(--muted); opacity: .7; }

.bdone { text-align: center; padding: 1.5rem 0 .5rem; }
.bdone__mark {
  width: 46px; height: 46px; margin: 0 auto 1.1rem;
  color: var(--gold); stroke-width: 2;
  animation: draw .6s var(--ease) both;
}
@keyframes draw { from { opacity: 0; transform: scale(.6); } }
.bdone h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; }
.bdone p { font-size: .92rem; color: var(--muted); margin-top: .7rem; }
.bdone__sum {
  color: var(--text) !important; font-weight: 600;
  padding: .7rem 1rem; margin: 1rem 0 !important;
  background: color-mix(in srgb, var(--gold) 11%, transparent);
  border-radius: var(--r-sm);
}
.bdone .btn { margin-top: 1.3rem; }

/* ── circe academy ──────────────────────────────────── */
.courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}
.course {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.4rem 1.3rem;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.course:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.course__flag {
  position: absolute; top: 1.5rem; right: 1.4rem;
  font-size: .64rem; font-weight: 750;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px;
  background: color-mix(in srgb, var(--blood) 20%, transparent);
  color: var(--blood);
  border: 1px solid color-mix(in srgb, var(--blood) 40%, transparent);
}
html[data-theme="dark"] .course__flag { color: #E4818F; }
.course__fmt {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--gold);
  margin-bottom: .75rem; padding-right: 5rem;
}
.course__h {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.32rem; line-height: 1.22; letter-spacing: -.01em;
}
.course__teach { font-size: .87rem; color: var(--muted); margin-top: .35rem; font-style: italic; }
.course__d { font-size: .91rem; color: var(--muted); margin-top: .9rem; flex: 1; }
.course__foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-top: 1.4rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.course__when { font-size: .88rem; font-weight: 600; }
.course__seats { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.course__go { color: var(--gold); transition: transform .35s var(--ease); }
.course:hover .course__go { transform: translateX(4px); }

.courses__fine { font-size: .8rem; color: var(--muted); margin-top: 1.6rem; font-style: italic; }

/* ── visit ──────────────────────────────────────────── */
.visit__in {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 1000px) { .visit__in { grid-template-columns: 1fr; } }

.visit__copy > p { color: var(--muted); margin-top: 1.15rem; max-width: 52ch; }

.visit__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem 1.75rem; margin: 2.2rem 0;
}
.visit__facts dt {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .4rem;
}
.visit__facts dd { font-size: .95rem; line-height: 1.5; }

.visit__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.visit__card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mapviz { position: relative; background: var(--surface-2); }
.mapviz__svg { width: 100%; height: auto; display: block; }
.mapviz__water { fill: color-mix(in srgb, var(--gold) 9%, transparent); stroke: none; }
.mapviz__blocks rect {
  fill: color-mix(in srgb, var(--text) 7%, transparent);
  stroke: var(--line-2); stroke-width: .6;
}
.mapviz__road { fill: none; stroke: var(--line-2); stroke-width: 2.5; stroke-linecap: round; }
.mapviz__pin { fill: var(--gold); stroke: var(--bg); stroke-width: 2; }
.mapviz__ping {
  position: absolute; left: var(--x); top: var(--y);
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; border: 1.5px solid var(--gold);
  animation: ping 2.8s var(--ease) infinite;
}
@keyframes ping {
  0%   { transform: scale(.7); opacity: .9; }
  70%  { transform: scale(3.1); opacity: 0; }
  100% { transform: scale(3.1); opacity: 0; }
}
.mapviz__tag {
  position: absolute; left: 50%; bottom: 1rem; translate: -50% 0;
  font-size: .74rem; font-weight: 650;
  padding: .3rem .75rem; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.visit__meta { padding: 1.3rem 1.4rem 1.5rem; border-top: 1px solid var(--line); }
.visit__live { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.visit__meta .muted { font-size: .87rem; }

/* ── final CTA ──────────────────────────────────────── */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
  text-align: center;
}
.cta__smoke {
  position: absolute; inset: -60% -20% auto; height: 220%;
  background: radial-gradient(50% 42% at 50% 32%,
    color-mix(in srgb, var(--gold) 24%, transparent), transparent 70%);
  filter: blur(70px);
}
.cta__in { position: relative; z-index: 1; max-width: 640px; }
.cta__in p { color: var(--muted); margin-top: 1.15rem; }
.cta__actions {
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
  margin-top: 2rem;
}

/* ── studio band ────────────────────────────────────── */
.studioband { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.studioband__head { max-width: 66ch; margin-bottom: 3rem; }
.studioband__h {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.14;
  letter-spacing: -.014em; text-wrap: balance;
}
.studioband__h em {
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.studioband__d { color: var(--muted); margin-top: 1.15rem; }

.audit {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.audit__row {
  display: grid; grid-template-columns: 190px 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding: 1.9rem clamp(1.25rem, 3vw, 2.25rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.audit__row:last-child { border-bottom: 0; }
@media (max-width: 720px) { .audit__row { grid-template-columns: 1fr; gap: .5rem; } }

.audit__n {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1;
  letter-spacing: -.02em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.audit__n em {
  font-family: var(--sans); font-style: normal;
  font-size: .95rem; font-weight: 650; letter-spacing: .02em;
  margin-left: .3rem;
  -webkit-text-fill-color: var(--muted);
}
.audit__c h3 {
  font-size: 1.08rem; font-weight: 650; letter-spacing: -.01em;
  line-height: 1.35;
}
.audit__c p { font-size: .94rem; color: var(--muted); margin-top: .55rem; max-width: 62ch; }

.studioband__cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  margin-top: 2.5rem;
}
.studioband__cta p { color: var(--muted); max-width: 46ch; }

/* ── footer ─────────────────────────────────────────── */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 6vw, 5rem); }
.foot__in {
  display: grid; grid-template-columns: minmax(260px, 1fr) 2.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}
@media (max-width: 900px) { .foot__in { grid-template-columns: 1fr; } }

.foot__blurb { font-size: .92rem; color: var(--muted); margin-top: 1.2rem; max-width: 40ch; }
.foot__addr { font-size: .87rem; color: var(--muted); margin-top: 1.2rem; line-height: 1.7; }

.foot__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem 1.5rem;
}
.foot__cols h3 {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.foot__cols a {
  display: block; font-size: .89rem; color: var(--muted);
  padding: .21rem 0;
  transition: color var(--t);
}
.foot__cols a:hover { color: var(--text); }
.foot__hours { font-size: .89rem; color: var(--muted); line-height: 1.7; }

.foot__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--muted);
}
.tbs {
  color: var(--gold); font-weight: 650;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  transition: border-color var(--t);
}
.tbs:hover { border-bottom-color: var(--gold); }

/* ── concept badge ──────────────────────────────────── */
/* Bottom-right: the hero copy and its search field are left-aligned, so the
   badge would otherwise sit on top of the one thing we want people to try. */
.conceptbadge {
  position: fixed; right: 1.15rem; bottom: 1.15rem; z-index: 90;
  max-width: 320px;
  background: var(--glass);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: .95rem 2.1rem .95rem 1.05rem;
  box-shadow: var(--shadow);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.conceptbadge.is-hidden { opacity: 0; transform: translateY(14px); pointer-events: none; }
.conceptbadge__t {
  font-size: .7rem; font-weight: 750;
  letter-spacing: .13em; text-transform: uppercase; color: var(--gold);
  margin-bottom: .4rem;
}
.conceptbadge__d { font-size: .76rem; line-height: 1.55; color: var(--muted); }
.conceptbadge__d a { color: var(--text); }
.conceptbadge__d a:hover { color: var(--gold); }
.conceptbadge__x {
  position: absolute; top: .5rem; right: .6rem;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 1.15rem; line-height: 1; color: var(--muted);
  display: grid; place-items: center;
  transition: background var(--t), color var(--t);
}
.conceptbadge__x:hover { background: var(--surface-2); color: var(--text); }
@media (max-width: 640px) { .conceptbadge { left: .75rem; right: .75rem; bottom: .75rem; max-width: none; } }

/* ── reveal ─────────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ── reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__sigil svg, .hero__smoke i { animation: none; }
}
