:root {
  --void:      #0a0807;
  --void2:     #131008;
  --carpet:    #6f0d10;
  --ink:       #efe6cf;
  --ink_soft:  #d5c8a8;
  --ink_dim:   #a89876;
  --gold_hi:   #f4e0a0;
  --gold_mid:  #c9a44f;
  --gold_lo:   #6f4d10;
  --rule:      rgba(201,164,79,0.30);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--void);
  color: var(--ink);
  font-family: 'Georgia', 'EB Garamond', 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background-color: var(--void);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(244,224,160,0.05), transparent 55%),
    linear-gradient(180deg, var(--void) 0%, var(--void2) 50%, var(--void) 100%);
}

main {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px 80px;
}

/* ============ HERO with screenshot bg ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0 40px;
  margin: 0 -22px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("img/hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.55) saturate(0.85);
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 20%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.92) 100%),
    linear-gradient(180deg, rgba(10,8,7,0.55) 0%, rgba(10,8,7,0.7) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 22px;
}

.small-caps {
  font-family: 'Cinzel', 'Trajan Pro', 'Playfair Display', 'Georgia', serif;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold_mid);
  margin: 0 0 14px;
}

.gold {
  font-family: 'Cinzel', 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(180deg,
    #f4e0a0 0%,
    #e6c878 28%,
    #c9a44f 50%,
    #8c6a25 58%,
    #c9a44f 70%,
    #f4e0a0 92%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(0,0,0,0.7))
    drop-shadow(0 4px 14px rgba(0,0,0,0.7));
  line-height: 1.04;
}
.gold.mega { font-size: clamp(40px, 8.2vw, 86px); margin: 0 0 28px; }
.gold.mid  { font-size: clamp(30px, 5.4vw, 56px); margin: 0; }
.gold.med  { font-size: clamp(28px, 5vw, 52px); margin: 0 0 18px; }

.top { margin-bottom: 6px; }

.claim {
  margin: 8px 0 14px;
  letter-spacing: 0.46em;
  color: var(--ink_soft);
}

.welcome {
  margin: 0;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink_soft);
  letter-spacing: 0.01em;
  max-width: 42ch;
}

.scroll-hint {
  margin: 60px 0 0;
  font-size: 22px;
  color: var(--ink_dim);
  opacity: 0.6;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(6px); opacity: 0.85; }
}

/* ============ REVEAL TEXT (readable, not italic) ============ */
.reveal, .echo, .cta, .wall, .cine {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.is-in, .echo.is-in, .cta.is-in, .wall.is-in, .cine.is-in {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  margin: 90px auto 60px;
  max-width: 600px;
  text-align: center;
}
.reveal p {
  margin: 0 0 22px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink);
  line-height: 1.7;
}
.reveal p.quiet {
  color: var(--ink_dim);
  font-size: 16px;
}
.and-yet { margin-top: 80px; }
.and-yet p { font-size: clamp(20px, 2.6vw, 26px); }
.and-yet .so {
  letter-spacing: 0.3em;
  text-transform: lowercase;
  font-size: 22px;
  margin-top: 24px;
}

/* ============ CINEMATIC DIVIDERS (full bleed bg images) ============ */
.cine {
  position: relative;
  margin: 60px -22px;
  height: 360px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.cine::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,8,7,0.65) 0%, rgba(10,8,7,0.20) 35%, rgba(10,8,7,0.85) 100%);
  pointer-events: none;
}
.cine-crowd { background-image: url("img/crowd2.jpg"); }
.cine-wall  { background-image: url("img/wall.jpg"); }
.cine-cap {
  position: relative;
  z-index: 2;
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold_mid);
  margin-bottom: 22px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.8), 0 4px 12px rgba(0,0,0,0.8);
}
@media (max-width: 540px) {
  .cine { height: 260px; margin: 40px -22px; }
}

/* ============ THE WALL (drawing canvas) ============ */
.wall-section {
  margin: 100px -22px 0;
  padding: 80px 22px 100px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(244,224,160,0.06), transparent 70%),
    linear-gradient(180deg, var(--void) 0%, #060403 100%);
  border-top: 1px solid var(--rule);
}

.wall-title {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: clamp(24px, 4vw, 38px);
  margin: 0 auto 14px;
  max-width: 760px;
  background: linear-gradient(180deg,
    #f4e0a0 0%,
    #e6c878 30%,
    #c9a44f 52%,
    #8c6a25 60%,
    #c9a44f 70%,
    #f4e0a0 92%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(0,0,0,0.7))
    drop-shadow(0 4px 14px rgba(0,0,0,0.7));
  line-height: 1.15;
  text-transform: none;
}
.wall-sub {
  margin: 0 auto 26px;
  max-width: 540px;
  color: var(--ink_soft);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
}

/* USDC destination card */
.usdc-card {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  margin: 0 0 30px;
  border: 1px solid rgba(201,164,79,0.45);
  background: rgba(244,224,160,0.04);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(244,224,160,0.18);
}
.usdc-label {
  background: linear-gradient(180deg, #f4e0a0 0%, #c9a44f 60%, #8c6a25 100%);
  color: #1c1408;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.24em;
  font-size: 11px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
}
.usdc-copy {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 11px 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font: inherit;
  min-width: 0;
}
.usdc-text {
  font-family: ui-monospace, 'SF Mono', Consolas, 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 38ch;
  color: var(--ink_soft);
}
.usdc-hint {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold_mid);
  flex-shrink: 0;
}
.usdc-copy:hover .usdc-hint { color: var(--gold_hi); }
.usdc-copy.copied .usdc-hint { color: #a8d9a8; }
@media (max-width: 540px) {
  .usdc-text { max-width: 22ch; font-size: 12px; }
}

/* the white wall */
.wall-frame {
  margin: 0 auto 22px;
  max-width: 860px;
  padding: 18px;
  background:
    linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  border: 1px solid #2a2a2a;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.wall-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  border: 1px solid #d8d8d8;
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.10),
    inset 0 0 0 1px rgba(255,255,255,1);
  background: #ffffff;
}
.wall-stack canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#wall-base {
  z-index: 1;
  pointer-events: none;
  background: #ffffff;
}
#wall-overlay {
  z-index: 2;
  cursor: crosshair;
  touch-action: none;
  background: transparent;
}

