/* Phoenix — snap-panel rebuild. Charcoal + ember. 100svh panels, one idea per screen. */
:root {
  --bg: #0b0906;
  --bg-2: #161009;
  --ink: #f6efe4;
  --muted: #c9bba6;
  --ember: #ff7a2e;
  --ember-deep: #b93d0c;
  --display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  overflow: hidden; /* the .panels container is the scroller */
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: fixed; top: -4rem; left: 1rem; z-index: 60;
  background: var(--ink); color: #000; padding: .6rem 1rem; border-radius: .4rem;
  font-weight: 600; text-decoration: none; transition: top .2s ease;
}
.skip:focus { top: 1rem; }

/* ---------- fixed header ---------- */
.site {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(11,9,6,.82), rgba(11,9,6,0));
  pointer-events: none;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad);
  pointer-events: auto;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: .02em;
  min-height: 44px;
}
.mark { width: 26px; height: 26px; color: var(--ember); }
.site nav { display: flex; align-items: center; gap: 1.1rem; }
.site nav a:not(.btn-ghost) {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500;
  min-height: 44px; display: inline-flex; align-items: center;
}
.site nav a:not(.btn-ghost):hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn {
  color: #140c05;
  background: linear-gradient(135deg, #ff8a3d, var(--ember) 55%, var(--ember-deep));
  box-shadow: 0 6px 24px rgba(255, 110, 40, .32);
  border: none;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .75; cursor: progress; }
.btn-ghost {
  color: var(--ink); border-color: rgba(246,239,228,.32);
  background: rgba(11,9,6,.35); backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--ember); color: var(--ink); }

/* ---------- snap panels ---------- */
.panels {
  height: 100svh; overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.panels::-webkit-scrollbar { display: none; }
.panel {
  position: relative; height: 100svh;
  scroll-snap-align: start; scroll-snap-stop: always;
  overflow: hidden; isolation: isolate;
}

/* full-bleed imagery + gradient scrims */
.bg { position: absolute; inset: 0; z-index: -2; }
.bg img {
  width: 100%; height: 120%; object-fit: cover; object-position: center;
  will-change: transform; transform: translate3d(0, -8%, 0) scale(1.04);
}
.scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.scrim-bottom { background: linear-gradient(to top, rgba(5,3,2,.92) 0%, rgba(5,3,2,.45) 42%, rgba(5,3,2,.05) 70%, rgba(5,3,2,.35) 100%); }
.scrim-top { background: linear-gradient(to bottom, rgba(5,3,2,.9) 0%, rgba(5,3,2,.4) 45%, rgba(5,3,2,.04) 72%, rgba(5,3,2,.3) 100%); }
.scrim-left { background: linear-gradient(to right, rgba(5,3,2,.93) 0%, rgba(5,3,2,.62) 48%, rgba(5,3,2,.14) 78%, rgba(5,3,2,.05) 100%); }
.scrim-solid { background:
  radial-gradient(120% 90% at 50% 110%, rgba(185,61,12,.35), transparent 60%),
  radial-gradient(90% 60% at 50% -10%, rgba(255,122,46,.14), transparent 55%),
  linear-gradient(var(--bg), var(--bg-2)); }

/* one giant display word */
.giant {
  position: absolute; left: 50%; top: 12svh; transform: translateX(-50%);
  margin: 0; z-index: 0;
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(4.5rem, 21vw, 17rem); line-height: .95; letter-spacing: .01em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(246,239,228,.30);
  white-space: nowrap; pointer-events: none; user-select: none;
  opacity: .9;
}
.giant-bottom { top: auto; bottom: 4svh; }
.giant-top { top: 11svh; }
.giant-back { top: 10svh; opacity: .5; }

/* copy blocks — varied placement, nothing forced to center */
.copy {
  position: relative; z-index: 1;
  height: 100%; padding: calc(4.5rem + var(--pad)) var(--pad) 6rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .9rem;
  max-width: 40rem;
}
.copy-hero { justify-content: flex-end; }
.copy-top { justify-content: flex-start; padding-top: calc(6rem + var(--pad)); }
.copy-right { margin-left: auto; text-align: right; align-items: flex-end; justify-content: flex-end; }
.copy-mid { justify-content: flex-start; padding-top: 26svh; }
.copy-hatch { max-width: 44rem; margin: 0 auto; text-align: center; align-items: center; justify-content: center; padding-top: 5rem; }

.eyebrow {
  margin: 0; font-size: .8rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--ember);
}
.punch {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 8.5vw, 5.2rem); line-height: 1.02; letter-spacing: .005em;
  text-wrap: balance;
}
.punch em { font-style: normal; color: var(--ember); white-space: nowrap; }
.sub {
  margin: .1rem 0 0; font-size: clamp(1rem, 2.6vw, 1.25rem);
  line-height: 1.55; color: var(--muted); max-width: 30rem;
}
.copy-right .sub { margin-left: auto; }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .6rem; }

