/* ==========================================================================
   Shiny Trading Company — design tokens
   Ink/Paper alternating sections, foil-holo signature, manifest/ledger motif
   ========================================================================== */
:root{
  --ink:        #0D0F12;
  --ink-soft:   #14171D;
  --ink-line:   #262A32;
  --ink-text:   #ECEAE3;
  --ink-dim:    #9AA0AC;

  --paper:      #F6F4EE;
  --paper-soft: #EFEBE0;
  --paper-line: #DAD4C3;
  --paper-text: #17181B;
  --paper-dim:  #6B6A63;

  --gold:       #C9A227;
  --gold-bright:#E4BC3E;

  /* Showcase band — a warm charcoal "shelf" pulled toward the gold hue, so it
     separates from the cool near-black hero instead of blending into it. */
  --shelf:      #1E1913;
  --shelf-line: rgba(201,162,39,.16);
  --shelf-tile: #FAF7F0;
  --violet:     #7B5FFF;
  --teal:       #2FD9C4;
  --red-stamp:  #B43B2F;

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1180px;
  --radius: 3px;
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.45);
  --ease: cubic-bezier(.16,.8,.28,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  background:var(--paper);
  color:var(--paper-text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font:inherit; cursor:pointer; }
input,select,textarea{ font:inherit; }

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:400;
  line-height:1.05;
  margin:0;
  letter-spacing:-.01em;
}

.container{ max-width:var(--container); margin:0 auto; padding:0 28px; }
@media (max-width:640px){ .container{ padding:0 20px; } }

section{ position:relative; }
.section-pad{ padding:110px 0; }
@media (max-width:900px){ .section-pad{ padding:76px 0; } }

.bg-ink{ background:var(--ink); color:var(--ink-text); }
.bg-paper{ background:var(--paper); color:var(--paper-text); }
.bg-ink-soft{ background:var(--ink-soft); color:var(--ink-text); }

.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--gold);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px;
  background:var(--gold);
  display:inline-block;
}

.mono{ font-family:var(--font-mono); }

