/* Scene layouts. Static-first: this is the finished reduced-motion page.
   film.js adds body.js-anim and animates from these resting states. */

section {
  position: relative;
  padding: var(--s7) var(--gutter);
}

/* Pinned scenes: the pin IS the frame. No outer padding, exact viewport height,
   so each scene hands off to the next with no dead scroll between pins. */
#scene-2, #scene-3, #scene-4, #scene-5, #scene-6 { padding: 0; }

.s2-pin, .s3-pin, .s4-pin, .s5-pin, .s6-pin {
  height: 100svh;
  display: grid;
  align-content: center;
  padding: var(--s4) var(--gutter);
  overflow: clip;
}

/* Mobile: anchor pinned content below the pill so headlines never clip;
   overflow clips at the bottom of the stage instead (cinematic, safe). */
@media (max-width: 899px) {
  .s2-pin, .s3-pin, .s4-pin, .s5-pin, .s6-pin {
    align-content: start;
    padding-top: 72px;
  }
  .scene-split { gap: var(--s3); }
  .scene-text { gap: 10px; }
  .scene-text .body-copy { font-size: 16px; }
  .s2-pin { gap: var(--s3); }
  .s4-stage { gap: var(--s3); }
}

/* Shared split layout: text left, stage right (stacks on mobile) */
.scene-split {
  display: grid;
  gap: var(--s5);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .scene-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--s6);
  }
}

.scene-text { display: grid; gap: var(--s2); justify-items: start; }
.scene-stage { position: relative; display: grid; justify-items: center; }

/* Shared card language */
.note-card,
.s2-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--s2);
}

.card-meta {
  font-family: var(--font-mono);
  font-size: var(--meta-sm);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sub);
}

.note-title { font-weight: 700; line-height: 1.35; margin-bottom: 6px; }

mark {
  background: var(--accent-soft);
  color: var(--ink);
  padding: 0 2px;
  border-radius: 2px;
}

/* ================= SCENE 1 · HERO ================= */

.s1-bg, .s10-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.s1-bg img, .s10-bg img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  opacity: 0.85;
  will-change: transform;
}

.s10-bg img { transform: rotate(180deg); opacity: 0.55; }

.s1-bg::after, .s10-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 42%, rgba(20, 17, 16, 0) 0%, rgba(20, 17, 16, 0.55) 78%, rgba(20, 17, 16, 0.9) 100%);
}

#scene-1 > *:not(.s1-bg), #scene-10 > *:not(.s10-bg) { position: relative; z-index: 1; }

#scene-1 {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: var(--s3);
  padding-bottom: var(--s3);
}