/* scroll cue */
.scroll {
  position: absolute; right: var(--pad); bottom: 2.2rem; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(246,239,228,.35); border-radius: 50%;
  text-decoration: none;
}
.scroll span {
  width: 10px; height: 10px; border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-2px,-2px);
}

/* hatch panel: status + notify */
.status { display: grid; gap: .55rem; margin: .4rem 0 .2rem; max-width: 34rem; }
.status p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--muted); }
.status strong { color: var(--ink); font-weight: 600; letter-spacing: .04em; }

form[data-notify] { width: 100%; max-width: 30rem; }
.fields { display: flex; gap: .7rem; align-items: flex-end; }
.field { flex: 1; display: grid; gap: .35rem; text-align: left; }
.field label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input {
  min-height: 52px; padding: .85rem 1.1rem; border-radius: .7rem;
  border: 1px solid rgba(246,239,228,.22); background: rgba(246,239,228,.06);
  color: var(--ink); font: inherit; font-size: 1rem; width: 100%;
}
.field input::placeholder { color: rgba(201,187,166,.5); }
.field input:focus { outline: 2px solid var(--ember); outline-offset: 2px; border-color: var(--ember); }
.field-error { min-height: 1.4em; margin: .4rem 0 0; font-size: .88rem; color: #ff9d6e; }
.micro { margin: .5rem 0 0; font-size: .85rem; color: var(--muted); }
.spinner {
  display: none; width: 1.1em; height: 1.1em; margin-right: .5em;
  border: 2px solid rgba(20,12,5,.35); border-top-color: #140c05; border-radius: 50%;
  animation: spin .7s linear infinite;
}
.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.foot { display: grid; gap: .7rem; justify-items: center; margin-top: 1.2rem; }
.badge img { display: block; width: 190px; height: auto; border-radius: 6px; }
.foot nav { display: flex; gap: 1.4rem; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: .88rem; min-height: 44px; display: inline-flex; align-items: center; }
.foot nav a:hover { color: var(--ink); }
.fine { margin: 0; font-size: .78rem; color: rgba(201,187,166,.6); }

/* sticky CTA (mobile, hidden when hero/hatch in view) */
.sticky-cta {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 55;
  display: none; padding: .9rem 1.8rem; border-radius: 999px;
  background: linear-gradient(135deg, #ff8a3d, var(--ember) 55%, var(--ember-deep));
  color: #140c05; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  min-height: 52px; align-items: center;
}
@media (max-width: 720px) { .sticky-cta { display: inline-flex; } }

/* staggered clip reveals — transform + clip-path only */
.rv {
  opacity: 0; transform: translateY(34px);
  clip-path: inset(-6% -4% 104% -4%);
  transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.22,.9,.28,1) var(--d, 0s),
              clip-path .8s cubic-bezier(.22,.9,.28,1) var(--d, 0s);
}
.in .rv { opacity: 1; transform: none; clip-path: inset(-6% -4% -6% -4%); }

@media (prefers-reduced-motion: reduce) {
  .panels { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; clip-path: none; transition: none; }
  .spinner { animation: none; }
  .scroll { display: none; }
}

@media (min-width: 900px) {
  .copy-mid { padding-top: 30svh; }
  .badge img { width: 220px; }
}

/* ---------- secondary pages (privacy / thanks / 404 / derp) ----------
   Standalone documents, not part of the snap scroller. */
body:has(> main#content) { overflow-y: auto; }
body > main#content .panel {
  height: auto; min-height: 100svh; scroll-snap-align: none;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(185,61,12,.28), transparent 60%),
    linear-gradient(var(--bg), var(--bg-2));
}
.wrap { width: 100%; max-width: 44rem; padding: 6rem var(--pad) 4rem; }
.stage { display: grid; gap: 1rem; text-align: center; justify-items: center; }
.stage h1 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 4rem); line-height: 1.05;
}
.stage h2 { margin: 1.5rem 0 .5rem; font-size: 1.2rem; }
.stage .lede { margin: 0; font-size: 1.1rem; line-height: 1.6; color: var(--muted); max-width: 34rem; }
.stage .muted { margin: 0; font-size: .95rem; line-height: 1.65; color: var(--muted); max-width: 36rem; }
.stage a { color: var(--ink); }
.stage ul { text-align: left; color: var(--muted); line-height: 1.7; }
.madeby-badge { margin: 1.2rem 0 0; }
.madeby-badge img { display: block; width: 160px; height: auto; border-radius: 6px; }
.big { margin: 0; }
body > header.site { position: absolute; }
body > header.site .brand .wordmark,
body > header.site .brand .project {
  color: var(--ink); text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
}
body > header.site .brand .sep { color: var(--muted); margin: 0 .35rem; }
