/* Balaji Alankar — For You. For Ever.
   Deep charcoal grounds, gold as the only accent, drawn from the shop's own
   logo. Gold reads as metal against dark, and photographs sit best on it. */

:root {
  /* grounds, darkest to lightest */
  --black:     #0B0907;
  --ground:    #14110E;
  --raised:    #1C1813;
  --raised-2:  #242018;
  --hairline:  #332C22;
  --hairline-2:#473E2F;

  /* gold */
  --gold:      #D4AF53;
  --gold-lit:  #EBD28C;
  --gold-deep: #A8832F;
  --gold-haze: rgba(212,175,83,0.12);

  /* type */
  --ivory:     #F5F1E8;
  --ivory-2:   #C8C0B0;
  --ivory-3:   #948C7C;

  /* the light surfaces used sparingly, for forms and the portal */
  --paper:     #FBF8F1;
  --paper-2:   #F2ECE0;
  --paper-line:#E0D8C8;
  --ink:       #2B2218;
  --ink-2:     #5A4F3F;
  --ink-3:     #8A7F6C;

  --good:      #6FBF8F;
  --bad:       #E08C72;

  --wrap: 1240px;
  --pad: 44px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ivory);
  font-family: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, .serif {
  font-family: "Cormorant Garamond", Newsreader, Georgia, serif;
  font-weight: 300;
  letter-spacing: -0.2px;
  text-wrap: balance;
  margin: 0;
}

a { color: var(--gold); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold-lit); }

.mono, .num {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ── a hairline of gold, used as a divider everywhere ───────────────────── */
.rule-gold {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}

/* ── motion ─────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.seen { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s } .reveal.d2 { transition-delay: .16s }
.reveal.d3 { transition-delay: .24s } .reveal.d4 { transition-delay: .32s }
.reveal.d5 { transition-delay: .40s } .reveal.d6 { transition-delay: .48s }

@keyframes riseIn { from { opacity: 0; transform: translateY(30px) } to { opacity: 1; transform: none } }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes sheen  { 0% { background-position: -180% 0 } 60%, 100% { background-position: 180% 0 } }
@keyframes drift  { 0%,100% { transform: translateY(0) rotate(0deg) } 50% { transform: translateY(-14px) rotate(1.2deg) } }
@keyframes spinSlow { to { transform: rotate(360deg) } }

.rise  { animation: riseIn 1s var(--ease) both; }
.rise.d1 { animation-delay: .12s } .rise.d2 { animation-delay: .24s }
.rise.d3 { animation-delay: .36s } .rise.d4 { animation-delay: .48s }
.fade  { animation: fadeIn 1.4s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rise, .fade { animation: none; }
  .drifting { animation: none !important; }
  * { transition-duration: .01ms !important; }
}

/* ── top strip: the day's rate ──────────────────────────────────────────── */
.ratebar { background: var(--black); border-bottom: 1px solid var(--hairline); }
.ratebar .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: center;
  padding-top: 11px; padding-bottom: 11px;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--ivory-3);
}
.ratebar .figure { color: var(--gold); }

/* ── masthead ───────────────────────────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,17,14,.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.masthead.lifted { background: rgba(11,9,7,.96); border-bottom-color: var(--hairline-2); }
.masthead .wrap {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  padding-top: 13px; padding-bottom: 13px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img.mark { height: 42px; width: auto; display: block; }
.brand img.word { width: 182px; height: auto; display: block; }
.brand .tag {
  display: block; font-size: 8px; letter-spacing: 2.8px; color: var(--gold-deep);
  text-transform: uppercase; margin-top: 4px;
}

nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
nav.main a {
  font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ivory-2); position: relative; padding: 6px 0;
}
nav.main a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .35s var(--ease);
}
nav.main a:hover::after, nav.main a.on::after { width: 100%; }
nav.main a.on { color: var(--gold); }
nav.main a.account {
  border: 1px solid var(--hairline-2); border-radius: 2px; padding: 11px 20px;
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--ivory);
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
nav.main a.account::after { display: none; }
nav.main a.account:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-haze); }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 34px; min-height: 52px; border-radius: 2px; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold) 45%, var(--gold-lit) 72%, var(--gold) 100%);
  background-size: 220% 100%; color: #241B07;
}
.btn-gold:hover { box-shadow: 0 10px 30px rgba(212,175,83,.26); animation: sheen 1.1s var(--ease); }
.btn-outline { border-color: var(--hairline-2); color: var(--ivory); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-haze); }
.btn-wa { background: #1F7A54; color: #fff; }
.btn-wa:hover { background: #239063; box-shadow: 0 10px 26px rgba(31,122,84,.3); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #3C3022; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 12px 22px; min-height: 44px; font-size: 11px; letter-spacing: 1.6px; }

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

/* ── section furniture ──────────────────────────────────────────────────── */
.band { padding: 112px 0; }
.band-tight { padding: 72px 0; }
.band-paper { background: var(--paper); color: var(--ink); }
.band-paper h1, .band-paper h2, .band-paper h3 { color: var(--ink); }
.band-paper a { color: var(--gold-deep); }
.band-raised { background: var(--raised); }

