/* iStore Leather — premium layer (loaded after style.css) */

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 90; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: var(--gold-grad); background-size: 200% 100%; transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 10px rgba(217, 188, 133, .7); }

/* ---------- Section rail (desktop) ---------- */
.sec-rail { position: fixed; left: 22px; top: 50%; z-index: 55; display: none; flex-direction: column; gap: 6px; transform: translate(-12px, -50%); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.sec-rail.show { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.sec-rail a { position: relative; display: flex; align-items: center; height: 22px; padding-left: 4px; }
.sec-rail i { width: 14px; height: 1px; background: rgba(23, 18, 13, .28); transition: width .45s var(--ease), background .3s, height .3s; }
.sec-rail span { position: absolute; left: 30px; white-space: nowrap; font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-3); opacity: 0; transform: translateX(-6px); transition: .35s var(--ease); background: rgba(250, 246, 239, .92); padding: 4px 8px; }
.sec-rail a:hover i { width: 22px; background: var(--gold); }
.sec-rail a:hover span { opacity: 1; transform: none; }
.sec-rail a.is-on i { width: 30px; height: 2px; background: var(--gold); }
.sec-rail.on-dark i { background: rgba(239, 230, 218, .35); }
.sec-rail.on-dark span { background: transparent; color: var(--gold-2); }
@media (min-width: 1360px) { .sec-rail { display: flex; } }

/* ---------- Kicker line draws in ---------- */
.kicker.k-anim::before { width: 0; transition: width 1.1s var(--ease) .15s; }
.kicker.k-anim.k-in::before { width: 34px; }
.section-head .kicker.k-anim::after { content: ""; width: 0; height: 1px; background: currentColor; opacity: .7; transition: width 1.1s var(--ease) .15s; }
.section-head .kicker.k-anim.k-in::after { width: 34px; }

/* ---------- Cursor spotlight (cards, swatches, tiles) ---------- */
.p-card, .swatch-card, .connect-tile, .ind, .process-step { position: relative; }
.p-card::after, .swatch-card::after, .connect-tile::after, .ind::after, .process-step::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(217, 188, 133, .16), transparent 60%);
}
.p-card::before, .swatch-card::before, .connect-tile::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); z-index: 2;
  padding: 1px; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(176, 138, 78, .95), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@media (hover: hover) and (pointer: fine) {
  .p-card:hover::after, .swatch-card:hover::after, .connect-tile:hover::after, .ind:hover::after, .process-step:hover::after,
  .p-card:hover::before, .swatch-card:hover::before, .connect-tile:hover::before { opacity: 1; }
}

/* ---------- Button sheen ---------- */
.btn-dark::after, .btn-wa::after, .btn-gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 1; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 240, 210, .35), transparent); transform: skewX(-20deg); transition: left .9s var(--ease); }
.btn-dark:hover::after, .btn-wa:hover::after, .btn-gold:hover::after { left: 130%; }

/* ---------- Process steps light up ---------- */
.step-num { background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; background-position: 100% 0; color: transparent; transition: background-position 1.4s var(--ease), -webkit-text-stroke-color .8s; }
.process-step.is-lit .step-num { -webkit-text-stroke-color: transparent; background-position: 0 0; animation: shimmer 8s linear 1.4s infinite; }
.process-step::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--gold-grad); background-size: 200% 100%; transition: width 1.2s var(--ease) .2s; z-index: 1; }
.process-step.is-lit::before { width: 100%; }

/* ---------- Grain on dark sections ---------- */
.purity, .pre-footer, .site-footer { position: relative; isolation: isolate; }
.purity::after, .pre-footer::after, .site-footer::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: screen; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Hero ambient parallax ---------- */
.hero-bg-word { transition: transform 1.2s var(--ease); transform: translateX(calc(-50% + var(--hx, 0) * -40px)) translateY(calc(var(--hy, 0) * -18px)); }
.arch-outline { transition: transform 1.2s var(--ease); transform: translate(calc(var(--hx, 0) * 14px), calc(var(--hy, 0) * 10px)); }

