/* Plouton — an underground vault. Photographs carry the realism; type and UI stay quiet: carved capitals (Cinzel) for
   headings, Hanken Grotesk for reading, amber lamplight as the only accent. Layout: full-screen scenes, copy on the
   dark side of each photograph. */

@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: block; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --rock: #0b0a09;       /* granite in shadow: the page */
  --stone: #15130f;      /* panels */
  --steel: #2b2721;      /* edges, rules */
  --amber: #e3a54a;      /* lamplight: the accent */
  --gold: #f3cf86;       /* lit gold: live figures */
  --bone: #efe7d8;       /* text */
  --ash: #9b9284;        /* secondary text */
  --line: rgba(227, 165, 74, 0.22);
  --danger: #e07a5f;

  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gut: max(16px, env(safe-area-inset-left, 0px), clamp(16px, 5vw, 72px));
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--rock);
  color: var(--bone);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
/* film grain on the flat dark sections only (the photographs carry their own): painted with the content, so it costs
   nothing per frame, unlike a fixed overlay blended over the whole screen on every frame */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.9 0 0 0 0 0.75 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bone); }
::selection { background: var(--amber); color: var(--rock); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--amber); color: var(--rock); padding: 8px 14px; }
.skip:focus { left: 12px; }
[hidden] { display: none !important; }

/* carved capitals: Cinzel has no lowercase, so give it room (nothing is clipped) and a little tracking */
h1, h2, h3, .numeral { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: 0.02em; margin: 0; text-wrap: balance; }
h1, h2 { text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.5); }
h2 { font-size: clamp(34px, 4.4vw, 62px); }
h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; }
p { margin: 0; }

/* ---- buttons ---------------------------------------------------------------------------------------------------------- */
/* plain lit gold (the owner's pick of three, 2026-11-12): a flat rectangle with a hairline corner, no gradient or glow;
   the second button is a dark plate with a fine light rim that turns gold on hover */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 3px;
  font: 600 15px/1 var(--body); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-gold { color: #1b1307; background: #e8bd6e; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.16); }
.btn-gold:hover { color: #1b1307; background: var(--gold); }
.btn-gold:active { box-shadow: none; }
.btn-line { color: var(--bone); font-weight: 500; background: rgba(11, 10, 9, 0.45); box-shadow: inset 0 0 0 1px rgba(239, 231, 216, 0.28); }
.btn-line:hover { color: var(--bone); box-shadow: inset 0 0 0 1px var(--gold); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.quiet { color: var(--bone); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(239, 231, 216, 0.35); }
.quiet:hover { text-decoration-color: var(--gold); }

/* ---- header ------------------------------------------------------------------------------------------------------------ */
.top {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gut) 14px;
  background: linear-gradient(180deg, rgba(11, 10, 9, 0.88), rgba(11, 10, 9, 0));
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; margin-right: auto; }
.brand span { font: 700 17px/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; }
.brand:hover { color: var(--gold); }
.top-nav { display: flex; gap: 26px; }
.top-nav a { color: var(--bone); opacity: 0.75; text-decoration: none; font-size: 15px; }
.top-nav a:hover { opacity: 1; }
/* the X account: an icon beside the nav, on phones too; gone while X_URL is empty */
.x-top { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-inline: -9px; color: var(--bone); opacity: 0.8; }
.x-top:hover { opacity: 1; color: var(--gold); }
.x-top svg { fill: currentColor; }
.x-top[href=""] { display: none; }

/* ---- the hero: the vault door ---------------------------------------------------------------------------------------- */
.hero { position: relative; }
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--rock); }
.world { position: absolute; will-change: transform; }
.hall { position: absolute; inset: 0; will-change: transform; }
.hall-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.has-descent .hall-img { -webkit-mask: none; mask: none; } /* the tall picture covers a phone's screen; nothing to fade */
body:not(.has-hall) .hall { /* the stand-in: a dark rock chamber lit from the doorway */
  background:
    radial-gradient(28% 40% at 50% 46%, rgba(227, 165, 74, 0.22), transparent 70%),
    radial-gradient(70% 90% at 50% 50%, #221d16 0%, #13110d 45%, #0b0a09 80%);
}
body:not(.has-hall) .hall::before { /* floor plates */
  content: ""; position: absolute; inset: 70% 0 0;
  background: repeating-linear-gradient(90deg, rgba(227, 165, 74, 0.05) 0 1px, transparent 1px 90px), linear-gradient(180deg, transparent, rgba(227, 165, 74, 0.06));
  transform: perspective(500px) rotateX(58deg); transform-origin: 50% 0;
}
/* every layer that moves gets its own compositor layer, and none of them uses a filter, mask or blend mode, which the
   GPU would otherwise recompute on every frame */
.glow, .rays, .frame, .door-hinge { position: absolute; border-radius: 50%; will-change: transform; }
.glow { /* the gold behind the door; a rim of it leaks round the edge */
  opacity: 0.5;
  background: radial-gradient(closest-side, rgba(255, 240, 198, 0.95) 0%, rgba(243, 207, 134, 0.8) 30%, rgba(227, 165, 74, 0.45) 62%, rgba(227, 165, 74, 0) 100%);
}
.rays { opacity: 0; } /* beams drawn once on a canvas (src/site/main.js); the scroll fades and turns them */
.rays canvas { width: 100%; height: 100%; display: block; }
.frame { /* the steel ring around the doorway (the photograph has its own) */
  background: radial-gradient(closest-side, transparent 85.6%, #1c1915 86.2%, #5b544a 88.5%, #2d2924 92%, #141210 98%, transparent 100%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}
.has-hall .frame { display: none; }
.door-hinge { perspective: 1800px; }
/* the door is one flat plane (no preserve-3d), so its shadow is painted once and the swing only moves it */
.door { position: absolute; inset: 0; transform-origin: 0% 50%; will-change: transform; }
.door-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.65)); }
.door-shade { position: absolute; inset: 0; border-radius: 50%; background: #000; opacity: 0; will-change: opacity; }
/* the solid door (src/site/door3d.js) takes the flat one's place while it swings */
.door-solid { position: absolute; pointer-events: none; visibility: hidden; }
.door-hinge.solid .door-solid { visibility: visible; }
.door-hinge.solid .door { visibility: hidden; }
/* centred by offsets, not translate: GSAP owns the wheel's transform while it turns */
.wheel { position: absolute; left: 21%; top: 21%; width: 58%; will-change: transform; }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; will-change: transform; }
/* over the tall picture's sky band, placed by fit() and moved with #world; above the vignette, which hides them on a
   phone */
