/* Homepage — the 1807 story page.
   Section order mirrors the partials in app/views/pages/home.html.erb:
   intro → hero → hook/story → signup → shows → band.
   Top mark and footer live in layout.css; design tokens in colors_and_type.css. */

.page-1807 { min-height: 100vh; }

/* ===== INTRO — brand card above the hero ===== */
.home {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: var(--earth-deep);
}
.home__inner {
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.home__brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--parchment);
}
.home__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--parchment-dim);
  margin: 0;
}
.home__cta {
  margin-top: 2rem;
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: lowercase;
  color: var(--parchment);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 241, 232, 0.25);
  padding-bottom: 6px;
  transition: color var(--dur-fast) var(--ease-fade), border-color var(--dur-fast) var(--ease-fade), letter-spacing var(--dur-base) var(--ease-fade);
}
.home__cta:hover {
  color: var(--gold-muted);
  border-color: var(--gold-muted);
  letter-spacing: 0.46em;
}
@media (max-width: 480px) {
  .home {
    min-height: 82vh;
    padding: 4vh 4vw;
  }
}

/* ===== HERO ===== */
.hero1807 {
  position: relative;
  height: 88vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--earth-deep);
}
.hero1807__frame {
  position: absolute;
  top: 0; bottom: 0;
  left: 0; right: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}
.hero1807__media {
  position: absolute; inset: 0;
  background-image: url("/assets/1807-flyer-995b02aa.jpg");
  background-size: cover;
  background-position: center 35%;
  filter: saturate(0.92) contrast(1.02);
  animation: heroDrift 16s var(--ease-cinema) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to   { transform: scale(1.10) translate3d(-1.5%, -1%, 0); }
}
.hero1807__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(13, 9, 7, 0.55) 0%,
      rgba(13, 9, 7, 0.10) 22%,
      rgba(13, 9, 7, 0.10) 75%,
      rgba(26, 20, 16, 0.6) 90%,
      var(--earth-deep) 100%);
}
.hero1807__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(13,9,7,0.55) 100%);
  pointer-events: none;
  /* Confine the vignette to the top portion so it doesn't darken the bottom
     corners and fight with the scrim's bottom fade. Fades to nothing well
     before the scrim's fade-to-earth-deep zone starts at 75%. */
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 45%, transparent 70%);
          mask-image: linear-gradient(to bottom, black 0%, black 45%, transparent 70%);
}
.hero1807__content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 14vh 8vw 0;
  max-width: 1600px; margin: 0 auto;
}
.hero1807__title-wrap {
  display: flex; flex-direction: column; align-items: center;
  width: min(100%, 1200px); margin: 0 auto;
}
.hero1807__title {
  font-family: var(--font-display);
  font-size: clamp(6rem, min(20vw, 30vh), 24rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: var(--parchment);
  margin: 0;
  text-align: center;
  text-shadow: 0 8px 60px rgba(13,9,7,0.6);
}
.hero1807__sub {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  letter-spacing: 0.05em;
  color: rgba(245, 241, 232, 0.52);
  margin-top: 1.8em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
}
.hero1807__playcue {
  position: absolute;
  left: 50%; bottom: 14vh; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  z-index: 3;
  cursor: pointer;
  transition: opacity var(--dur-slow) var(--ease-fade);
}
.hero1807__playcue:hover { opacity: 0.85; }
.hero1807__playcue svg circle { transition: stroke-opacity var(--dur-base) var(--ease-fade); }
.hero1807__playcue:hover svg circle { stroke-opacity: 1; }
.hero1807__playlabel {
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--parchment);
}

/* Scroll cue — animated down arrow near the bottom of the hero. Clickable,
   scrolls to #verhaal. */
