/* Type: three roles you can switch from the Type panel (js/type.js).
   --fd display (headings), --f text, --fa accent (small display lines: tunnel caps, card captions, rails, readouts, chips).
   The faces in /fonts are from the Fontshare free library (free for commercial use); the rest load from Google Fonts or the
   Fontshare API only when picked. */
@font-face{font-family:"Clash Display";src:url(../fonts/ClashDisplay-Variable.woff2) format("woff2");font-weight:200 700;font-display:swap}
@font-face{font-family:"Cabinet Grotesk";src:url(../fonts/CabinetGrotesk-Variable.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"General Sans";src:url(../fonts/GeneralSans-Variable.woff2) format("woff2");font-weight:200 700;font-display:swap}
@font-face{font-family:"Supreme";src:url(../fonts/Supreme-Variable.woff2) format("woff2");font-weight:100 800;font-display:swap}
@font-face{font-family:"Switzer";src:url(../fonts/Switzer-Variable.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Bebas Neue";src:url(../fonts/BebasNeue-Regular.woff2) format("woff2");font-weight:400;font-display:swap}

:root{--fd:var(--f);--fa:var(--f);--hc:none;--hw:500;--ht:0em;--ac:none;--at:0em}

/* display */
.tt,.kl,.d-title,.marquee-in span,.faq-h,.vlabel b{font-family:var(--fd);text-transform:var(--hc)}
.tt,.tt b,.kl,.d-title,.marquee-in span,.marquee-in b,.faq-h{font-weight:var(--hw)}
.tt{letter-spacing:calc(-.048em + var(--ht))}
.kl{letter-spacing:calc(-.045em + var(--ht))}
.d-title{letter-spacing:calc(-.05em + var(--ht))}
.marquee-in span{letter-spacing:calc(-.06em + var(--ht))}
.faq-h{letter-spacing:calc(-.035em + var(--ht))}

/* accent */
.spaced,.pc-top,.pc-bot,.pc-tr,.pc-br,.pc-sub,.eng-rail,.an span,.d-count,.chips span,.chips a,.d-rail button,.d-points li::before{font-family:var(--fa);text-transform:var(--ac)}
.pc-top,.pc-bot,.pc-tr,.pc-br,.pc-sub{letter-spacing:calc(.03em + var(--at))}
.eng-rail,.chips span,.chips a,.d-rail button{letter-spacing:var(--at)}
.an span{letter-spacing:calc(.04em + var(--at))}
.d-count{letter-spacing:calc(.06em + var(--at))}

/* the panel */
.ty-btn{position:fixed;left:16px;bottom:16px;z-index:90;width:40px;height:40px;border-radius:50%;border:1px solid rgba(17,19,24,.14);
  background:rgba(255,255,255,.72);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#111318;font:600 14px/1 "Geist",sans-serif;
  letter-spacing:-.02em;cursor:pointer;box-shadow:0 10px 30px -12px rgba(10,14,40,.35);transition:transform .4s cubic-bezier(.22,1,.36,1)}
.ty-btn:hover{transform:scale(1.08)}
.ty{position:fixed;left:16px;bottom:66px;z-index:91;width:320px;max-height:min(84vh,760px);overflow-x:hidden;overflow-y:auto;transform:translate3d(0,12px,0);opacity:0;pointer-events:none;
  padding:18px 18px 16px;border-radius:22px;background:rgba(250,250,252,.9);-webkit-backdrop-filter:blur(22px) saturate(1.4);backdrop-filter:blur(22px) saturate(1.4);
  border:1px solid rgba(17,19,24,.08);box-shadow:0 40px 80px -30px rgba(10,14,40,.45);color:#111318;font:400 13px/1.4 "Geist",sans-serif;letter-spacing:0;text-transform:none;
  transition:opacity .35s cubic-bezier(.22,1,.36,1),transform .5s cubic-bezier(.22,1,.36,1)}
.ty.on{opacity:1;pointer-events:auto;transform:none}
.ty *{font-family:"Geist",sans-serif;text-transform:none;letter-spacing:0}
.ty h4{margin:0 0 2px;font-size:15px;font-weight:600;letter-spacing:-.01em}
.ty .ty-sub{margin:0 0 14px;color:rgba(17,19,24,.55);font-size:12px}
.ty .ty-sec{margin:16px 0 8px;font-size:11px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:rgba(17,19,24,.45)}
.ty .ty-pre{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.ty .ty-pre button{min-width:0}
.ty .ty-pre button{padding:9px 10px 8px;border-radius:12px;border:1px solid rgba(17,19,24,.1);background:#fff;text-align:left;cursor:pointer;transition:border-color .3s,background .3s}
.ty .ty-pre button b{display:block;font-size:13px;font-weight:600}
.ty .ty-pre button span{display:block;font-size:10.5px;color:rgba(17,19,24,.5);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ty .ty-pre button.on{border-color:#111318;background:#111318;color:#fff}
.ty .ty-pre button.on span{color:rgba(255,255,255,.6)}
.ty label{display:block;margin:10px 0 0}
.ty label>span{display:flex;justify-content:space-between;font-size:12px;color:rgba(17,19,24,.6);margin-bottom:5px}
.ty select{width:100%;height:36px;padding:0 10px;border-radius:10px;border:1px solid rgba(17,19,24,.12);background:#fff;font-size:13px;color:#111318}
.ty input[type=range]{width:100%;accent-color:#111318}
.ty .ty-seg{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:3px;border-radius:11px;background:rgba(17,19,24,.06)}
.ty .ty-seg.two{grid-template-columns:repeat(2,1fr)}
.ty .ty-seg button{height:30px;border:0;border-radius:8px;background:none;font-size:12.5px;cursor:pointer;color:rgba(17,19,24,.7)}
.ty .ty-seg button.on{background:#fff;color:#111318;box-shadow:0 1px 4px rgba(10,14,40,.12)}
.ty .ty-row{display:flex;gap:6px;margin-top:16px}
.ty .ty-row button{flex:1;height:34px;border-radius:99px;border:1px solid rgba(17,19,24,.14);background:#fff;font-size:12.5px;cursor:pointer}
.ty .ty-row button:last-child{background:#111318;color:#fff;border-color:#111318}
.ty .ty-note{margin:10px 0 0;font-size:11.5px;color:rgba(17,19,24,.5);min-height:1.4em}
@media (max-width:700px){
  .ty-btn{left:12px;bottom:12px;width:36px;height:36px;font-size:13px}
  .ty{left:12px;right:12px;width:auto;bottom:58px;max-height:64vh}
}
