/* Master Fix Jewelers — "Under the loupe": a dark velvet jewelry box of felt-lined trays. Mobile first. */
:root {
  --surface: #1A1420;  /* velvet */
  --ink: #F1E8DA;
  --brand: #CFA54A;    /* gold */
  --amethyst: #7D6B91;
  --ruby: #9C2F3F;
  --cta: #2E8B6E;      /* emerald — reserved: primary action */
  --felt: #231B2B;
  --felt-2: #2B2134;
  --muted: #C7BBAB;
  --hair: rgba(207,165,74,.42);
  --ease: cubic-bezier(.22,1,.36,1);
  --pad: clamp(1rem, 4.5vw, 3rem);
  --f-disp: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --f-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 400 1rem/1.6 var(--f-body); overflow-x: hidden;
  background: radial-gradient(90% 60% at 80% 0%, #2A1E33 0%, transparent 60%), radial-gradient(70% 50% at 0% 60%, #22182A 0%, transparent 70%), var(--surface); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-disp); font-weight: 400; margin: 0; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--brand); color: #1A1420; padding: .7rem 1rem; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 3.2rem; }

/* felt-lined tray */
.tray { position: relative; background: radial-gradient(120% 90% at 50% 0%, var(--felt-2), var(--felt) 70%); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--hair), inset 0 14px 34px rgba(0,0,0,.55), inset 0 -6px 18px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.04); padding: 1.1rem; }
.tray::after { content: ""; position: absolute; inset: 6px; border-radius: 15px; border: 1px solid rgba(207,165,74,.14); pointer-events: none; }
.slot { position: relative; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair); background: #120D17; }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 10px 24px rgba(0,0,0,.55); pointer-events: none; }

/* HEADER */
.hd { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1rem; padding: .55rem var(--pad); background: rgba(26,20,32,.97); border-bottom: 1px solid rgba(207,165,74,.25); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; margin-right: auto; min-height: 44px; font: 400 1.45rem/1 var(--f-disp); letter-spacing: .02em; }
.brand small { font-size: .7em; color: var(--brand); letter-spacing: .14em; text-transform: uppercase; margin-left: .2rem; }
.gem { width: 28px; height: 28px; color: var(--brand); }
.hd-nav { display: none; }
.hd-call { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--hair); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem; }
.hc-l { display: none; }
@media (max-width: 420px) { .hc-l { display: inline; } .hc-n { display: none; } }
@media (min-width: 1000px) {
  .hd-nav { display: flex; gap: 1.8rem; }
  .hd-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; position: relative; }
  .hd-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
  .hd-nav a:hover::after { transform: none; }
}

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: .5rem 1.5rem; border-radius: 999px; font: 700 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .35s var(--ease), background-color .3s, box-shadow .3s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-cta { background: var(--cta); color: #fff; font-size: 1.2rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.btn-cta:hover { background: #26775E; }
.btn-gold { border-color: var(--brand); color: var(--ink); background: transparent; }
.btn-gold:hover { background: rgba(207,165,74,.14); }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); }

/* HERO */
.hero { display: grid; gap: 1.6rem; padding: 1.6rem var(--pad) 3.5rem; }
.hero-copy { display: grid; gap: .9rem; }
.hero h1 { font-size: clamp(2.8rem, 12.5vw, 6.4rem); line-height: .95; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--brand); display: block; }
.lede { font-size: 1.08rem; color: #E2D7C6; max-width: 36ch; }
.tray-hero { padding: 10px; }
.loupe-stage { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; touch-action: pan-y; cursor: none; }
.loupe-stage img { width: 100%; height: 100%; object-fit: cover; }
.loupe { display: none; }
html.js .loupe { display: block; position: absolute; left: 0; top: 0; width: var(--ls, 150px); height: var(--ls, 150px); border-radius: 50%; background-color: #120D17; background-repeat: no-repeat; box-shadow: 0 0 0 3px var(--brand), 0 0 0 9px #0F0B13, 0 0 0 10px rgba(207,165,74,.6), 0 24px 50px rgba(0,0,0,.7); transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0); will-change: transform; touch-action: none; cursor: grab; z-index: 2; }
html.js .loupe.glide { transition: transform .9s var(--ease), background-position .9s var(--ease); }
.loupe::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 32%), radial-gradient(circle at 50% 50%, transparent 62%, rgba(0,0,0,.35) 100%); pointer-events: none; }
.loupe-x { position: absolute; right: -4px; bottom: 6px; padding: .1rem .45rem; border-radius: 999px; background: var(--brand); color: #1A1420; font: 800 .75rem/1.4 var(--f-body); }
.hint { margin: .8rem .4rem .2rem; font-size: .88rem; color: var(--muted); }
@media (min-width: 701px) { .loupe-stage { aspect-ratio: 3 / 2; } html.js .loupe { --ls: 190px; } }
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, .78fr) minmax(0, 1.5fr); align-items: center; gap: 3rem; padding-top: 3rem; min-height: calc(100vh - 100px); }
}