/* ---------- Connect grid: no orphan rows ---------- */
.connect-grid { display: flex; flex-wrap: wrap; justify-content: center; border: 0; gap: 14px; }
.connect-tile { flex: 0 1 172px; border: 1px solid var(--line); }
.connect-tile:hover { transform: translateY(-4px); }
.connect-tile { transition: background .4s, box-shadow .4s, transform .5s var(--ease); }

/* ---------- Order planner ---------- */
.planner-sec { background: radial-gradient(900px 420px at 85% 10%, #F3E7D5, transparent 70%), var(--ivory); }
.planner { display: grid; grid-template-columns: 1fr 1.15fr; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.pl-visual { position: relative; display: flex; flex-direction: column; background: radial-gradient(circle at 50% 42%, #fff, #F2E8DA 88%); border-right: 1px solid var(--line); overflow: hidden; }
.pl-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, .55), transparent 60%); }
.pl-img { position: relative; flex: 1; display: grid; place-items: center; padding: 40px; min-height: 380px; }
.pl-img::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 26px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 35, 15, .22), transparent); }
.pl-img img { max-width: 88%; max-height: 360px; object-fit: contain; mix-blend-mode: multiply; transition: opacity .35s var(--ease), transform .7s var(--ease); }
.pl-img img.swap { opacity: 0; transform: scale(.94) translateY(10px); }
.pl-visual-meta { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 26px; border-top: 1px solid var(--line); background: rgba(255, 253, 249, .7); }
.pl-visual-meta span { font-family: var(--serif); font-size: 1.35rem; }
.pl-visual-meta a { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); white-space: nowrap; }
.pl-form { padding: 40px 44px; display: flex; flex-direction: column; gap: 26px; }
.pl-step { display: flex; flex-direction: column; gap: 12px; }
.pl-label { display: inline-flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.pl-label i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-gold); color: var(--gold-3); font-family: var(--serif); font-size: .95rem; letter-spacing: 0; }
.pl-label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pl-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); padding: 4px; background: var(--ivory); }
.pl-seg button { border: 0; background: none; padding: 12px 10px; font-weight: 600; font-size: .8rem; letter-spacing: .08em; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 2px; transition: background .35s var(--ease), color .35s; cursor: pointer; }
.pl-seg button small { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; color: var(--muted); }
.pl-seg button.is-on { background: var(--ink); color: #F6EEDF; }
.pl-seg button.is-on small { color: var(--gold-2); }
.pl-select { position: relative; }
.pl-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--gold-3); border-bottom: 1.5px solid var(--gold-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pl-select select { width: 100%; appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--ivory); padding: 14px 44px 14px 16px; font: inherit; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); border-radius: 0; cursor: pointer; }
.pl-select select:focus, .pl-qty input:focus { outline: 2px solid var(--gold); outline-offset: -1px; }
.pl-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--ivory); }
.pl-qty button { width: 38px; height: 40px; border: 0; background: none; font-size: 1.2rem; color: var(--gold-3); cursor: pointer; }
.pl-qty button:hover { background: var(--ink); color: var(--gold-2); }
.pl-qty input { width: 76px; height: 40px; border: 0; border-left: 1px solid var(--line); border-right: 0; background: transparent; text-align: right; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); -moz-appearance: textfield; }
.pl-qty input::-webkit-outer-spin-button, .pl-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pl-qty span { padding: 0 10px 0 6px; font-size: .8rem; color: var(--muted); border-right: 1px solid var(--line); height: 40px; display: grid; place-items: center; }
.pl-range { --fill: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; margin: 0; }
.pl-range::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--gold) var(--fill), var(--sand) var(--fill)); }
.pl-range::-moz-range-track { height: 3px; background: var(--sand); }
.pl-range::-moz-range-progress { height: 3px; background: var(--gold); }
.pl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9.5px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--gold), 0 6px 14px -4px rgba(60, 35, 15, .5); transition: transform .25s var(--ease); }
.pl-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--gold); }
.pl-range:active::-webkit-slider-thumb { transform: scale(1.2); }
.pl-ticks { display: flex; justify-content: space-between; gap: 6px; }
.pl-ticks button { border: 1px solid transparent; background: none; padding: 4px 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; color: var(--muted); cursor: pointer; transition: .3s; }
.pl-ticks button:hover { color: var(--gold-3); border-color: var(--line-gold); }
.pl-ticks button.is-on { color: var(--ink); border-color: var(--gold); }
.pl-check { display: inline-flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--ink-2); cursor: pointer; user-select: none; }
.pl-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pl-check span { width: 20px; height: 20px; border: 1px solid var(--gold); display: grid; place-items: center; transition: background .3s; flex: none; }
.pl-check input:checked + span { background: var(--ink); }
.pl-check input:checked + span::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--gold-2); border-bottom: 2px solid var(--gold-2); transform: rotate(-45deg) translate(1px, -1px); }
.pl-check input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pl-result { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-gold); background: linear-gradient(135deg, #FBF5EA, #fff); }
.pl-result > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pl-result > div + div { border-left: 1px solid var(--line-gold); }
.pl-result small { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pl-result b { font-family: var(--serif); font-weight: 500; font-size: 1.65rem; line-height: 1.15; color: var(--ink); }
.pl-result b.gold-text { font-weight: 600; color: transparent; }
.pl-result b.pop { animation: plPop .5s var(--ease); }
@keyframes plPop { 0% { opacity: .2; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
.pl-note { margin: -10px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.55; }
.pl-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.pl-ctas .btn { flex: 1 1 200px; }

@media (max-width: 960px) {
  .planner { grid-template-columns: 1fr; }
  .pl-visual { border-right: 0; border-bottom: 1px solid var(--line); }
  .pl-img { min-height: 240px; padding: 26px; }
  .pl-img img { max-height: 220px; }
  .pl-form { padding: 28px 24px; gap: 22px; }
}
@media (max-width: 600px) {
  .pl-form { padding: 24px 18px; }
  .pl-img { min-height: 200px; }
  .pl-img img { max-height: 180px; }
  .pl-visual-meta { padding: 14px 18px; }
  .pl-visual-meta span { font-size: 1.15rem; }
  .pl-result { grid-template-columns: 1fr; }
  .pl-result > div + div { border-left: 0; border-top: 1px solid var(--line-gold); }
  .pl-result b { font-size: 1.45rem; }
  .pl-label-row { flex-direction: column; align-items: flex-start; }
  .pl-ticks button { padding: 4px 4px; }
  .connect-tile { flex-basis: calc(50% - 7px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress, .sec-rail { display: none !important; }
  .kicker.k-anim::before { width: 34px; transition: none; }
  .process-step::before, .step-num { transition: none; }
}

/* =================================================================
   v2 — Premium header + mobile menu
   ================================================================= */

/* Topbar — rotating announcements */
.topbar-msg { position: relative; display: block; height: 36px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.tb-m { position: absolute; left: 0; top: 0; height: 36px; line-height: 36px; display: block; white-space: nowrap; opacity: 0; transform: translateY(70%); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.tb-m.is-on { opacity: 1; transform: none; }
.tb-m.is-out { opacity: 0; transform: translateY(-70%); }

/* Header — gold hairline + refined states */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(176, 138, 78, .55) 20%, rgba(240, 220, 174, .9) 50%, rgba(176, 138, 78, .55) 80%, transparent); pointer-events: none; }
.nav-row { border-bottom: 0; }
.site-header.is-scrolled { background: rgba(250, 246, 239, .92); }
.is-scrolled .brand-logo { transform: scale(.86); }
.brand-text { transition: font-size .4s var(--ease); }
.icon-btn { border-color: var(--line-gold); }
.icon-btn:hover { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.icon-btn.wa { color: var(--wa); }
.icon-btn.wa:hover { background: var(--wa); color: #fff; border-color: var(--wa); }
@media (min-width: 1181px) { .main-nav > a.is-active::before { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); } }

/* Hamburger */
.hb { position: relative; width: 18px; height: 12px; display: block; }
.hb i { position: absolute; left: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; }
.hb i:nth-child(1) { top: 0; width: 18px; }
.hb i:nth-child(2) { top: 5.25px; width: 12px; }
.hb i:nth-child(3) { top: 10.5px; width: 15px; }
.menu-toggle:hover .hb i { width: 18px; }

/* Desktop mega — footer link */
.mega-all { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: var(--gold-2); padding: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; transition: background .3s; }
.mega-all:hover { background: var(--gold-3); color: #fff; }
.mega-item { border-radius: 2px; }
.mega-thumb { border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-gold); }

/* ---------- Mobile / tablet drawer ---------- */
@media (max-width: 1180px) {
  /* the bug: desktop hover/focus transform was shifting the opened list off-screen */
  .has-mega .mega, .has-mega:hover .mega, .has-mega:focus-within .mega { transform: none !important; left: auto; width: auto; }

  .main-nav { width: min(420px, 100vw); padding: 0 24px 26px; background: radial-gradient(520px 320px at 100% 0%, #F3E7D5, transparent 70%), var(--paper); counter-reset: mnav; box-shadow: -40px 0 80px rgba(0, 0, 0, .22); }
  .mnav-head { position: sticky; top: 0; z-index: 3; margin: 0 -24px 6px; padding: 18px 24px 18px; background: rgba(255, 253, 249, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-gold); }
  .mnav-head > span { flex: 1; min-width: 0; }
  .mnav-close { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-gold); background: var(--paper); cursor: pointer; transition: background .3s, transform .5s var(--ease); }
  .mnav-close i { position: absolute; left: 13px; top: 21px; width: 17px; height: 1.5px; background: var(--ink); }
  .mnav-close i:first-child { transform: rotate(45deg); }
  .mnav-close i:last-child { transform: rotate(-45deg); }
  .mnav-close:hover, .mnav-close:active { background: var(--ink); transform: rotate(90deg); }
  .mnav-close:hover i, .mnav-close:active i { background: var(--gold-2); }
  body.menu-open .menu-toggle { opacity: 0; pointer-events: none; }

  /* numbered serif links */
  .main-nav > a, .has-mega > a { counter-increment: mnav; gap: 14px; justify-content: flex-start; padding: 15px 2px; }
  .main-nav > a::before, .has-mega > a::before { content: counter(mnav, decimal-leading-zero); font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--gold); min-width: 20px; position: static; width: auto; height: auto; background: none; margin: 0; border-radius: 0; }
  .main-nav > a.is-active, .has-mega > a.is-active { color: var(--gold-3); }
  .has-mega > a { justify-content: flex-start; }
  .has-mega > a .caret { transform: none; margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-gold); display: grid; place-items: center; transition: transform .45s var(--ease), background .3s; }
  .has-mega > a .caret::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--gold-3); border-bottom: 1.5px solid var(--gold-3); transform: translateY(-2px) rotate(45deg); }
  .has-mega.open > a .caret { transform: rotate(180deg); background: var(--ink); }
  .has-mega.open > a .caret::before { border-color: var(--gold-2); }

  /* staggered entrance */
  .main-nav > a, .main-nav > .has-mega, .mnav-foot { opacity: 0; transform: translateX(26px); transition: opacity .55s var(--ease), transform .7s var(--ease); }
  .main-nav.open > a, .main-nav.open > .has-mega, .main-nav.open .mnav-foot { opacity: 1; transform: none; }
  .main-nav.open > :nth-child(2) { transition-delay: .12s; } .main-nav.open > :nth-child(3) { transition-delay: .17s; }
  .main-nav.open > :nth-child(4) { transition-delay: .22s; } .main-nav.open > :nth-child(5) { transition-delay: .27s; }
  .main-nav.open > :nth-child(6) { transition-delay: .32s; } .main-nav.open > :nth-child(7) { transition-delay: .37s; }
  .main-nav.open > :nth-child(8) { transition-delay: .42s; } .main-nav.open > :nth-child(9) { transition-delay: .47s; }

  /* collections accordion — 2-col tiles */
  .has-mega.open .mega { display: block; animation: megaIn .5s var(--ease); }
  @keyframes megaIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px 0 10px; background: transparent; }
  .mega-item { flex-direction: column; text-align: center; gap: 8px; padding: 12px 8px; background: var(--ivory); border: 1px solid var(--line); font-size: .98rem; line-height: 1.2; min-width: 0; }
  .mega-item > span:last-child { min-width: 0; overflow-wrap: anywhere; }
  .mega-item:active { background: var(--cream); border-color: var(--line-gold); }
  .mega-thumb { width: 58px; height: 58px; background: #fff; }
  .mega-item small { margin-top: 3px; font-size: 10.5px; color: var(--gold-3); }
  .mega-all { margin: 0 0 12px; }

  .mnav-foot { padding-top: 22px; }
  .mnav-foot .btn { padding: 1.05em 1.4em; }
}
@media (max-width: 600px) {
  .main-nav { width: 100vw; box-shadow: none; }
  .mnav-head { font-size: 1.3rem; }
  .mnav-head img { width: 36px; height: 36px; }
  .main-nav > a, .has-mega > a { font-size: 1.3rem; padding: 13px 2px; }
  .topbar-msg { display: block; }
  .topbar-links { display: none; }
  .topbar-inner { justify-content: center; text-align: center; }
  .tb-m { left: 50%; transform: translate(-50%, 70%); font-size: 10.5px; letter-spacing: .12em; }
  .tb-m.is-on { transform: translate(-50%, 0); }
  .tb-m.is-out { transform: translate(-50%, -70%); }
  .header-inner { min-height: 62px; }
  .icon-btn { width: 42px; height: 42px; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .topbar-msg { display: block; }
  .topbar-inner { justify-content: space-between; }
}

/* =================================================================
   v3 — Guides (knowledge hub)
   ================================================================= */
.guides-hero .kicker { justify-content: center; }
.gh-search { display: flex; align-items: center; gap: 10px; max-width: 620px; margin: 30px auto 0; padding: 6px 6px 6px 18px; background: var(--paper); border: 1px solid var(--line-gold); box-shadow: var(--shadow-1); color: var(--gold-3); }
.gh-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: 10px 0; outline: none; }
.gh-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 10px 0 34px; }
.gh-cat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); transition: border-color .35s, box-shadow .45s var(--ease), transform .45s var(--ease); }
.gh-cat:hover { border-color: var(--line-gold); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.gh-cat.is-active { background: var(--ink); border-color: var(--ink); color: #F6EEDF; }
.gh-cat-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-gold); color: var(--gold-3); }
.gh-cat.is-active .gh-cat-ic { border-color: rgba(217, 188, 133, .5); color: var(--gold-2); }
.gh-cat b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.15; }
.gh-cat small { display: block; margin-top: 3px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.gh-cat.is-active small { color: var(--gold-2); }
.gh-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); }
.gh-meta { display: inline-flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.gh-meta i { width: 18px; height: 1px; background: var(--gold); }
.gh-ex { color: var(--ink-2); font-size: .95rem; line-height: 1.6; }

.gh-feature { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--paper); border: 1px solid var(--line); margin-bottom: 26px; overflow: hidden; transition: box-shadow .5s var(--ease); }
.gh-feature:hover { box-shadow: var(--shadow-2); }
.gh-feature-img { position: relative; min-height: 340px; background: radial-gradient(circle at 50% 45%, #fff, #F0E4D2 85%); display: grid; place-items: center; overflow: hidden; }
.gh-feature-img img { max-width: 78%; max-height: 300px; object-fit: contain; mix-blend-mode: multiply; transition: transform 1.2s var(--ease); }
.gh-feature:hover .gh-feature-img img { transform: scale(1.06) rotate(-2deg); }
.gh-feature-copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 44px 46px; }
.gh-feature-copy b { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.12; }

.gh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gh-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .5s var(--ease), transform .5s var(--ease), border-color .4s; }
.gh-card:hover { box-shadow: var(--shadow-2); transform: translateY(-4px); border-color: var(--line-gold); }
.gh-card-img { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 45%, #fff, #F0E4D2 85%); display: grid; place-items: center; overflow: hidden; }
.gh-card-img img { max-width: 70%; max-height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: transform 1s var(--ease); }
.gh-card:hover .gh-card-img img { transform: scale(1.07); }
.gh-card-ic { position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; }
.gh-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.gh-card-body b { font-family: var(--serif); font-weight: 500; font-size: 1.42rem; line-height: 1.18; }
.gh-card-body .gh-meta { margin-top: auto; padding-top: 6px; }
.gh-empty { text-align: center; padding: 50px 0; }
.gh-cta { margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; padding: 38px 42px; color: #EFE6DA; background: radial-gradient(600px 300px at 0% 0%, #3a2618, transparent 70%), linear-gradient(160deg, #1F160F, #120D09); }
.gh-cta h3 { font-family: var(--serif); font-weight: 500; font-size: 2rem; color: #fff; margin: 0 0 6px; }
.gh-cta p { margin: 0; color: #CBBFAF; }
.gh-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Single guide ---------- */
.gd-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 91; pointer-events: none; }
.gd-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--gold-grad); }
.gd-hero { padding: 54px 0 46px; background: radial-gradient(800px 340px at 80% 0%, #F0E2CC, transparent 70%); border-bottom: 1px solid var(--line); }
.gd-hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 50px; align-items: center; }
.gd-hero-copy h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.06; margin: 14px 0 16px; }
.gd-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 58ch; }
.gd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.gd-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.gd-hero-img { aspect-ratio: 5 / 4; background: radial-gradient(circle at 50% 45%, #fff, #EFE2CE 85%); border: 1px solid var(--line-gold); display: grid; place-items: center; overflow: hidden; }
.gd-hero-img img { max-width: 80%; max-height: 86%; object-fit: contain; mix-blend-mode: multiply; }

.gd-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 54px; align-items: start; }
.gd-nav, .gd-toc { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow: auto; scrollbar-width: thin; }
.gd-nav-toggle { display: none; }
.gd-nav-all { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); }
.gd-nav-all svg { transform: rotate(180deg); }
.gd-nav-group { border-top: 1px solid var(--line); }
.gd-nav-group summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 13px 0; font-family: var(--serif); font-size: 1.12rem; color: var(--ink); }
.gd-nav-group summary::-webkit-details-marker { display: none; }
.gd-nav-group summary svg { color: var(--gold-3); flex: none; }
.gd-nav-group summary small { margin-left: auto; font-family: var(--sans); font-size: 10.5px; color: var(--muted); }
.gd-nav-group ul { list-style: none; margin: 0 0 12px; padding: 0 0 0 10px; border-left: 1px solid var(--line-gold); }
.gd-nav-group li a { display: block; padding: 7px 0 7px 12px; margin-left: -11px; border-left: 2px solid transparent; font-size: .9rem; line-height: 1.4; color: var(--ink-2); transition: color .25s, border-color .25s; }
.gd-nav-group li a:hover { color: var(--gold-3); }
.gd-nav-group li a.is-current { color: var(--ink); font-weight: 700; border-left-color: var(--gold); }

