/* ===== GoldNSilver — brand tokens (grey and white, matching the logo file) ===== */
:root {
  --paper: #F5F5F5;       /* soft white panels and page */
  --paper-deep: #EBEBEB;  /* placeholder fill, quiet surfaces */
  --frame: #FFFFFF;       /* thin frame around photos */
  --wall: #6E6E6E;        /* grey gallery wall */
  --espresso: #3F3F3F;    /* charcoal from the logo: Aafiyat room, footer */
  --ink: #3F3F3F;         /* charcoal type */
  --ink-soft: #5E5E5E;    /* secondary type, 6:1 on paper */
  --stone: #E0E0E0;       /* watermark, hairlines */
  --line: #D4D4D4;
  --gold: #3F3F3F;        /* accent (was gold): logo and decorative lines on light */
  --gold-text: #4F4F4F;   /* accent text on light */
  --gold-light: #FFFFFF;  /* accent on dark: white, like the logo */
  --silver: #A3A6AB;
  --silver-deep: #E6E5E1;
  --on-dark: #F2F2F2;
  --on-dark-soft: #C4C4C4;

  --font-display: 'Cormorant', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --pad-x: clamp(16px, 5vw, 72px);
  --section-y: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold-text); }
a:hover { color: #5C4212; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; line-height: 1.05; letter-spacing: -0.005em; }
h2 { font-size: clamp(40px, 5vw, 64px); }
h3 { font-size: clamp(28px, 3vw, 34px); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

.container { max-width: 1360px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.lead { font-size: 18px; line-height: 1.7; color: var(--ink-soft); max-width: 34em; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Wordmark ===== */
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.wordmark-emblem { color: var(--gold); flex-shrink: 0; }
.wordmark-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.wordmark-name { font-family: var(--font-display); font-weight: 600; font-size: 25px; text-transform: uppercase; letter-spacing: 0.04em; }
.wordmark-sub { font-size: 10px; letter-spacing: 0.62em; text-transform: uppercase; margin-top: 5px; padding-left: 0.62em; color: var(--ink-soft); font-weight: 400; }
.wordmark-light { color: var(--on-dark); }
.wordmark-light .wordmark-emblem { color: var(--gold-light); }
.wordmark-light .wordmark-sub { color: var(--on-dark-soft); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 400 15px/1.2 var(--font-body); letter-spacing: 0.04em; text-decoration: none;
  border: 1px solid var(--ink); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2E2E2E; border-color: #2E2E2E; color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-gold { background: var(--gold-light); border-color: var(--gold-light); color: #262626; }
.btn-gold:hover { background: #E6CC9A; border-color: #E6CC9A; color: #262626; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 245, 245, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Menu: a dropdown on every screen size, grouped Jewelry / Aafiyat watches / Talk to us */
.nav-toggle {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 4px 0 14px;
  background: none; border: 0; border-radius: 999px; cursor: pointer; color: var(--ink); font: 400 15px var(--font-body);
}
.nav-toggle:hover { color: var(--gold-text); }
.nav-toggle-icon { position: relative; width: 24px; height: 44px; }
.nav-toggle-icon span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s var(--ease); }
.nav-toggle-icon span:first-child { top: 17px; }
.nav-toggle-icon span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.site-nav {
  display: none; position: absolute; top: 76px; left: 0; right: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 64px);
  padding: 28px max(var(--pad-x), calc((100vw - 1360px) / 2 + var(--pad-x))) 36px;
  background: var(--paper); border-bottom: 1px solid var(--line);
  max-height: calc(100dvh - 76px); overflow-y: auto;
}
.site-nav.open { display: grid; }
.nav-group { display: flex; flex-direction: column; }
.nav-heading { font-size: 14px; font-weight: 500; color: var(--gold-text); margin-bottom: 6px; }
.site-nav a { font-size: 17px; font-weight: 400; color: var(--ink); text-decoration: none; padding: 11px 0; border-bottom: 1px solid var(--line); }
.site-nav a:hover { color: var(--gold-text); }

/* ===== Panels, frames, placeholders ===== */
.panel { border-radius: var(--radius); overflow: hidden; margin: 0; }
.framed { border: 5px solid var(--frame); background: var(--frame); }
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; height: 100%; min-height: 180px; padding: 20px;
  background: var(--paper-deep); color: var(--ink-soft);
  font-size: 13px; letter-spacing: 0.08em; line-height: 1.8;
}
.placeholder.silver { background: var(--silver-deep); color: #5D6066; }
.placeholder.short { min-height: 260px; }
.framed .placeholder { border-radius: calc(var(--radius) - 6px); }
.framed > video, .framed > img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) - 6px); }

/* Pause / play button added to each video loop by main.js */
.video-toggle {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(63, 63, 63, 0.72); cursor: pointer;
}
.video-toggle::before { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 14px; border-left: 4px solid var(--paper); border-right: 4px solid var(--paper); box-sizing: border-box; }
.has-video { position: relative; }
.video-toggle-top { top: 12px; right: 12px; bottom: auto; }
.video-toggle[aria-label="Play video"]::before { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--paper); margin-left: 17px; }