.wordmark {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.s1-inner {
  display: grid;
  gap: var(--s3);
  justify-items: center;
  text-align: center;
  align-content: center;
}

.s1-mark {
  font-size: clamp(72px, 14vw, 160px);
  line-height: 1;
}

.s1-headline { max-width: 8em; }

.s1-subhead { max-width: 30em; color: var(--sub); }

.s1-form { justify-items: center; text-align: left; }

.s1-scrollcue {
  justify-self: center;
  animation: cue-drift 2.4s ease-in-out infinite;
}

@keyframes cue-drift {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ================= SCENE 2 · THE PROBLEM ================= */

#scene-2 { overflow: clip; }

.s2-pin { gap: var(--s5); }
.s2-pin > * { max-width: 1100px; margin-left: auto; margin-right: auto; width: 100%; }

.s2-label { text-align: center; }

/* Beats share one stage slot and swap in sequence (film.js) */
.s2-copy {
  display: grid;
  text-align: center;
  justify-items: center;
  max-width: 26em;
  margin: 0 auto;
  min-height: 5.2em;
  align-items: center;
}

.s2-beat { grid-area: 1 / 1; }

.s2-beat-3 { color: var(--sub); }

.s2-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: var(--s2);
  justify-content: center;
}

@media (min-width: 900px) {
  .s2-cards { grid-template-columns: repeat(4, minmax(0, 200px)); }
}

.s2-card { display: grid; gap: 10px; }

.s2-card.card-a { transform: rotate(-2deg); }
.s2-card.card-b { transform: rotate(1.5deg); }
.s2-card.card-c { transform: rotate(-1deg); }
.s2-card.card-d { transform: rotate(2deg); }

.s2-card { min-height: 140px; align-content: space-between; }

/* Abstract note content: anonymous ink bars, one optional soft highlight */
.card-bars { display: grid; gap: 8px; padding: 6px 0; align-content: start; }
.card-bars i { height: 9px; border-radius: 5px; background: var(--line); }
.card-bars .bar-hl { background: var(--accent-soft); }

/* ================= SCENE 3 · CAPTURE (phone) ================= */

#scene-3 { overflow: clip; }



.scene-stage { perspective: 1200px; }

.phone {
  width: min(300px, 74vw, 36svh);
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  background: #070605;
  border: 1px solid var(--line);
  padding: 10px;
  box-shadow: var(--shadow-lift);
}

.phone-screen {
  background: var(--surface);
  border-radius: 28px;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.editor { padding: 26px 20px; display: grid; align-content: start; }

.editor-line {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  min-height: 3em;
}

.caret {
  display: inline-block;
  width: 3px;
  border-radius: 2px;
  height: 1.4em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: caret-blink 1.1s steps(1) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

.keyboard {
  background: #100D0B;
  padding: 8px 6px 14px;
  display: grid;
  gap: 6px;
}

.kb-row { display: flex; justify-content: center; gap: 5px; }

.kb-row i {
  height: 30px;
  flex: 1 1 0;
  max-width: 26px;
  background: #292420;
  border-radius: 5px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.kb-row .kb-space { max-width: 150px; flex: 1 1 150px; }



/* ================= SCENE 4 · FILE (inbox stack → collections) ======== */

#scene-4 { overflow: clip; }

.s4-stage {
  display: grid;
  gap: var(--s4);
  justify-items: center;
  width: 100%;
}

.s4-stack {
  position: relative;
  width: min(340px, 88vw);
  display: grid;
}

.s4-note { position: relative; width: 100%; }

.s4-note.n1 { z-index: 3; transform: rotate(-1deg); }
.s4-note.n2 { z-index: 2; margin-top: -52px; transform: rotate(1.2deg); }
.s4-note.n3 { z-index: 1; margin-top: -52px; transform: rotate(-0.6deg); }

.s4-collections {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.s4-collection {
  font-family: var(--font-mono);
  font-size: var(--meta);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  transition: background-color 0.3s ease;
}

.s4-collection.lit { background: var(--accent-soft); }

.chip-hash { color: var(--sub); margin-right: 1px; }

/* ================= SCENE 5 · RESURFACE ================= */

#scene-5 { overflow: clip; }

.s5-onote {
  width: min(340px, 88vw);
  box-shadow: var(--shadow-lift);
}

/* ================= SCENE 6 · DISCOVER (graph) ================= */

#scene-6 { overflow: clip; }

.s6-graph { width: min(520px, 92vw); }

.s6-edge { stroke: var(--line); stroke-width: 1.5; }

.s6-edge-key { stroke: var(--ink); stroke-width: 2; }

.s6-node { fill: var(--ink); }

.s6-node-key { fill: var(--accent-soft); stroke: var(--ink); stroke-width: 2; }

.s6-labels text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: var(--sub);
}

/* ================= SCENE 7 · DIFFERENT ================= */

#scene-7 { border-top: 1px solid var(--line); }

.s7-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: var(--s6);
}

.s7-item { display: grid; gap: var(--s2); }

.s7-item .body-copy { color: var(--sub); }

/* ================= SCENE 8 · CLOSING ================= */

#scene-10 {
  border-top: 1px solid var(--line);
  min-height: 90svh;
  display: grid;
}

/* ================= SCENE 7 · PRIVACY ================= */

.privacy-inner {
  min-height: 82svh;
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: var(--s2);
  align-content: center;
  justify-items: center;
  text-align: center;
}

.privacy-inner .body-copy { color: var(--sub); }

/* ================= SCENE 8 · THE JOURNAL ================= */

.journal-head {
  max-width: 860px;
  margin: 0 auto var(--s6);
  display: grid;
  gap: var(--s2);
}

.journal-body { align-items: start; }

.journal-body .s7-inner { gap: var(--s4); }

.j-card {
  width: min(380px, 88vw);
  box-shadow: var(--shadow-lift);
  display: grid;
  gap: 12px;
  padding: var(--s3);
  transform: rotate(-1deg);
  position: sticky;
  top: 12vh;
}

.j-prompt {
  font-family: var(--font-mono);
  font-size: var(--meta);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sub);
  line-height: 1.6;
}

/* ================= SCENE 9 · THE TOOLS ================= */

#scene-9 { border-top: 1px solid var(--line); }

.tools-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: var(--s5);
  justify-items: center;
  text-align: center;
}

.tools-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4) var(--s5);
  width: 100%;
  max-width: 640px;
}

@media (min-width: 900px) {
  .tools-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.tool {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.tool svg {
  width: 34px;
  height: 34px;
  stroke: var(--ink);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tools-note { color: var(--sub); text-align: center; }

.s8-inner {
  display: grid;
  gap: var(--s4);
  justify-items: center;
  text-align: center;
  align-content: center;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.s8-ask { max-width: 14em; }

.s8-form { justify-items: center; text-align: left; }

.s8-written {
  font-size: clamp(44px, 9vw, 110px);
  margin-top: var(--s4);
}

.s8-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
  margin-top: var(--s5);
}