.gd-body { font-size: 1.07rem; line-height: 1.85; color: #2A231C; }
.gd-body > p:first-child::first-letter { float: left; font-family: var(--serif); font-size: 4.2rem; line-height: .8; padding: 8px 10px 0 0; color: var(--gold-3); }
.gd-body h2 { font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.15; margin: 2.2em 0 .6em; padding-top: .9em; border-top: 1px solid var(--line); scroll-margin-top: 130px; }
.gd-body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.gd-body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin: 1.6em 0 .4em; scroll-margin-top: 130px; }
.gd-body p { margin: 0 0 1.1em; }
.gd-body ul, .gd-body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.gd-body li { margin: .35em 0; padding-left: .3em; }
.gd-body ul li::marker { color: var(--gold); }
.gd-body ol li::marker { color: var(--gold-3); font-weight: 700; }
.gd-body strong, .gd-body b { color: var(--ink); }
.gd-body a { color: var(--gold-3); text-decoration: underline; text-underline-offset: 3px; }
.gd-body blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 3px solid var(--gold); background: #FBF5EA; font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; }
.gd-body img { max-width: 100%; height: auto; margin: 1em 0; }
.gd-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.gd-body th, .gd-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.gd-body th { background: var(--cream); }
.gd-body hr { border: 0; border-top: 1px solid var(--line-gold); margin: 2em 0; }