.hero1807__scrollcue {
  position: absolute;
  left: 50%;
  bottom: 2vh;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  cursor: pointer;
  text-decoration: none;
  color: var(--parchment);
  border: 0;
  padding: 8px;
  background: none;
  transition: color var(--dur-fast) var(--ease-fade);
}
.hero1807__scrollcue-arrow {
  display: block;
  animation: scrollCueBounce 1.8s ease-in-out infinite;
}
.hero1807__scrollcue:hover {
  color: var(--gold-muted);
}
@keyframes scrollCueBounce {
  0%, 100% { transform: translateY(-6px); opacity: 0.55; }
  50%      { transform: translateY(6px);  opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero1807__scrollcue-arrow { animation: none; opacity: 0.8; }
}

/* On short viewports the hero hits its 620px min-height, so vh-based
   positioning collapses onto itself. Anchor both cues in pixels instead
   so they keep a fixed gap regardless of how short the viewport gets. */
@media (max-height: 700px) {
  .hero1807__playcue   { bottom: 140px; }
  .hero1807__scrollcue { bottom: 24px; }
}

/* ===== HOOK — full-bleed type moment, continuation of hero ===== */
.hook {
  position: relative;
  background: var(--earth-deep);
  padding: clamp(3rem, 7vh, 6rem) 8vw 5rem;
  text-align: left;
  overflow: hidden;
  scroll-margin-top: 72px;
}
/* (The hero→hook bridge that used to sit here was removed: the .hero1807__scrim
   already fades the image to var(--earth-deep) at its bottom edge, so an
   additional full-viewport overlay was just creating a visible dark band
   between the image and the hook content on big screens.) */

/* Single thin bridge from hook → story: 130px, smooth two-stop fade,
   ending exactly at the story background so the seam disappears. */
.hook::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 130px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(26, 20, 16, 0) 0%,
    #2c1c15 100%);
}
/* Grain — masked into the same band, breaks any 8-bit banding. */
.hook__grain {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 150px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.88  0 0 0 0 0.78  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 260px 260px;
  background-repeat: repeat;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
}
.hook__inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.hook__line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 6.2vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--parchment);
  margin: 0;
  text-wrap: balance;
}
.hook__line--accent {
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  color: oklch(0.82 0.075 70);
}
.hook__line + .hook__line { margin-top: 0.05em; }

/* ===== STORY ===== */
.story {
  position: relative;
  background: #2c1c15;
  padding: clamp(2.5rem, 5vh, 4rem) 8vw clamp(4rem, 8vh, 6rem);
  scroll-margin-top: 72px;
}
.story__inner { position: relative; max-width: 880px; margin: 0 auto; }
.story__eyebrow {
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: clamp(2rem, 5vh, 4rem);
}
.story__line {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.5;
  font-weight: 300;
  color: var(--parchment);
  margin: 0;
  text-wrap: balance;
}
.story__line + .story__line { margin-top: 0.7em; }
.story__line--ellipsis { color: var(--parchment-dim); font-style: italic; }

/* ===== CTA / Signup ===== */
.cta {
  position: relative;
  background: #3a2218;
  padding: clamp(5rem, 9vh, 8rem) 8vw clamp(10rem, 16vh, 14rem);
  text-align: center;
  scroll-margin-top: 72px;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 90px;
  pointer-events: none;
  background: linear-gradient(to bottom, #2c1c15 0%, #3a2218 100%);
}
.cta::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: clamp(320px, 40vh, 480px);
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(58, 34, 24, 0) 0%,
    rgba(40, 24, 16, 0.55) 45%,
    rgba(24, 14, 10, 0.9) 80%,
    #140c09 100%);
}
.cta__inner {
  position: relative; z-index: 2;
  max-width: 840px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.cta__main {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  font-style: italic;
  color: var(--parchment);
  margin: 0;
}
.cta__sub {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--parchment-dim);
  margin: 0;
  max-width: 64ch;
  text-wrap: balance;
}
.cta__reassure {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.42);
  margin: -22px 0 0;
  max-width: 38ch;
}
.cta__formwrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.cta__form {
  display: flex; align-items: stretch;
  width: 100%;
  max-width: 580px;
  gap: 14px;
}
.cta__input {
  flex: 1 1 70%;
  min-width: 0;
  background: rgba(245, 241, 232, 0.04);
  border: 1px solid rgba(245, 241, 232, 0.18);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--parchment);
  padding: 14px 18px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-fade), background var(--dur-fast) var(--ease-fade), box-shadow var(--dur-fast) var(--ease-fade);
}
.cta__input::placeholder { color: rgba(245, 241, 232, 0.65); font-style: italic; }
.cta__input:hover {
  border-color: rgba(245, 241, 232, 0.32);
  background: rgba(245, 241, 232, 0.06);
}
.cta__input:focus {
  border-color: var(--gold-muted);
  background: rgba(245, 241, 232, 0.06);
  box-shadow: 0 0 20px rgba(194, 163, 107, 0.12);
}
.cta__btn {
  flex: 0 0 auto;
  align-self: center;
  font-family: var(--font-meta);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  background: transparent;
  color: var(--parchment);
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(194, 163, 107, 0.5);
  text-underline-offset: 6px;
  transition: color var(--dur-fast) var(--ease-fade), letter-spacing var(--dur-base) var(--ease-fade), text-decoration-color var(--dur-fast) var(--ease-fade);
}
.cta__btn:hover {
  letter-spacing: 0.22em;
  color: var(--gold-muted);
  text-decoration-color: var(--gold-muted);
}
.cta__hint {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(245, 241, 232, 0.55);
  margin: 0;
  text-align: center;
}
.cta__alt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.55);
  text-align: center;
  margin: 0;
}
.cta__alt-link {
  color: rgba(245, 241, 232, 0.82);
  border: 0;
  padding: 0;
  padding-left: 2px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  transition: color 200ms var(--ease-fade), text-decoration-color 200ms var(--ease-fade);
}
.cta__alt-link:hover {
  color: var(--parchment);
  text-decoration-color: rgba(245, 241, 232, 0.35);
}
.cta__alt-sep {
  opacity: 0.5;
}
.cta__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  width: 100%;
  animation: confirmIn 260ms var(--ease-fade) both;
}
.cta__done-line {
  font-family: var(--font-meta);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--parchment);
  margin: 0;
}
.cta__done-msg {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.72);
  margin: 0;
}
@keyframes confirmIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cta__success {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--gold-muted);
  padding: 20px 0;
}