.birds { position: absolute; pointer-events: none; will-change: transform; }
.lamps { position: absolute; inset: 0; pointer-events: none; will-change: transform, opacity; }
.lamps img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; will-change: transform; }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 10, 9, 0.62) 0%, rgba(11, 10, 9, 0.3) 32%, transparent 52%),
    radial-gradient(90% 80% at 60% 50%, transparent 45%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(0deg, var(--rock) 0%, transparent 18%);
}
.flash { position: absolute; inset: 0; background: var(--rock); opacity: 0; pointer-events: none; will-change: opacity; }
.hero-copy {
  position: absolute; z-index: 2; will-change: transform, opacity;
  left: var(--gut); top: 0; bottom: 0;
  width: min(560px, 46vw);
  display: grid; align-content: center; gap: 22px;
}
.hero h1 { font-size: clamp(46px, 5.8vw, 92px); line-height: 1.06; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 30ch; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 6px; }
.hero-montra { justify-self: start; font-size: 15px; color: var(--bone); text-decoration: underline; text-decoration-color: rgba(239, 231, 216, 0.4); text-underline-offset: 4px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85); }
.hero-montra:hover { text-decoration-color: var(--gold); }
.cue {
  position: absolute; z-index: 2; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  font: 600 12px/1 var(--body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone); opacity: 0.7;
  display: grid; justify-items: center; gap: 12px;
}
.cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: drip 2.2s var(--ease) 5; transform-origin: top; } /* five drips, then it rests */
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes turn { to { transform: rotate(1turn); } }

/* ---- the scenes ----------------------------------------------------------------------------------------------------------- */
.scene { position: relative; height: 175vh; }
.scene-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: center; }
/* everything the scroll moves keeps its own layer for good: promoting it as a tween starts and dropping it as it ends
   would repaint the photograph (and decode it again) twice per pass */