.gd-toc b { display: block; margin-bottom: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.gd-toc ol, .gd-toc-mobile ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.gd-toc li a, .gd-toc-mobile li a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: .86rem; line-height: 1.4; color: var(--ink-2); transition: color .25s, border-color .25s; }
.gd-toc li.lv3 a, .gd-toc-mobile li.lv3 a { padding-left: 26px; font-size: .82rem; }
.gd-toc li a:hover { color: var(--gold-3); }
.gd-toc li a.is-on { color: var(--ink); border-left-color: var(--gold); font-weight: 700; }
.gd-toc-top { display: inline-block; margin-top: 18px; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-3); }
.gd-toc-mobile { display: none; }

.gd-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.gd-share span { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.gd-share a, .gd-copy { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-gold); display: inline-grid; place-items: center; color: var(--gold-3); background: none; transition: .3s; }
.gd-copy { width: auto; border-radius: 999px; padding: 0 16px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.gd-share a:hover, .gd-copy:hover { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.gd-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.gd-pn a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); background: var(--paper); transition: border-color .3s, box-shadow .4s; }
.gd-pn a:hover { border-color: var(--line-gold); box-shadow: var(--shadow-1); }
.gd-pn small { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); }
.gd-pn b { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.25; }
.gd-next { text-align: right; grid-column: 2; }
.gd-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 30px; padding: 24px 26px; border: 1px solid var(--line-gold); background: linear-gradient(135deg, #FBF5EA, #fff); }
.gd-cta b { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.gd-cta p { margin: 4px 0 0; color: var(--ink-2); font-size: .92rem; }
.gd-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 1180px) {
  .gd-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 40px; }
  .gd-toc { display: none; }
  .gd-toc-mobile { display: block; margin-bottom: 26px; border: 1px solid var(--line); background: var(--paper); }
  .gd-toc-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
  .gd-toc-mobile summary::-webkit-details-marker { display: none; }
  .gd-toc-mobile ol { margin: 0 18px 14px; }
  .gd-toc-mobile[open] .caret { transform: rotate(225deg); }
  .gh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .gd-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .gd-hero-img { order: -1; aspect-ratio: 16 / 9; }
  .gd-layout { grid-template-columns: 1fr; gap: 0; }
  .gd-nav { position: static; max-height: none; overflow: visible; margin-bottom: 18px; }
  .gd-nav-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 18px; border: 1px solid var(--line-gold); background: var(--paper); font: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
  .gd-nav-toggle .caret { margin-left: auto; transition: transform .3s; }
  .gd-nav-toggle[aria-expanded="true"] .caret { transform: rotate(225deg); }
  .gd-nav-list { display: none; padding: 16px 18px 6px; border: 1px solid var(--line); border-top: 0; background: var(--paper); }
  .gd-nav.open .gd-nav-list { display: block; }
  .gh-feature { grid-template-columns: 1fr; }
  .gh-feature-img { min-height: 220px; }
  .gh-feature-copy { padding: 28px 24px; }
}
@media (max-width: 600px) {
  .gh-cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 0 16px 4px; }
  .gh-cats::-webkit-scrollbar { display: none; }
  .gh-cat { flex: 0 0 auto; scroll-snap-align: start; padding: 12px 16px; }
  .gh-cat b { font-size: 1.05rem; white-space: nowrap; }
  .gh-grid { grid-template-columns: 1fr; gap: 16px; }
  .gh-search { padding-left: 14px; }
  .gh-search .btn { padding: .9em 1.1em; }
  .gh-cta { padding: 28px 22px; }
  .gh-cta h3 { font-size: 1.6rem; }
  .gd-hero { padding: 30px 0 30px; }
  .gd-body { font-size: 1.02rem; line-height: 1.8; }
  .gd-body h2 { font-size: 1.65rem; }
  .gd-pn { grid-template-columns: 1fr; }
  .gd-next { grid-column: auto; text-align: left; }
}

