/* GARLIC homepage — four full-screen sections.
   Section layout/snap is owned by fast-snap.js; this file only styles the inside
   of each section. Carousel geometry (stage heights, shell offset, node sizes)
   is coupled to pose() in pair-explainer.js; change them together. */

.meld-snap-track>section{box-sizing:border-box}

/* ========== 01 · Originals (pair carousel) ========== */

.pair-explainer{
  height:100%;
  min-height:100%;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  padding:clamp(52px,8vh,88px) var(--gutter) clamp(24px,4vh,44px);
  overflow:hidden;
}

.vamp-head{text-align:center;position:relative;z-index:4}
.vamp-head h2{
  margin:0;
  font-size:clamp(40px,5.9vw,88px);
  line-height:.9;
  color:var(--ivory);
}
.vamp-head h2 span{color:var(--green-hi)}

.roulette-shell{
  position:relative;
  width:100%;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
  touch-action:pan-y;
}

.roulette-stage{
  position:relative;
  width:100%;
  height:100%;
  min-height:360px;
  overflow:visible;
}

.pair-wheel-item{
  position:absolute;
  left:50%;
  top:50%;
  width:min(760px,74vw);
  opacity:0;
  transform:translate(-50%,-50%) scale(.32);
  will-change:transform,opacity;
  pointer-events:none;
  user-select:none;
  -webkit-user-select:none;
}
.pair-wheel-item.slot-current{opacity:1;z-index:5;pointer-events:auto;transform:translate(-50%,-50%) translateY(22px)}
.pair-wheel-item.slot-prev,.pair-wheel-item.slot-next{pointer-events:auto}

.roulette-pair{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:clamp(18px,4vw,48px);
}
.roulette-pair.standalone-pair{display:flex;justify-content:center}

.roulette-half{display:flex;flex-direction:column;align-items:center;min-width:0}
.roulette-half>strong{
  margin-bottom:18px;
  font:800 clamp(20px,2.5vw,34px)/1 var(--f-sans);
  font-stretch:116%;
  letter-spacing:-.02em;
  white-space:nowrap;
}
.roulette-half>small{
  margin-top:16px;
  color:var(--ink-3);
  font:500 10px/1 var(--f-mono);
  letter-spacing:.14em;
  white-space:nowrap;
}

/* Coin nodes: a token disc inside a hairline registration ring. */
.roulette-node{
  position:relative;
  width:clamp(140px,16vw,196px);
  height:clamp(140px,16vw,196px);
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--bg-2);
  box-shadow:0 0 0 1px var(--rule-strong),0 0 0 9px var(--bg),0 0 0 10px var(--rule-green);
}
.roulette-node img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.roulette-node.asset{background:var(--ivory)}
.roulette-node.asset img{width:60%;height:60%;object-fit:contain;border-radius:0}
.roulette-node.eth img{width:44%;height:62%}

.roulette-node.text-coin b,
.roulette-node.text-asset b{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  border-radius:50%;
  font:800 clamp(30px,3.8vw,52px)/1 var(--f-sans);
  font-stretch:112%;
  letter-spacing:-.03em;
  color:var(--green-hi);
}
.roulette-node.text-coin{background:var(--bg-2)}
.roulette-node.text-asset{background:var(--ivory)}
.roulette-node.text-asset b{color:var(--bg)}

/* Per-coin art stand-ins (approximate each project's own colours). */
.roulette-node b[data-len="3"]{font-size:clamp(24px,2.9vw,40px)}
.roulette-node b[data-len="4"]{font-size:clamp(20px,2.3vw,32px)}
.roulette-node b[data-len="5"]{font-size:clamp(17px,1.9vw,27px)}