.scene-bg { position: absolute; inset: -5% 0; will-change: transform; }
.scene-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-bg::after { /* shade the copy side and both edges so text always reads */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 10, 9, 0.94) 0%, rgba(11, 10, 9, 0.7) 34%, rgba(11, 10, 9, 0.12) 68%, rgba(11, 10, 9, 0.25) 100%),
    linear-gradient(180deg, var(--rock) 0%, transparent 16%, transparent 84%, var(--rock) 100%);
}
/* stand-ins until the photographs exist */
.scene[data-art="boxes"] .scene-bg { background: repeating-linear-gradient(90deg, rgba(227, 165, 74, 0.07) 0 2px, transparent 2px 74px), repeating-linear-gradient(0deg, rgba(227, 165, 74, 0.06) 0 2px, transparent 2px 48px), radial-gradient(55% 70% at 72% 50%, #2b2219, #0b0a09 78%); }
.scene[data-art="gold"] .scene-bg { background: radial-gradient(18% 26% at 66% 44%, rgba(243, 207, 134, 0.35), transparent 70%), radial-gradient(22% 30% at 82% 62%, rgba(227, 165, 74, 0.28), transparent 70%), radial-gradient(60% 80% at 74% 50%, #2a2116, #0b0a09 80%); }
.scene[data-art="doors"] .scene-bg { background: radial-gradient(circle at 62% 50%, rgba(243, 207, 134, 0.28), transparent 12%), repeating-radial-gradient(circle at 62% 50%, rgba(239, 231, 216, 0.05) 0 2px, transparent 2px 70px), radial-gradient(60% 80% at 62% 50%, #1c1915, #0b0a09 80%); }
.scene-copy { position: relative; z-index: 2; width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; display: grid; justify-items: start; gap: 18px; }
.scene-copy > * { max-width: 520px; }
.scene-copy p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8); }
.numeral { font-size: clamp(56px, 7vw, 100px); font-weight: 600; line-height: 1; color: var(--amber); text-shadow: 0 0 30px rgba(227, 165, 74, 0.35); }
.plaques { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; max-width: 560px !important; }
.plaque {
  min-width: 180px; padding: 14px 18px 12px;
  border-radius: 6px;
  background: linear-gradient(180deg, #4a3a20 0%, #2a2114 55%, #1d170e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 228, 170, 0.35), inset 0 0 0 1px rgba(243, 207, 134, 0.25), 0 12px 30px -12px rgba(0, 0, 0, 0.8);
}
.plaque dt { font: 600 12px/1.2 var(--body); letter-spacing: 0.08em; color: #d8c49c; }
.plaque dd { margin: 6px 0 0; font: 700 26px/1.1 var(--display); color: var(--gold); font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); }
.source { font-size: 13px !important; color: var(--ash); max-width: 460px; }

/* ---- lore: the statue ------------------------------------------------------------------------------------------------------ */
main:not(.vault-app) > section:not(.hero):not(.scene) { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; padding-block: clamp(80px, 11vw, 150px); }
/* film grain on the flat darks, painted once with the page (it used to be a fixed layer over everything, which the GPU
   had to blend over every frame) */
.site main, .site .foot { background-image: var(--grain); }
.lore { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.lore-statue { position: relative; aspect-ratio: 3 / 4; width: min(100%, 440px); justify-self: center; display: grid; place-items: end center; will-change: transform; }
.lore-statue::before { /* a niche cut in the rock, lit from below */
  content: ""; position: absolute; inset: 4% 8% 0;
  border-radius: 999px 999px 8px 8px;
  background: radial-gradient(70% 50% at 50% 100%, rgba(227, 165, 74, 0.3), transparent 70%), linear-gradient(180deg, #17140f, #0e0c0a);
  box-shadow: inset 0 0 0 1px rgba(227, 165, 74, 0.14), inset 0 -40px 80px rgba(0, 0, 0, 0.6);
}
.lore-statue img { position: relative; width: 92%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8)); }
.statue-light { position: absolute; inset: auto 10% -2% 10%; height: 30%; background: radial-gradient(closest-side, rgba(243, 207, 134, 0.35), transparent); pointer-events: none; }
.niche-mark { position: absolute; left: 50%; top: 46%; width: 30%; translate: -50% -50%; opacity: 0.55; filter: drop-shadow(0 0 18px rgba(227, 165, 74, 0.4)); }
.has-statue .niche-mark { display: none; }
.lore-copy { display: grid; gap: 22px; max-width: 34em; }
.lore-copy p { font-size: 19px; line-height: 1.65; }
.lore-copy .kicker { font: 600 clamp(20px, 2vw, 26px)/1.4 var(--display); color: var(--gold); letter-spacing: 0.01em; }

/* ---- Montra: what the vault is to someone who trades there, beside Montra's own live figures ---------------------------- */
.montra { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(26px, 3.4vw, 44px) clamp(28px, 5vw, 80px); align-items: start; border-top: 1px solid var(--line); }
.montra h2 { grid-column: 1 / -1; }
.montra-copy { display: grid; gap: 26px; justify-items: start; min-width: 0; }
.montra-lede { font-size: 19px; line-height: 1.6; max-width: 40ch; }
.montra-live { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.montra-live h3 { color: var(--bone); }
.montra-live .plaques { margin: 0; }
/* the token, once it exists: ticker, address, Copy, Buy on Montra (in the hero and in this section) */
.token { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; max-width: 100%; }
.token .tick { font: 700 18px/1 var(--display); color: var(--gold); letter-spacing: 0.04em; }
.token code { min-width: 0; padding: 9px 12px; font: 13px/1.4 var(--mono); color: var(--bone); overflow-wrap: anywhere; background: rgba(11, 10, 9, 0.72); box-shadow: inset 0 0 0 1px var(--line); border-radius: 3px; }
.token .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* ---- trust, questions -------------------------------------------------------------------------------------------------------- */
.trust { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); border-top: 1px solid var(--line); }
.trust h2 { max-width: 11ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.facts li { color: var(--ash); max-width: 46ch; }
.facts strong { display: block; margin-bottom: 4px; font: 600 20px/1.3 var(--display); color: var(--bone); letter-spacing: 0.01em; }
.audit { grid-column: 2; font-size: 15px; color: var(--ash); border-top: 1px solid var(--line); padding-top: 20px; max-width: 56ch; }
.faq h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.faq details { border-top: 1px solid var(--line); max-width: 800px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font: 600 clamp(17px, 1.5vw, 20px)/1.35 var(--display); letter-spacing: 0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 13px; height: 13px; background: linear-gradient(var(--amber), var(--amber)) center / 13px 1.5px no-repeat, linear-gradient(var(--amber), var(--amber)) center / 1.5px 13px no-repeat; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ash); max-width: 62ch; }

/* ---- finale --------------------------------------------------------------------------------------------------------------------- */
.finale { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.finale-door { position: relative; aspect-ratio: 1; width: min(100%, 460px); justify-self: center; order: 2; }
.finale-door::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(227, 165, 74, 0.35), transparent); }
.finale-door-img { position: relative; width: 100%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.8)); }
.finale-wheel { position: absolute; left: 21%; top: 21%; width: 58%; will-change: transform; }
.finale-copy { display: grid; justify-items: start; gap: 30px; }
.finale h2 { font-size: clamp(42px, 5.6vw, 84px); color: var(--gold); line-height: 1.08; }

/* ---- footer --------------------------------------------------------------------------------------------------------------------- */
/* full width, so its background and grain reach both edges; the padding keeps the content on the page's column */
.foot {
  padding: 36px max(var(--gut), (100% - var(--wrap)) / 2) calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); display: grid; gap: 22px;
}
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--ash); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--bone); }
.legal { font-size: 13px; color: var(--ash); max-width: 72ch; opacity: 0.8; }