/* ===================== v4 — premium polish ===================== */
/* Studio backdrop: white product photos sit on warm parchment light */
.p-media { background: radial-gradient(115% 85% at 50% 36%, #FFFEFB 0%, #F8F2E8 58%, #EFE5D3 100%); }
.p-media img { mix-blend-mode: multiply; }
.p-media::before { content: ""; position: absolute; left: 22%; right: 22%; bottom: 6%; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 42, 16, .2), transparent); pointer-events: none; transition: transform 1.2s var(--ease), opacity .8s; }
.p-card:hover .p-media::before { transform: scaleX(1.12); opacity: .7; }
.p-card { position: relative; transition: box-shadow .7s var(--ease), border-color .6s, transform .7s var(--ease); }
.p-card::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(176, 138, 78, 0); pointer-events: none; transition: border-color .7s var(--ease), inset .7s var(--ease); z-index: 3; }
@media (hover: hover) {
  .p-card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -34px rgba(60, 36, 14, .45), 0 2px 0 rgba(176, 138, 78, .25); }
  .p-card:hover::after { border-color: rgba(176, 138, 78, .38); inset: 5px; }
}
.p-off { background: linear-gradient(135deg, #1E1711, #3A2A1B); box-shadow: inset 0 0 0 1px rgba(217, 188, 133, .25); }

/* Gold light sweep across buttons */
.btn::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: -75%; width: 45%; background: linear-gradient(100deg, transparent 0%, rgba(255, 238, 200, .38) 50%, transparent 100%); transform: skewX(-22deg); pointer-events: none; transition: left 1s var(--ease); z-index: 1; }
.btn:hover::after { left: 135%; }
.btn-dark { box-shadow: inset 0 0 0 1px rgba(217, 188, 133, 0); transition: color .45s var(--ease), border-color .45s, background .45s, transform .35s var(--ease), box-shadow .45s; }
.btn-dark:hover { box-shadow: inset 0 0 0 1px rgba(217, 188, 133, .55), 0 14px 30px -16px rgba(23, 18, 13, .6); }

/* Header: gold hairline once you scroll */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(176, 138, 78, .6) 30%, rgba(240, 220, 174, .9) 50%, rgba(176, 138, 78, .6) 70%, transparent); opacity: 0; transform: scaleX(.4); transition: opacity .6s, transform 1s var(--ease); pointer-events: none; }
.site-header.is-scrolled::after { opacity: 1; transform: none; }