.eyebrow {
  font-size: 10.5px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold-deep); }
.eyebrow.centred { justify-content: center; }
.eyebrow.centred::after { content: ""; width: 34px; height: 1px; background: var(--gold-deep); }
.band-paper .eyebrow { color: var(--gold-deep); }

.h-hero { font-size: clamp(44px, 7vw, 88px); line-height: 1.02; letter-spacing: -1.6px; font-weight: 200; }
.h-page { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -1.1px; font-weight: 200; }
.h-sect { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -0.7px; font-weight: 300; }
.h-card { font-size: 25px; line-height: 1.2; font-weight: 400; }
.lede { font-size: 17.5px; line-height: 1.78; color: var(--ivory-2); max-width: 56ch; }
.band-paper .lede { color: var(--ink-2); }

.sect-head { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-end; justify-content: space-between; margin-bottom: 52px; }

/* ── layout ─────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > .narrow { flex: 1 1 320px; min-width: 0; }
.split > .wide { flex: 999 1 480px; min-width: 0; }

/* ── the hero ───────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--black); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto 40%; height: 150%;
  background: radial-gradient(ellipse at center, rgba(212,175,83,.16), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-top: 104px; padding-bottom: 104px; }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-art .halo {
  position: absolute; width: 112%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(212,175,83,.18);
  animation: spinSlow 64s linear infinite;
}
.hero-art .halo::after {
  content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px 3px rgba(212,175,83,.6);
}
.drifting { animation: drift 9s ease-in-out infinite; }

/* ── pieces ─────────────────────────────────────────────────────────────── */
.piece {
  background: var(--raised); border: 1px solid var(--hairline); border-radius: 2px;
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.piece:hover { transform: translateY(-6px); border-color: var(--gold-deep); box-shadow: 0 22px 50px rgba(0,0,0,.5); }
.piece .art {
  display: flex; align-items: center; justify-content: center; position: relative;
  min-height: 250px; padding: 32px 22px;
  background: radial-gradient(ellipse at 50% 40%, var(--raised-2), var(--raised) 68%);
  border-bottom: 1px solid var(--hairline);
}
.piece .art svg { transition: transform .6s var(--ease); }
.piece:hover .art svg { transform: scale(1.07) rotate(-1.5deg); }
.piece .art::after {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(235,210,140,.12) 50%, transparent 65%);
  background-size: 220% 100%; transition: opacity .3s var(--ease);
}
.piece:hover .art::after { opacity: 1; animation: sheen 1.3s var(--ease); }
.piece .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 15px; flex-grow: 1; }
.piece .price { font-size: 22px; font-weight: 500; color: var(--gold); letter-spacing: -0.3px; }
.piece .meta { font-size: 11px; color: var(--ivory-3); letter-spacing: .6px; }
.piece .foot { margin-top: auto; }
.band-paper .piece { background: #fff; border-color: var(--paper-line); }
.band-paper .piece .art { background: radial-gradient(ellipse at 50% 40%, #fff, var(--paper-2) 72%); border-bottom-color: var(--paper-line); }
.band-paper .piece .price { color: var(--gold-deep); }
.band-paper .piece .meta { color: var(--ink-3); }

/* a collection tile */
.tile {
  position: relative; display: block; overflow: hidden; border-radius: 2px;
  border: 1px solid var(--hairline); background: var(--raised);
  transition: border-color .45s var(--ease), transform .45s var(--ease);
}
.tile:hover { border-color: var(--gold-deep); transform: translateY(-5px); }
.tile .top {
  height: 210px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 45%, var(--raised-2), var(--raised) 70%);
}
.tile .top svg { transition: transform .6s var(--ease); }
.tile:hover .top svg { transform: scale(1.09); }
.tile .bottom { padding: 22px 24px 24px; border-top: 1px solid var(--hairline); }

.chip {
  font-size: 9.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  border-radius: 2px; padding: 5px 10px; display: inline-block;
}
.chip-gold { color: var(--gold-lit); background: var(--gold-haze); border: 1px solid rgba(212,175,83,.34); }
.chip-dim  { color: var(--ivory-3); background: rgba(255,255,255,.03); border: 1px solid var(--hairline); }
.chip-good { color: var(--good); background: rgba(111,191,143,.1); border: 1px solid rgba(111,191,143,.3); }
.chip-bad  { color: var(--bad); background: rgba(224,140,114,.1); border: 1px solid rgba(224,140,114,.3); }
.band-paper .chip-gold { color: #7A5F1C; background: #F6EED8; border-color: #E2CE9A; }
.band-paper .chip-dim { color: var(--ink-3); background: var(--paper-2); border-color: var(--paper-line); }

.stamp {
  position: absolute; left: 16px; top: 16px; max-width: calc(100% - 92px);
  font-family: "IBM Plex Mono", monospace; font-size: 8.5px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--ivory-3);
  border: 1px solid var(--hairline-2); border-radius: 2px; padding: 4px 8px;
}
.band-paper .stamp { color: var(--ink-3); border-color: var(--paper-line); }

/* ── forms ──────────────────────────────────────────────────────────────── */
label.field { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ivory-3); margin-bottom: 9px; }
.band-paper label.field { color: var(--ink-3); }
input[type=search], input[type=text], input[type=tel], input[type=password], select {
  font-family: inherit; font-size: 15px; width: 100%; min-height: 50px;
  padding: 14px 16px; border-radius: 2px;
  background: var(--raised); color: var(--ivory); border: 1px solid var(--hairline-2);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
input::placeholder { color: var(--ivory-3); }
input:focus, select:focus { border-color: var(--gold); background: var(--raised-2); outline: none; }
.band-paper input, .band-paper select { background: #fff; color: var(--ink); border-color: var(--paper-line); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 44px; }

.pill {
  font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase;
  border-radius: 2px; padding: 11px 18px; min-height: 42px;
  display: inline-flex; align-items: center; cursor: pointer;
  background: transparent; color: var(--ivory-2); border: 1px solid var(--hairline);
  transition: all .3s var(--ease);
}
.pill:hover { border-color: var(--gold-deep); color: var(--gold); }
.pill.on { background: var(--gold); border-color: var(--gold); color: #241B07; font-weight: 600; }
.band-paper .pill { color: var(--ink-2); border-color: var(--paper-line); }
.band-paper .pill.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ── tables ─────────────────────────────────────────────────────────────── */
.table-box { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 2px; background: var(--raised); }
.band-paper .table-box { border-color: var(--paper-line); background: #fff; }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; font-size: 10.5px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--ivory-3); padding: 20px 22px 12px; }
.band-paper caption { color: var(--ink-3); }
th, td { padding: 14px 22px; font-size: 14.5px; }
thead th { text-align: left; font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ivory-3); border-bottom: 1px solid var(--hairline); }
tbody tr { border-top: 1px solid var(--hairline); }
.band-paper tbody tr, .band-paper thead th { border-color: var(--paper-line); }
tbody th { text-align: left; font-weight: 400; color: var(--ivory-3); }
.band-paper tbody th { color: var(--ink-3); }
.right { text-align: right; }

/* ── notices, cards, empties ────────────────────────────────────────────── */
.card { background: var(--raised); border: 1px solid var(--hairline); border-radius: 2px; }
.band-paper .card { background: #fff; border-color: var(--paper-line); }
.notice { border-radius: 2px; padding: 16px 18px; font-size: 14px; line-height: 1.65; }
.notice-gold { background: var(--gold-haze); border: 1px solid rgba(212,175,83,.3); color: var(--gold-lit); }
.notice-bad { background: rgba(224,140,114,.1); border: 1px solid rgba(224,140,114,.32); color: var(--bad); }
.band-paper .notice-bad { background: #FBEAE4; border-color: #E8C2B3; color: #8A3324; }
.empty { text-align: center; padding: 88px 28px; color: var(--ivory-2); }
.empty h2 { margin-bottom: 12px; font-size: 32px; }
.band-paper .empty { color: var(--ink-2); }

/* ── portal ─────────────────────────────────────────────────────────────── */
.account-bar { background: var(--black); border-bottom: 1px solid var(--hairline); }
.account-bar .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.rail { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rail a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 48px;
  font-size: 12.5px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ivory-2); border-left: 2px solid transparent; border-radius: 2px;
  transition: all .3s var(--ease);
}
.rail a:hover { background: rgba(255,255,255,.03); color: var(--gold); }
.rail a.on { color: var(--gold); background: var(--gold-haze); border-left-color: var(--gold); }

.meter { height: 6px; background: var(--hairline); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-lit)); transition: width 1.4s var(--ease); }

.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps .marks { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; align-self: stretch; }
.steps .dot { width: 13px; height: 13px; border-radius: 50%; box-sizing: border-box; background: transparent; border: 1.5px solid var(--hairline-2); }
.steps .dot.done { background: var(--gold); border-color: var(--gold); }
.steps .dot.current { border: 3px solid var(--gold); box-shadow: 0 0 0 4px var(--gold-haze); }
.steps .line { width: 1px; flex-grow: 1; min-height: 28px; background: var(--hairline); }
.steps .line.done { background: var(--gold-deep); }
.steps .text { padding-bottom: 22px; min-width: 0; }
.steps .text .t { display: block; font-size: 15px; color: var(--ivory); }
.steps .text .t.now { color: var(--gold); font-weight: 600; }
.steps .text .t.todo { color: var(--ivory-3); }
.steps .text .w { display: block; font-size: 12.5px; color: var(--ivory-3); margin-top: 3px; }

/* ── footer ─────────────────────────────────────────────────────────────── */
footer.site { background: var(--black); border-top: 1px solid var(--hairline); }
footer.site .wrap { padding-top: 68px; }
footer.site a { color: var(--ivory-2); font-size: 14px; }
footer.site a:hover { color: var(--gold); }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer.site .head { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 20px; }
footer.site .legal {
  border-top: 1px solid var(--hairline); margin-top: 52px; padding: 24px 0 34px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 12px; color: var(--ivory-3);
}

/* ── small screens ──────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  :root { --pad: 22px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .band { padding: 72px 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  footer.site .cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .masthead { position: static; }
  nav.main { gap: 18px; }
  nav.main a { font-size: 11.5px; letter-spacing: 1.2px; }
  .brand img.mark { height: 34px; }
  .brand img.word { width: 148px; }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: minmax(0,1fr); }
  .split { gap: 34px; }
  footer.site .cols { grid-template-columns: minmax(0,1fr); }
  .brand img.mark { height: 29px; }
  .brand img.word { width: 126px; }
}

/* ── light mode ─────────────────────────────────────────────────────────────
   Dark is the brand's committed look, so it stays on bare :root. Light is an
   override applied either by the visitor's device or by the toggle, and the
   toggle wins in both directions. Every colour below is a token the rest of
   the sheet already uses, so nothing else changes. */

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --black:      #FFFFFF;
    --ground:     #FBF8F1;
    --raised:     #FFFFFF;
    --raised-2:   #F4EEE2;
    --hairline:   #E6DDCB;
    --hairline-2: #D4C7AC;

    --gold:       #9A7724;
    --gold-lit:   #7A5F1C;
    --gold-deep:  #B8902F;
    --gold-haze:  rgba(154,119,36,0.10);

    --ivory:      #241E14;
    --ivory-2:    #574B38;
    --ivory-3:    #8A7C64;

    --paper:      #241E14;
    --paper-2:    #322A1C;
    --paper-line: #413726;
    --ink:        #FBF8F1;
    --ink-2:      #E4DCCB;
    --ink-3:      #B3A894;

    --good:       #2C7D5B;
    --bad:        #A6422C;
  }
}

:root[data-theme="light"] {
  --black:      #FFFFFF;
  --ground:     #FBF8F1;
  --raised:     #FFFFFF;
  --raised-2:   #F4EEE2;
  --hairline:   #E6DDCB;
  --hairline-2: #D4C7AC;

  --gold:       #9A7724;
  --gold-lit:   #7A5F1C;
  --gold-deep:  #B8902F;
  --gold-haze:  rgba(154,119,36,0.10);

  --ivory:      #241E14;
  --ivory-2:    #574B38;
  --ivory-3:    #8A7C64;

  --paper:      #241E14;
  --paper-2:    #322A1C;
  --paper-line: #413726;
  --ink:        #FBF8F1;
  --ink-2:      #E4DCCB;
  --ink-3:      #B3A894;

  --good:       #2C7D5B;
  --bad:        #A6422C;
}

/* The masthead's translucency is a literal colour, so it needs its own swap. */
:root[data-theme="light"] .masthead { background: rgba(251,248,241,.86); }
:root[data-theme="light"] .masthead.lifted { background: rgba(255,255,255,.97); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .masthead { background: rgba(251,248,241,.86); }
  :root:not([data-theme="dark"]) .masthead.lifted { background: rgba(255,255,255,.97); }
}

/* The gold button's dark text has to stay dark on both grounds. */
.btn-gold { color: #241B07; }

/* ── the theme toggle ───────────────────────────────────────────────────── */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid var(--hairline-2); border-radius: 2px;
  background: transparent; color: var(--ivory-2); cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-haze); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .moon { display: none; }
}