/* ===== Taupe wall ===== */
.wall { background: var(--wall); }

/* ===== Entrance (brand-board bento) ===== */
.entrance { padding: clamp(16px, 3vw, 40px) 0; }
.entrance-grid {
  display: grid; gap: clamp(14px, 2vw, 28px);
  grid-template-columns: 2fr 1fr;
  grid-template-rows: minmax(260px, 1fr) minmax(220px, 0.8fr);
  grid-template-areas: "intro a" "intro b";
  min-height: min(82vh, 760px);
}
.entrance-intro { grid-area: intro; position: relative; background: var(--paper); display: flex; align-items: center; padding: clamp(28px, 6vw, 88px); }
.entrance-photo-a { grid-area: a; }
.entrance-photo-b { grid-area: b; }
.watermark {
  position: absolute; left: -8%; top: 50%; transform: translateY(-50%);
  width: 44%; height: auto; aspect-ratio: 100 / 113.1; color: var(--stone); pointer-events: none;
}
.entrance-copy { position: relative; display: flex; flex-direction: column; gap: 28px; margin-left: auto; max-width: 560px; }
/* Four ways in: jewelry first, watches second */
.entrance-paths { display: flex; flex-direction: column; gap: 18px; }
.path { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.path + .path { padding-top: 18px; border-top: 1px solid var(--line); }
.path-label { grid-column: 1 / -1; font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.path .btn { padding: 0 16px; white-space: nowrap; }
/* Stack each pair whenever the text column is too narrow for two buttons side by side (tablets, small laptops, phones) */
.entrance-copy { container-type: inline-size; width: 100%; }
@container (max-width: 440px) {
  .path { grid-template-columns: minmax(0, 1fr); }
}

.entrance h1 { font-size: clamp(40px, 5vw, 76px); line-height: 0.98; letter-spacing: -0.015em; }

/* ===== Section heads ===== */
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.on-wall h2 { color: var(--paper); }
.section-head.on-wall .lead { color: var(--on-dark); }

/* ===== Collection: gallery wall ===== */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px; grid-auto-flow: dense; gap: 48px 28px;
}
.gallery li { display: flex; flex-direction: column; gap: 14px; grid-row: span 2; min-width: 0; }
.gallery li.g-tall { grid-row: span 3; }
.gallery li.g-wide { grid-column: span 2; }
.exhibit {
  flex: 1; min-height: 0; padding: 0; border: 5px solid var(--frame); border-radius: var(--radius);
  background: var(--frame); cursor: zoom-in; overflow: hidden; display: block; width: 100%;
  font: inherit; color: inherit; text-align: inherit;
  box-shadow: 0 1px 0 var(--line);
  transition: border-color .25s var(--ease);
}
.exhibit:hover { border-color: var(--gold-light); }
.exhibit .placeholder, .exhibit img, .exhibit video { height: 100%; width: 100%; object-fit: cover; border-radius: calc(var(--radius) - 6px); }
.exhibit img.pos-grillz { object-position: 50% 64%; }
.wall-label { display: flex; flex-direction: column; gap: 2px; }
.wl-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.15; }
.wl-meta { font-size: 14px; color: var(--ink-soft); }