/* ---- the app (/app) ----------------------------------------------------------------------------------------------------------- */
.app .top { position: sticky; background: rgba(11, 10, 9, 0.9); border-bottom: 1px solid rgba(227, 165, 74, 0.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.app-backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.app-backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: saturate(0.9); }
.app-backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 70% 30%, rgba(227, 165, 74, 0.1), transparent 60%), linear-gradient(180deg, rgba(11, 10, 9, 0.55), var(--rock) 85%); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font: 500 14px/1 var(--body); color: var(--bone); font-variant-numeric: tabular-nums; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
/* full width (its grain reaches both edges), the content kept on the page's column by the padding; the page fills the
   screen so the footer sits at the bottom with nothing bare below it */
.app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.vault-app {
  position: relative; flex: 1 0 auto; min-height: 70vh;
  padding: clamp(32px, 5vw, 64px) max(var(--gut), (100% - var(--wrap)) / 2) clamp(64px, 8vw, 110px);
}
.vault-app > section { width: auto; margin-inline: 0; padding-block: 0; }
.gate { display: grid; gap: 20px; max-width: 560px; padding-top: clamp(16px, 4vw, 56px); }
.gate h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.08; }
.gate > p { font-size: 18px; color: var(--ash); max-width: 46ch; }
.gate > .btn { justify-self: start; }
.gate .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 8px; }
.gate-art { position: absolute; z-index: -1; right: max(var(--gut), (100% - var(--wrap)) / 2); top: clamp(24px, 4vw, 56px); width: min(38vw, 460px); aspect-ratio: 1; pointer-events: none; }
.gate-art::before { content: ""; position: absolute; inset: -8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(227, 165, 74, 0.3), transparent); }
.gate-art .door-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.gate-art .wheel { animation: turn 60s linear infinite; }
.wallets { display: grid; gap: 10px; margin-top: 8px; }
.wallet { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 18px; background: rgba(21, 19, 15, 0.92); border: 1px solid var(--line); border-radius: 12px; font: 500 16px/1 var(--body); color: var(--bone); cursor: pointer; text-align: left; transition: border-color 0.2s var(--ease); }
.wallet:hover { border-color: var(--amber); }
.wallet img { border-radius: 6px; }
.hint { color: var(--ash); }
.err, .warn, .msg { font-size: 15px; line-height: 1.5; }
.err { color: var(--danger); }
.warn { color: var(--gold); }
.msg.ok { color: var(--bone); }
.msg.ok a { margin-left: 4px; }
.phrase-form { display: grid; gap: 10px; max-width: 520px; }
.phrase-form label, .field { font: 600 13px/1 var(--body); letter-spacing: 0.04em; color: var(--ash); }
textarea, select, .address, .amount input { width: 100%; background: #0d0c0a; border: 1px solid rgba(227, 165, 74, 0.3); border-radius: 10px; color: var(--bone); font: 400 16px/1.4 var(--body); padding: 12px 14px; }
textarea { font-family: var(--mono); font-size: 14px; resize: vertical; }
textarea:focus, select:focus, .address:focus, .amount input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.address { font-family: var(--mono); font-size: 14px; }
.desk { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.ledger { display: grid; gap: 22px; }
.ledger-head { display: grid; gap: 8px; }
.ledger-head h1 { font-size: clamp(34px, 4vw, 52px); }
.total { font: 600 clamp(18px, 1.6vw, 22px)/1.4 var(--display); color: var(--gold); letter-spacing: 0.01em; font-variant-numeric: lining-nums tabular-nums; }
.notes { display: grid; gap: 14px; }
.box { /* a safe-deposit box: a steel door with a brass plate */
  display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: center;
  padding: 18px 20px;
  border-radius: 10px;
  background: linear-gradient(180deg, #24211c, #16140f);
  box-shadow: inset 0 1px 0 rgba(255, 240, 210, 0.08), inset 0 0 0 1px rgba(227, 165, 74, 0.16), 0 18px 40px -26px rgba(0, 0, 0, 0.9);
}
.box-plate { display: grid; place-items: center; min-width: 64px; padding: 8px 10px; border-radius: 4px; background: linear-gradient(180deg, #4a3a20, #241c10); box-shadow: inset 0 1px 0 rgba(255, 228, 170, 0.35), inset 0 0 0 1px rgba(243, 207, 134, 0.25); font: 700 13px/1.1 var(--display); color: #e9d3a3; letter-spacing: 0.08em; text-align: center; }
.box-plate b { display: block; font-size: 22px; color: var(--gold); }
.box-main { display: grid; gap: 4px; min-width: 0; }
.box-amount { font: 700 26px/1.1 var(--display); color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.box-amount small { font: 600 13px/1 var(--body); color: var(--amber); letter-spacing: 0.1em; margin-left: 6px; }
.box-worth { font-size: 14px; color: var(--ash); }
.box-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding-top: 12px; border-top: 1px solid rgba(227, 165, 74, 0.12); }
.box-state { font-size: 15px; color: var(--ash); }
.box-state[data-approved="1"] { color: var(--bone); }
.box-state[data-approved="1"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--amber); vertical-align: 2px; box-shadow: 0 0 8px var(--amber); }
.box-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.box-actions .btn { min-height: 38px; padding: 0 16px; font-size: 14px; }
.quiet.small { font-size: 14px; color: var(--ash); }
button.quiet { background: none; border: 0; padding: 4px 0; cursor: pointer; font: 500 15px/1.3 var(--body); }
.closed { font-size: 14px; color: var(--ash); }
.account-tools { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 6px; border-top: 1px solid var(--line); }
.phrase-box { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(21, 19, 15, 0.92); }
.phrase-box p { color: var(--gold); font-size: 15px; }
.phrase-box code { font: 15px/1.7 var(--mono); color: var(--bone); word-spacing: 4px; overflow-wrap: anywhere; }
.phrase-box .btn { justify-self: start; }
.panel { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); background: linear-gradient(180deg, rgba(36, 33, 28, 0.96), rgba(22, 20, 16, 0.96)); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 2.4vw, 28px); box-shadow: inset 0 1px 0 rgba(255, 240, 210, 0.06), 0 30px 60px -40px rgba(0, 0, 0, 0.9); }
.tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 22px; background: #0d0c0a; border-radius: 999px; border: 1px solid rgba(227, 165, 74, 0.16); }
.tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--ash); font: 600 15px/1 var(--body); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #33291a; color: var(--gold); box-shadow: inset 0 0 0 1px rgba(227, 165, 74, 0.38); }
.pane { display: grid; gap: 10px; }
.rpc-fix, .add-token { justify-self: start; }
/* a wallet set to Montra's RPC: said at the top of the deposit form, before a deposit is tried */
.rpc-note { display: grid; gap: 12px; justify-items: start; margin-bottom: 8px; padding: 14px 16px; border-radius: 3px; background: rgba(227, 165, 74, 0.08); box-shadow: inset 0 0 0 1px var(--line); }
.rpc-note p { font-size: 15px; line-height: 1.5; color: var(--bone); }
.token-hint code { color: var(--bone); word-break: break-all; }
.pane .field { margin-top: 8px; }
.asset { display: flex; gap: 8px; border: 0; padding: 0; margin: 0 0 4px; }
.asset legend { font: 600 13px/1 var(--body); letter-spacing: 0.04em; color: var(--ash); margin-bottom: 10px; }
.asset label { flex: 1; }
.asset input { position: absolute; opacity: 0; pointer-events: none; }
.asset span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid rgba(227, 165, 74, 0.3); border-radius: 10px; color: var(--ash); font-weight: 600; cursor: pointer; }
.asset input:checked + span { border-color: var(--amber); color: var(--gold); background: rgba(227, 165, 74, 0.1); }
.asset input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.amount { position: relative; }
.amount input { font: 700 24px/1.2 var(--display); padding-right: 74px; font-variant-numeric: lining-nums tabular-nums; }
.amount .max { position: absolute; right: 8px; top: 50%; translate: 0 -50%; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--gold); font: 600 13px/1 var(--body); cursor: pointer; }
.amount .max:hover { border-color: var(--amber); }
.sub { font-size: 14px; color: var(--ash); }
.preview { font-size: 15px; color: var(--bone); min-height: 1.5em; }
.preview.bad { color: var(--danger); }
.wide { width: 100%; margin-top: 8px; }
.lines { display: grid; gap: 8px; margin: 10px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.lines div { display: flex; justify-content: space-between; gap: 12px; }
.lines dt { color: var(--ash); font-size: 15px; }
.lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.progress { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.progress li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ash); }
.progress li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(227, 165, 74, 0.45); }
.progress li.active { color: var(--bone); }
.progress li.active::before { border-color: var(--gold) transparent var(--gold) var(--gold); animation: turn 0.9s linear infinite; }
.progress li.done { color: var(--bone); }
.progress li.done::before { background: var(--amber); border-color: var(--amber); }
.progress li.failed { color: var(--danger); }
.progress li.failed::before { border-color: var(--danger); background: var(--danger); }
.app .foot { border-top: 0; }

