/* El Grid campaign page. Builds on styles.css. */

/* Placeholders are deliberately easy to spot. Remove each before launch. */
.ph {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
  white-space: nowrap;
}

/* Hero: the title, a line that powers on once, then the teaser. */

.grid-hero { padding: 130px 0 clamp(4rem, 9vw, 7rem); }
.status {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
}
.grid-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(5rem, 21vw, 17rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0;
}
.power-line {
  height: 1px;
  margin: clamp(1.25rem, 3vw, 2rem) 0;
  background: var(--accent);
  transform-origin: left;
  animation: power-on 1.8s ease-out both;
}
@keyframes power-on {
  0% { transform: scaleX(0); opacity: 0.2; }
  45% { transform: scaleX(1); opacity: 0.2; }
  52% { opacity: 1; }
  58% { opacity: 0.15; }
  66% { opacity: 0.9; }
  72% { opacity: 0.3; }
  100% { transform: scaleX(1); opacity: 1; }
}
.grid-hero .blurb { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 46ch; }

.teaser {
  position: relative;
  display: block;
  margin: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-raised);
}
.teaser img { width: 100%; height: 100%; object-fit: cover; display: block; }
.teaser iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%;
  width: clamp(64px, 9vw, 104px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid var(--ink); border-radius: 50%;
  background: rgba(12, 11, 10, 0.45);
  transition: background 0.25s ease;
}
.play::after {
  content: ""; position: absolute; left: 54%; top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid; border-color: transparent transparent transparent var(--ink);
  border-width: clamp(10px, 1.4vw, 16px) 0 clamp(10px, 1.4vw, 16px) clamp(16px, 2.2vw, 26px);
}
.teaser:hover .play { background: rgba(184, 155, 106, 0.75); }

/* Story */

.story { padding-top: 0; }
.story .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.story h2, .back-intro h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.08;
  margin: 0;
}

/* Backing */

.back { background: var(--bg-raised); }
.back-intro { display: grid; gap: 1.75rem; margin-bottom: clamp(3rem, 7vw, 5rem); max-width: 720px; }
.back-intro .prose p { font-size: clamp(1.1rem, 1.6vw, 1.25rem); }
.back-intro .prose p:last-child { margin-bottom: 0; }
.back-intro .prose .note { font-size: 1rem; color: var(--ink); }

/* Thank-you gifts */

.gifts {
  align-items: start;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 820px;
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
}
.gifts figure { margin: 0; }
.gifts img { width: 100%; height: auto; display: block; }
.gift-note { grid-column: 1 / -1; margin: 0.5rem 0 0; max-width: 60ch; }
.gifts figcaption { margin-top: 0.75rem; font-size: 0.95rem; color: #c4bdb2; }

/* The tiers hang off one vertical line, like loads on a circuit. Each step up is a larger node. */

.tiers { list-style: none; margin: 0; padding: 0; --amount-col: clamp(7rem, 18vw, 15rem); }
.tier {
  --node: 7px;
  position: relative;
  display: grid;
  grid-template-columns: var(--amount-col) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.tier:nth-child(2) { --node: 9px; }
.tier:nth-child(3) { --node: 11px; }
.tier:nth-child(4) { --node: 14px; }
.tier:nth-child(5) { --node: 18px; }
.tier:nth-child(6) { --node: 22px; padding-bottom: 0; }

.tier::before {
  content: ""; position: absolute;
  left: calc(var(--amount-col) + clamp(1.25rem, 3vw, 2.5rem));
  top: 0.9rem; bottom: -0.9rem;
  width: 1px; background: var(--accent); opacity: 0.55;
}
.tier:last-child::before { display: none; }
.tier::after {
  content: ""; position: absolute;
  left: calc(var(--amount-col) + clamp(1.25rem, 3vw, 2.5rem) - var(--node) / 2 + 0.5px);
  top: calc(0.9rem - var(--node) / 2);
  width: var(--node); height: var(--node);
  border-radius: 50%; background: var(--accent);
}

.amount {
  margin: 0; text-align: right;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1;
}
.tier-body h3, .back-foot h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.7rem; line-height: 1.2;
  margin: 0 0 0.5rem;
}
.tier-body h3 span { color: var(--ink-muted); font-style: italic; font-weight: 300; margin-left: 0.35em; }
.tier-body p, .back-foot p { margin: 0 0 1rem; max-width: 56ch; }
.tier-body .note { color: #c4bdb2; font-size: 0.95rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.button.quiet { border-color: #6a6257; color: var(--ink); }
a.button.quiet:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.button:disabled { opacity: 0.85; cursor: not-allowed; }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.fine-print a { border-bottom: 1px solid #6a6257; }
.back-foot { margin-top: clamp(4rem, 8vw, 6rem); max-width: 720px; }
.and-up { display: block; font-size: 0.5em; color: #c4bdb2; }
.btc-label { margin: 1.75rem 0 0.4rem !important; color: #c4bdb2; font-size: 0.95rem; }
.btc { display: block; overflow-wrap: anywhere; font-size: 0.95rem; color: var(--ink); }
.back-foot .note { margin-top: 0.75rem; color: #c4bdb2; font-size: 0.95rem; }
.back-foot .note a { border-bottom: 1px solid #6a6257; }
.fine-print {
  margin: clamp(3rem, 6vw, 4rem) 0 0; max-width: 70ch;
  color: #c4bdb2; font-size: 0.9rem;
}

/* Past work and what people have said */

.backers { margin-top: clamp(4rem, 8vw, 6rem); }
.backers h3 {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 1.25rem;
}
.backers ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.5rem;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1.1;
}

.work h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.08;
  margin: 0 0 clamp(1.75rem, 4vw, 3rem);
}
.work h2 em { font-style: italic; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--bg-raised); overflow: hidden; }
.video.tall { aspect-ratio: 9 / 16; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stranded p { margin: 1.25rem 0 0; max-width: 60ch; font-size: 1.05rem; }
.stranded em, .press em { font-family: var(--serif); font-size: 1.15em; }
.said-title { margin-top: clamp(4.5rem, 10vw, 7.5rem) !important; }

.reactions {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
}
.reactions p {
  margin: 1rem 0 0;
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.3;
}
.press {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
}
.press blockquote { margin: 0; }
.press p { margin: 0 0 0.9rem; font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.22; }
.press em { font-size: 1em; }
.press cite { font-style: normal; font-size: 0.95rem; color: #c4bdb2; }
.press a { border-bottom: 1px solid #6a6257; }
.press a:hover { color: var(--ink); border-bottom-color: var(--ink); }

@media (max-width: 760px) {
  .press { grid-template-columns: 1fr; }
  /* Reactions swipe sideways on phones so the page isn't three screens tall. */
  .reactions {
    display: flex; gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter);
  }
  .reactions li { flex: 0 0 72%; scroll-snap-align: start; }
  .story .wrap { grid-template-columns: 1fr; }
  .tier {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    padding-left: 2rem;
  }
  .tier::before { left: 0.5rem; }
  .tier::after { left: calc(0.5rem - var(--node) / 2 + 0.5px); }
  .amount { text-align: left; }
  .button { padding: 0.95rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .power-line { animation: none; }
}
