/* Sigal — black, chrome, sparkle */
:root {
  --bg: #000;
  --surface: #0c0d0f;
  --surface-2: #15171a;
  --ink: #f3f5f8;
  --soft: #aab1bb;
  --accent: #dfe4ea;          /* chrome: the one accent, used on actions */
  --accent-ink: #050506;
  --pad: clamp(16px, 3vw, 40px);
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.75rem, 1.2rem + 6vw, 6.5rem);
  --step-sub: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  --display: 'Big Shoulders', 'Arial Narrow', sans-serif;
  --text: 'Public Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 var(--text); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; line-height: .88; margin: 0; }
h1, h2, h3 { margin: 0; }
h2.display { font-size: var(--step-head); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; padding: 0 30px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 1rem; border-radius: 0; transition: transform .25s var(--ease), background .25s; }
.btn:hover { background: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.link { font-weight: 600; border-bottom: 2px solid transparent; padding-bottom: 2px; transition: border-color .25s; }
.link:hover { border-color: var(--accent); }

/* ---------- nav ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px var(--pad); background: rgba(0,0,0,.92); transition: transform .4s var(--ease); }
.nav.hide { transform: translateY(-100%); }
.nav-logo img { width: 112px; height: auto; mix-blend-mode: lighten; }
.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: var(--step-small); }
.nav-links a { color: var(--soft); transition: color .2s; padding: 8px 0; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-right { justify-self: end; display: flex; gap: 20px; align-items: center; }
.cart-btn { font-weight: 600; font-size: var(--step-small); display: inline-flex; gap: 8px; align-items: center; padding: 8px 0; }
.cart-count { min-width: 22px; height: 22px; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: .75rem; border-radius: 11px; }
.menu-btn { display: none; font-weight: 600; font-size: var(--step-small); }

/* ---------- sparkle ---------- */
.spark { position: absolute; width: var(--s, 22px); height: var(--s, 22px); color: #fff; pointer-events: none; animation: twinkle var(--d, 3.4s) ease-in-out var(--delay, 0s) infinite; transform-origin: center; }
.spark svg { width: 100%; height: 100%; display: block; fill: currentColor; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 45%, 55% { opacity: 1; transform: scale(1) rotate(45deg); } }
.burst { position: fixed; z-index: 70; width: 18px; height: 18px; margin: -9px 0 0 -9px; color: #fff; pointer-events: none; animation: burst .7s var(--ease) forwards; }
.burst svg { width: 100%; height: 100%; fill: currentColor; }
@keyframes burst { from { opacity: 1; transform: translate(0,0) scale(.3) rotate(0); } to { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.1) rotate(90deg); } }

/* ---------- home: pinned wordmark ---------- */
.run { position: relative; }
.pin [data-sparkle] { position: absolute; inset: 0; }
.pin { position: relative; z-index: 1; display: grid; place-items: center; padding: 72px var(--pad) 0; min-height: 62svh; }
.lw { position: relative; display: block; width: min(100%, 1560px); aspect-ratio: 2170 / 725; }
.lw img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: lighten; }
.hero-copy { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; padding: 8px var(--pad) 40px; }
.hero-copy p { margin: 0; font-size: var(--step-lead); line-height: 1.3; max-width: 28ch; }

.panel { position: relative; min-height: 0; padding-block: 6svh; display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; padding: 0 var(--pad); }
.panel-img { grid-column: 4 / 10; aspect-ratio: 4 / 5; height: min(72svh, 640px); margin: 0 auto; display: grid; place-items: center; background: var(--surface); position: relative; overflow: hidden; }
.panel-img img { width: 88%; height: 88%; object-fit: contain; transition: transform 1.2s var(--ease); }
.panel:hover .panel-img img { transform: scale(1.05) rotate(-1.5deg); }
.panel-cap { grid-column: 10 / 13; padding-left: 28px; align-self: end; margin-bottom: 8vh; display: grid; gap: 6px; }
.panel-cap .display { font-size: var(--step-sub); }
.panel-cap span { color: var(--soft); font-size: var(--step-small); }
.panel:nth-of-type(even) .panel-cap { grid-column: 1 / 4; grid-row: 1; padding: 0 28px 0 0; text-align: right; }

/* ---------- sections ---------- */
.section { padding: clamp(96px, 14vw, 200px) var(--pad) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card { position: relative; display: grid; grid-template-rows: auto auto; background: var(--surface); transition: background .3s; }
.card:hover { background: var(--surface-2); }
.card-img { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; position: relative; }
.card-img img { width: 82%; height: 82%; object-fit: contain; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.07); }
.card-body { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 4px 18px 20px; }
.card-name { font-weight: 600; line-height: 1.25; }
.card-mat { color: var(--soft); font-size: var(--step-small); }
.card-price { font-weight: 600; }
.add { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 1.4rem; line-height: 1; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s var(--ease); }
.card:hover .add, .add:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .add { opacity: 1; transform: none; } }
.badge { position: absolute; top: 14px; left: 14px; font-size: var(--step-small); font-weight: 600; color: var(--soft); }

