/* artrows.org: one dark page, a museum at night. Colours of the logo (D-060) and of the dark theme of the game (D-069). */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito.woff") format("woff"); font-weight: 400 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #1f1b17;
  --bg-deep: #151210;
  --card: #2a2520;
  --line: #3a332c;
  --cream: #f9ebcc;
  --text: #efe6d6;
  --muted: #b5ac9c;
  --lime: #d4f26b;
  --mustard: #e9b83c;
  --sea: #3f9c93;
  --coral: #d95f4b;
  --navy: #2b3f7f;
  --gold-1: #7a5a24;
  --gold-2: #e2c072;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg-deep); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: var(--lime); text-underline-offset: .18em; }
a:hover { color: var(--cream); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--cream); line-height: 1.12; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.4rem; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 38rem; }
.eyebrow { font: 800 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin-bottom: 1rem; }
.stripe-rule { display: flex; height: 6px; width: 120px; border-radius: 3px; overflow: hidden; margin: 1.4rem 0; }
.stripe-rule i { flex: 1; }
.stripe-rule i:nth-child(1) { background: var(--mustard); }
.stripe-rule i:nth-child(2) { background: var(--sea); }
.stripe-rule i:nth-child(3) { background: var(--coral); }
.stripe-rule i:nth-child(4) { background: var(--navy); }

/* ---------------------------------------------------------------------------------------------------------- top bar */