/* SECTION HEADS */
section { scroll-margin-top: 72px; }
.sec-head { display: grid; gap: .7rem; margin-bottom: 2rem; max-width: 46rem; }
.sec-head h2, .st-left h2 { font-size: clamp(2.2rem, 9vw, 4.2rem); }
.sub { color: var(--muted); max-width: 48ch; }
.tag { justify-self: start; font-size: .82rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px; border: 1px solid var(--hair); color: #E8D3A4; }

/* BENTO TRAYS */
.trays { padding: 4rem var(--pad); }
.bento { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.bento .tray { display: grid; gap: .8rem; align-content: start; grid-column: 1 / -1; }
.bento h3 { font-size: 1.6rem; padding: 0 .3rem; }
.t-rings .slot { aspect-ratio: 4 / 3; }
.t-chains .slot { aspect-ratio: 4 / 3; }
.t-ear, .t-watch { grid-column: span 1 !important; }
.t-ear .slot, .t-watch .slot { aspect-ratio: 1; }
.t-ear h3, .t-watch h3 { font-size: 1.3rem; }
.t-polish .slot { aspect-ratio: 16 / 10; }
.price { list-style: none; margin: 0; padding: 0 .3rem; }
.price li { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .5rem 0; border-top: 1px solid rgba(207,165,74,.18); font-size: .95rem; }
.price b { font-weight: 700; color: #EBCB85; white-space: nowrap; font-size: .9rem; }
.t-ear .price li, .t-watch .price li { flex-direction: column; gap: 0; }
.t-note { align-content: center !important; text-align: left; padding: 1.5rem !important; }
.t-note svg { width: 40px; height: 40px; color: var(--brand); }
.t-note p { font: 400 1.3rem/1.3 var(--f-disp); }
.link-gold { color: #EBCB85; font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(12, 1fr); gap: 18px; }
  .t-rings { grid-column: 1 / 7 !important; grid-row: 1 / 3; }
  .t-rings .slot { aspect-ratio: 5 / 4; }
  .t-chains { grid-column: 7 / 13 !important; }
  .t-chains { grid-template-columns: 1fr 1fr; align-items: center; }
  .t-chains .slot { grid-row: span 2; aspect-ratio: 1; }
  .t-ear { grid-column: 7 / 10 !important; }
  .t-watch { grid-column: 10 / 13 !important; }
  .t-polish { grid-column: 1 / 9 !important; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.4rem !important; }
  .t-note { grid-column: 9 / 13 !important; }
}

/* TICKET BUILDER */
.ticket-sec { padding: 4rem var(--pad); }
.tk-grid { display: grid; gap: 2rem; }
.tk-ctrl { padding: 1.4rem !important; display: grid; gap: 1.4rem; align-content: start; }
.tk-ctrl fieldset { border: 0; margin: 0; padding: 0; }
.tk-ctrl legend { font: 400 1.35rem var(--f-disp); margin-bottom: .8rem; padding: 0; }
.tk-ctrl legend small { font: 400 .85rem var(--f-body); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips button { min-height: 46px; padding: .3rem 1.1rem; border-radius: 999px; border: 1px solid rgba(207,165,74,.4); background: rgba(0,0,0,.25); color: var(--ink); font: 600 .95rem var(--f-body); cursor: pointer; transition: background-color .3s, color .3s, opacity .3s, border-color .3s; }
.chips button[aria-pressed="true"] { background: var(--brand); color: #1A1420; border-color: var(--brand); }
.chips button[aria-disabled="true"] { opacity: .5; text-decoration: line-through; text-decoration-color: rgba(241,232,218,.5); cursor: not-allowed; }
.fine { font-size: .88rem; color: var(--muted); }
.printer { position: relative; display: grid; gap: 1.4rem; justify-items: center; }
.slot-bar { width: min(100%, 420px); height: 16px; border-radius: 10px; background: #0D0910; box-shadow: inset 0 3px 8px #000, 0 0 0 1px var(--hair); }
.paper { width: min(94%, 380px); margin-top: -12px; background: #F6F0E4; color: #221A1F; padding: 1.4rem 1.3rem 1.2rem; font-size: .95rem; box-shadow: 0 24px 40px rgba(0,0,0,.45);
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 16px 100% repeat-x; mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 16px 100% repeat-x; padding-bottom: 1.8rem; }
.paper.print { animation: print .9s var(--ease); }
@keyframes print { from { transform: translateY(-36px); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(0 0 0 0); } }
.p-top { display: flex; justify-content: space-between; gap: .6rem; font-size: .8rem; letter-spacing: .08em; border-bottom: 1.5px dashed #8F8478; padding-bottom: .6rem; }
.p-top b { font-weight: 800; }
.p-top i { font-style: normal; font-variant-numeric: tabular-nums; }
.p-sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #5A4E57; margin: .6rem 0; }
.p-rows { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: 0 0 .4rem; }
.p-rows dt { color: #5A4E57; }
.p-rows dd { margin: 0; font-weight: 700; text-align: right; }
.p-jobs { list-style: none; margin: 0 0 .6rem; padding: .4rem 0; border-top: 1.5px dashed #8F8478; border-bottom: 1.5px dashed #8F8478; }
.p-jobs li { display: flex; align-items: baseline; padding: .25rem 0; }
.p-jobs span { flex: 1; display: flex; }
.p-jobs span::after { content: ""; flex: 1; border-bottom: 1px dotted #8F8478; margin: 0 .5rem; transform: translateY(-.3em); }
.p-jobs b, .p-total b { font-variant-numeric: tabular-nums; font-weight: 800; }
.p-jobs .empty { color: #5A4E57; }
.p-total { display: flex; justify-content: space-between; padding: .2rem 0; }
.barcode { height: 34px; margin-top: .8rem; background: repeating-linear-gradient(90deg, #221A1F 0 2px, transparent 2px 4px, #221A1F 4px 5px, transparent 5px 9px, #221A1F 9px 12px, transparent 12px 13px); opacity: .85; }
.hold { width: min(100%, 420px); display: grid; gap: .9rem; }
.fld { display: grid; gap: .35rem; font-weight: 700; font-size: .92rem; }
.fld input { width: 100%; min-height: 52px; padding: .8rem 1rem; font: 400 1rem var(--f-body); color: var(--ink); background: rgba(0,0,0,.35); border: 1px solid rgba(207,165,74,.35); border-radius: 12px; }
.fld input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(207,165,74,.25); }
.confirm { padding: .9rem 1.1rem; border-radius: 12px; background: rgba(46,139,110,.18); border: 1px solid rgba(46,139,110,.6); font-weight: 600; }
@media (min-width: 1000px) { .tk-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 3rem; } .printer { position: sticky; top: 90px; } }

/* GALLERY */
.gal { padding: 1rem var(--pad) 4rem; }
.sec-mini { font-size: clamp(1.8rem, 7vw, 2.8rem); margin-bottom: 1.2rem; }
.gal-tray { display: grid; gap: 10px; padding: 10px !important; }
.gal-tray .slot { aspect-ratio: 3 / 2; }
.gal-tray .g2 { aspect-ratio: 1; }
.gal-tray img { cursor: zoom-in; transition: transform 1.2s var(--ease); }
.gal-tray .slot:hover img { transform: scale(1.05); }
.g-cap { font-size: .88rem; color: var(--muted); padding: .2rem .4rem; }
@media (min-width: 800px) { .gal-tray { grid-template-columns: 2fr 1fr; } .gal-tray .g2 { aspect-ratio: auto; } .g-cap { grid-column: 1 / -1; } }

/* STATUS */
.status { padding: 1rem var(--pad) 4rem; }
.st-tray { display: grid; gap: 2rem; padding: clamp(1.3rem, 4vw, 2.6rem) !important; }
.st-left { display: grid; gap: .8rem; align-content: start; }
.st-left h2 { font-size: clamp(2rem, 8vw, 3.4rem); }
.gems { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .2rem; }
.gems li { display: flex; align-items: center; gap: .8rem; min-height: 40px; color: var(--muted); font-weight: 600; }
.gems .g { width: 22px; height: 22px; transform: rotate(45deg); border: 1.5px solid rgba(207,165,74,.5); border-radius: 3px; flex: none; }
.gems .on { color: var(--ink); }
.gems .on .g { background: linear-gradient(135deg, #F2D58E, var(--brand) 60%, #8E6B22); border-color: var(--brand); }
.gems .now { color: var(--ink); }
.gems .now .g { border-color: var(--brand); animation: glint 2.4s var(--ease) infinite; }
@keyframes glint { 50% { background: rgba(207,165,74,.45); box-shadow: 0 0 14px rgba(207,165,74,.6); } }
.st-form { display: grid; gap: 1rem; align-content: start; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(207,165,74,.18); font-weight: 600; }
.sw { position: relative; flex: none; width: 60px; height: 36px; border-radius: 999px; border: 1px solid rgba(207,165,74,.5); background: #120D17; cursor: pointer; transition: background-color .3s; }
.sw::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); transition: transform .4s var(--ease); }
.sw[aria-checked="true"] { background: var(--brand); }
.sw[aria-checked="true"]::after { transform: translateX(24px); background: #1A1420; }
.st-form .btn { justify-self: start; }
@media (min-width: 900px) { .st-tray { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }

/* VISIT */
.visit { padding: 0 var(--pad) 4.5rem; }
.v-tray { display: grid; gap: 1.6rem; padding: clamp(1.3rem, 4vw, 2.6rem) !important; }
.v-addr { display: grid; gap: .8rem; }
.v-addr h2 { font-size: clamp(2.3rem, 10vw, 4.6rem); }
.v-city { font: 400 1.4rem var(--f-disp); color: #E8D3A4; }
.hours { border-radius: 14px; padding: 1.3rem; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px var(--hair); }
.hours-t { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #EBCB85; margin-bottom: .8rem; }
.hours dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; margin: 0; }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.review-ph { border-radius: 14px; padding: 1.3rem; border: 1px dashed rgba(207,165,74,.45); color: var(--muted); display: grid; place-items: center; min-height: 100px; text-align: center; }
@media (min-width: 900px) { .v-tray { grid-template-columns: 1.4fr 1fr; } .review-ph { grid-column: 2; } .hours { grid-column: 2; grid-row: 1; } .v-addr { grid-row: span 2; } }

/* FOOTER */
.ft { padding: 3rem var(--pad) 2.5rem; background: #120D17; border-top: 1px solid rgba(207,165,74,.25); display: grid; gap: 1rem; color: var(--muted); }
.ft-brand { font: 400 1.7rem var(--f-disp); color: var(--ink); }
.ft-brand small { font-size: .6em; color: var(--brand); letter-spacing: .14em; text-transform: uppercase; }
.ft .pv-note { color: #D5CABA; max-width: 72ch; font-size: 13px; }
.photo-credits { font-size: .9rem; }
.photo-credits summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--ink); }
.photo-credits ul { margin: .3rem 0 .8rem; padding-left: 1.1rem; display: grid; gap: .25rem; }
.photo-credits a { color: #EBCB85; }

/* DOCK */
.dock { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .dock { display: grid; grid-template-columns: 1fr 1.7fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); background: rgba(18,13,23,.97); border-top: 1px solid rgba(207,165,74,.3); }
  .dock a { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px; text-decoration: none; font-weight: 700; }
  .dock-call { border: 1px solid var(--brand); color: var(--ink); font-size: 1rem; }
  .dock-cta { background: var(--cta); color: #fff; font-size: 1.2rem; }
}

/* REVEAL */
html.js [data-reveal] { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 100ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