/* markers */
.marker-tray {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 18px 10px;
  background:
    linear-gradient(180deg, #1f1a13 0%, #120e08 100%);
  border: 1px solid rgba(201,164,79,0.18);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}
.marker {
  width: 24px;
  height: 56px;
  border: 0;
  padding: 0;
  background: var(--c, #1a1a1a);
  border-radius: 4px 4px 12px 12px;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow:
    inset 0 -10px 14px rgba(0,0,0,0.18),
    inset 0 2px 0 rgba(255,255,255,0.30);
}
.marker::before {
  content: "";
  position: absolute;
  top: -8px; left: 3px; right: 3px;
  height: 12px;
  background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.marker::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 50%;
  width: 8px; height: 6px;
  background: var(--c, #1a1a1a);
  transform: translateX(-50%);
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  filter: brightness(0.85);
}
.marker:hover { transform: translateY(-4px); }
.marker.active {
  transform: translateY(-10px);
  box-shadow:
    inset 0 -10px 14px rgba(0,0,0,0.18),
    inset 0 2px 0 rgba(255,255,255,0.35),
    0 6px 14px rgba(244,224,160,0.18);
}
.marker.active::before {
  background: linear-gradient(180deg, #1f1a13 0%, #0a0805 100%);
}

.marker-clear {
  margin-left: 8px;
  height: 38px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid rgba(201,164,79,0.45);
  color: var(--gold_mid);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  align-self: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.marker-clear:hover {
  color: var(--gold_hi);
  border-color: var(--gold_hi);
  background: rgba(244,224,160,0.05);
}

/* SAVE FORM (paywall) */
.save-form {
  margin: 36px auto 0;
  max-width: 720px;
  text-align: center;
}
.save-help {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--ink_soft);
  line-height: 1.65;
}
.save-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: center;
}
.save-input {
  flex: 1 1 320px;
  min-width: 0;
  padding: 12px 14px;
  background: #0c0a07;
  border: 1px solid rgba(201,164,79,0.45);
  color: var(--ink);
  font-family: ui-monospace, 'SF Mono', Consolas, 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.save-input::placeholder { color: var(--ink_dim); }
.save-input:focus {
  border-color: var(--gold_mid);
  box-shadow: 0 0 0 1px rgba(244,224,160,0.25);
}
.save-input:disabled { opacity: 0.55; }

.save-btn {
  padding: 12px 22px;
  background: linear-gradient(180deg, #f4e0a0 0%, #c9a44f 60%, #8c6a25 100%);
  border: 1px solid rgba(244,224,160,0.7);
  color: #1c1408;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.save-btn:hover { filter: brightness(1.08); }
.save-btn:active { transform: translateY(1px); }
.save-btn:disabled {
  filter: grayscale(0.6) brightness(0.7);
  cursor: not-allowed;
}

.save-status {
  margin: 16px 0 0;
  min-height: 1.4em;
  font-family: 'Cinzel', serif;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink_dim);
}
.save-status.err  { color: #ff7d7d; }
.save-status.ok   { color: #a8d9a8; }
.save-status.wait { color: var(--gold_hi); }

/* ============ ECHO ============ */
.echo {
  text-align: center;
  margin: 80px 0 40px;
  padding: 30px 0;
}

/* ============ CTA ============ */
.cta {
  margin: 60px auto 40px;
  text-align: center;
  max-width: 560px;
}

.ca-card {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  border: 1px solid rgba(201,164,79,0.45);
  background: rgba(244,224,160,0.04);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(244,224,160,0.18);
  margin: 0 0 26px;
}
.ca-label {
  background: linear-gradient(180deg, #f4e0a0 0%, #c9a44f 60%, #8c6a25 100%);
  color: #1c1408;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.24em;
  font-size: 11px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
}
.ca-copy {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 11px 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font: inherit;
  min-width: 0;
}
.ca-text {
  font-family: ui-monospace, 'SF Mono', Consolas, 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 32ch;
  color: var(--ink_soft);
}
.ca-hint {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold_mid);
  flex-shrink: 0;
}
.ca-copy:hover .ca-hint { color: var(--gold_hi); }
.ca-copy.copied .ca-hint { color: #a8d9a8; }
@media (max-width: 480px) {
  .ca-text { max-width: 18ch; font-size: 12px; }
}

.x-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 22px;
  border: 1px solid rgba(201,164,79,0.45);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  background: rgba(244,224,160,0.03);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.x-link:hover {
  color: var(--gold_hi);
  background: rgba(244,224,160,0.08);
  border-color: var(--gold_mid);
}

/* ============ A11Y ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .echo, .cta, .wall, .cine { opacity: 1; transform: none; }
}