/* /verify: the page that says how to check it. Reading text, so a narrow column and plain lists. Its <main> is also
   .vault-app, which takes the landing page's tall section spacing off and keeps the footer at the bottom */
/* minmax(0, 1fr) on every grid here: a code block may be wider than a phone, and it scrolls inside itself */
.doc { padding: clamp(32px, 5vw, 64px) max(var(--gut), (100% - 860px) / 2) clamp(64px, 8vw, 110px); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 56px); }
.doc section, .doc ul, .doc ol { grid-template-columns: minmax(0, 1fr); }
.doc li { min-width: 0; }
.doc-head { display: grid; gap: 16px; }
.doc-head h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.08; }
.doc-head p { font-size: 19px; color: var(--ash); max-width: 56ch; }
.doc section { display: grid; gap: 14px; }
.doc h2 { font-size: clamp(24px, 2.6vw, 32px); }
.doc p, .doc li { color: var(--ash); max-width: 66ch; }
.doc strong { color: var(--bone); font-weight: 600; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.doc code { font: 0.9em/1.5 var(--mono); color: var(--bone); overflow-wrap: anywhere; }
.doc pre { margin: 0; padding: 16px 18px; overflow-x: auto; background: var(--stone); box-shadow: inset 0 0 0 1px var(--line); border-radius: 3px; font: 13.5px/1.6 var(--mono); color: var(--bone); }
.doc .sent { list-style: none; padding: 0; gap: 0; border-top: 1px solid var(--line); }
.doc .sent li { display: grid; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--line); max-width: none; }
.doc .sent code { color: var(--gold); }
.doc .policy { white-space: pre-wrap; }
.doc .files { list-style: none; padding: 0; gap: 0; border-top: 1px solid var(--line); }
.doc .files li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 11px 0; border-bottom: 1px solid var(--line); max-width: none; font-size: 14px; }
.doc .files .hash { grid-column: 1 / -1; font: 12px/1.4 var(--mono); color: var(--ash); overflow-wrap: anywhere; }
.doc .files .ok { color: var(--gold); }
.doc .files .bad { color: var(--danger); }
.doc .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