/* ===== CONTEXT / Shows ===== */
.context {
  background: #140c09;
  padding: 0 8vw clamp(7rem, 14vh, 12rem);
  scroll-margin-top: 72px;
  text-align: center;
}
.context__inner { max-width: 760px; margin: 0 auto clamp(4rem, 8vh, 6rem); }
.context__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--parchment);
  margin: 0 0 clamp(2rem, 4vh, 3rem);
}
.context__line {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--parchment);
  margin: 0 auto;
  max-width: 58ch;
  text-wrap: balance;
}
.context__line + .context__line { margin-top: 0.9em; }
.context__event {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: clamp(2.5rem, 5vh, 4rem);
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
  padding: 18px 28px;
  text-decoration: none;
  border-top: 1px solid rgba(245,241,232,0.18);
  border-bottom: 1px solid rgba(245,241,232,0.18);
  transition: border-color var(--dur-base) var(--ease-fade);
}
.context__event:hover { border-top-color: var(--gold-muted); border-bottom-color: var(--gold-muted); }
.context__event-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--parchment);
}
.context__event-meta {
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--parchment-dim);
}
.context__photo {
  position: relative;
  width: 100%;
  height: clamp(420px, 72vh, 820px);
  background-color: #140c09;
  overflow: hidden;
}
.context__photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85) contrast(1.04) sepia(0.18) brightness(0.92);
}
.context__photo::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(13,9,7,0.0) 0%, rgba(13,9,7,0.0) 70%, rgba(13,9,7,0.4) 100%);
}
@media (max-width: 768px) {
  .context__photo {
    height: auto;
  }
  .context__photo-img {
    height: auto;
    object-fit: contain;
  }
}

/* ===== BAND / AboutStraovers — flows seamlessly out of .context ===== */
.band {
  background: #140c09;
  padding: clamp(4rem, 7vh, 6rem) 0 clamp(4rem, 8vh, 6rem);
}
.band__caption {
  max-width: 720px; margin: 0 auto;
  padding: 0 8vw;
  text-align: center;
}
.band__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--parchment);
  margin: 0 0 clamp(1.5rem, 3vh, 2.5rem);
}
.band__bio {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.75;
  color: var(--parchment-dim);
  margin: 0 auto;
  max-width: 56ch;
}
.band__bio + .band__bio { margin-top: 1em; }
.band__bio--accent { color: var(--parchment); font-style: italic; }

.band__origin {
  max-width: 760px;
  margin: clamp(4rem, 8vh, 6rem) auto 0;
  padding: 0 8vw;
  text-align: center;
}
.band__origin-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.4;
  color: var(--parchment-dim);
  margin: 0;
}
.band__origin-figure {
  margin: clamp(2rem, 4vh, 3rem) auto 0;
}
.band__origin-img {
  display: block;
  width: 100%;
  max-width: clamp(420px, 60vw, 680px);
  margin: 0 auto;
  filter: saturate(0.85) contrast(1.04) sepia(0.12) brightness(0.94);
  box-shadow: 0 30px 80px -28px rgba(0, 0, 0, 0.7);
}
.band__origin-caption {
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.75;
  color: rgba(245, 241, 232, 0.62);
  margin: clamp(1rem, 2vh, 1.4rem) auto 0;
  max-width: 38ch;
}
.band__origin-link {
  display: inline-block;
  margin-top: clamp(1.1rem, 2.2vh, 1.8rem);
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--parchment);
  opacity: 0.7;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: opacity 200ms var(--ease-fade), text-decoration-color 200ms var(--ease-fade);
}
.band__origin-link:hover {
  opacity: 1;
  text-decoration-color: rgba(245, 241, 232, 0.4);
}


@media (max-width: 720px) {
  .hero1807__content { padding: 10vh 6vw 0; }
  .hook, .story, .cta, .context { padding-left: 6vw; padding-right: 6vw; }
  .band__caption { padding-left: 6vw; padding-right: 6vw; }
  .cta__form {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .cta__input { flex: 1 1 auto; text-align: center; }
  .cta__btn { align-self: center; }
  .cta__formwrap { gap: 20px; }
}
