:root {
  --ink:#f2ead9; --mute:#a99e88; --line:rgba(214,176,98,.22); --line2:rgba(214,176,98,.55);
  --paper:#0c0a08; --card:#15120e; --on-ink:#17120a; --gold:#d6b062; --gold-hi:#e9cf8a;
  --metal:linear-gradient(135deg,#d6b062,#f8e4ab 50%,#c99a3a);
  --gap:22px;           /* space between blocks */
  --ctl:40px;           /* height of every swatch, chip and input */
}
* { box-sizing:border-box; }
html, body { margin:0; height:100%; }
body { font-family:'EB Garamond', Garamond, 'Times New Roman', serif; color:var(--ink); background:var(--paper); font-size:17px; line-height:1.4; -webkit-font-smoothing:antialiased; }
button { font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; }
button:focus-visible, input:focus-visible { outline:2px solid var(--gold-hi); outline-offset:2px; }

/* ---------- layout ---------- */
.g3 { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(380px,0.85fr); height:100dvh; }

/* ---------- stage ---------- */
.g3-stage { position:relative; overflow:hidden; background:
  radial-gradient(60% 34% at 50% 0%, rgba(255,214,150,.20) 0%, rgba(255,214,150,0) 100%),
  radial-gradient(90% 70% at 50% 52%, #2b231a 0%, #15110d 48%, #050505 100%); }
#g3-canvas { position:absolute; inset:0; width:100%; height:100%; display:block; touch-action:none; cursor:grab; }
#g3-canvas:active { cursor:grabbing; }
.g3-loading { position:absolute; inset:0; display:flex; flex-direction:column; gap:14px; align-items:center; justify-content:center; background:#0b0907; letter-spacing:.14em; text-transform:uppercase; font-size:12px; color:#bfa46a; transition:opacity .5s; }
.g3-loading span { width:34px; height:34px; border:1.5px solid rgba(214,176,98,.25); border-top-color:var(--gold); border-radius:50%; animation:g3spin .9s linear infinite; }
.g3-loading.done { opacity:0; pointer-events:none; }
@keyframes g3spin { to { transform:rotate(360deg); } }
.g3-views { position:absolute; left:50%; bottom:22px; transform:translateX(-50%); display:flex; gap:4px; background:rgba(18,15,11,.6); backdrop-filter:blur(10px); border:1px solid rgba(214,176,98,.35); border-radius:999px; padding:4px; }
.g3-views button { padding:7px 15px; border-radius:999px; font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:#cdbf9f; }
.g3-views button.on { background:var(--metal); color:var(--on-ink); }
.g3-views button[data-reset] { border-left:1px solid rgba(214,176,98,.35); border-radius:0 999px 999px 0; }
.g3-hint { position:absolute; left:0; right:0; top:18px; margin:0; text-align:center; font-size:13px; color:rgba(230,214,180,.6); letter-spacing:.04em; transition:opacity .4s; pointer-events:none; }
.g3-hint.gone { opacity:0; }

/* ---------- panel ---------- */
.g3-panel { position:relative; overflow-y:auto; padding:30px 34px 0; border-left:1px solid var(--line); background:linear-gradient(180deg,#110e0b 0%,#0a0806 100%); scrollbar-color:rgba(214,176,98,.4) transparent; }
.g3-eyebrow { margin:0 0 6px; font-size:12px; letter-spacing:.22em; text-transform:uppercase; color:var(--gold); }
.g3-panel h1 { margin:0; font-weight:500; font-size:34px; line-height:1.05; letter-spacing:-.01em; }
.g3-sub { margin:8px 0 20px; color:var(--mute); }

/* steps: one open at a time; number, title and current choice on one line */
.g3-step { border-top:1px solid var(--line); }
.g3-step:last-child { border-bottom:1px solid var(--line); }
.g3-step-head { display:grid; grid-template-columns:28px 1fr auto 14px; align-items:center; column-gap:14px; width:100%; padding:15px 0; text-align:left; }
.g3-step-head span { width:28px; height:28px; border:1px solid var(--line2); border-radius:50%; display:grid; place-items:center; font-size:14px; }
.g3-step-head b { font-weight:500; font-size:20px; }
.g3-step-head em { font-style:normal; font-size:15px; color:var(--mute); max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:right; }
.g3-step-head i { width:9px; height:9px; border-right:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); transform:rotate(45deg); transition:transform .25s; justify-self:center; margin-top:-4px; }
.g3-step.open .g3-step-head i { transform:rotate(-135deg); margin-top:4px; }
.g3-step.open .g3-step-head span { background:var(--metal); color:var(--on-ink); border-color:var(--gold); }
.g3-step.open .g3-step-head em { visibility:hidden; }
.g3-step-body { padding:4px 0 22px; }
.g3-step-foot { margin-top:var(--gap); }
.g3-next { width:100%; height:46px; border:1px solid var(--line2); font-size:13px; letter-spacing:.16em; text-transform:uppercase; background:var(--card); }
.g3-next:hover { border-color:var(--gold-hi); }

/* a block: title left, current choice right, controls underneath */
.g3-block { margin:0 0 var(--gap); }
.g3-block:last-of-type { margin-bottom:0; }
.g3-block-head { display:flex; justify-content:space-between; align-items:baseline; gap:14px; margin:0 0 10px; }
.g3-block-head h3 { margin:0; font-size:12.5px; font-weight:500; letter-spacing:.16em; text-transform:uppercase; white-space:nowrap; }
.g3-block-head em { font-style:normal; font-size:15px; color:var(--mute); text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.g3-note { margin:9px 0 0; font-size:14.5px; line-height:1.35; color:var(--mute); }

/* swatches: one size everywhere */
.g3-swatches { display:flex; flex-wrap:wrap; gap:8px; }
.g3-sw { width:var(--ctl); height:var(--ctl); border-radius:50%; padding:3px; border:1px solid transparent; flex:none; }
.g3-sw i { display:block; width:100%; height:100%; border-radius:50%; box-shadow:inset 0 0 0 1px rgba(255,255,255,.22); }
.g3-sw.on { border-color:var(--gold-hi); box-shadow:0 0 0 1px var(--gold-hi); }
.g3-sw.g3-match { width:auto; border-radius:999px; padding:0; border:1px solid var(--line2); }
.g3-sw.g3-match i { display:grid; place-items:center; height:100%; padding:0 14px; border-radius:999px; box-shadow:none; font-style:normal; font-size:13px; letter-spacing:.08em; text-transform:uppercase; }
.g3-sw.g3-match.on { background:var(--metal); color:var(--on-ink); border-color:var(--gold); box-shadow:none; }

/* chips */
.g3-chips { display:flex; flex-wrap:wrap; gap:8px; }
.g3-chips button { height:var(--ctl); padding:0 16px; border:1px solid var(--line2); font-size:15px; background:var(--card); }
.g3-chips button.on { background:var(--metal); color:var(--on-ink); border-color:var(--gold); }
.g3-chips.fonts button { font-size:19px; }

/* tabs */
.g3-tabs { display:flex; gap:0; margin:0 0 12px; border-bottom:1px solid var(--line); overflow-x:auto; scrollbar-width:none; }
.g3-tabs::-webkit-scrollbar { display:none; }
.g3-tabs button { height:38px; padding:0 14px; font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--mute); border-bottom:2px solid transparent; white-space:nowrap; flex:none; }
.g3-tabs button:first-child { padding-left:0; }
.g3-tabs button.on { color:var(--ink); border-bottom-color:var(--gold-hi); }

/* tiles: one grid everywhere, four across */
.g3-tiles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.g3-tiles button { position:relative; border:1px solid var(--line); padding:5px 5px 0; display:flex; flex-direction:column; align-items:stretch; background:var(--card); }
.g3-tiles button.on { border-color:var(--gold-hi); box-shadow:inset 0 0 0 1px var(--gold-hi); }
.g3-tiles img, .g3-noimg { width:100%; aspect-ratio:1; object-fit:cover; display:block; }
.g3-tiles span { display:flex; align-items:center; justify-content:center; height:38px; font-size:12.5px; line-height:1.15; text-align:center; color:var(--mute); overflow:hidden; }
.g3-tiles button.on span { color:var(--ink); }
.g3-tiles.emblem img { object-fit:contain; background:#0e0c09; padding:4px; }
.g3-noimg { background:#0e0c09; position:relative; }
.g3-noimg::after { content:''; position:absolute; left:22%; right:22%; top:50%; border-top:1px solid var(--line2); transform:rotate(-45deg); }
.g3-tiles.wide { grid-template-columns:repeat(2,minmax(0,1fr)); }
.g3-tiles.wide img { aspect-ratio:16/10; }
.g3-tiles.wide span { font-size:14px; }
.g3-best { position:absolute; top:10px; left:10px; z-index:1; font-style:normal; font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; padding:3px 8px; background:var(--metal); color:var(--on-ink); }

/* text input */
.g3-input { display:block; width:100%; height:46px; color:var(--ink); border:1px solid var(--line2); padding:0 12px; font:inherit; font-size:18px; letter-spacing:.02em; border-radius:0; background:var(--card); }
.g3-input::placeholder { color:#7d745f; }
#g3-mono { width:120px; text-transform:uppercase; letter-spacing:.2em; text-align:center; }

/* summary */
.g3-summary { padding:26px 0 26px; }
.g3-summary h2 { margin:0 0 10px; font-weight:500; font-size:20px; }
.g3-summary ul { list-style:none; margin:0; padding:0; }
.g3-summary li { display:flex; justify-content:space-between; gap:16px; padding:5px 0; font-size:15.5px; }
.g3-summary li span { color:var(--mute); }
.g3-summary li b { font-weight:400; white-space:nowrap; }
.g3-total { display:grid; grid-template-columns:1fr auto; align-items:baseline; margin:12px 0 16px; padding-top:12px; border-top:1px solid var(--line); }
.g3-total span { font-size:12.5px; letter-spacing:.16em; text-transform:uppercase; }
.g3-total strong { font-weight:500; font-size:28px; color:var(--gold-hi); }
.g3-total small { grid-column:2; text-align:right; color:var(--mute); font-size:14.5px; }
.g3-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.g3-actions .g3-primary { display:none; }           /* the bar below always carries Add to cart */
.g3-primary, .g3-ghost { height:46px; padding:0 14px; font-size:13px; letter-spacing:.14em; text-transform:uppercase; border:1px solid var(--line2); }
.g3-primary { background:var(--metal); color:var(--on-ink); border-color:var(--gold); font-weight:600; }
.g3-ghost { background:var(--card); }

/* total and Add to cart, always in reach */
.g3-bar { position:sticky; bottom:0; margin:0 -34px; padding:12px 34px; display:flex; align-items:center; justify-content:space-between; gap:16px; background:rgba(12,10,8,.94); backdrop-filter:blur(8px); border-top:1px solid var(--line2); z-index:4; }
.g3-bar-price { display:grid; grid-template-columns:auto auto; column-gap:10px; align-items:baseline; }
.g3-bar-price span { grid-column:1 / -1; font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--mute); }
.g3-bar-price strong { font-weight:500; font-size:24px; color:var(--gold-hi); line-height:1.1; }
.g3-bar-price small { color:var(--mute); font-size:13.5px; }
.g3-bar .g3-primary { min-width:170px; }

.g3-toast { position:fixed; left:50%; bottom:86px; transform:translate(-50%,20px); background:#f2ead9; color:#17120a; padding:12px 20px; font-size:15px; opacity:0; pointer-events:none; transition:opacity .25s, transform .25s; max-width:min(92vw,520px); text-align:center; z-index:20; }
.g3-toast.on { opacity:1; transform:translate(-50%,0); }

@media (max-width: 900px) {
  .g3 { display:block; height:auto; }
  .g3-stage { position:sticky; top:0; height:46dvh; z-index:5; border-bottom:1px solid var(--line); }
  .g3-panel { border-left:0; padding:20px 16px 0; overflow:visible; }
  .g3-panel h1 { font-size:28px; }
  .g3-views { bottom:10px; }
  .g3-views button { padding:6px 9px; font-size:11px; }
  .g3-hint { display:none; }
  .g3-step-head em { max-width:120px; }
  .g3-bar { margin:0 -16px; padding:10px 16px; }
  .g3-bar .g3-primary { min-width:140px; }
  .g3-bar-price small { display:none; }
}
@media (prefers-reduced-motion: reduce) { * { transition:none !important; animation-duration:0s !important; } }

/* ---------- the reveal ---------- */
.g3-bars i { position:absolute; left:0; right:0; height:0; background:#000; transition:height .9s cubic-bezier(.6,0,.2,1); z-index:3; pointer-events:none; }
.g3-bars i:first-child { top:0; } .g3-bars i:last-child { bottom:0; }
.g3-stage.cine .g3-bars i { height:9.5%; }
.g3-stage .g3-views, .g3-stage .g3-hint { transition:opacity .6s; }
.g3-stage.cine .g3-views, .g3-stage.cine .g3-hint { opacity:0; pointer-events:none; }
.g3-stage.cine #g3-canvas { cursor:default; }
.g3-title { position:absolute; left:0; right:0; bottom:0; padding:90px 20px 84px !important; background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.78) 46%, rgba(0,0,0,.92) 100%); display:grid; justify-items:center; gap:4px; text-align:center; padding:0 20px; opacity:0; transform:translateY(14px); transition:opacity 1.1s, transform 1.1s; pointer-events:none; z-index:3; text-shadow:0 2px 18px rgba(0,0,0,.85); }
.g3-title.on { opacity:1; transform:none; pointer-events:auto; }
.g3-title p { margin:0; font-size:12px; letter-spacing:.34em; text-transform:uppercase; color:var(--gold-hi); }
.g3-title h2 { margin:2px 0 0; font-weight:500; font-size:44px; line-height:1; letter-spacing:.01em; }
.g3-title span { font-size:15px; color:#d9cdb3; letter-spacing:.06em; }
.g3-title strong { margin-top:6px; font-weight:500; font-size:22px; color:var(--gold-hi); }
.g3-actions .g3-wide { grid-column:1 / -1; }
@media (max-width:900px) { .g3-title h2 { font-size:30px; } .g3-title { padding:60px 16px 56px !important; } }
.g3-stage:has(.g3-title.on) .g3-views { opacity:0; pointer-events:none; }

/* sound for the reveal */
.g3-sound { position:absolute; top:14px; right:14px; width:40px; height:40px; border-radius:50%; display:grid; place-items:center; color:#cdbf9f; background:rgba(18,15,11,.6); backdrop-filter:blur(10px); border:1px solid rgba(214,176,98,.35); z-index:4; }
.g3-sound .w { display:none; } .g3-sound.on .w { display:inline; } .g3-sound.on .x { display:none; }
.g3-sound.on { color:var(--on-ink); background:var(--metal); border-color:var(--gold); }
.g3-stage.cine .g3-sound { top:calc(9.5% + 12px); }

/* ---------- designing vs. revealed ---------- */
.g3 .g3-summary { display:none; }                       /* the priced list belongs to the reveal */
.g3 #g3-bar-cart { display:none; }
.g3.final .g3-panel > header, .g3.final #g3-steps { display:none; }
.g3.final .g3-summary { display:block; padding-top:6px; }
.g3.final #g3-bar-reveal { display:none; } .g3.final #g3-bar-cart { display:block; }
.g3-summary h2 { margin:0; font-weight:500; font-size:34px; line-height:1.05; }
.g3-summary .g3-sub { margin:8px 0 18px; }
.g3-summary ul { border-top:1px solid var(--line); padding-top:10px; }
.g3-summary li { padding:7px 0; }
.g3-next-final { background:var(--metal); color:var(--on-ink); border-color:var(--gold); font-weight:600; }
.g3-quiet { border-color:transparent; color:var(--mute); background:none; }
.g3-bar .g3-primary { min-width:190px; }
@media (max-width:900px) { .g3-bar .g3-primary { min-width:0; padding:0 14px; } }

/* the bar rests at the foot of the menu even when the steps above it are short */
@media (min-width:901px) { .g3-panel { display:flex; flex-direction:column; } .g3-panel > * { flex:none; } .g3-bar { margin-top:auto; } }

/* ---------- shop bits ---------- */
.g3-eyebrow { display:flex; gap:14px; align-items:baseline; }
.g3-homelink { color:var(--mute); text-decoration:none; letter-spacing:.12em; } .g3-homelink:hover { color:var(--ink); }
.g3-pay-title { margin:4px 0 10px; font-size:12.5px; font-weight:500; letter-spacing:.16em; text-transform:uppercase; }
.g3-pay-opts { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:18px; }
.g3-pay-opts button { text-align:left; padding:12px 14px; border:1px solid var(--line2); background:var(--card); display:grid; gap:3px; }
.g3-pay-opts button b { font-weight:500; font-size:16px; } .g3-pay-opts button span { font-size:14px; color:var(--mute); }
.g3-pay-opts button.on { border-color:var(--gold-hi); box-shadow:inset 0 0 0 1px var(--gold-hi); }
.g3-foot { margin:18px 0 14px; text-align:center; font-size:14.5px; } .g3-foot a { color:var(--mute); }
.g3.final .g3-foot { display:none; }
#g3-bar-cart:disabled { opacity:.75; cursor:progress; }
@media (max-width:520px) { .g3-pay-opts { grid-template-columns:1fr; } }