/* ---- narrow screens ------------------------------------------------------------------------------------------------------------ */
@media (max-width: 980px) {
  .desk { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; }
  .gate-art { display: none; }
}
@media (max-width: 900px) {
  .lore, .trust, .finale, .montra { grid-template-columns: minmax(0, 1fr); }
  .lore-statue { width: min(76%, 360px); }
  .audit { grid-column: auto; }
  .finale-door { order: 0; width: min(70%, 320px); }
}
@media (max-width: 899px) and (orientation: portrait) {
  .hero-copy { top: calc(76px + env(safe-area-inset-top, 0px)); bottom: auto; align-content: start; width: auto; right: var(--gut); gap: 16px; }
  .cue { display: none; }
  .lamps { display: none; } /* on a tall screen the near lamps land behind the copy; the photograph has its own */
  .vignette { background: linear-gradient(180deg, rgba(11, 10, 9, 0.82) 0%, rgba(11, 10, 9, 0.55) 34%, transparent 50%), radial-gradient(90% 80% at 50% 60%, transparent 45%, rgba(0, 0, 0, 0.7) 100%), linear-gradient(0deg, var(--rock) 0%, transparent 18%); }
  .hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .lede { font-size: 17px; }
  .hall-img { -webkit-mask: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
  .scene-stage { align-items: end; padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }
  .scene-bg::after { background: linear-gradient(0deg, rgba(11, 10, 9, 0.97) 0%, rgba(11, 10, 9, 0.85) 38%, rgba(11, 10, 9, 0.15) 70%), linear-gradient(180deg, var(--rock) 0%, transparent 18%); }
}
@media (max-width: 720px) {
  .doc .files li { grid-template-columns: minmax(0, 1fr); }
  .top { gap: 14px; }
  .top-nav { display: none; }
  .top .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .brand span { font-size: 15px; letter-spacing: 0.16em; }
  .plaque { min-width: 0; flex: 1 1 140px; }
  .plaque dd { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scene { height: auto; }
  .scene-stage { position: relative; min-height: 100vh; }
}