:focus-visible{
  outline:2px solid var(--gold-bright);
  outline-offset:3px;
  border-radius:2px;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:15px 26px;
  border-radius:var(--radius);
  font-family:var(--font-mono);
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  border:1px solid transparent;
  transition:transform .35s var(--ease), background .3s, border-color .3s, color .3s;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-gold{
  background:var(--gold);
  color:#171204;
  font-weight:600;
}
.btn-gold:hover{ background:var(--gold-bright); }
.btn-outline-dark{
  border-color:rgba(236,234,227,.34);
  color:var(--ink-text);
}
.btn-outline-dark:hover{ border-color:var(--gold); color:var(--gold-bright); }
.btn-outline-light{
  border-color:rgba(23,24,27,.28);
  color:var(--paper-text);
}
.btn-outline-light:hover{ border-color:var(--paper-text); }
.btn-block{ width:100%; justify-content:center; }
.btn[disabled]{ opacity:.45; cursor:not-allowed; transform:none !important; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position:sticky; top:0; z-index:200;
  background:rgba(13,15,18,.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--ink-line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
  gap:24px;
}
.logo{
  font-family:var(--font-display);
  font-size:22px;
  color:var(--ink-text);
  display:flex; align-items:baseline; gap:8px;
  flex-shrink:0;
}
.logo em{
  font-style:italic;
  background:linear-gradient(100deg,var(--gold) 0%,var(--gold-bright) 30%,var(--teal) 55%,var(--violet) 75%,var(--gold) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.logo small{
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-dim);
  font-style:normal;
}
.main-nav{ display:flex; gap:30px; }
.main-nav a{
  font-size:14px;
  color:var(--ink-dim);
  position:relative;
  padding:6px 0;
  transition:color .25s;
}
.main-nav a:hover, .main-nav a.active{ color:var(--ink-text); }
.main-nav a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:1px; background:var(--gold);
}
.header-tools{ display:flex; align-items:center; gap:18px; flex-shrink:0; }
.lang-switch{ display:flex; gap:2px; font-family:var(--font-mono); font-size:12px; }
.lang-switch button{
  background:none; border:1px solid var(--ink-line); color:var(--ink-dim);
  padding:5px 9px; border-radius:2px;
}
.lang-switch button.active{ color:var(--gold); border-color:var(--gold); }
.tool-link{
  font-size:13px; color:var(--ink-dim); display:flex; align-items:center; gap:6px;
}
.tool-link:hover{ color:var(--ink-text); }
.quote-badge{
  background:var(--gold); color:#171204; font-family:var(--font-mono);
  font-size:10px; font-weight:700; border-radius:50%;
  width:17px; height:17px; display:inline-flex; align-items:center; justify-content:center;
}
.nav-toggle{
  display:none; background:none; border:none; color:var(--ink-text);
  width:32px; height:24px; position:relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; position:absolute; left:0; right:0; height:1px; background:currentColor;
  transition:transform .3s, opacity .3s;
}
.nav-toggle span{ top:11px; }
.nav-toggle span::before{ top:-8px; }
.nav-toggle span::after{ top:8px; }

@media (max-width:940px){
  .main-nav{
    position:fixed; inset:76px 0 0 0; background:var(--ink);
    flex-direction:column; padding:36px 28px; gap:0;
    transform:translateX(100%); transition:transform .4s var(--ease);
    overflow-y:auto;
  }
  .main-nav a{ padding:16px 0; border-bottom:1px solid var(--ink-line); font-size:17px; }
  body.nav-open .main-nav{ transform:translateX(0); }
  .nav-toggle{ display:block; }
  .header-tools .lang-switch{ display:none; }
  /* backdrop-filter creates a containing block for fixed descendants in
     Chromium, which would confine .main-nav's fixed overlay to the header's
     own box instead of the viewport — drop it while the menu is open. */
  body.nav-open .site-header{ backdrop-filter:none; background:var(--ink); }
}

/* ==========================================================================
   Hero + foil signature card
   ========================================================================== */
.hero{
  padding:96px 0 110px;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"闪 亮 贸 易";
  position:absolute; top:-40px; right:-20px;
  font-family:var(--font-display);
  font-size:min(30vw,420px);
  color:rgba(255,255,255,.025);
  letter-spacing:.05em;
  pointer-events:none;
  white-space:nowrap;
}
.hero-grid{
  display:grid; grid-template-columns:1.05fr .95fr; gap:60px; align-items:center;
  position:relative; z-index:1;
}
.hero h1{
  font-size:clamp(40px,5.4vw,68px);
  margin:0 0 40px;
}
.hero h1 i:not(.shine){ font-style:italic; color:var(--gold-bright); }
.hero h1 i.shine{ font-style:italic; }

/* Gold shine sweeping left→right across a word, then resting before it repeats.
   Tune the cycle with --shine-cycle; the sweep itself is ~30% of that. */
.shine{
  color:var(--gold-bright);
  --shine-cycle:5s; /* full cycle: ~1.5s sweep + ~3.1s rest */
}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .shine{
    background-image:linear-gradient(100deg,
      var(--gold) 0%,   var(--gold) 40%,
      #fff3cd 47%,      #ffffff 50%,      #fff3cd 53%,
      var(--gold) 60%,  var(--gold) 100%);
    background-size:250% 100%;
    background-repeat:no-repeat;
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    animation:shineSweep var(--shine-cycle) ease-in-out infinite;
  }
}
/* Both end positions land on flat gold, so the loop restart is invisible. */
@keyframes shineSweep{
  0%,   8%  { background-position:100% 0; }
  38%, 100% { background-position:0% 0; }
}
@media (prefers-reduced-motion: reduce){
  .shine{ animation:none; }
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:44px; }
.hero-meta{
  display:flex; gap:34px; flex-wrap:wrap;
  font-family:var(--font-mono); font-size:12px; color:var(--ink-dim);
  border-top:1px solid var(--ink-line); padding-top:22px;
}
.hero-meta b{ display:block; color:var(--ink-text); font-size:20px; font-family:var(--font-body); font-weight:600; }

/* the foil card */
.foil-stage{ perspective:1400px; display:flex; justify-content:center; }
.foil-card{
  width:min(340px,80vw); aspect-ratio:63/88;
  border-radius:16px;
  position:relative;
  background:
    radial-gradient(120% 140% at var(--mx,50%) var(--my,30%),
      rgba(255,255,255,.55), transparent 45%),
    linear-gradient(135deg,#1a1c22,#0a0b0d 60%);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:var(--shadow-lg);
  transform-style:preserve-3d;
  transition:transform .25s var(--ease);
  overflow:hidden;
}
.foil-card::before{
  content:"";
  position:absolute; inset:0;
  background:conic-gradient(from var(--rot,180deg) at var(--mx,50%) var(--my,50%),
    var(--gold), var(--teal), var(--violet), var(--gold-bright), var(--gold));
  mix-blend-mode:screen;
  opacity:.5;
}
.foil-card::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(115deg, transparent 20%, rgba(255,255,255,.5) 36%, transparent 46%);
  background-size:220% 220%;
  background-position:calc(var(--mx,50%) * 1.4) calc(var(--my,50%) * 1.4);
  mix-blend-mode:overlay;
}
.foil-face{
  position:absolute; inset:14px;
  border:1px solid rgba(255,255,255,.5);
  border-radius:10px;
  display:flex; flex-direction:column; justify-content:space-between;
  padding:18px;
  z-index:2;
  pointer-events:none;
}
.foil-face-top{ display:flex; justify-content:space-between; align-items:flex-start; }
.foil-face-top span{ font-family:var(--font-mono); font-size:10px; letter-spacing:.1em; color:rgba(255,255,255,.85); text-transform:uppercase; }
.foil-face-mark{ font-family:var(--font-display); font-style:italic; font-size:15px; color:#fff; }
.foil-face-center{ text-align:center; }
.foil-face-center .cn{ font-size:44px; color:rgba(255,255,255,.92); font-family:var(--font-display); }
.foil-face-center small{ display:block; font-family:var(--font-mono); font-size:10px; letter-spacing:.16em; color:rgba(255,255,255,.6); margin-top:6px; text-transform:uppercase; }
.foil-face-bottom{ display:flex; justify-content:space-between; font-family:var(--font-mono); font-size:9px; color:rgba(255,255,255,.6); letter-spacing:.06em; }
@media (prefers-reduced-motion: reduce){
  .foil-card{ transition:none; }
}
@media (max-width:940px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero{ padding:56px 0 70px; }
  .hero-meta{ gap:22px; }
}

/* ==========================================================================
   Product showcase — a slow imagery-only marquee between hero and book.
   Tiles use margin-right (not gap) so the duplicated list loops seamlessly
   at exactly translateX(-50%).
   ========================================================================== */
.showcase{
  position:relative;
  background:var(--shelf);
  border-top:1px solid var(--shelf-line);
  border-bottom:1px solid var(--shelf-line);
  padding:52px 0;
  overflow:hidden;
}
/* soften both edges so tiles fade in and out rather than being cut off */
.showcase::before,
.showcase::after{
  content:""; position:absolute; top:0; bottom:0; width:min(160px,14vw);
  z-index:2; pointer-events:none;
}
.showcase::before{ left:0;  background:linear-gradient(to right, var(--shelf), transparent); }
.showcase::after { right:0; background:linear-gradient(to left,  var(--shelf), transparent); }

.showcase-track{
  display:flex;
  width:max-content;
  animation:showcaseScroll 52s linear infinite;
}
.showcase:hover .showcase-track{ animation-play-state:paused; }
@keyframes showcaseScroll{ to{ transform:translateX(-50%); } }

.showcase-item{
  flex:0 0 auto;
  width:clamp(160px,15vw,210px);
  aspect-ratio:4/5;
  margin-right:20px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:6px;
  /* Warm off-white rather than pure white — echoes the paper sections and
     stops the tiles reading as harsh cut-outs against the dark band. */
  background:var(--shelf-tile);
  box-shadow:0 10px 26px -14px rgba(0,0,0,.7);
  display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
  transition:transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.showcase-item:hover,
.showcase-item:focus-visible{
  transform:translateY(-6px);
  border-color:var(--gold);
  box-shadow:0 18px 40px -18px rgba(0,0,0,.7);
}
/* Images are background-cropped in JS before they land here, so contain now
   sizes the product itself rather than the product plus its baked-in margin. */
.showcase-item img{
  width:100%; height:100%; object-fit:contain; padding:16px;
  transition:transform .5s var(--ease);
}
.showcase-item:hover img{ transform:scale(1.05); }
@media (prefers-reduced-motion: reduce){
  .showcase{ overflow-x:auto; }
  .showcase-track{ animation:none; }
}

/* ==========================================================================
   Book — scroll-driven page turn through the five sourcing steps.
   Each page owns a --page-color; JS drives rotateY from the scroll position.
   ========================================================================== */
.book{
  position:relative;
  height:500vh;                       /* 100vh sticky + 4 turns x 100vh */
  background:var(--paper);
  border-top:1px solid var(--paper-line);
  border-bottom:1px solid var(--paper-line);
}
.book-sticky{
  position:sticky; top:0;
  height:100vh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:clamp(20px,3.4vh,38px);
  overflow:hidden;
}
/* Heading and progress sit above the stage so a lifted, turning sheet
   passes behind them instead of clipping over the type. */
.book-head{ text-align:center; position:relative; z-index:70; }
.book-head h2{ font-size:clamp(26px,3.2vw,40px); }

.book-stage{
  position:relative;
  width:min(760px,88vw);
  height:min(430px,50vh);
  perspective:1900px;
  perspective-origin:56% 50%;
}
/* binding shadow down the spine edge */
.book-spine{
  position:absolute; top:-6px; bottom:-6px; left:-6px; width:30px;
  background:linear-gradient(to right, rgba(13,15,18,.26), rgba(13,15,18,0));
  border-radius:6px 0 0 6px;
  z-index:60; pointer-events:none;
}
.book-page{
  position:absolute; inset:0;
  transform-origin:left center;
  transform-style:preserve-3d;
  will-change:transform, opacity;
}
.page-face{
  position:absolute; inset:0;
  border-radius:3px 12px 12px 3px;
  backface-visibility:hidden;
  overflow:hidden;
  box-shadow:0 30px 70px -28px rgba(13,15,18,.55), 0 2px 6px rgba(13,15,18,.14);
}
.page-front{ background:var(--page-color); color:var(--ink); }
/* the reverse of the sheet — same stock, turned away from the light */
.page-back{
  transform:rotateY(180deg);
  background:var(--page-color);
  border-radius:12px 3px 3px 12px;
}
.page-back::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(to left, rgba(13,15,18,.55), rgba(13,15,18,.30));
}
.page-inner{
  position:relative; z-index:2;
  height:100%;
  padding:clamp(24px,3.6vw,44px);
  display:flex; flex-direction:column; justify-content:space-between; gap:16px;
}
.page-num, .page-tag{
  font-family:var(--font-mono); font-size:11px;
  letter-spacing:.16em; text-transform:uppercase;
  color:rgba(13,15,18,.62);
}
.page-inner h3{ font-size:clamp(24px,3.2vw,38px); max-width:15ch; }
.page-inner p{
  font-size:clamp(14px,1.25vw,17px); max-width:44ch;
  margin:12px 0 0; color:rgba(13,15,18,.78);
}
/* oversized folio number, bled off the outer corner */
.page-big{
  position:absolute; right:-.06em; bottom:-.30em;
  font-family:var(--font-display); font-size:clamp(200px,26vw,330px);
  line-height:.8; color:rgba(13,15,18,.11);
  z-index:1; pointer-events:none; user-select:none;
}
/* spine shadow + outer-edge highlight; opacity is driven by the turn */
.page-shade{
  position:absolute; inset:0; z-index:3; pointer-events:none; opacity:0;
  background:
    linear-gradient(to right, rgba(13,15,18,.46) 0%, rgba(13,15,18,0) 30%),
    linear-gradient(to left,  rgba(255,255,255,.34) 0%, rgba(255,255,255,0) 20%);
}

.book-progress{ display:flex; gap:7px; position:relative; z-index:70; }
.book-progress span{
  width:30px; height:3px; border-radius:2px;
  background:rgba(13,15,18,.16);
  transition:background .35s var(--ease), transform .35s var(--ease);
}
.book-progress span.on{ background:var(--ink); transform:scaleX(1.12); }

@media (max-width:760px){
  .book{ height:420vh; }
  .book-stage{ width:92vw; height:min(400px,52vh); perspective:1200px; }
  .page-big{ font-size:clamp(150px,40vw,240px); }
}

/* No pinning without motion: the pages become a plain stack of colour cards. */
.book--static{ height:auto; }
.book--static .book-sticky{ position:static; height:auto; overflow:visible; padding:70px 0; }
.book--static .book-stage{
  width:min(760px,88vw); height:auto; perspective:none;
  display:flex; flex-direction:column; gap:18px;
}
.book--static .book-page{ position:relative; inset:auto; transform:none !important; opacity:1 !important; }
.book--static .page-face{ position:relative; inset:auto; min-height:240px; }
.book--static .page-back,
.book--static .book-spine,
.book--static .book-progress{ display:none; }
.book--static .page-shade{ display:none; }

/* ==========================================================================
   Section headers
   ========================================================================== */
.sec-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:30px; margin-bottom:52px; flex-wrap:wrap; }
.sec-head h2{ font-size:clamp(30px,3.6vw,44px); }
.sec-head p{ max-width:40ch; color:var(--paper-dim); margin:14px 0 0; }
.bg-ink .sec-head p{ color:var(--ink-dim); }

/* ==========================================================================
   Category / product cards
   ========================================================================== */
.cat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
@media (max-width:980px){ .cat-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .cat-grid{ grid-template-columns:1fr; } }

.cat-card{
  background:var(--ink-soft);
  border:1px solid var(--ink-line);
  border-radius:var(--radius);
  padding:26px 22px 22px;
  position:relative;
  overflow:hidden;
  transition:border-color .3s, transform .3s var(--ease);
}
.cat-card:hover{ border-color:var(--gold); transform:translateY(-4px); }
.cat-card::before{
  content:"";
  position:absolute; top:0; left:0; width:0; height:2px;
  background:linear-gradient(90deg,var(--gold),var(--teal),var(--violet));
  transition:width .5s var(--ease);
}
.cat-card:hover::before{ width:100%; }
.cat-swatch{
  width:100%; aspect-ratio:4/3; border-radius:2px; margin-bottom:18px;
  position:relative; overflow:hidden;
  background:linear-gradient(150deg,var(--swatch-a,#26170a),var(--swatch-b,#0d0f12));
  display:flex; align-items:center; justify-content:center;
}
.cat-swatch::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(120deg,transparent 30%, rgba(255,255,255,.16) 46%, transparent 60%);
  background-size:250% 250%;
  animation:swatchSheen 7s ease-in-out infinite;
}
@keyframes swatchSheen{
  0%,100%{ background-position:0% 0%; }
  50%{ background-position:100% 100%; }
}
.cat-swatch .glyph{ font-family:var(--font-display); font-style:italic; font-size:34px; color:rgba(255,255,255,.75); position:relative; z-index:1; }
.cat-card h3{ font-size:19px; color:var(--ink-text); margin-bottom:6px; }
.cat-card p{ font-size:13px; color:var(--ink-dim); margin:0 0 14px; }
.cat-card .cat-link{ font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--gold); }

/* product grid (shop page) */
.filter-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:40px; }
.filter-chip{
  font-family:var(--font-mono); font-size:12px; text-transform:uppercase; letter-spacing:.06em;
  padding:9px 16px; border:1px solid var(--paper-line); border-radius:20px; color:var(--paper-dim);
  background:transparent; transition:all .25s;
}
.filter-chip.active, .filter-chip:hover{ border-color:var(--paper-text); color:var(--paper-text); }