.coin-garlic{background:#11160d}
.coin-pons{background:#f1f1ec}
.coin-pons b{color:#879985!important}
.coin-stonk{background:#0c7181}
.coin-stonk b{color:#9fd6db!important;font-weight:600!important;font-stretch:100%!important;text-transform:lowercase;font-size:clamp(22px,2.8vw,34px)!important}
.coin-zcat{background:linear-gradient(145deg,#c99972,#72513e)}
.coin-zcat b{color:#2b1d17!important}
.coin-si{background:linear-gradient(145deg,#172d68,#101628)}
.coin-si b{color:var(--ivory)!important}
.roulette-node.asset.spyx{background:#2146ff}
.roulette-node.asset.spyx b{color:#fff;font-stretch:100%;font-size:clamp(22px,2.6vw,32px)}

.roulette-slash{
  color:var(--green);
  font:300 clamp(64px,7vw,104px)/1 var(--f-sans);
  font-stretch:75%;
  transform:translateY(14px);
}

.roulette-explainer{
  width:min(720px,100%);
  margin:0 auto;
  padding-top:16px;
  border-top:1px solid var(--rule);
  text-align:center;
}
.launch-key-row{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
  font:500 11px/1 var(--f-mono);
  letter-spacing:.06em;
}
.launch-key-row span{color:var(--ink-3);text-transform:uppercase;letter-spacing:.14em;font-size:10px}
.launch-key-row code{
  padding:5px 8px;
  border:1px solid var(--rule-green);
  color:var(--green-hi);
  font:inherit;
}
.roulette-explainer p{
  margin:0;
  color:var(--ink-2);
  font-size:clamp(14px,1.3vw,17px);
  line-height:1.5;
  min-height:3em;
}

/* ========== 02 · Mechanism (story demo) ========== */

.mechanism-story{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:clamp(22px,4vh,44px);
  padding:clamp(48px,7vh,72px) var(--gutter) clamp(24px,4vh,44px);
}
.mechanism-story-head,.story-demo{width:min(760px,100%)}
.mechanism-story-head h2{margin:0;font-size:clamp(44px,6.2vw,88px)}
.mechanism-story-head h2 span{color:var(--green-hi)}
.mechanism-story-head p{margin:14px 0 0;color:var(--ink-2);font-size:15px}

.story-demo{border-top:1px solid var(--rule-strong)}
.story-step{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:16px;
  align-items:center;
  min-height:122px;
  padding:16px 0;
  border-bottom:1px solid var(--rule);
  opacity:.22;
  transition:opacity .3s ease;
}
.story-step.active{opacity:1}
.story-step.done{opacity:.45}

.story-num{align-self:start;padding-top:2px;color:var(--green);font:500 12px/1 var(--f-mono);letter-spacing:.08em}
.story-copy{min-width:0}
.story-copy small{
  display:block;
  margin-bottom:10px;
  color:var(--ink-3);
  font:500 10px/1 var(--f-mono);
  letter-spacing:.14em;
  text-transform:uppercase;
}
.story-copy small i{font-style:normal;color:var(--ink-3);opacity:.7;margin-left:6px}

.type-field{
  display:flex;
  align-items:center;
  height:52px;
  font:800 clamp(34px,4.4vw,52px)/1 var(--f-sans);
  font-stretch:116%;
  letter-spacing:-.03em;
}
.type-cursor{width:3px;height:.85em;margin-left:6px;background:var(--green);animation:cursorBlink .7s steps(1) infinite}

.pair-options{display:flex;gap:8px;min-height:52px;align-items:center}
.pair-choice{
  height:44px;
  min-width:96px;
  padding:0 14px;
  display:grid;
  place-items:center;
  border:1px solid var(--rule-strong);
  color:var(--ink-2);
  font:500 13px/1 var(--f-mono);
  letter-spacing:.04em;
  transition:border-color .25s ease,color .25s ease,background .25s ease,opacity .25s ease;
}
.pair-choice.selected{border-color:var(--green);color:var(--bg);background:var(--green-hi)}
.pair-choice.unchosen{opacity:.35}

.locked-combo{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px}
.locked-combo strong{font-size:clamp(30px,4.2vw,50px);white-space:nowrap}
.locked-combo strong em{font-style:normal;font-weight:300;font-stretch:75%;color:var(--green)}
.story-step-3 p{margin:8px 0 0;color:var(--ink-2);font-size:13px}

/* Lock = a registry stamp, not a cartoon padlock. */
.lock-stamp{
  flex:0 0 auto;
  display:grid;
  gap:5px;
  padding:9px 12px 8px;
  border:1.5px solid var(--green-hi);
  color:var(--green-hi);
  text-align:center;
  transform:rotate(-4deg) scale(1.25);
  opacity:0;
}
.lock-stamp b{font:600 14px/1 var(--f-mono);letter-spacing:.2em}
.lock-stamp code{font:400 10px/1 var(--f-mono);color:var(--green);letter-spacing:.02em}
.story-step-3.locked .lock-stamp{animation:stamp .26s var(--ease) forwards}

@keyframes stamp{to{opacity:1;transform:rotate(-4deg) scale(1)}}
@keyframes cursorBlink{50%{opacity:0}}

/* ========== 03 · Launch guard ========== */

.anti-dev{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(48px,7vh,72px) var(--gutter) clamp(24px,4vh,44px);
}
.anti-dev-wrap{width:min(960px,100%);margin:0 auto}
.anti-dev h2{margin:0;font-size:clamp(54px,8vw,108px);line-height:.86}
.anti-dev h2 span{color:var(--green-hi)}
.anti-dev-lead{max-width:640px;margin:20px 0 28px;color:var(--ink-2);font-size:clamp(14px,1.5vw,17px);line-height:1.5}

.anti-dev-flow{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--rule-strong);
}
.anti-dev-step{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:8px;
  padding:18px 20px 20px 0;
}
.anti-dev-step+.anti-dev-step{padding-left:20px;border-left:1px solid var(--rule)}
.anti-dev-step>b{color:var(--green);font:500 12px/1.4 var(--f-mono);letter-spacing:.08em}
.anti-dev-step strong{display:block;margin-bottom:6px;font:700 15px/1.2 var(--f-sans);font-stretch:108%}
.anti-dev-step span{display:block;color:var(--ink-2);font-size:13px;line-height:1.45}

.anti-dev-rule{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:16px 0;
  border-top:1px solid var(--rule-strong);
  border-bottom:1px solid var(--rule-strong);
}
.anti-dev-rule span{color:var(--green-hi);font-size:clamp(15px,1.6vw,20px);line-height:1.05}
.anti-dev-rule strong{color:var(--ivory);font-weight:500;font-size:13px;text-align:right}

/* ========== 04 · Protocol ========== */

.meld-protocol{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(48px,7vh,72px) var(--gutter) clamp(24px,4vh,44px);
}
/* Depth: a lit "table" under the fee boards and a horizon rule. */
.meld-protocol:after{
  content:"";
  position:absolute;
  left:-10%;
  right:-10%;
  bottom:-42%;
  height:60%;
  z-index:-1;
  pointer-events:none;
  background:radial-gradient(50% 50% at 50% 0%,rgba(184,201,106,.11),transparent 70%);
  border-top:1px solid rgba(184,201,106,.14);
}

.protocol-board{position:relative;width:min(880px,100%);margin:0 auto}
.protocol-title{text-align:center;margin-bottom:28px}
.protocol-title h2{margin:0 0 14px;font-size:clamp(48px,6.6vw,92px)}
.protocol-title p{margin:0;color:var(--ink-2);font:500 13px/1 var(--f-mono);letter-spacing:.08em}
.protocol-title p strong{color:var(--green-hi);font-weight:500}

.protocol-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.protocol-single{grid-template-columns:1fr;max-width:640px;margin:0 auto}
.protocol-box{
  padding:20px 22px 12px;
  border:1px solid var(--rule-strong);
  background:linear-gradient(180deg,rgba(21,26,17,.92),rgba(12,15,9,.92));
  box-shadow:0 30px 60px -30px rgba(0,0,0,.9),inset 0 1px 0 rgba(243,238,223,.05);
}
.protocol-box h3{
  margin:0 0 6px;
  padding-bottom:14px;
  border-bottom:1px solid var(--rule-strong);
  font:800 clamp(20px,2.3vw,28px)/1 var(--f-sans);
  font-stretch:116%;
  letter-spacing:-.02em;
  text-transform:uppercase;
}
.protocol-line{
  display:grid;
  grid-template-columns:72px 1fr;
  grid-template-rows:auto 2px;
  align-items:baseline;
  column-gap:12px;
  row-gap:8px;
  padding:12px 0 10px;
  border-bottom:1px solid var(--rule);
}
.protocol-line:last-child{border-bottom:0}
.protocol-line strong{font:500 clamp(20px,2.2vw,26px)/1 var(--f-mono);color:var(--green-hi);letter-spacing:-.02em}
.protocol-line span{color:var(--ivory);font-size:13px;font-weight:500}
.protocol-line i{
  grid-column:1/-1;
  height:2px;
  background:linear-gradient(90deg,var(--green) calc(var(--share)*1%),var(--rule) 0);
}
.protocol-note{display:flex;justify-content:center;margin:20px 0 0}

/* ========== Mobile ========== */

@media(max-width:700px){
  .sec-index{font-size:9px}

  /* Carousel: offsets pair with pose() mobile values in pair-explainer.js. */
  .pair-explainer{padding:44px 16px 22px}
  .vamp-head h2{font-size:9.6vw;line-height:.92}
  .roulette-shell{transform:translateY(-54px)}
  .roulette-stage{min-height:390px}
  .pair-wheel-item{width:76vw}
  .roulette-pair{gap:6px}
  .roulette-half>strong{font-size:clamp(16px,4.6vw,21px);margin-bottom:12px}
  .roulette-half>small{margin-top:12px;font-size:8px;letter-spacing:.12em}
  .roulette-node{
    width:min(24vw,118px);
    height:min(24vw,118px);
    box-shadow:0 0 0 1px var(--rule-strong),0 0 0 6px var(--bg),0 0 0 7px var(--rule-green);
  }
  .roulette-node b[data-len="3"]{font-size:6.4vw}
  .roulette-node b[data-len="4"]{font-size:5vw}
  .roulette-node b[data-len="5"]{font-size:4.1vw}
  .roulette-slash{font-size:15vw;transform:translateY(8px)}
  .roulette-explainer{padding-top:14px}
  .launch-key-row{margin-bottom:8px}
  .roulette-explainer p{font-size:13.5px}

  .mechanism-story{justify-content:center;gap:22px;padding:48px 16px 24px}
  .mechanism-story-head h2{font-size:11.4vw}
  .mechanism-story-head p{font-size:13.5px;margin-top:10px}
  .story-step{grid-template-columns:36px 1fr;gap:10px;min-height:112px;padding:14px 0}
  .type-field{height:44px;font-size:9vw}
  .pair-options{gap:6px}
  .pair-choice{min-width:0;flex:1;height:42px;padding:0 6px;font-size:12px}
  .locked-combo{gap:8px 10px;flex-wrap:wrap;justify-content:flex-start}
  .locked-combo strong{font-size:7.4vw}
  .lock-stamp{padding:7px 8px 6px}
  .lock-stamp b{font-size:11px;letter-spacing:.16em}
  .lock-stamp code{font-size:8.5px}
  .story-step-3 p{font-size:12px}

  .anti-dev{padding:48px 16px 24px}
  .anti-dev h2{font-size:14vw}
  .anti-dev-lead{font-size:14px;margin:16px 0 20px}
  .anti-dev-flow{grid-template-columns:1fr}
  .anti-dev-step,.anti-dev-step+.anti-dev-step{
    grid-template-columns:36px 1fr;
    padding:13px 0;
    border-left:0;
    border-bottom:1px solid var(--rule);
  }
  .anti-dev-step:last-child{border-bottom:0}
  .anti-dev-step strong{font-size:14px;margin-bottom:3px}
  .anti-dev-step span{font-size:12.5px}
  .anti-dev-rule{flex-direction:column;align-items:flex-start;gap:8px;padding:14px 0}
  .anti-dev-rule span{font-size:15px}
  .anti-dev-rule strong{text-align:left;font-size:12.5px}

  .meld-protocol{padding:48px 16px 24px}
  .protocol-title{margin-bottom:22px}
  .protocol-title h2{font-size:12.4vw;margin-bottom:12px}
  .protocol-title p{font-size:11px}
  .protocol-columns{gap:8px}
  .protocol-box{padding:14px 12px 6px}
  .protocol-box h3{font-size:4.6vw;padding-bottom:11px}
  .protocol-line{grid-template-columns:1fr;grid-template-rows:auto auto 2px;row-gap:6px;padding:10px 0 9px}
  .protocol-line strong{font-size:6vw}
  .protocol-line span{font-size:11.5px}
  .protocol-note{font-size:9px;letter-spacing:.06em;white-space:normal;text-align:center}
}

/* Short phones (iPhone SE / mini, Safari with toolbars). */
@media(max-width:700px) and (max-height:760px){
  .pair-explainer{padding-top:38px}
  .vamp-head h2{font-size:8.8vw}
  .roulette-shell{transform:translateY(-34px)}
  .roulette-stage{min-height:280px}
  .roulette-node{width:min(24vw,104px);height:min(24vw,104px)}
  .roulette-explainer p{font-size:12px}

  .mechanism-story{gap:14px;padding-top:40px}
  .story-step{min-height:96px;padding:10px 0}
  .type-field{height:38px;font-size:8vw}

  .anti-dev-lead{font-size:13px;margin:12px 0 14px}
  .anti-dev-step,.anti-dev-step+.anti-dev-step{padding:10px 0}
  .anti-dev-step span{font-size:12px}

  .protocol-title{margin-bottom:16px}
  .protocol-line{padding:8px 0 7px}
}

/* ---------- First-screen call to action ---------- */

.hero-actions{display:flex;justify-content:center;gap:8px;margin-top:18px}
.hero-actions .btn{height:46px;min-width:150px;justify-content:space-between;padding:0 16px}
.hero-launch{min-width:220px!important}

/* Self-hosted art for the example coins (no third-party image hosts). */
.coin-ai{background:radial-gradient(circle at 34% 30%,#3a4a2a,#151b10 70%)}
.coin-ai b{color:var(--ivory)!important;font-stretch:125%!important}
.roulette-node.zec{background:#141109}
.roulette-node.zec img{width:62%;height:62%}

@media(max-width:700px){
  .hero-actions{margin-top:12px;gap:6px}
  .hero-actions .btn{height:44px;min-width:0;flex:1;font-size:11px;padding:0 12px}
  .hero-launch{flex:1.6!important;min-width:0!important}
}
@media(max-width:700px) and (max-height:760px){
  .hero-actions{margin-top:8px}
  .hero-actions .btn{height:40px}
}
@media(max-width:380px){
  .hero-actions .long{display:none}
}

/* ========== 02 · Defense (vamp animation) ========== */

.vamp-defense{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  padding:clamp(52px,8vh,80px) var(--gutter) clamp(20px,3.5vh,36px);
  overflow:hidden;
}
.defense-head{text-align:center;position:relative;z-index:2}
.defense-head h2{margin:0;font-size:clamp(36px,5.4vw,80px);line-height:.9}
.defense-head h2 span{color:var(--green-hi)}
.defense-head p{max-width:520px;margin:14px auto 0;color:var(--ink-2);font-size:clamp(13.5px,1.3vw,16px);line-height:1.5}

.defense-stage{position:relative;min-height:0;margin:8px 0}
.defense-stage canvas{display:block;width:100%;height:100%;touch-action:pan-y;cursor:crosshair;-webkit-tap-highlight-color:transparent}

.defense-stats{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(18px,4vw,48px);
  padding-top:14px;
  border-top:1px solid var(--rule);
}
.defense-stats div{text-align:center}
.defense-stats span{display:block;margin-bottom:6px;color:var(--ink-3);font:500 10px/1 var(--f-mono);letter-spacing:.14em;text-transform:uppercase}
.defense-stats strong{font:500 clamp(18px,2vw,24px)/1 var(--f-mono);color:var(--green-hi)}
.defense-hint{margin:0;color:var(--ink-3);font:500 10px/1 var(--f-mono);letter-spacing:.12em;text-transform:uppercase}

@media(max-width:700px){
  .vamp-defense{padding:46px 16px 18px}
  .defense-head h2{font-size:10.4vw}
  .defense-head p{font-size:13px;margin-top:10px}
  .defense-stats{gap:18px;padding-top:12px}
  .defense-hint{display:none}
}
@media(max-width:700px) and (max-height:760px){
  .defense-head p{display:none}
}
.protocol-title .protocol-sol{display:block;margin-top:4px;font-size:.78em;letter-spacing:.08em;color:var(--ink-3)}

/* Hero subline: the three promises, small enough to keep the first screen intact. */
.vamp-sub{margin:10px 0 0;font:500 clamp(11px,1.15vw,14px)/1.45 var(--f-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
.vamp-sub b{color:var(--green-hi);font-weight:600}