/* ── the rotating hero ──────────────────────────────────────────────────── */
.carousel { position: relative; }
.slides { position: relative; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease);
  display: flex; align-items: center;
}
.slide.on { position: relative; opacity: 1; visibility: visible; }
.slide-photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.slide-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--black) 8%, rgba(11,9,7,.72) 48%, rgba(11,9,7,.35) 100%);
}
:root[data-theme="light"] .slide-photo::after {
  background: linear-gradient(90deg, rgba(255,255,255,.95) 8%, rgba(255,255,255,.8) 48%, rgba(255,255,255,.45) 100%);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .slide-photo::after {
    background: linear-gradient(90deg, rgba(255,255,255,.95) 8%, rgba(255,255,255,.8) 48%, rgba(255,255,255,.45) 100%);
  }
}
.slide-inner { position: relative; z-index: 1; width: 100%; }

.c-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,9,7,.5); border: 1px solid var(--hairline-2); color: var(--gold);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: all .3s var(--ease);
}
:root[data-theme="light"] .c-arrow { background: rgba(255,255,255,.72); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .c-arrow { background: rgba(255,255,255,.72); }
}
.c-arrow:hover { border-color: var(--gold); background: var(--gold); color: #241B07; }
.c-prev { left: 16px; } .c-next { right: 16px; }

.c-dots {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 4;
  display: flex; gap: 10px; justify-content: center;
}
.c-dot {
  width: 30px; height: 3px; border: 0; padding: 0; cursor: pointer; border-radius: 2px;
  background: var(--hairline-2); transition: background .3s var(--ease), width .3s var(--ease);
}
.c-dot.on { background: var(--gold); width: 46px; }

/* ── a row that scrolls sideways ────────────────────────────────────────── */
.scroller-wrap { position: relative; }
/* Flex, not grid. `grid-auto-columns: minmax(0, …)` let every track shrink to
   nothing, so twelve cards squeezed into the viewport instead of overflowing —
   one-word-per-line text and clipped prices. flex-shrink:0 is the whole fix. */
.scroller {
  display: flex; gap: 22px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: var(--hairline-2) transparent;
}
.scroller > * { flex: 0 0 290px; scroll-snap-align: start; }
.scroller::-webkit-scrollbar { height: 5px; }
.scroller::-webkit-scrollbar-track { background: var(--hairline); border-radius: 3px; }
.scroller::-webkit-scrollbar-thumb { background: var(--hairline-2); border-radius: 3px; }
.scroller::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }
@media (min-width: 1200px) { .scroller > * { flex-basis: calc((100% - 66px) / 4); } }

