/* Bitcoin Museum El Salvador. Palette and type follow the pitch deck. */
:root {
  --ink: #0E1116;
  --paper: #F6F7F9;
  --orange: #F7931A;
  --orange-dark: #B45309;
  --soft-dark: #A9B1BC;
  --soft-light: #4A5462;
  --line-dark: #2A313B;
  --line-light: #D5D9DF;
  --head: 'Bricolage Grotesque', Arial, sans-serif;
  --body: 'DM Sans', Arial, sans-serif;
  --mono: 'DM Mono', 'Courier New', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--body); font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--ink); padding: 10px 16px; z-index: 30; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.dark { background: var(--ink); color: var(--paper); }
.light { background: var(--paper); color: var(--ink); }
.accent { background: var(--orange); color: var(--ink); }
.wrap > * + * { margin-top: clamp(24px, 3vw, 40px); }

/* type */
h1 { font-family: var(--head); font-weight: 700; font-size: clamp(48px, 9vw, 124px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-family: var(--head); font-weight: 700; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.1; letter-spacing: -0.015em; max-width: 22ch; margin-top: 16px !important; }
h2.big { font-size: clamp(36px, 6vw, 84px); max-width: 16ch; }
h3 { font-family: var(--head); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.eyebrow, .mono { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: 0.14em; line-height: 1.4; }
.dark .eyebrow, .dark .mono { color: var(--orange); }
.light .eyebrow, .light .mono { color: var(--orange-dark); }
.accent .eyebrow, .accent .mono { color: var(--ink); }
.lead { font-family: var(--head); font-weight: 500; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; max-width: 30ch; }
.dark .lead { color: var(--orange); }
.light .lead { color: var(--orange-dark); }
.dim { font-family: var(--mono); font-size: 13px; color: #8892A0; letter-spacing: 0.04em; }
.hash { overflow-wrap: anywhere; }
.small { font-size: 16px; }
.txt { max-width: 62ch; font-size: 20px; }
.dark p:not(.lead):not(.mono):not(.eyebrow):not(.dim):not(.num):not(.name) { color: var(--soft-dark); }
.light p:not(.lead):not(.mono):not(.eyebrow):not(.dim):not(.num):not(.name) { color: var(--soft-light); }
.num { font-family: var(--head); font-weight: 700; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; }
.dark .num { color: var(--orange); }
.light .num { color: var(--orange-dark); }

/* header */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px; background: rgba(14, 17, 22, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 20px; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a { text-decoration: none; font-size: 15px; color: var(--soft-dark); }
.top nav a:hover { color: var(--paper); }
.top nav .langlink { font-family: var(--mono); font-weight: 500; color: var(--orange); border: 1px solid var(--orange); padding: 4px 10px; }
.top nav .langlink:hover { background: var(--orange); color: var(--ink); }
.burger { display: none; background: none; border: 1px solid var(--line-dark); color: var(--paper); font: 500 14px var(--mono); padding: 8px 12px; cursor: pointer; }

/* buttons */
.btn {
  display: inline-block; text-decoration: none; font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 14px 22px; background: var(--orange); color: var(--ink); border: 2px solid var(--orange);
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--paper); border-color: var(--paper); }
.btn.ghost { background: rgba(14, 17, 22, 0.6); color: var(--paper); border-color: var(--paper); }
.btn.ghost:hover { background: var(--paper); color: var(--ink); }
.btn.onlight { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.onlight:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn.dark-btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.dark-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.maillink { margin-left: 16px; font-family: var(--mono); font-size: 15px; overflow-wrap: anywhere; }

/* hero */
.hero { padding: 0; min-height: min(92vh, 900px); display: flex; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,17,22,.94) 0%, rgba(14,17,22,.8) 30%, rgba(14,17,22,0) 62%);
}
.hero-in { position: relative; display: flex; flex-direction: column; padding: 40px 0 36px; }
.hero-in h1 { margin-top: auto; padding-top: 48px; font-size: clamp(48px, 6.6vw, 96px); max-width: 8ch; }
.hero .lead { max-width: 20ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-foot { margin-top: auto; padding-top: 48px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero-foot .small { max-width: 44ch; margin-top: 6px; color: var(--paper) !important; }

/* ticker */
.ticker { padding: 22px 0; }
.tick { display: flex; flex-wrap: wrap; gap: 16px 64px; }
.tick > * { margin-top: 0; }
.tnum { font-family: var(--head); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; font-variant-numeric: tabular-nums; }

/* columns */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cols.four { grid-template-columns: repeat(4, 1fr); }
.col { padding-top: 22px; border-top: 4px solid var(--orange); display: flex; flex-direction: column; gap: 12px; }
.accent .col { border-top-color: var(--ink); }
.accent .col p { color: var(--ink); }

/* street strip */
.flush { padding-bottom: 0; }
.street { margin-top: clamp(40px, 6vw, 80px); height: clamp(150px, 20vw, 260px); background: var(--ink); }
.street svg { width: 100%; height: 100%; }

/* galleries */
.cut svg { width: 100%; height: auto; }
.room rect:first-of-type { transition: stroke .15s, fill .15s; }
.room:hover rect:first-of-type, .room:focus rect:first-of-type { stroke: var(--orange); fill: #1B222C; }
.room:focus { outline: none; }
.gal { display: none; }
.gal li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line-dark); font-family: var(--head); font-weight: 700; font-size: 20px; }
.gal .rn { font-family: var(--mono); font-weight: 500; color: var(--orange); font-size: 15px; }

/* exhibitions */
.xhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.xall { font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-dark); text-underline-offset: 5px; }
.xall:hover { color: var(--ink); }
.xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.xgrid > li { display: flex; }
.xcard { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--line-light); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.xcard:hover { border-color: var(--orange-dark); transform: translateY(-3px); }
.xcard img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--ink); }
.xbody { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.xbody h3 { font-size: clamp(26px, 2.6vw, 34px); }
.xtext { color: var(--soft-light); }
.xbody .btn { align-self: flex-start; margin-top: auto; }
.xcard:hover .btn { background: var(--orange-dark); border-color: var(--orange-dark); }
.xsoon { flex-direction: column; justify-content: flex-end; gap: 12px; width: 100%; min-height: 220px; padding: 24px; border: 2px dashed var(--line-light); }
.xsoon h3 { color: var(--soft-light); font-weight: 500; max-width: 16ch; }
@media (prefers-reduced-motion: reduce) { .xcard { transition: none; } .xcard:hover { transform: none; } }

/* wish list */
.wish { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wish li { padding: 22px 20px; border: 1px solid var(--line-light); background: #fff; display: flex; flex-direction: column; gap: 18px; min-height: 150px; }
.wicon { width: 48px; height: 48px; color: var(--orange-dark); }
.wish h3 { font-size: 20px; margin-top: auto; }
.wish .more { grid-column: span 2; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.wish .more h3 { font-weight: 500; }
.plus { font-family: var(--head); font-weight: 700; font-size: 48px; line-height: 1; color: var(--orange); }

/* roadmap */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.road li { padding-top: 22px; border-top: 4px solid var(--orange); display: flex; flex-direction: column; gap: 12px; }
.road li p:not(.mono) { font-size: 16px; }

/* footer */
.foot { padding: 56px 0; border-top: 1px solid var(--line-dark); }
.foot .wrap > * + * { margin-top: 14px; }
.brandline { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--paper) !important; }

/* 404 */
.nf { min-height: 100vh; display: flex; align-items: center; }
.nf h1 { font-size: clamp(36px, 6vw, 72px); }
.nf .wrap > div > * + * { margin-top: 16px; }

/* motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.smoke { animation: smoke 12s linear infinite; }
.flash { animation: flash 4s ease-in-out infinite; transform-origin: 870px 200px; }
@keyframes smoke { 0% { transform: translate(0, 10px); opacity: 0; } 12% { opacity: .95; } 45% { transform: translate(calc(var(--dx) * .42), -190px); opacity: .8; } 100% { transform: translate(var(--dx), -470px); opacity: 0; } }
.satoshi { opacity: 0; animation: satoshi 24s ease-in-out 5s infinite; }
@keyframes satoshi { 0%, 16%, 100% { opacity: 0; transform: translateX(9px); } 4%, 12% { opacity: 1; transform: none; } }
@keyframes flash { 0%, 100% { opacity: .45; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .smoke { animation-play-state: paused; }
  .flash, .satoshi { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* responsive */
@media (max-width: 1000px) {
  .cols.four { grid-template-columns: repeat(2, 1fr); }
  .wish { grid-template-columns: repeat(3, 1fr); }
  .wish .more { grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .top nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start;
    gap: 0; padding: 8px 20px 20px; background: var(--ink); border-bottom: 1px solid var(--line-dark);
  }
  .top nav.open { display: flex; }
  .top nav a { padding: 12px 0; font-size: 18px; width: 100%; }
  .top nav .langlink { width: auto; margin-top: 10px; padding: 8px 14px; }
  .hero { flex-direction: column; min-height: 0; }
  .hero-bg { position: relative; inset: auto; order: 2; height: clamp(320px, 84vw, 480px); }
  .hero-bg::after { background: linear-gradient(180deg, rgba(14,17,22,1) 0%, rgba(14,17,22,0) 22%); }
  .hero-in h1 { max-width: none; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .cols, .road { grid-template-columns: 1fr; }
  .cols.four, .wish { grid-template-columns: repeat(2, 1fr); }
  .wish li { padding: 16px 14px; min-height: 130px; }
  .wish h3 { font-size: 17px; }
  .room-name { display: none; }
  .gal { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .gal li { font-size: 16px; gap: 8px; }
  .hash { display: none; }
  .maillink { display: block; margin: 16px 0 0; }
}
