/* Amber · look C: smooth illustrated strata, one warm amber, Inter Tight. Every colour is a token. */
:root {
  --ground: #161011; --ground-2: #1C1513; --card: #211917; --card-2: #2A201C;
  --line: rgba(243, 235, 221, .10); --line-2: rgba(243, 235, 221, .16);
  --text: #F3EBDD; --muted: #A39A8E; --faint: #7A7066;
  --amber: #F2A23A; --honey: #FFD27A; --amber-d: #B9661C; --lava: #FF6A2B;
  --umber: #5A3D2B; --brown: #3E2C22; --slate: #3B424C; --charcoal: #242127;
  --head: 'Inter Tight', system-ui, sans-serif; --body: 'Inter', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1); --pop: cubic-bezier(.3, 1.35, .5, 1);
  --pad: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--ground); color: var(--text); font: 400 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #1A1008; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 6px; }

/* grain over everything, very light */
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 30; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  background: linear-gradient(var(--ground) 55%, rgba(22, 16, 17, .0)); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand .mark { width: 26px; height: 26px; }
.brand .word { font: 800 25px/1 var(--head); letter-spacing: -.05em; }

/* ---------- buttons (bevel + a press edge, like a game) ---------- */
.btn { --h: 54px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 22px;
  border-radius: 15px; border: 0; font: 700 16px/1 var(--head); letter-spacing: -.01em; text-decoration: none; cursor: pointer; color: var(--text);
  transition: transform .12s linear, box-shadow .12s linear, filter .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(2px); }