.s-arrow {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--hairline-2); color: var(--ivory-2);
  transition: all .3s var(--ease);
}
.s-arrow:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); background: var(--gold-haze); }
.s-arrow:disabled { opacity: .3; cursor: default; }

/* ── a photograph filling a frame, with the drawing as the fallback ─────── */
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.framed { position: relative; overflow: hidden; }

@media (max-width: 1000px) {
  .c-arrow { width: 42px; height: 42px; }
  .c-prev { left: 8px; } .c-next { right: 8px; }
  .scroller > * { flex-basis: min(78%, 300px); }
}


/* ── social ─────────────────────────────────────────────────────────────── */
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline-2); color: var(--ivory-2);
  transition: all .3s var(--ease);
}
.socials a:hover {
  border-color: var(--gold); color: var(--gold);
  background: var(--gold-haze); transform: translateY(-3px);
}

/* ── catalogue filter rows ──────────────────────────────────────────────── */
.filter-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px; align-items: end;
}
.weight-pair { display: flex; gap: 10px; align-items: center; }
.weight-pair input { min-width: 0; }
.weight-pair span { color: var(--ivory-3); font-size: 13px; flex-shrink: 0; }


/* ── the embedded map ───────────────────────────────────────────────────── */
.map-frame {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border: 1px solid var(--hairline-2); border-radius: 2px; overflow: hidden;
  background: var(--raised-2);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Google's tiles are bright; in dark mode they are softened so the page holds. */
:root:not([data-theme="light"]) .map-frame iframe { filter: grayscale(.28) brightness(.82) contrast(1.06); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .map-frame iframe { filter: none; }
}
:root[data-theme="light"] .map-frame iframe { filter: none; }