.product-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
@media (max-width:900px){ .product-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .product-grid{ grid-template-columns:1fr; } }

.product-card{
  background:#fff; border:1px solid var(--paper-line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition:box-shadow .3s, transform .3s var(--ease);
}
.product-card:hover{ box-shadow:var(--shadow-lg); transform:translateY(-4px); }
.product-media{
  aspect-ratio:4/3; position:relative; overflow:hidden;
  background:linear-gradient(150deg,var(--swatch-a,#1c1408),var(--swatch-b,#0d0f12));
  display:flex; align-items:center; justify-content:center;
}
.product-media::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(120deg,transparent 30%, rgba(255,255,255,.18) 46%, transparent 60%);
  background-size:250% 250%; animation:swatchSheen 8s ease-in-out infinite;
}
.product-media .glyph{ font-family:var(--font-display); font-style:italic; font-size:30px; color:rgba(255,255,255,.8); z-index:1; }
/* Real product shots are on white, so the tile switches to a light ground
   and the sheen overlay is dropped — it only reads well over the gradients. */
.product-media.has-photo{ background:#fff; }
.product-media.has-photo::after{ display:none; }
.product-media img{
  width:100%; height:100%; object-fit:contain; padding:10px;
  transition:transform .5s var(--ease);
}
.product-card:hover .product-media img{ transform:scale(1.05); }
.product-tag{
  position:absolute; top:10px; left:10px; z-index:2;
  font-family:var(--font-mono); font-size:10px; letter-spacing:.06em; text-transform:uppercase;
  background:var(--ink); color:var(--gold-bright); padding:4px 8px; border-radius:2px;
}
.product-body{ padding:18px 18px 20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product-body .p-cat{ font-family:var(--font-mono); font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:var(--paper-dim); }
.product-body h3{ font-size:19px; }
.product-body .p-cn{ font-family:var(--font-mono); font-size:12px; color:var(--paper-dim); }
.product-body .p-meta{ font-size:13px; color:var(--paper-dim); margin:2px 0 8px; }
.product-foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.product-foot .p-price{ font-family:var(--font-mono); font-size:13px; color:var(--paper-text); }
.product-foot .p-price small{ display:block; color:var(--paper-dim); font-size:10px; text-transform:uppercase; letter-spacing:.05em; }
.add-btn{
  font-family:var(--font-mono); font-size:12px; text-transform:uppercase; letter-spacing:.06em;
  background:var(--ink); color:var(--ink-text); border:none; padding:10px 14px; border-radius:2px;
  transition:background .25s;
}
.add-btn:hover{ background:var(--gold); color:#171204; }
.add-btn.added{ background:var(--gold); color:#171204; }

/* ==========================================================================
   Trust stats
   ========================================================================== */
.stats-row{ display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--ink-line); border-bottom:1px solid var(--ink-line); }
.stat{ padding:34px 24px; border-right:1px solid var(--ink-line); }
.stat:last-child{ border-right:none; }
.stat b{ display:block; font-family:var(--font-display); font-size:40px; color:var(--gold-bright); font-weight:400; }
.stat span{ font-family:var(--font-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-dim); }
@media (max-width:760px){
  .stats-row{ grid-template-columns:repeat(2,1fr); }
  .stat{ border-bottom:1px solid var(--ink-line); }
}

/* ==========================================================================
   Forms — customs/ledger style
   ========================================================================== */
.form-shell{
  background:#fff; border:1px solid var(--paper-line); border-radius:6px;
  padding:44px; box-shadow:var(--shadow-lg);
}
@media (max-width:640px){ .form-shell{ padding:28px 22px; } }
.form-shell .form-title{ font-size:15px; }
.form-legend{
  font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--gold); display:block; margin:30px 0 16px; padding-top:20px; border-top:1px solid var(--paper-line);
}
.form-legend:first-child{ margin-top:0; padding-top:0; border-top:none; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.form-row.single{ grid-template-columns:1fr; }
@media (max-width:600px){ .form-row{ grid-template-columns:1fr; } }
.field label{
  display:block; font-family:var(--font-mono); font-size:11px; text-transform:uppercase;
  letter-spacing:.06em; color:var(--paper-dim); margin-bottom:7px;
}
.field .hint{ font-size:12px; color:var(--paper-dim); margin-top:5px; }
.field input, .field select, .field textarea{
  width:100%; border:1px solid var(--paper-line); border-radius:3px;
  padding:12px 13px; background:var(--paper); color:var(--paper-text);
  transition:border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--paper-text); outline:none; }
.field textarea{ resize:vertical; min-height:96px; }
.checkbox-row{ display:flex; gap:10px; align-items:flex-start; font-size:13px; color:var(--paper-dim); margin:22px 0; }
.checkbox-row input{ margin-top:3px; }
.form-note{
  font-size:12px; color:var(--paper-dim); background:var(--paper-soft); border-radius:3px;
  padding:14px 16px; margin-bottom:26px; border:1px dashed var(--paper-line);
}
.form-success{ text-align:center; padding:40px 10px; display:none; }
.form-success.show{ display:block; }

/* two-step account wizard */
.form-narrow{ max-width:580px; margin:0 auto; }
.wizard-steps{ display:flex; align-items:center; gap:14px; margin-bottom:32px; }
.wstep{ display:flex; align-items:center; gap:10px; font-size:14px; color:var(--paper-dim); white-space:nowrap; }
.wstep .num{
  width:28px; height:28px; border-radius:50%;
  background:var(--paper-soft); color:var(--paper-dim);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:13px;
  transition:background .3s, color .3s;
}
.wstep.active{ color:var(--paper-text); font-weight:600; }
.wstep.active .num{ background:var(--ink); color:var(--gold); }
.wizard-line{ flex:1; height:1px; background:var(--paper-line); }
.wpanel{ display:none; }
.wpanel.active{ display:block; }
.wizard-back{
  display:block; width:100%; margin-top:14px; padding:10px;
  background:none; border:none; color:var(--paper-dim);
  font-family:var(--font-mono); font-size:12px; letter-spacing:.06em; text-transform:uppercase;
}
.wizard-back:hover{ color:var(--paper-text); }
.form-success .stamp{
  display:inline-flex; align-items:center; justify-content:center;
  border:2px solid var(--red-stamp); color:var(--red-stamp);
  font-family:var(--font-mono); font-size:13px; letter-spacing:.1em; text-transform:uppercase;
  padding:10px 22px; border-radius:4px; transform:rotate(-4deg); margin-bottom:20px;
}

/* ==========================================================================
   Table (price list) — mono ledger
   ========================================================================== */
.ledger{ width:100%; border-collapse:collapse; font-size:14px; }
.ledger th{
  text-align:left; font-family:var(--font-mono); font-size:11px; text-transform:uppercase;
  letter-spacing:.08em; color:var(--paper-dim); padding:12px 14px; border-bottom:1px solid var(--paper-text);
}
.ledger td{ padding:16px 14px; border-bottom:1px solid var(--paper-line); vertical-align:top; }
.ledger tr:hover td{ background:var(--paper-soft); }
.ledger .num{ font-family:var(--font-mono); }
.ledger-wrap{ overflow-x:auto; border:1px solid var(--paper-line); border-radius:4px; }
.ledger-wrap .ledger{ min-width:720px; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-item{ border-bottom:1px solid var(--paper-line); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; padding:24px 0;
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  font-family:var(--font-display); font-size:19px; color:var(--paper-text);
}
.faq-q .plus{ font-family:var(--font-mono); font-size:20px; color:var(--gold); transition:transform .3s; flex-shrink:0; }
.faq-item.open .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .4s var(--ease); }
.faq-item.open .faq-a{ max-height:340px; }
.faq-a p{ padding:0 0 26px; color:var(--paper-dim); max-width:66ch; }

/* ==========================================================================
   Quote/cart page
   ========================================================================== */
.cart-table{ width:100%; border-collapse:collapse; margin-bottom:10px; }
.cart-table th{ text-align:left; font-family:var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--paper-dim); padding:10px 12px; border-bottom:1px solid var(--paper-text); }
.cart-table td{ padding:16px 12px; border-bottom:1px solid var(--paper-line); }
.cart-item{ display:flex; align-items:center; gap:14px; }
.cart-item .swatch{
  width:52px; height:52px; border-radius:3px; flex-shrink:0; overflow:hidden;
  background:linear-gradient(150deg,var(--swatch-a,#1c1408),var(--swatch-b,#0d0f12));
}
.cart-item .swatch:has(img){ background:#fff; border:1px solid var(--paper-line); }
.cart-item .swatch img{ width:100%; height:100%; object-fit:contain; padding:3px; }
.cart-item .name{ font-size:14px; }
.cart-item .cat{ font-family:var(--font-mono); font-size:11px; color:var(--paper-dim); }
.qty-input{ width:60px; padding:8px; border:1px solid var(--paper-line); border-radius:3px; font-family:var(--font-mono); text-align:center; }
.remove-btn{ font-family:var(--font-mono); font-size:11px; text-transform:uppercase; color:var(--paper-dim); background:none; border:none; }
.remove-btn:hover{ color:var(--red-stamp); }
.cart-empty{ text-align:center; padding:70px 20px; }
.cart-empty p{ color:var(--paper-dim); margin:14px 0 26px; }
.gate-note{
  border:1px dashed var(--gold); background:rgba(201,162,39,.07); border-radius:4px;
  padding:22px 24px; margin-bottom:34px; display:flex; gap:16px; align-items:flex-start;
}
.gate-note .g-ico{ font-family:var(--font-mono); color:var(--gold); font-size:20px; }
.gate-note h4{ font-family:var(--font-body); font-weight:700; font-size:14px; margin:0 0 6px; }
.gate-note p{ margin:0; font-size:13px; color:var(--paper-dim); }
.gate-note a{ color:var(--gold); text-decoration:underline; }

/* ==========================================================================
   Reveal on scroll — visible-by-default failsafe pattern
   ========================================================================== */
.reveal, .reveal-stagger > *{
  clip-path:inset(0 0 -6% 0);
  opacity:1;
  transform:none;
  transition:opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.pre, .reveal-stagger.pre > *{
  opacity:0;
  transform:translateY(20px);
}
.reveal-stagger.pre > *:nth-child(2){ transition-delay:.08s; }
.reveal-stagger.pre > *:nth-child(3){ transition-delay:.16s; }
.reveal-stagger.pre > *:nth-child(4){ transition-delay:.24s; }
@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-stagger > *{ transition:none !important; opacity:1 !important; transform:none !important; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background:var(--ink); color:var(--ink-dim); padding:70px 0 30px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:56px; }
@media (max-width:820px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{ font-family:var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-text); margin-bottom:16px; }
.footer-grid p{ font-size:13px; max-width:32ch; }
.footer-grid li{ margin-bottom:10px; font-size:13px; }
.footer-grid a:hover{ color:var(--gold); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  border-top:1px solid var(--ink-line); padding-top:26px; font-size:12px; font-family:var(--font-mono);
}

/* generic content pages */
.page-hero{ padding:64px 0 50px; }
.page-hero .eyebrow{ margin-bottom:14px; }
.page-hero h1{ font-size:clamp(34px,4.4vw,52px); }
.page-hero p{ color:var(--ink-dim); max-width:56ch; margin-top:16px; font-size:16px; }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }
@media (max-width:860px){ .two-col{ grid-template-columns:1fr; } }
