/* ============================================================
   SCARAB — scarab.city v5 (4 Oct 2026): show, and be done.
   Loaded after style.css (v4's, kept for the inner pages). Dark only.
   The home page is the store's own frames and five short lines.
   ============================================================ */
:root{ --ink:#F7F4EC; --soft:#BCB9B1; --dim5:#8C8982; --gold5:#E3C375; --line5:rgba(227,195,117,.14) }
html,body{background:#000}
body{color:var(--ink)}

/* ---------- header: the mark, the name, two links ---------- */
.nav{background:rgba(0,0,0,.74); border-bottom:1px solid rgba(255,255,255,.06)}
.nav-in{height:60px}
.nav-links{gap:2px}
.nav-links a{white-space:nowrap}
@media (max-width:480px){
  .wrap{padding:0 20px}
  .wordmark{font-size:14px; letter-spacing:.32em}
  .nav-links a{padding:8px 8px; font-size:12.5px}
}

/* ---------- the opening ---------- */
.h5{position:relative; text-align:center; padding:clamp(54px,8.5vw,108px) 0 clamp(34px,5vw,58px); overflow:hidden}
.h5::before{content:""; position:absolute; left:50%; top:-34%; width:min(1100px,150%); height:95%;
  transform:translateX(-50%); pointer-events:none;
  background:radial-gradient(closest-side, rgba(227,195,117,.11), transparent 70%)}
.h5 > *{position:relative}
.h5 .tag{font-family:"Space Grotesk",sans-serif; font-weight:500; font-size:11.5px; letter-spacing:.22em;
  text-transform:uppercase; color:var(--soft); margin:0 0 22px}
.h5 h1{font-family:"Marcellus",serif; font-weight:400; font-size:clamp(40px,6.6vw,86px); line-height:1.05;
  letter-spacing:-.012em; color:var(--ink); max-width:13ch; margin:0 auto; text-wrap:balance}
.h5 h1 em,.say5 em{font-style:normal; color:var(--gold5)}
.h5 .sub{font-size:clamp(16.5px,1.45vw,19px); line-height:1.6; color:var(--soft); max-width:47ch;
  margin:26px auto 0; text-wrap:pretty}
.h5 .cta{margin-top:30px; display:flex; justify-content:center}
.chip5{font-family:"IBM Plex Mono",monospace; font-size:12.5px; letter-spacing:.08em;
  color:var(--gold5); border:1px solid rgba(227,195,117,.45); background:rgba(227,195,117,.07);
  padding:11px 18px; border-radius:999px}
/* Apple's badge: 52 px high (Apple's minimum on screen is 40), clear space a quarter of its height (13 px) */
.badge5{display:inline-block; padding:13px; line-height:0}
.badge5 img{display:block; height:52px; width:auto}

/* ---------- the frames: the store's own pictures, in one rail ---------- */
.rail5{position:relative; padding:4px 0 clamp(44px,6.5vw,92px)}
.rail{display:flex; gap:clamp(14px,2vw,26px); overflow-x:auto; scroll-snap-type:x mandatory;
  padding:10px max(26px, calc((100vw - 1120px) / 2 + 26px)) 30px; scrollbar-width:none;
  -webkit-overflow-scrolling:touch; scroll-behavior:smooth}
.rail::-webkit-scrollbar{display:none}
.rail figure{flex:none; margin:0; width:clamp(236px,23.5vw,300px); scroll-snap-align:center}
.rail img{display:block; width:100%; height:auto; aspect-ratio:828/1792; border-radius:26px; background:#0B0A08;
  box-shadow:0 0 0 1px rgba(227,195,117,.13), 0 46px 90px -56px rgba(227,195,117,.42)}
.rail-btn{position:absolute; top:calc(50% - 46px); width:46px; height:46px; border-radius:50%; cursor:pointer;
  border:1px solid rgba(227,195,117,.4); background:rgba(0,0,0,.72); color:var(--gold5); display:none;
  align-items:center; justify-content:center; backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  transition:background .16s ease, opacity .16s ease}
.rail-btn:hover{background:rgba(227,195,117,.14)}
.rail-btn[disabled]{opacity:0; pointer-events:none}
.rail-btn.prev{left:max(14px, calc((100vw - 1120px) / 2 - 8px))}
.rail-btn.next{right:max(14px, calc((100vw - 1120px) / 2 - 8px))}
@media (hover:hover) and (min-width:900px){ .rail-btn{display:flex} }

/* ---------- what it measures: the app's own marks, one word each ---------- */
.cap5{font-family:"Space Grotesk",sans-serif; font-weight:500; font-size:11.5px; letter-spacing:.22em;
  text-transform:uppercase; color:var(--soft); margin:0 0 clamp(26px,3.4vw,42px); line-height:1.3; text-align:center}
.read5{padding:clamp(40px,6vw,84px) 0 clamp(30px,4.5vw,60px); border-top:1px solid var(--line5)}
.marks5{list-style:none; margin:0 auto; padding:0; display:grid; grid-template-columns:repeat(8,minmax(0,1fr));
  gap:clamp(30px,3.6vw,46px) 8px; max-width:1068px}
.marks5 li{display:flex; flex-direction:column; align-items:center; gap:13px; color:var(--c)}
.marks5 .ring{position:relative; width:78px; height:78px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; background:radial-gradient(closest-side, color-mix(in srgb, var(--c) 13%, transparent), transparent 78%)}
.marks5 .dots{position:absolute; inset:0; width:100%; height:100%}
.marks5 .ring > svg:not(.dots){position:relative; display:block}
.marks5 b{font-family:"Space Grotesk",sans-serif; font-weight:500; font-size:11px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--soft); text-align:center; line-height:1.35}
@media (max-width:1040px){ .marks5{grid-template-columns:repeat(4,minmax(0,1fr)); max-width:640px} }
@media (max-width:640px){
  .marks5{gap:26px 2px}
  .marks5 .ring{width:62px; height:62px}
  .marks5 .ring > svg:not(.dots){width:28px; height:28px}
  .marks5 b{font-size:9.5px; letter-spacing:.1em}
}

/* ---------- one statement ---------- */
.say5{padding:clamp(44px,7vw,108px) 0; text-align:center; border-top:1px solid var(--line5)}
.say5 p{font-family:"Marcellus",serif; font-size:clamp(27px,3.7vw,48px); line-height:1.17; color:var(--ink);
  max-width:24ch; margin:0 auto; text-wrap:balance}

/* ---------- two facts, one line ---------- */
.facts5{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(26px,5vw,84px);
  padding:clamp(36px,5vw,70px) 0; border-top:1px solid var(--line5)}
.facts5 h2{font-family:"Space Grotesk",sans-serif; font-weight:500; font-size:11.5px; letter-spacing:.22em;
  text-transform:uppercase; color:var(--gold5); margin:0 0 12px; line-height:1.3}
.facts5 p{margin:0; color:var(--soft); font-size:16.5px; line-height:1.62; max-width:44ch}
.advice5{margin:0; padding:0 0 18px; text-align:center; color:var(--dim5); font-size:14.5px}
.credit5{margin:0; padding:0 0 clamp(40px,6vw,84px); text-align:center; color:var(--dim5); font-size:11.5px; opacity:.75}
@media (max-width:700px){ .facts5{grid-template-columns:1fr} }

/* ---------- footer: the links, nothing else ---------- */
.foot5{border-top:1px solid rgba(255,255,255,.07); padding:32px 0 44px; background:#000}
.foot5 .wrap{display:flex; flex-wrap:wrap; gap:16px 28px; align-items:center; justify-content:space-between}
.foot5 nav{display:flex; flex-wrap:wrap; gap:8px 24px}
.foot5 a{color:var(--soft); font-size:14px}
.foot5 a:hover{color:var(--gold5); text-decoration:none}
.foot5 .c{font-family:"IBM Plex Mono",monospace; font-size:10.5px; letter-spacing:.2em; text-transform:uppercase; color:var(--dim5)}

/* ---------- inner pages: the same black, a little more air ---------- */
.page-head{background:none; border-bottom:1px solid var(--line5)}
.page-head h1{font-family:"Marcellus",serif; letter-spacing:-.01em}
.section{border-bottom:0}

/* ============================================================
   How it works = "How to read a card": the app's own walkthrough.
   The sample card (Thebes) with its twelve numbers; a number, or a
   line of the list, lights its part and the rest sinks a little.
   ============================================================ */
.tour5{display:grid; grid-template-columns:minmax(0,402px) minmax(0,1fr); gap:clamp(34px,6vw,84px); align-items:start}
.thebes{position:relative; width:100%; max-width:402px; border-radius:34px; background:#090806; overflow:hidden;
  color:#F2EFE7; font-family:"Hanken Grotesk",sans-serif; cursor:default;
  box-shadow:0 0 0 1px rgba(227,195,117,.16), 0 60px 110px -70px rgba(122,174,131,.55)}
.tb-wash-top{position:absolute; left:0; right:0; top:0; height:240px; pointer-events:none;
  background:linear-gradient(to bottom, rgba(122,174,131,.35), rgba(122,174,131,0))}
.tb-wash-foot{position:absolute; left:0; right:0; bottom:0; height:120px; pointer-events:none;
  background:linear-gradient(to top, rgba(122,174,131,.18), rgba(122,174,131,0))}
.tb-in{position:relative; padding:26px 34px 30px}
.thebes [data-part]{transition:opacity .25s ease; border-radius:10px}
.tb-crown{text-align:center; font-family:"Space Grotesk",sans-serif; font-weight:500; font-size:12.5px;
  letter-spacing:.2em; color:rgba(247,244,236,.66)}
.tb-name{margin-top:30px; font-family:"Space Grotesk",sans-serif; font-weight:400; font-size:28px; line-height:34px}
.tb-name i{font-family:"Hanken Grotesk",sans-serif; font-style:italic; font-size:14px; color:#B0ADA6; margin-left:11px; letter-spacing:0}
.tb-dates{position:relative; margin-top:8px; font-family:"IBM Plex Mono",monospace; font-size:12.5px; line-height:15px;
  letter-spacing:1.6px; color:#B0ADA6}
.tb-numrow{display:flex; align-items:flex-end; gap:13px; margin-top:34px}
.tb-num{position:relative; font-family:"Space Grotesk",sans-serif; font-weight:300; font-size:clamp(104px,33vw,140px);
  line-height:.82; letter-spacing:-.02em; font-variant-numeric:tabular-nums; color:#7AAE83}
.tb-wordrow{display:flex; align-items:center; gap:8px; padding-bottom:4px}
.tb-word{position:relative; font-family:"Space Grotesk",sans-serif; font-weight:500; font-size:12px; line-height:14px;
  letter-spacing:.22em; color:#7AAE83}
.tb-arrow{position:relative; display:inline-flex; align-items:center}
.tb-temp{position:relative; margin-top:34px}
.tb-temprow{display:flex; align-items:center; gap:11px; height:26px}
.tb-temprow .t{font-family:"Space Grotesk",sans-serif; font-size:21px; line-height:26px}
.tb-temprow .t small{font-size:15px; color:#B0ADA6; margin:0 6px}
.tb-temprow b{font-family:"Space Grotesk",sans-serif; font-weight:600; font-size:15px; letter-spacing:.16em}
.tb-wital{padding:3px 0 0 32px; font-style:italic; font-size:14px; line-height:18px; color:#D2CEC7}
.tb-row{position:relative; display:flex; gap:11px; margin-top:22px}
.tb-row.tb-fest{margin-top:14px}
.tb-row.tb-place{margin-top:26px}
.tb-row > svg{flex:none; width:21px; margin-top:3px}
.tb-row p{margin:0; flex:1; min-width:0; font-size:16px; line-height:25px; color:#C0BDB5; text-wrap:pretty}
.tb-row p b{font-family:"Space Grotesk",sans-serif; font-weight:500; font-size:14px; letter-spacing:.15em; color:#F2EFE7; margin-right:10px}
.tb-row p strong{font-weight:600; color:#CDB77E}
.tb-line{position:relative; margin:16px 0 0 32px; font-size:16px; line-height:25px; color:#C0BDB5; text-wrap:pretty}
.tb-foot{display:flex; justify-content:space-between; align-items:center; margin-top:38px}
.tb-read{position:relative; display:flex; align-items:center; gap:9px; font-size:13.5px; line-height:17px; color:#C0BDB5}
.tb-save{position:relative; display:inline-flex; color:rgba(247,244,236,.72)}

/* the twelve numbers */
.pin{position:absolute; left:-27px; top:50%; translate:0 -50%; width:20px; height:20px; padding:0; border-radius:50%;
  border:1.5px solid #E3C375; background:#E3C375; color:#090806; cursor:pointer; z-index:2;
  font-family:"Space Grotesk",sans-serif; font-weight:600; font-size:11px; line-height:1; letter-spacing:0;
  display:flex; align-items:center; justify-content:center; transition:scale .2s ease, box-shadow .2s ease}
.pin::after{content:""; position:absolute; inset:-12px}
.pin:hover,.pin.on{scale:1.14; box-shadow:0 0 0 4px rgba(227,195,117,.24)}
.tb-row .pin,.tb-line .pin{top:12.5px}
.tb-line .pin{left:-59px}
.tb-temp .pin{top:13px}
.pin.pin-below{left:50%; top:calc(100% + 17px); translate:-50% -50%}
.pin.pin-right{left:calc(100% + 17px)}
.pin.pin-above{left:50%; top:-17px; translate:-50% -50%}
.pin.pin-edge{left:auto; right:-27px}

/* a part lit: the rest sinks to .62, never out of reading */
.thebes.touring [data-part]{opacity:.62}
.thebes.touring [data-part].lit{opacity:1; outline:1.5px solid #E3C375; outline-offset:6px;
  box-shadow:0 0 0 11px rgba(227,195,117,.14)}

/* the words, on the card, clear of what they explain */
.tb-sheet{position:absolute; left:12px; right:12px; z-index:3; box-sizing:border-box; padding:14px 18px 16px 20px;
  border-radius:22px; background:#12151D; border:1px solid rgba(255,255,255,.09); box-shadow:0 18px 44px rgba(0,0,0,.5);
  display:flex; flex-direction:column; gap:6px}
.tb-sheet[hidden]{display:none}
.tb-sheet[data-at="bottom"]{bottom:20px}
.tb-sheet[data-at="top"]{top:56px}
.tb-sheet[data-at="mid"]{top:300px}
.tb-sheet .h{display:flex; justify-content:space-between; align-items:center; font-size:13px; color:#B0ADA6}
.tb-sheet .h button{border:0; background:none; color:#B0ADA6; font-size:22px; line-height:1; width:36px; height:36px;
  margin:-8px -10px -8px 0; cursor:pointer; border-radius:50%}
.tb-sheet .h button:hover{color:#E3C375; background:rgba(227,195,117,.16)}
.tb-sheet .t{font-size:16px; line-height:22px; font-weight:600; color:#F2EFE7}
.tb-sheet p{margin:0; font-size:15px; line-height:21px; color:#C0BDB5; text-wrap:pretty}
.tb-sheet .n{align-self:flex-end; margin-top:8px; border:0; min-height:42px; padding:0 22px; border-radius:22px;
  background:#E3C375; color:#090806; font-family:inherit; font-size:15.5px; font-weight:600; cursor:pointer}
.tb-sheet .n:hover{filter:brightness(1.1)}

/* the same twelve, as a list to read */
.steps5{list-style:none; margin:0; padding:0; counter-reset:step; border-top:1px solid var(--line5)}
.steps5 li{position:relative; padding:15px 12px 15px 46px; border-bottom:1px solid var(--line5); cursor:pointer;
  counter-increment:step; transition:background .16s ease}
.steps5 li::before{content:counter(step); position:absolute; left:6px; top:16px; width:22px; height:22px;
  box-sizing:border-box; border-radius:50%; border:1.5px solid rgba(227,195,117,.55); color:var(--gold5);
  font-family:"Space Grotesk",sans-serif; font-weight:600; font-size:11px; line-height:1;
  display:flex; align-items:center; justify-content:center; transition:background .16s ease, color .16s ease}
.steps5 li:hover,.steps5 li.on{background:rgba(227,195,117,.07)}
.steps5 li.on::before,.steps5 li:hover::before{background:var(--gold5); color:#090806}
.steps5 li:focus-visible{outline:2px solid var(--gold5); outline-offset:-2px}
.steps5 b{display:block; font-weight:600; font-size:16px; line-height:1.4; color:var(--ink)}
.steps5 span{display:block; margin-top:2px; color:var(--soft); font-size:15.5px; line-height:1.5}
.end5{margin:clamp(34px,5vw,60px) 0 0; text-align:center; color:var(--soft); font-size:16px}
.end5 b{display:block; font-family:"Marcellus",serif; font-weight:400; font-size:clamp(24px,3vw,34px); color:var(--ink); margin-bottom:8px}
@media (max-width:900px){
  .tour5{grid-template-columns:1fr; justify-items:center}
  .steps5{width:100%; max-width:560px}
}
@media (max-width:420px){
  .tb-in{padding:24px 30px 28px}
  .pin{left:-24px} .tb-line .pin{left:-56px} .pin.pin-edge{right:-24px}
  /* a narrow phone: the number a little smaller, and the arrow's number above it, so nothing leaves the card */
  .tb-num{font-size:29vw}
  .tb-wordrow{gap:7px}
  .pin.pin-right{left:50%; top:-17px; translate:-50% -50%}
}

/* ---------- How it works: the app's own "How SCARAB works" (24 Oct 2026) ---------- */
.how5{padding:clamp(48px,7vw,96px) 0 clamp(56px,8vw,110px)}
.how5 .wrap{max-width:700px}
.how5 h1{font-family:"Marcellus",serif; font-weight:400; font-size:clamp(34px,4.4vw,52px); line-height:1.1; color:var(--ink); margin:0 0 30px}
.how5 p{margin:0 0 20px; color:var(--soft); font-size:17.5px; line-height:1.7; text-wrap:pretty}
.how5 .how-lede{font-size:clamp(20px,2vw,24px); line-height:1.45; color:var(--ink); margin-bottom:30px}
.how5 b.lead{color:var(--ink); font-weight:600}
.how5 strong{color:var(--gold5); font-weight:600}

/* ---------- the scale: the founder's picture of 24 Oct 2026, in the page's own type (it took "The card"'s place) ---------- */
.scale5{padding:clamp(44px,6.5vw,96px) 0 clamp(50px,7vw,104px); border-top:1px solid var(--line5); text-align:center}
.scale5 .cap5{margin-bottom:clamp(14px,1.8vw,22px)}
.scale5 h2{font-family:"Marcellus",serif; font-weight:400; font-size:clamp(32px,4.6vw,60px); line-height:1.1;
  letter-spacing:-.01em; color:var(--ink); margin:0 auto clamp(42px,6vw,84px); text-wrap:balance}
.scale5 h2 em{font-style:normal; color:var(--gold5)}
.meter5{max-width:1000px; margin:0 auto}
.bands5{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr))}
.bands5 li{color:var(--c)}
.bands5 b{display:block; font-family:"Space Grotesk",sans-serif; font-weight:500; font-size:13.5px; line-height:1;
  letter-spacing:.2em; padding:0 0 16px .2em; text-transform:uppercase}
.bands5 li::after{content:""; display:block; height:14px; background:var(--c)}
.bands5 li:first-child::after{border-radius:7px 0 0 7px}
.bands5 li:last-child::after{border-radius:0 7px 7px 0}
.ticks5{position:relative; height:15px; margin-top:13px; font-family:"IBM Plex Mono",monospace; font-size:15px; line-height:1; color:var(--soft)}
.ticks5 span{position:absolute; top:0; left:calc(var(--i) * 10%); transform:translateX(-50%)}
.means5{margin:clamp(36px,5vw,64px) auto 0; max-width:62ch; color:var(--soft); font-size:clamp(17px,1.8vw,21px); line-height:1.6; text-wrap:balance}
.means5 b{font-weight:400; color:var(--ink)}
@media (max-width:640px){
  .scale5 .cap5{letter-spacing:.14em}
  .bands5 b{font-size:9.5px; letter-spacing:.08em; padding:0 0 11px .08em}
  .bands5 li::after{height:10px}
  .bands5 li:first-child::after{border-radius:5px 0 0 5px}
  .bands5 li:last-child::after{border-radius:0 5px 5px 0}
  .ticks5{font-size:11px; margin-top:10px}
}