/* Jewelry rooms: Rings, Grillz, Bracelets */
.room-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(36px, 5vw, 56px); }
.room-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 400;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.room-nav a:hover { border-color: var(--gold); background: var(--frame); color: var(--ink); }
.room + .room { margin-top: clamp(64px, 8vw, 104px); }
.room-title {
  font-size: clamp(30px, 3.4vw, 42px); margin-bottom: clamp(24px, 3vw, 36px);
  display: flex; align-items: center; gap: 20px;
}
.room-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.room-note { max-width: 40em; margin: -8px 0 clamp(24px, 3vw, 36px); color: var(--ink-soft); }

/* Aafiyat collection (inside the dark room) */
.aafiyat-collection-head h3 { font-size: clamp(34px, 4vw, 48px); color: var(--paper); }
.aafiyat-collection-head .lead { color: var(--on-dark-soft); }
.gallery-watches { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-bottom: clamp(56px, 7vw, 96px); }
.room-dark .wl-title { color: var(--on-dark); }
.room-dark .wl-meta { color: var(--on-dark-soft); }
.room-dark .exhibit { border-color: #575757; background: #575757; box-shadow: none; }
.room-dark .exhibit:hover { border-color: var(--gold-light); }

/* ===== Exhibit dialog ===== */
.exhibit-dialog { border: 0; padding: 0; background: transparent; width: min(1040px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.exhibit-dialog::backdrop { background: rgba(38, 38, 38, 0.78); }
.exhibit-dialog-inner { position: relative; background: var(--paper); border-radius: var(--radius); display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
.exhibit-dialog-media { border-radius: 0; border-width: 0; min-height: 460px; }
.exhibit-dialog-media .placeholder { border-radius: 0; }
.exhibit-dialog-media video, .exhibit-dialog-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exhibit-dialog-media img.pos-grillz { object-position: 50% 64%; }
.exhibit-dialog-text { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.exhibit-dialog-text #exhibit-meta { margin-bottom: 14px; }
.exhibit-warranty { font-size: 15px; color: var(--ink-soft); border-left: 2px solid var(--line); padding-left: 12px; margin-bottom: 14px; }

/* Warranty lists (jewelry card in #commission, watch service card) */
.policy-list { margin: 0; }
.policy-list > div { padding: 12px 0; border-top: 1px solid var(--line); }
.policy-list > div:first-child { border-top: 0; padding-top: 4px; }
.policy-list dt { font-weight: 400; color: var(--ink); }
.policy-list dd { margin: 2px 0 0; color: var(--ink-soft); }
.dialog-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
}
.exhibit-dialog[open] .exhibit-dialog-inner { animation: dialog-in .28s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }

/* ===== Aafiyat room ===== */
.room-dark { background: var(--espresso); color: var(--on-dark); }
.aafiyat-intro { margin-bottom: clamp(48px, 6vw, 80px); }
.partner-line { font-size: 15px; color: var(--on-dark-soft); }
.aafiyat-name {
  font-size: clamp(56px, 7vw, 104px); font-weight: 500; line-height: 0.9;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--gold-light); margin-top: 8px;
}
.arabic { font-size: 34px; color: var(--on-dark-soft); margin-top: 8px; font-family: 'Amiri', 'Traditional Arabic', 'Geeza Pro', serif; }

.aafiyat-film { aspect-ratio: 16 / 9; margin-bottom: clamp(48px, 6vw, 80px); border-color: #575757; background: #575757; }

/* Builder */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.builder-stage {
  position: sticky; top: 100px;
  background: #4A4A4A; border-radius: var(--radius); padding: clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.watch { width: min(100%, 300px); height: auto; overflow: visible; }

/* 3D preview (watch3d.js). The 2D SVG stays as the fallback until the 3D one is ready. */
.watch-3d { width: 100%; max-width: 440px; aspect-ratio: 4 / 5; }
.watch-3d canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.watch-3d canvas:active { cursor: grabbing; }
.builder-stage.is-3d > .watch { display: none; }
/* Showcase: a warm pool of light behind the watch, falling off to dark at the edges */
.builder-stage.is-3d {
  background:
    radial-gradient(ellipse 62% 48% at 50% 40%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 90% 75% at 50% 42%, #4c4c4c 0%, #2e2e2e 62%, #1c1c1c 100%);
}
.watch-3d-tools { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.watch-3d-hint { font-size: 14px; color: var(--on-dark-soft); }
.watch-3d-flip.btn-line { color: var(--on-dark); border-color: #7A7A7A; }
.watch-3d-flip.btn-line:hover { background: var(--on-dark); border-color: var(--on-dark); color: #262626; }
.watch-summary { font-family: var(--font-display); font-size: 22px; text-align: center; color: var(--on-dark); line-height: 1.3; }
.caseback { font-size: 15px; color: var(--on-dark-soft); text-align: center; }
.caseback span { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--gold-light); }

/* watch parts: colors are driven by custom properties set from main.js */
.watch { --m: #C9A55A; --m-edge: #8A6A2C; --bz: #C9A55A; --bz-edge: #8A6A2C; --dial: #1E1C1A; --mark: #E9D9B4; --band: #C9A55A; --band-edge: #8A6A2C; }
.w-case { fill: var(--m); stroke: var(--m-edge); stroke-width: 1.5; }
.w-lug, .w-crown { fill: var(--m); stroke: var(--m-edge); stroke-width: 1.2; }
.w-dial { fill: var(--dial); stroke: var(--m-edge); stroke-width: 1; }
.w-brand { font: 600 9px var(--font-display); letter-spacing: 0.24em; fill: var(--mark); }
.w-hand { stroke: var(--mark); stroke-linecap: round; }
.w-pin { fill: var(--mark); }
.w-case, .w-dial, .w-lug, .w-crown { transition: fill .3s var(--ease), stroke .3s var(--ease); }

.builder-controls { display: flex; flex-direction: column; gap: 26px; }
.builder fieldset { border: 0; margin: 0; padding: 0; }
.builder legend { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin-bottom: 12px; color: var(--paper); padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid #6B6B6B; color: var(--on-dark); cursor: pointer; font-size: 15px; font-weight: 400;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--gold-light); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:checked) { background: var(--on-dark); border-color: var(--on-dark); color: #262626; }
.chip:has(input:focus-visible) { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.sw { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); flex-shrink: 0; }
.sw-split { background: linear-gradient(90deg, var(--sw) 50%, var(--sw2) 50%); }
.builder-note { font-size: 15px; color: var(--on-dark-soft); border-left: 2px solid var(--gold); padding-left: 16px; }

/* ===== Fields (shared) ===== */
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 400; }
.optional { color: var(--ink-soft); font-weight: 300; }
.field input, .field select, .field textarea {
  min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--frame); font: 400 16px/1.4 var(--font-body); color: var(--ink); width: 100%;
}
.field textarea { padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-text); outline-offset: 1px; border-color: transparent; }
.field-row { display: grid; gap: 16px; }
.field-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.room-dark .field { color: var(--on-dark); }
.room-dark .optional { color: var(--on-dark-soft); }
.room-dark .field input, .room-dark .field textarea, .room-dark .field select { background: #4A4A4A; border-color: #6B6B6B; color: var(--on-dark); }
.room-dark .field input::placeholder, .room-dark .field textarea::placeholder { color: #A6A6A6; }
.room-dark .field input:focus, .room-dark .field textarea:focus { outline-color: var(--gold-light); }

.upload {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 84px; padding: 12px; border: 1px dashed #ADADAD; border-radius: var(--radius-sm);
  background: var(--frame); cursor: pointer; font-size: 15px; color: var(--ink-soft); text-align: center;
}
.upload svg { color: var(--gold-text); flex-shrink: 0; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload:focus-within { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.room-dark .upload { background: transparent; border-color: #7A7A7A; color: var(--on-dark); }
.room-dark .upload svg { color: var(--gold-light); }
.hint { font-size: 14px; color: var(--ink-soft); }
.room-dark .hint { color: var(--on-dark-soft); }
.room-dark a:not(.btn) { color: var(--gold-light); }
.room-dark a:not(.btn):hover { color: var(--paper); }

/* ===== Ring builder (inside Commission) ===== */
.ring-builder { padding: clamp(24px, 4vw, 56px); margin-bottom: clamp(16px, 2vw, 28px); }
.ring-builder-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); max-width: 40em; }
.ring-builder-head h3 { font-size: clamp(32px, 3.6vw, 44px); color: var(--paper); }
.ring-builder-head p { color: var(--on-dark-soft); }
.ring-3d { aspect-ratio: 1 / 1; max-width: 520px; }
.ring-3d canvas { border-radius: var(--radius-sm); } /* light product-photo backdrop, framed by the dark panel */
.ring-stage:not(.is-3d) { min-height: 240px; justify-content: center; }
.ring-stage.is-3d .ring-fallback { display: none; }
.ring-fallback { color: var(--on-dark-soft); font-size: 15px; }
.ring-summary { font-size: 19px; }

/* Step tabs */
.ring-steps { list-style: none; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ring-steps button {
  width: 100%; min-height: 48px; padding: 6px 4px; border-radius: var(--radius-sm);
  border: 1px solid #6B6B6B; background: transparent; color: var(--on-dark-soft); cursor: pointer;
  font: 400 14px/1.2 var(--font-body); display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.ring-steps button span { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--gold-light); }
.ring-steps button:hover { border-color: var(--gold-light); color: var(--on-dark); }
.ring-steps button[aria-current="step"] { background: var(--on-dark); border-color: var(--on-dark); color: #262626; }
.ring-steps button[aria-current="step"] span { color: var(--gold-text); }
.ring-form:not(.is-wizard) .ring-steps, .ring-form:not(.is-wizard) .ring-nav { display: none; }

.ring-step { display: flex; flex-direction: column; gap: 22px; }
.ring-step[hidden] { display: none; }
.ring-step legend { font-size: 22px; }
.chip small { font-size: 12px; color: inherit; opacity: 0.7; }
.chip:has(input:disabled) { opacity: 0.35; cursor: not-allowed; }
.chip:has(input:disabled):hover { border-color: #6B6B6B; }
.cursive-sample { font-family: 'Great Vibes', cursive; font-size: 20px; line-height: 1; }
.ring-note { font-size: 14px; color: var(--on-dark-soft); border-left: 2px solid var(--gold); padding-left: 14px; }

/* Sliders */
.range-field { display: flex; flex-direction: column; gap: 10px; }
.range-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-family: var(--font-display); font-size: 22px; color: var(--paper); }
.range-field output { font-family: var(--font-body); font-size: 16px; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.range-field input[type="range"] { width: 100%; height: 32px; accent-color: var(--gold-light); cursor: pointer; }

.ring-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid #575757; }
.ring-nav .ring-next { margin-left: auto; }
.ring-nav [hidden] { display: none; }

/* ===== Commission ===== */
.commission-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(16px, 2vw, 28px); align-items: start; }
.card { background: var(--paper); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.card > p { color: var(--ink-soft); }
.hint { margin-top: -8px; }

.commission-side { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); }
.contact-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.contact-buttons .btn { padding: 0 12px; }
.phone-link { white-space: nowrap; }
.fees { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.fees > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fees dt { font-size: 15px; color: var(--ink-soft); }
.notice { font-size: 15px; color: var(--ink); background: var(--paper-deep); border-left: 3px solid var(--gold); padding: 12px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.notice strong { font-weight: 500; }
.fees dd { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; white-space: nowrap; }

/* Phone contact bar (shown under 640px) */
.call-bar { display: none; }

/* ===== Watch service ===== */
.service { background: var(--paper-deep); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.service-intro { display: flex; flex-direction: column; gap: 20px; }
.service-intro > p:not(.lead) { color: var(--ink-soft); max-width: 34em; }
.service-intro .contact-buttons { max-width: 440px; }
.service-prices { background: var(--paper); }
.service-prices .fees-title, .classes .fees-title { margin: 12px 0 0; font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--gold-text); }
.service-prices .fees + .hint { margin-top: -4px; }
.service-prices .fees dt { max-width: 30em; }
.fees-note { white-space: nowrap; }

/* ===== Visit ===== */
.visit-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 64px); }
.visit-info { display: flex; flex-direction: column; gap: 24px; }
.visit { background: var(--paper-deep); }
.visit .map { height: 100%; min-height: 260px; }
.visit dl { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.visit dt { font-size: 14px; font-weight: 500; color: var(--gold-text); margin-top: 14px; }
.visit dt:first-child { margin-top: 0; }
.visit dd { margin: 0; font-size: 17px; font-weight: 400; }
.visit .placeholder { border-radius: var(--radius-sm); }
.visit dd a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.map { width: 100%; height: 260px; border: 0; border-radius: var(--radius-sm); background: var(--silver-deep); }

/* ===== FAQ ===== */
.faq { padding-top: 0; }
.faq h2 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 32px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-size: 18px; font-weight: 400; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--gold-text); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); }

/* ===== Footer ===== */
.site-footer { background: var(--espresso); color: var(--on-dark-soft); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 40px; }
.tagline { font-family: var(--font-display); font-size: 20px; margin-top: 18px; color: var(--on-dark); max-width: 22em; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col h3 { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--gold-light); margin-bottom: 4px; }
.footer-col a { color: var(--on-dark-soft); text-decoration: none; padding: 3px 0; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #555555; display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; font-size: 14px; color: #A3A3A3; }

/* ===== Announcement bar ===== */
.announce { background: var(--espresso); color: var(--on-dark); font-size: 13.5px; }
.announce-inner { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 28px; }
.announce p { display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.announce p + p::before {
  content: ""; width: 6px; height: 6px; background: var(--gold-light); transform: rotate(45deg); flex-shrink: 0;
}
.announce a { color: var(--gold-light); text-decoration: none; }
.announce a:hover { color: var(--paper); }

/* ===== Header phone (desktop) ===== */
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 400; padding: 10px 0; }
.header-phone svg { color: var(--gold); }
.header-phone:hover { color: var(--gold-text); }

/* ===== Promises row ===== */
.promises { background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.promise-grid { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.promise-grid li { display: flex; gap: 14px; align-items: flex-start; }
.promise-grid svg { color: var(--gold-text); flex-shrink: 0; margin-top: 2px; }
.promise-grid p { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.promise-grid strong { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.2; margin-bottom: 2px; }

/* ===== Explore tiles ===== */
.explore h2 { margin-bottom: clamp(28px, 4vw, 44px); }
.explore-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.explore-tile {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  border: 5px solid var(--frame); background: var(--frame); text-decoration: none;
}
.explore-tile img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) - 6px); transition: transform .6s var(--ease); }
.explore-tile span {
  position: absolute; left: 5px; right: 5px; bottom: 5px; padding: 40px 16px 14px;
  border-radius: 0 0 calc(var(--radius) - 6px) calc(var(--radius) - 6px);
  background: linear-gradient(to top, rgba(30, 30, 30, 0.82), rgba(30, 30, 30, 0));
  color: var(--paper); font-family: var(--font-display); font-size: 22px; font-weight: 600;
}
.explore-tile:hover img { transform: scale(1.04); }
.explore-tile:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }

/* ===== Ring-making classes ===== */
.classes { border-top: 1px solid var(--line); }
.classes .card { background: var(--frame); border: 1px solid var(--line); }
.classes-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.classes-intro { display: flex; flex-direction: column; gap: 22px; }
.classes-intro h2 { font-size: clamp(44px, 5.4vw, 72px); line-height: 1; }
.classes-new { align-self: flex-start; padding: 6px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 400; }
.classes-sub { color: var(--ink-soft); max-width: 34em; }
.classes-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.classes-photos figure { aspect-ratio: 3 / 2; }
.classes-photos .cp-main { grid-column: 1 / -1; }
.class-how { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(56px, 7vw, 96px); }
.class-how figure { aspect-ratio: 16 / 10; }
.class-how-text { display: flex; flex-direction: column; gap: 24px; }
.class-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.class-steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.class-steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; font-weight: 600;
}
.class-steps p { color: var(--ink-soft); padding-top: 2px; }
.class-steps strong { display: block; font-weight: 400; font-size: 18px; color: var(--ink); }
.class-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; margin-top: clamp(56px, 7vw, 96px); }
.class-info { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); }
.class-form { position: sticky; top: 100px; }
.class-or { padding-top: 16px; border-top: 1px solid var(--line); }
.class-gallery-wrap { display: flex; flex-direction: column; gap: 12px; margin-top: clamp(56px, 7vw, 96px); }
.class-gallery-wrap .hint { margin-top: 0; }
.class-gallery { list-style: none; margin: 12px 0 0; padding: 0; columns: 3; column-gap: clamp(10px, 1.4vw, 18px); }
.class-gallery li { break-inside: avoid; margin-bottom: clamp(10px, 1.4vw, 18px); }
.class-gallery img { width: 100%; height: auto; border: 5px solid var(--frame); border-radius: var(--radius); background: var(--frame); box-shadow: 0 1px 0 var(--line); }

/* ===== Start with a shape ===== */
.shapes { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.shapes h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 24px; }
.shape-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; }
.shape-btn {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 4px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #FFFFFF; color: var(--ink);
  font: 400 14px var(--font-body); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
/* Rendered stone shapes on a transparent background (images/shapes/*.webp, made by .claude/render-shapes.html) */
.shape-btn img { width: 100%; max-width: 96px; height: auto; aspect-ratio: 1 / 1; transition: transform .3s var(--ease); }
.shape-btn:hover { border-color: var(--gold); }
.shape-btn:hover img { transform: scale(1.06); }
.hint.shape-note { margin-top: 16px; max-width: 46em; }
@media (prefers-reduced-motion: reduce) { .shape-btn img { transition: none; } }

/* ===== Instagram ===== */
.ig-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 36px); }
.ig-head h2 { font-size: clamp(32px, 4vw, 48px); }
.ig-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ig-grid a { display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.ig-grid a:hover img { transform: scale(1.05); opacity: 0.9; }

/* ===== Ring size guide ===== */
.text-button { align-self: flex-start; background: none; border: 0; padding: 4px 0; color: var(--gold-light); font: 400 15px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-button:hover { color: var(--paper); }
.size-guide { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.size-guide::backdrop { background: rgba(38, 38, 38, 0.78); }
.size-guide-inner { position: relative; background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.size-guide h3 { font-size: 32px; padding-right: 48px; }
.size-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.size-steps strong { color: var(--ink); font-weight: 500; }
.size-table-wrap { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.size-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.size-table th { position: sticky; top: 0; background: var(--paper-deep); text-align: left; font-weight: 500; padding: 10px 14px; }
.size-table td { padding: 8px 14px; border-top: 1px solid var(--line); }
.size-guide[open] .size-guide-inner { animation: dialog-in .28s var(--ease); }

/* ===== Floating help + back to top ===== */
.help { position: fixed; right: 20px; bottom: 20px; z-index: 55; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.help-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 999px;
  border: 0; background: var(--espresso); color: var(--on-dark); font: 400 15px var(--font-body); cursor: pointer;
  box-shadow: 0 8px 24px rgba(38, 38, 38, 0.28);
}
.help-toggle svg { color: var(--gold-light); }
.help-toggle:hover { background: #2E2E2E; }
.help-panel {
  width: 280px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 16px 40px rgba(38, 38, 38, 0.22);
}
.help-panel[hidden] { display: none; }
.help-panel > p { font-size: 14px; color: var(--ink-soft); }
.help-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--ink) !important; }
.to-top {
  position: fixed; right: 20px; bottom: 84px; z-index: 54; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(38, 38, 38, 0.16);
}
.to-top[hidden] { display: none; }
.to-top:hover { border-color: var(--gold); }

/* ===== Success page ===== */
.success { min-height: 100vh; display: grid; place-items: center; padding-top: 24px; padding-bottom: 24px; }
.success-card { max-width: 640px; align-items: center; text-align: center; gap: 24px; }
.success-card h1 { font-size: clamp(44px, 6vw, 68px); }
.success-card .btn-row { justify-content: center; }

/* ===== Tablet ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shape-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* announcement bar shows one message at a time */
  .announce.is-rotating p { display: none; }
  .announce.is-rotating p.is-active { display: flex; }
  .announce.is-rotating p::before { display: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
  .builder, .commission-grid, .visit-grid, .service-grid, .classes-hero, .class-how, .class-grid { grid-template-columns: minmax(0, 1fr); }
  .class-form { position: static; }
  .classes-photos { order: -1; } /* lead with the photos on tablets and phones */
  .class-gallery { columns: 2; }
  .ring-steps button { font-size: 12px; }
  .builder-stage { position: static; }
}

/* ===== Phone ===== */
@media (max-width: 640px) {
  .header-phone { display: none; }
  .promise-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 0; }
  .promise-grid strong { font-size: 19px; }
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore-tile span { font-size: 19px; padding: 32px 12px 10px; }
  .shape-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .help { display: none; }               /* phones use the call bar */
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; }
  body { font-size: 16px; }
  .header-inner { height: 68px; }
  .site-nav { top: 68px; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 16px; padding-bottom: 24px; max-height: calc(100dvh - 68px - 64px); }
  .wordmark-name { font-size: 21px; }
  .wordmark-emblem { width: 26px; height: 30px; }
  .lead { font-size: 17px; }

  .entrance-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 200px;
    grid-template-areas: "intro intro" "a b";
    min-height: 0;
  }
  .entrance-intro { padding: 40px 24px; }
  .watermark { left: -18%; top: 42%; width: 78%; }
  .btn-row .btn { flex: 1 1 100%; }
  .path { grid-template-columns: minmax(0, 1fr); }

  .gallery { grid-auto-rows: 120px; gap: 32px 14px; }
  .gallery li.g-wide { grid-column: span 2; }
  .wl-title { font-size: 19px; }
  .wl-meta { font-size: 13px; }

  .exhibit-dialog-inner { grid-template-columns: 1fr; max-height: calc(100dvh - 24px); overflow-y: auto; }
  .exhibit-dialog-media { min-height: 300px; }


  .field-row.two, .faq-grid { grid-template-columns: minmax(0, 1fr); }

  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .call-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--espresso); border-top: 1px solid #575757;
  }
  .call-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 64px; color: var(--on-dark); text-decoration: none; font-size: 15px; font-weight: 400;
  }
  .call-bar a + a { border-left: 1px solid #575757; }
  .call-bar a:first-child { color: var(--gold-light); }
  .call-bar a:active { background: #4A4A4A; }
}