.btn-amber { color: #1A1008; background: linear-gradient(180deg, #FFD585 0%, #F5A93E 52%, #E8902A 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(120, 60, 10, .35), 0 4px 0 #8E4D14, 0 14px 30px -12px rgba(242, 162, 58, .65); }
.btn-amber:active { box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), 0 2px 0 #8E4D14, 0 10px 22px -12px rgba(242, 162, 58, .6); }
.btn-amber:hover { filter: brightness(1.05); }
.btn-ghost { background: rgba(243, 235, 221, .06); box-shadow: inset 0 0 0 1px var(--line-2), 0 3px 0 rgba(0, 0, 0, .35); }
.btn-sm { --h: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn-xs { --h: 32px; padding: 0 12px; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- hero ---------- */
.hero { position: relative; }
.scene { position: relative; height: 470px; margin-top: -58px; overflow: hidden; touch-action: pan-y; isolation: isolate; }
.scene svg.wall { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud { position: absolute; top: 66px; z-index: 3; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 10px;
  background: rgba(22, 16, 17, .72); box-shadow: inset 0 0 0 1px var(--line-2), 0 3px 0 rgba(0, 0, 0, .35); backdrop-filter: blur(6px);
  font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.hud-l { left: 12px; }
.hud-r { right: 12px; }
.hud .k { color: var(--muted); }
.hud .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.hud .dot.on { background: #6FD08C; box-shadow: 0 0 0 3px rgba(111, 208, 140, .2); }
.hud .dot.warn { background: var(--amber); }
.toast { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 7px 12px 7px 7px;
  border-radius: 14px; background: rgba(22, 16, 17, .82); box-shadow: inset 0 0 0 1px var(--line-2), 0 4px 0 rgba(0, 0, 0, .35); backdrop-filter: blur(6px);
  font: 600 13px/1.3 var(--body); opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .45s var(--pop); }
.toast.in { opacity: 1; transform: none; }
.toast img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; flex: none; background: var(--ground); }
.toast small { display: block; font: 500 10.5px/1.3 var(--mono); color: var(--muted); letter-spacing: .02em; }

.hero-copy { position: relative; z-index: 2; padding: 10px var(--pad) 40px; background: linear-gradient(#1C1A20, #1E1A1E); }
.eyebrow { display: flex; align-items: center; gap: 8px; font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(242, 162, 58, .22); }
h1 { margin-top: 13px; font: 800 41px/.98 var(--head); letter-spacing: -.05em; }
h1 em, h2 em { font-style: normal; color: var(--amber); }
.lede { margin-top: 13px; font-size: 15.5px; color: var(--muted); max-width: 34ch; }
.cta-row { margin-top: 20px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.fine { margin-top: 12px; font: 500 11px/1.4 var(--mono); color: var(--faint); }

/* ---------- layers (sections sit in deeper and deeper rock) ---------- */
/* Each section is a deeper layer of rock: its own colour, a wavy top edge, a faint highlight and pebbles. */
.layer { --top: #2E231D; --bot: #261D18; position: relative; padding: 70px 0 72px; background: linear-gradient(var(--top), var(--bot)); }
.layer::before { content: ''; position: absolute; left: 0; right: 0; top: -21px; height: 22px; background: var(--top); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'><path d='M0 14 C 70 2, 130 4, 200 12 S 330 22, 400 8 L400 22 L0 22 Z'/></svg>") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'><path d='M0 14 C 70 2, 130 4, 200 12 S 330 22, 400 8 L400 22 L0 22 Z'/></svg>") center / 100% 100% no-repeat; }
.layer::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(243, 235, 221, .07) 1.2px, transparent 1.6px), radial-gradient(rgba(243, 235, 221, .05) 1px, transparent 1.4px);
  background-size: 64px 46px, 38px 58px; background-position: 6px 10px, 22px 30px; }
.layer > .wrap { position: relative; z-index: 1; }
#how { --top: #3A2A21; --bot: #30231C; }
.layer-2 { --top: #2C2D35; --bot: #25262D; }
.layer-3 { --top: #352620; --bot: #2B1F1A; }
.layer-4 { --top: #2A2731; --bot: #221F28; }
.layer-deep { --top: #1F1B1B; --bot: #191515; }
.layer-museum { --top: #171213; --bot: #120E0F; background: radial-gradient(90% 50% at 50% 0%, rgba(242, 162, 58, .10), transparent 70%), linear-gradient(var(--top), var(--bot)); }
.layer-status { --top: #110D0E; --bot: #0F0C0D; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--pad); }
.era { display: flex; align-items: center; gap: 9px; font: 600 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.era span { padding: 5px 8px; border-radius: 7px; background: rgba(242, 162, 58, .12); color: var(--honey); box-shadow: inset 0 0 0 1px rgba(242, 162, 58, .22); }
h2 { margin-top: 14px; font: 800 33px/1 var(--head); letter-spacing: -.045em; }
.sub { margin-top: 12px; color: var(--muted); max-width: 40ch; }
.note-s { margin-top: 16px; font-size: 13px; color: var(--muted); }
.note-s b { color: var(--text); }

/* stages track */
.track { list-style: none; margin-top: 26px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; position: relative; }
.track::before { content: ''; position: absolute; left: 10%; right: 10%; top: 44%; height: 2px; background: var(--line-2); border-radius: 2px; }
.track li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.track img { position: relative; width: 100%; max-width: 92px; height: auto; aspect-ratio: 300 / 390; object-fit: contain; transition: transform .6s var(--pop); }
.track li::before { content: ''; position: absolute; left: 50%; top: 38%; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 80, .55), rgba(255, 180, 80, 0) 68%); opacity: 0; transition: opacity .6s var(--ease); }
.track b { margin-top: 8px; font: 700 13px/1 var(--head); }
.track span { margin-top: 5px; font: 500 10px/1 var(--mono); color: var(--muted); }
.track li.lit img { transform: translateY(-4px) scale(1.06); }
.track li.lit::before { opacity: 1; }
/* the illustrations are transparent WebPs (their dark ground keyed out), so they sit on any layer of rock */
.track li.last span { color: var(--honey); }

/* the moment's steps */
.steps { margin-top: 24px; display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px var(--line); }
.step b { display: block; font: 700 17px/1.1 var(--head); letter-spacing: -.02em; }
.step span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.ico { width: 44px; height: 44px; border-radius: 13px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); position: relative; overflow: hidden; }
.ico::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ico-drop::after { width: 14px; height: 19px; background: linear-gradient(#FFE1A0, var(--amber)); border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%; clip-path: polygon(50% 0, 100% 62%, 100% 100%, 0 100%, 0 62%); border-radius: 0 0 10px 10px; }
.ico-trap::after { width: 22px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFE1A0, var(--amber) 60%, var(--amber-d)); box-shadow: 0 0 12px rgba(242, 162, 58, .5); }
.ico-hard::after { width: 22px; height: 18px; border-radius: 45% 55% 50% 50%; background: linear-gradient(135deg, #C9874A, #7B4F2E); }
.ico-sink::after { width: 26px; height: 6px; top: 64%; border-radius: 3px; background: var(--umber); box-shadow: 0 -10px 0 -1px #6E4A33, 0 -7px 0 -2px var(--amber); }

/* dated layers */
.strata { margin-top: 24px; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.band { position: relative; height: 66px; display: flex; align-items: center; gap: 0; padding: 0 14px; }
.band span { position: absolute; left: 12px; top: 8px; font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(243, 235, 221, .65); }
.band i { flex: 1; display: flex; justify-content: center; }
.band i::after { content: ''; width: 13px; height: 11px; margin-top: 16px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFE1A0, var(--amber) 60%, var(--amber-d)); box-shadow: 0 0 10px rgba(242, 162, 58, .45); }
.band i.dim::after { background: radial-gradient(circle at 40% 35%, #7A6450, #4A3A2E); box-shadow: none; }
.b0 { background: linear-gradient(#5B4031, #4B3427); }
.b1 { background: linear-gradient(#433A3F, #3A3238); height: 58px; }
.b2 { background: linear-gradient(#33333B, #2B2B33); height: 52px; }
.b3 { background: linear-gradient(#24232A, #1D1C22); height: 48px; }
.b0 i:nth-child(odd)::after { margin-top: 26px; }
.b1 i:nth-child(even)::after { margin-top: 24px; }

/* the perk ladder and your piece */
.ladder { margin-top: 22px; display: grid; gap: 1px; border-radius: 16px; overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.ladder div { display: grid; grid-template-columns: 102px 1fr; gap: 10px; padding: 12px 14px; background: rgba(22, 16, 17, .55); font-size: 13.5px; }
.ladder b { font: 600 11px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--honey); }
.ladder span { color: var(--muted); }
.mine { margin-top: 14px; display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(242, 162, 58, .12), rgba(242, 162, 58, .03)); box-shadow: inset 0 0 0 1px rgba(242, 162, 58, .25); }
.mine img { width: 84px; height: auto; }
.mine b { display: block; font: 700 17px/1.15 var(--head); letter-spacing: -.02em; }
.mine span { display: block; margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.mine .tag { display: inline-block; margin-left: 6px; padding: 3px 6px; border-radius: 6px; font: 600 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: rgba(243, 235, 221, .1); color: var(--muted); vertical-align: 2px; }

/* specimen cards */
.specimens { margin-top: 24px; display: grid; gap: 12px; }
.spec { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 12px; border-radius: 18px; background: linear-gradient(180deg, #211917, #1B1513); box-shadow: inset 0 0 0 1px var(--line), 0 18px 34px -26px #000; }
.spec .pic { position: relative; }
.spec .pic img { width: 104px; height: 104px; object-fit: cover; border-radius: 12px; }
.spec .no { position: absolute; left: 6px; top: 6px; padding: 3px 6px; border-radius: 6px; background: rgba(22, 16, 17, .8); font: 600 9px/1 var(--mono); letter-spacing: .08em; color: var(--honey); }
.spec h3 { font: 700 17px/1.15 var(--head); letter-spacing: -.02em; }
.spec .when { margin-top: 3px; font: 500 10px/1.3 var(--mono); color: var(--faint); letter-spacing: .03em; text-transform: uppercase; }
.spec p { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.spec .label { grid-column: 1 / -1; margin-top: 2px; padding: 10px 12px; border-radius: 4px; background: #EFE4CE; color: #3B2B1C; box-shadow: 0 1px 0 rgba(0, 0, 0, .3); font: 600 13px/1.35 var(--head); letter-spacing: -.01em; }
.spec .label small { display: block; margin-bottom: 3px; font: 600 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #7A6248; }
.spec .src { grid-column: 1 / -1; font: 500 9.5px/1.3 var(--mono); color: var(--faint); }

/* the museum case */
.case { margin-top: 24px; padding: 18px 14px 0; border-radius: 22px 22px 8px 8px; position: relative;
  background: linear-gradient(180deg, rgba(255, 240, 210, .07), rgba(255, 240, 210, .02)); box-shadow: inset 0 0 0 1px rgba(255, 240, 210, .16), inset 0 30px 60px -40px rgba(255, 220, 160, .25); }
.case::before { content: ''; position: absolute; left: 18px; right: 18px; top: 10px; height: 40%; border-radius: 14px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .10), transparent 35%); }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 14px; border-bottom: 10px solid #3A2A1F; box-shadow: 0 10px 0 -4px #241A14; }
.slot { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 4px 0; }
.slot img { position: relative; width: 72px; height: auto; }
.slot.reserved::before { content: ''; position: absolute; left: 50%; top: 18px; width: 110px; height: 110px; margin-left: -55px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 80, .4), rgba(255, 180, 80, 0) 68%); }
.slot i { width: 46px; height: 70px; margin: 12px 0 11px; border-radius: 40% 40% 36% 36%; border: 1.5px dashed rgba(243, 235, 221, .2); }
.slot b { margin-top: 8px; font: 600 10.5px/1 var(--mono); letter-spacing: .06em; color: var(--honey); }
.slot span { margin-top: 5px; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.slot.reserved span { color: var(--text); }

/* status */
.status { list-style: none; margin-top: 22px; display: grid; gap: 8px; }
.status li { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: baseline; padding: 12px 14px; border-radius: 14px; background: rgba(243, 235, 221, .03); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--muted); }
.status b { font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.status li.on b { color: #6FD08C; }
.warn { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 106, 43, .08); box-shadow: inset 0 0 0 1px rgba(255, 106, 43, .25); font-size: 13.5px; color: #F2C3A8; }
.warn b { color: #FFD9C4; }

/* footer */
.foot { padding: 30px 0 40px; background: #0E0B0C; border-top: 1px solid var(--line); }
.risk { font-size: 12.5px; line-height: 1.5; color: var(--faint); }
.foot-row { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.brand-s { font: 800 18px/1 var(--head); letter-spacing: -.04em; color: var(--muted); }

/* connect sheet */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; background: rgba(8, 6, 6, .6); backdrop-filter: blur(4px); }
.sheet[hidden] { display: none; }
.sheet-card { margin: 0 auto; width: 100%; max-width: 440px; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #1E1715; box-shadow: inset 0 1px 0 var(--line-2); }
.sheet-title { font: 700 20px/1.1 var(--head); letter-spacing: -.03em; }
.sheet-sub { margin-top: 6px; font-size: 13px; color: var(--muted); }
.wallets { margin-top: 14px; display: grid; gap: 8px; }
.wallets button, .wallets a { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; border-radius: 14px; border: 0; background: rgba(243, 235, 221, .06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; }
.wallets img { width: 26px; height: 26px; border-radius: 7px; }
.sheet .close { margin-top: 12px; width: 100%; }

/* life in the wall: the lava breathes, the resin bead glistens (opacity/transform only) */
.wall .lava-glow { transform-box: fill-box; transform-origin: center; animation: breathe 5.6s ease-in-out infinite; }
.wall .crater, .wall .river { animation: simmer 3.8s ease-in-out infinite; }
.wall .bead { animation: glint 4.6s ease-in-out infinite; }
.wall .plume { transform-box: fill-box; transform-origin: center bottom; animation: drift 11s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translateY(0) scale(1); opacity: .9; } 50% { transform: translateY(-14px) scale(1.06); opacity: .6; } }
@keyframes breathe { 0%, 100% { opacity: .62; } 50% { opacity: .95; } }
@keyframes simmer { 0%, 100% { opacity: .86; } 50% { opacity: 1; } }
@keyframes glint { 0%, 70%, 100% { opacity: .85; } 80% { opacity: 1; } }

/* reveals (from launch-visuals' visuals.css, trimmed) */
.fx-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.fx-reveal.in { opacity: 1; transform: none; }

/* motion off: a finished still */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }
html[data-motion="off"] .fx-reveal { opacity: 1; transform: none; }
html { scroll-behavior: smooth; }
html[data-motion="off"] { scroll-behavior: auto; }

/* ---------- wider screens ---------- */
@media (min-width: 900px) {
  :root { --pad: 40px; }
  .bar { height: 68px; padding: 0 28px; }
  .hero { display: grid; grid-template-columns: minmax(380px, 1fr) 1.15fr; align-items: center; max-width: 1240px; margin: 0 auto; min-height: 680px; }
  .scene { order: 2; height: 640px; margin: 10px 28px 30px 0; border-radius: 28px; box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0, 0, 0, .8); }
  .scene .hud { top: 16px; }
  .hero-copy { order: 1; padding: 0 28px 0 48px; background: none; }
  h1 { font-size: 64px; }
  .lede { font-size: 17px; }
  .cta-row { max-width: 420px; }
  h2 { font-size: 48px; }
  .layer { padding: 96px 0; }
  .specimens { grid-template-columns: 1fr 1fr; }
  .track img { max-width: 150px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { grid-template-columns: 1fr; align-items: start; align-content: start; }
  .strata, .ladder, .mine, .case { max-width: 760px; }
  .shelf .slot img { width: 110px; }
}