.metals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metal { background: var(--surface); display: grid; grid-template-rows: auto 1fr; }
.metal .card-img { aspect-ratio: 5/4; }
.metal div.t { padding: 8px 28px 32px; display: grid; gap: 10px; align-content: start; }
.metal .display { font-size: var(--step-sub); }
.metal p { margin: 0; color: var(--soft); max-width: 36ch; }

.close { position: relative; text-align: left; padding: clamp(120px, 14vw, 200px) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; overflow: hidden; }
.close h2 { font-size: var(--step-head); }
.close .right { display: grid; gap: 24px; justify-items: start; max-width: 40ch; }
.close .right p { margin: 0; color: var(--soft); }

.footer { padding: 10svh var(--pad) 28px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: baseline; font-size: var(--step-small); color: var(--soft); }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer nav a { color: var(--ink); }
.footer .r { justify-self: end; }
.footer .r a { color: var(--ink); }

/* ---------- shop ---------- */
.page { padding-top: 132px; }
.page-head { padding: 0 var(--pad) 40px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: var(--step-head); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 var(--pad) 28px; }
.chip { height: 44px; padding: 0 22px; background: var(--surface); color: var(--soft); font-weight: 600; font-size: var(--step-small); transition: background .2s, color .2s; }
.chip:hover { color: var(--ink); background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.shop-count { color: var(--soft); font-size: var(--step-small); }
.page .grid { padding: 0 var(--pad); }

/* ---------- product ---------- */
.pdp { display: grid; grid-template-columns: 7fr 5fr; gap: 12px; padding: 0 var(--pad); align-items: start; }
.pdp-img { background: var(--surface); aspect-ratio: 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.pdp-img img { width: 86%; height: 86%; object-fit: contain; }
.pdp-info { padding: 12px 0 12px clamp(16px, 3vw, 48px); display: grid; gap: 28px; align-content: start; }
.pdp-info h1 { font-size: var(--step-head); }
.pdp-price { font-family: var(--display); font-weight: 800; font-size: var(--step-lead); }
.pdp-info p { margin: 0; color: var(--soft); max-width: 46ch; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-label { font-weight: 600; font-size: var(--step-small); margin-bottom: 10px; }
.buy { display: flex; gap: 12px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; background: var(--surface); height: 54px; }
.qty button { width: 48px; height: 54px; font-size: 1.25rem; }
.qty output { min-width: 32px; text-align: center; font-weight: 600; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--soft); }
.related { padding-top: clamp(80px, 10vw, 160px); }

/* ---------- cart ---------- */
.veil { position: fixed; inset: 0; background: rgba(0,0,0,.7); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; z-index: 80; }
.veil.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); z-index: 90; transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; display: grid; grid-template-rows: auto 1fr auto; }
.drawer.open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 24px; }
.drawer-head .display { font-size: var(--step-sub); }
.drawer-body { overflow-y: auto; padding: 0 24px; display: grid; align-content: start; gap: 12px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; background: var(--surface-2); padding: 8px 16px 8px 8px; }
.line img { width: 72px; height: 72px; object-fit: contain; }
.line b { display: block; font-weight: 600; line-height: 1.25; }
.line small { color: var(--soft); }
.line button { color: var(--soft); font-size: 1.4rem; width: 32px; height: 32px; }
.empty { color: var(--soft); padding: 24px 0; }
.drawer-foot { padding: 24px; display: grid; gap: 16px; }
.total { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.25rem; }
.drawer-foot .btn { width: 100%; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- phone ---------- */
@media (max-width: 900px) {
  .pin { overflow: hidden; padding-top: 64px; min-height: 0; }
  .lw { width: 128%; max-width: none; flex: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .metals { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-img { position: relative; top: 0; }
  .pdp-info { padding: 24px 0 0; }
  .close { grid-template-columns: 1fr; }
  .hero-copy { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; min-height: 74svh; align-content: center; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
  .panel-img { grid-column: 1; width: 82%; height: auto; max-height: none; }
  .panel-cap, .panel:nth-of-type(even) .panel-cap { grid-column: 1; grid-row: auto; padding: 0; margin: 0; text-align: left; width: 82%; margin-inline: auto; }
  .nav { grid-template-columns: auto 1fr; }
  .nav-links { position: fixed; inset: 60px 0 auto 0; flex-direction: column; background: #000; padding: 8px var(--pad) 28px; gap: 0; transform: translateY(-120%); transition: transform .4s var(--ease); z-index: -1; }
  .nav-links.open { transform: none; }
  .nav-links a { display: block; padding: 16px 0; font-size: 1.125rem; color: var(--ink); }
  .menu-btn { display: inline-block; padding: 8px 0; }
  .footer { grid-template-columns: 1fr; gap: 12px; padding-top: 20svh; }
  .footer nav { justify-content: flex-start; }
  .footer .r { justify-self: start; }
  .card-body { padding: 4px 12px 16px; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .spark { opacity: .9; transform: none; }
  html { scroll-behavior: auto; }
}

/* product photos removed: keep the slots */
.card-img { background: var(--surface); }
.line .ph { width: 72px; height: 72px; background: var(--surface); display: block; }

/* real bracelet photos: transparent PNG-style cutouts on the dark card */
.card-img img { width: 92%; height: 92%; }