.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px var(--gutter); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.topbar .brand { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
.topbar .brand img { height: 26px; width: auto; }
.topbar { transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.topbar.is-solid { background: rgba(21, 18, 16, .88); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.topbar.is-solid .lang { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.topbar.is-solid .brand { opacity: 1; transform: none; }
.lang { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(21, 18, 16, .72); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lang a { font: 800 .8rem/1 var(--sans); letter-spacing: .08em; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; min-width: 44px; text-align: center; }
.lang a[aria-current="page"] { background: var(--cream); color: var(--bg); }

/* ---------------------------------------------------------------------------------------------------------- hero */

.hero { position: relative; height: 270vh; background: radial-gradient(120% 80% at 50% 40%, #2b251f 0%, var(--bg) 55%, var(--bg-deep) 100%); }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-art { position: absolute; inset: 0; }
.float { position: absolute; left: var(--x); top: var(--y); width: var(--w); margin: 0; padding: 5px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-1) 40%, var(--gold-2) 60%, var(--gold-1));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 2px 0 rgba(0, 0, 0, .4); will-change: transform; }
.float::after { content: ""; position: absolute; inset: 4px; box-shadow: inset 0 0 0 1px rgba(40, 26, 8, .7); pointer-events: none; }
.float img { width: 100%; height: auto; }
.float .px { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); image-rendering: pixelated; image-rendering: crisp-edges; }
.float.far { filter: brightness(.62) saturate(.85); z-index: 1; }
.float.mid { filter: brightness(.8); z-index: 2; }
.float.near { z-index: 3; }

.logo { position: absolute; inset: 0; z-index: 4; pointer-events: none; perspective: 1200px; }
.logo-tilt { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-style: preserve-3d; }
.logo-band { position: absolute; display: flex; overflow: hidden; background: var(--navy);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 6px 16px rgba(0, 0, 0, .45); }
.logo-band .stripe { flex: 1; position: relative; overflow: hidden; }
.logo-band .stripe span { position: absolute; inset: -6%; background-size: cover; background-position: center; will-change: transform; }
.logo-band .s1 { background: var(--mustard); } .logo-band .s2 { background: var(--sea); }
.logo-band .s3 { background: var(--coral); } .logo-band .s4 { background: var(--navy); }
.logo-name { position: absolute; transform-origin: 0 0; }
.logo-name img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The shadow of the paper cut-outs of the game (tools/build_splash.py), in the pixels of the name's layer (0.4 of the concept's). */
.logo-a, .logo-word { filter: drop-shadow(5.6px 8.7px 14px rgba(14, 3, 8, .5)); }

.hero-fallback { display: none; }
.no-js .logo-tilt { display: none; }
.no-js .hero-fallback { display: block; position: absolute; left: 50%; top: 34%; width: min(88vw, 1100px); height: auto; transform: translate(-50%, -50%); border-radius: 18px; }

.hero-copy { position: absolute; left: 0; right: 0; top: 56%; z-index: 7; padding: 0 var(--gutter); text-align: center; display: grid; justify-items: center; gap: .9rem; }
.hero-copy h1 { font-size: clamp(1.7rem, 4vw, 3rem); max-width: 20ch; text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.hero-copy .lead { color: var(--text); text-shadow: 0 1px 12px rgba(0, 0, 0, .7); text-wrap: balance; }
.pill { display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: 0 1.5rem; border-radius: 999px; background: var(--lime); color: var(--bg);
  font: 800 1rem/1 var(--sans); text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.pill svg { width: 20px; height: 20px; flex: none; }
.pill.soon { background: rgba(21, 18, 16, .6); color: var(--lime); border: 1.5px solid var(--lime); box-shadow: none; min-height: 44px; font-size: .92rem; letter-spacing: .02em; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; z-index: 5; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px;
  font: 800 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.scroll-hint i { width: 2px; height: 34px; background: linear-gradient(var(--cream), transparent); border-radius: 2px; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: translateY(-4px); opacity: .4; } 50% { transform: translateY(6px); opacity: 1; } }

/* ---------------------------------------------------------------------------------------------------------- sections */

section.block { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.block-head { display: grid; gap: 1rem; margin-bottom: clamp(40px, 6vw, 72px); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.step { counter-increment: step; display: grid; gap: 1rem; align-content: start; will-change: transform; }
.phone { margin: 0 0 .6rem; border-radius: 34px; padding: 10px; background: #0d0b0a; border: 1px solid #3a332c;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5); max-width: 300px; }
.phone img { border-radius: 25px; width: 100%; height: auto; aspect-ratio: 1 / 2; }
.step h3::before { content: counter(step, decimal-leading-zero); display: block; font: 800 .8rem/1 var(--sans); letter-spacing: .16em; color: var(--lime); margin-bottom: .6rem; }
.step p { color: var(--muted); max-width: 28ch; }

.reveal { height: 230vh; padding: 0; background: var(--bg-deep); }
.reveal-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 5vw, 72px); max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.reveal-art { position: relative; margin: 0; padding: 8px; background: linear-gradient(135deg, var(--gold-2), var(--gold-1) 40%, var(--gold-2) 60%, var(--gold-1));
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6); }
.reveal-art img, .reveal-art canvas { width: 100%; height: auto; display: block; aspect-ratio: 3409 / 2380; }
.reveal-art canvas { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.reveal-copy { display: grid; gap: 1rem; }
.meter { display: grid; gap: .5rem; margin-top: .6rem; max-width: 22rem; }
.meter-bar { height: 8px; border-radius: 4px; background: var(--card); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: calc(var(--done, 0) * 100%);
  background: linear-gradient(90deg, var(--mustard) 0 25%, var(--sea) 25% 50%, var(--coral) 50% 75%, var(--navy) 75%); background-size: 22rem 100%; }
.meter-label { font: 800 .85rem/1 var(--sans); letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.caption { font-size: .9rem; color: var(--muted); }

.countries { overflow: hidden; }
.rails { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.rail { display: flex; gap: clamp(16px, 2.4vw, 28px); width: max-content; padding: 0 var(--gutter); will-change: transform; }
.card { margin: 0; width: clamp(220px, 26vw, 320px); flex: none; background: var(--card); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card figcaption { padding: 14px 16px 16px; display: grid; gap: 2px; }
.card strong { font: 600 1.25rem/1.2 var(--serif); color: var(--cream); }
.card span { font-size: .88rem; color: var(--muted); line-height: 1.35; }
.card .hue { display: block; width: 28px; height: 4px; border-radius: 2px; margin-bottom: 8px; }

.museum-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: .4rem; align-content: start; }
.features svg { width: 30px; height: 30px; color: var(--lime); stroke: var(--lime); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .3rem; }
.features h3 { font-size: 1.15rem; }
.features p { color: var(--muted); font-size: .95rem; line-height: 1.5; }

.fair { background: var(--bg-deep); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promises li { padding: 26px 24px; border-top: 4px solid var(--c); background: var(--card); border-radius: 0 0 18px 18px; font: 600 1.25rem/1.35 var(--serif); color: var(--cream); }
.promises li:nth-child(1) { --c: var(--mustard); } .promises li:nth-child(2) { --c: var(--sea); } .promises li:nth-child(3) { --c: var(--coral); }

.finale { text-align: center; overflow: hidden; }
.finale .wrap { display: grid; justify-items: center; gap: 1.2rem; }
.finale-logo { width: min(560px, 86vw); height: auto; border-radius: 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }

footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: .92rem; background: var(--bg-deep); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
footer img { height: 22px; width: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--text); }
footer small { flex-basis: 100%; }

/* ---------------------------------------------------------------------------------------------------------- narrow screens */

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .step { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); align-items: center; gap: 0 22px; }
  .step .phone { grid-row: span 2; margin: 0; border-radius: 22px; padding: 6px; }
  .step .phone img { border-radius: 17px; }
  .step h3 { align-self: end; }
  .step p { align-self: start; }
  .reveal { height: 210vh; }
  .reveal-stage { grid-template-columns: 1fr; align-content: center; gap: 28px; }
  .museum-grid { grid-template-columns: 1fr; }
  .museum-grid .phone { max-width: 230px; margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .float.wide-only { display: none; }
  .hero { height: 230vh; }
}

/* Without movement: everything in its last place, the paintings restored, the rails scroll by hand. */
@media (prefers-reduced-motion: reduce) {
  .hero, .reveal { height: auto; }
  .hero-stage, .reveal-stage { position: relative; }
  .float .px { display: none; }
  .rails { overflow-x: auto; }
  .scroll-hint i { animation: none; }
}
.no-js .float .px { display: none; }
.no-js .rails { overflow-x: auto; }