/* Section titles: small gold ornament under every heading block */
.section-head:not(.row)::after { content: "◆"; display: block; width: 120px; margin: 16px auto 0; font-size: 7px; line-height: 1; text-align: center; color: var(--gold); background: linear-gradient(90deg, transparent, rgba(176, 138, 78, .55) 38%, transparent 38%, transparent 62%, rgba(176, 138, 78, .55) 62%, transparent) center / 100% 1px no-repeat; }

/* Footer signature */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before { content: "iStore Leather"; position: absolute; left: 50%; bottom: -.08em; transform: translateX(-50%); font-family: 'Pinyon Script', 'Cormorant Garamond', cursive; font-size: clamp(88px, 15vw, 250px); line-height: 1; white-space: nowrap; color: rgba(217, 188, 133, .055); pointer-events: none; }
.site-footer > * { position: relative; }

/* Back to top with reading ring (desktop) */
.to-top { position: fixed; left: 26px; bottom: 26px; z-index: 69; width: 50px; height: 50px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 253, 249, .92); color: var(--ink); box-shadow: 0 14px 30px -14px rgba(40, 25, 10, .45); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .5s, transform .6s var(--ease), background .3s; }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--gold-2); }
.to-top svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke-width: 1.5; }
.to-top svg.ring .bg { stroke: rgba(176, 138, 78, .18); }
.to-top svg.ring .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .15s linear; }
@media (max-width: 1023px) { .to-top { display: none; } }

/* Gold accessibility focus + refined scrollbar */
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) and (min-width: 1024px) {
  html { scrollbar-width: thin; scrollbar-color: #B08A4E #F3ECE1; }
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: #F3ECE1; }
  ::-webkit-scrollbar-thumb { background: linear-gradient(#C9A564, #8C6A33); border: 2px solid #F3ECE1; border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn::after, .p-card, .p-card::after, .site-header::after, .to-top { transition: none !important; }
  .p-card:hover { transform: none; }
}
