/* ---------------------------------------------------
   Side Quest — tokens
   Cinematic pastel-twilight grade, Kodak Portra inspired
--------------------------------------------------- */
:root {
  /* base surfaces (footer / chrome only — never a section fill) */
  --line: rgba(248, 239, 227, 0.16);

  /* ink / text on light chrome */
  --ink: #251F3D;
  --ink-muted: #5B4F68;

  /* accent (dusty rose / coral family, tuned for AA text contrast) — accents only, never a background fill */
  --rose: #9E4A61;
  --rose-deep: #843A4E;

  /* decorative pastel range — used for photo-grade fallback gradients and small accent chips */
  --lavender-soft: #C9B8E8;
  --rose-soft: #E3A6A6;
  --coral-soft: #EFAE87;
  --peach-soft: #F3C79E;

  /* night / twilight surfaces (lifted blacks → deep indigo, never pure black) */
  --night: #241F3B;
  --night-deep: #17132A;
  --indigo-mid: #342B54;
  --cream: #F8EFE3;

  /* photo-grade fallback scenes — stand in for real photography until it exists */
  --gradient-scene-a: linear-gradient(160deg, #2C2650 0%, #6B5480 34%, #C98090 64%, #EFB48C 88%, #F3C79E 100%);
  --gradient-scene-b: linear-gradient(160deg, #241F3F 0%, #4A3B63 30%, #93677A 62%, #D99A85 88%, #F0BC90 100%);
  --gradient-scene-c: linear-gradient(160deg, #1B1732 0%, #322A54 30%, #6E5578 60%, #A97684 84%, #D99A85 100%);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;
  --space-8: 8.5rem;

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;
}

/* ---------------------------------------------------
   Reset
--------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--night-deep);
  color: var(--cream);
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--space-3);
  position: relative;
  z-index: 1;
}
/* wider, edge-padded container: pushes header logo/CTA toward the corners and
   left-aligns the hero copy to the same margin */
.wrap-edge {
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}
.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cream);
  color: var(--ink);
  padding: var(--space-2) var(--space-3);
  z-index: 200;
  border-radius: var(--radius-s);
}
.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

:focus-visible {
  outline: 3px solid var(--peach-soft);
  outline-offset: 2px;
}

/* ---------------------------------------------------
   Type
--------------------------------------------------- */
.display-1, .display-2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
}
.display-1 {
  font-size: clamp(2.75rem, 6vw + 0.5rem, 5rem);
  line-height: 1.05;
}
.display-2 {
  font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
  line-height: 1.14;
}

.kicker {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--peach-soft);
  margin: 0 0 var(--space-2);
}

.lead {
  font-size: clamp(1.0625rem, 1vw + 0.9rem, 1.25rem);
  color: color-mix(in srgb, var(--cream) 88%, transparent);
  max-width: 42ch;
  margin: 0 0 var(--space-4);
}
.center .lead { margin-inline: auto; }

/* ---------------------------------------------------
   Buttons & links
--------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  min-height: 44px;
}
.btn-primary {
  background: var(--rose);
  color: var(--cream);
}
.btn-primary:hover { background: var(--rose-deep); }
.btn-primary:active { transform: scale(0.97); }

.btn-small {
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
}
.btn-large {
  padding: 0.95rem 2rem;
  font-size: 1.0625rem;
  box-shadow: 0 8px 28px -10px rgba(138, 62, 82, 0.6);
}

.mini-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-5);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--peach-soft);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out), gap var(--dur-fast) var(--ease-out);
}
.mini-cta:hover { border-color: var(--peach-soft); gap: 0.6rem; }

/* ---------------------------------------------------
   Header
--------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* transparent over the photo; a whisper of gradient keeps the cream logo legible over bright sky */
  background: linear-gradient(180deg, rgba(19, 16, 34, 0.38) 0%, rgba(19, 16, 34, 0) 100%);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  min-height: 44px;
  border-radius: 999px;
  color: var(--cream);
  background: rgba(23, 19, 42, 0.42);
  border: 1px solid rgba(248, 239, 227, 0.30);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn-glass:hover { background: rgba(23, 19, 42, 0.60); }
.btn-glass:active { transform: scale(0.97); }
.brand { text-decoration: none; display: inline-flex; align-items: center; }
.brand-mark {
  height: 40px;
  width: auto;
  /* source mark is dark-gray glyph on transparent — force to cream so it reads on every dark surface */
  filter: brightness(0) invert(1);
  opacity: 0.96;
}
.brand-mark-footer { height: 64px; }

/* ---------------------------------------------------
   Chapter / persistent-photo system
   ("motion that whispers" — same image spans several sections)
--------------------------------------------------- */
.chapter {
  position: relative;
}
.chapter-photo-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
}
.chapter-photo {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  /* real photos are bright/naturalistic daylight — grade toward the pastel-twilight mood */
  filter: saturate(0.72) contrast(0.94) brightness(0.88) sepia(0.14) hue-rotate(-8deg);
}
/* Hero opens on the calm, nostalgic Gastown shot; livelier scenes come later. */
.chapter-photo.scene-a { background-image: url("assets/gastown-water-street.jpg"), var(--gradient-scene-a); }
.chapter-photo.scene-b { background-image: var(--gradient-scene-b); }
.chapter-photo.scene-c { background-image: var(--gradient-scene-c); }
/* scene-b/c photos are lazy-swapped in by script.js once their chapter nears the viewport */
.chapter-photo.scene-b.is-loaded { background-image: url("assets/kitsilano-local-eatery.jpg"), var(--gradient-scene-b); }
.chapter-photo.scene-c.is-loaded { background-image: url("assets/granville-street-festival.jpg"), var(--gradient-scene-c); }

/* film grain, layered over every chapter photo */
.chapter-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) and (pointer: fine) and (min-width: 641px) {
    .chapter-photo[data-kenburns] {
      animation: kenburns 22s var(--ease-out) forwards;
    }
  }
}
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.2%, -1.2%, 0); }
}

.chapter-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.chapter-scrim-a {
  background:
    linear-gradient(180deg, rgba(23, 19, 42, 0.55) 0%, rgba(23, 19, 42, 0.25) 30%, rgba(23, 19, 42, 0.6) 78%, rgba(23, 19, 42, 0.92) 100%);
}
.chapter-scrim-b {
  background:
    linear-gradient(180deg, rgba(23, 19, 42, 0.65) 0%, rgba(23, 19, 42, 0.35) 22%, rgba(23, 19, 42, 0.7) 100%);
}
.chapter-scrim-c {
  background:
    linear-gradient(180deg, rgba(19, 16, 34, 0.6) 0%, rgba(19, 16, 34, 0.3) 20%, rgba(19, 16, 34, 0.75) 75%, rgba(19, 16, 34, 0.95) 100%);
}

.chapter-content {
  position: relative;
  z-index: 2;
  margin-top: -100vh;
}

.on-photo { color: var(--cream); }
.kicker-on-photo { color: var(--peach-soft); }
.lead-on-photo { color: color-mix(in srgb, var(--cream) 90%, transparent); }

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: var(--space-7) var(--space-6);
}
.hero-copy {
  max-width: 600px;
  text-align: left;
  /* soft shadow keeps text legible over bright areas of the photo without a heavier scrim */
  text-shadow: 0 1px 12px rgba(19, 16, 34, 0.4);
}
.hero-headline {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5.4vw + 0.5rem, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0;
}
.hero-accent {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw + 0.4rem, 2.9rem);
  line-height: 1.08;
  color: var(--peach-soft);
  margin: 0.12em 0 0;
}
.hero-sub {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.15rem);
  line-height: 1.6;
  color: color-mix(in srgb, var(--cream) 88%, transparent);
  max-width: 48ch;
  margin: var(--space-4) 0 var(--space-4);
}

/* inline email capture in the hero */
.waitlist-form--inline {
  display: flex;
  gap: var(--space-2);
  max-width: 480px;
  margin: 0;
}
.waitlist-form--inline .wl-input { flex: 1 1 auto; min-width: 0; }
.waitlist-form--inline .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}
@media (max-width: 520px) {
  .waitlist-form--inline { flex-direction: column; align-items: stretch; }
}

/* signup counter / social proof */
.wl-count {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: var(--space-3) 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--cream) 85%, transparent);
}
.wl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--peach-soft);
  flex: 0 0 auto;
}
@media (prefers-reduced-motion: no-preference) {
  .wl-dot { animation: pulse-dot 2.6s var(--ease-out) infinite; }
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(243, 199, 158, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(243, 199, 158, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 199, 158, 0); }
}
.wl-count.is-success { color: var(--peach-soft); }
.wl-count.is-error { color: #F2AEAE; }

/* ---------------------------------------------------
   Sections generic
--------------------------------------------------- */
.section {
  padding-block: var(--space-7);
}

/* ---------------------------------------------------
   Steps (How It Works)
--------------------------------------------------- */
.steps {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: rgba(23, 19, 42, 0.4);
  border: 1px solid rgba(248, 239, 227, 0.14);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  backdrop-filter: blur(4px);
}
.step h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0.25rem 0 0;
  color: var(--cream);
}
.step p {
  margin: 0;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 0.9rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--night-deep);
  flex-shrink: 0;
}
.tag-rose { background: var(--rose-soft); }
.tag-coral { background: var(--coral-soft); }
.tag-peach { background: var(--peach-soft); }
.tag-lavender { background: var(--lavender-soft); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.chip {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(248, 239, 227, 0.12);
  color: var(--cream);
  border: 1px solid rgba(248, 239, 227, 0.2);
}

.notif-mock {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(248, 239, 227, 0.95);
  color: var(--ink);
  border-radius: var(--radius-s);
  padding: 0.7rem 0.85rem;
  margin-top: 0.25rem;
  box-shadow: 0 12px 26px -14px rgba(15, 12, 28, 0.6);
}
.notif-mock strong {
  display: block;
  font-size: 0.8125rem;
}
.notif-mock span {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.notif-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--rose);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------------------------------------------------
   How We Decide — columns with torn-paper tags
--------------------------------------------------- */
.columns {
  display: grid;
  gap: var(--space-5);
  margin: var(--space-5) 0 0;
}
@media (min-width: 768px) {
  .columns { grid-template-columns: repeat(3, 1fr); }
}
.column h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin: var(--space-3) 0 0.4rem;
  color: var(--cream);
}
.column p {
  margin: 0;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
}

/* torn-paper tag callout — qualitative labels, never fabricated numbers */
.tag[class*="tag-rotate"],
span.tag-rose.tag-rotate-a,
span.tag-rose.tag-rotate-b,
span.tag-peach.tag-rotate-c {
  width: auto;
  height: auto;
  border-radius: 3px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 16px -8px rgba(15, 12, 28, 0.5);
}
.tag-rotate-a { transform: rotate(-4deg); background: var(--lavender-soft); }
.tag-rotate-b { transform: rotate(3deg); background: var(--rose-soft); }
.tag-rotate-c { transform: rotate(-2deg); background: var(--peach-soft); }

/* ---------------------------------------------------
   Comparison
--------------------------------------------------- */
.compare-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-5);
}
@media (min-width: 768px) {
  .compare-grid { grid-template-columns: 1fr 1fr; }
}
.compare-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--peach-soft);
  margin: 0 0 var(--space-2);
}
.compare-caption {
  margin: var(--space-2) 0 0;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
}
.notif-mock-clean { max-width: 360px; }

.scribble-pile {
  position: relative;
  min-height: 150px;
}
.scribble-note {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 1.25rem;
  display: inline-block;
  background: rgba(248, 239, 227, 0.92);
  color: var(--night-deep);
  padding: 0.35rem 0.9rem;
  border-radius: 3px;
  box-shadow: 0 10px 18px -10px rgba(15, 12, 28, 0.55);
  position: absolute;
}
.note-1 { top: 0; left: 0; transform: rotate(-6deg); }
.note-2 { top: 8px; left: 130px; transform: rotate(4deg); }
.note-3 { top: 62px; left: 20px; transform: rotate(-2deg); }
.note-4 { top: 78px; left: 190px; transform: rotate(5deg); }
.scribble-note.struck { text-decoration: line-through; text-decoration-color: var(--rose); text-decoration-thickness: 2px; opacity: 0.85; }

/* ---------------------------------------------------
   Climax + waitlist form
--------------------------------------------------- */
.climax { padding-block: var(--space-8) var(--space-7); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-form {
  max-width: 420px;
  margin: var(--space-4) auto 0;
}
.wl-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.wl-input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 239, 227, 0.28);
  background: rgba(23, 19, 42, 0.55);
  color: var(--cream);
  backdrop-filter: blur(6px);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.wl-input::placeholder { color: color-mix(in srgb, var(--cream) 52%, transparent); }
.wl-input:hover { border-color: rgba(248, 239, 227, 0.45); }
.wl-input:focus-visible {
  outline: 3px solid var(--peach-soft);
  outline-offset: 2px;
  border-color: transparent;
}
.wl-input:disabled { opacity: 0.5; cursor: not-allowed; }
.waitlist-form .btn { width: 100%; margin-top: var(--space-1); }
.waitlist-form .btn:disabled { opacity: 0.6; cursor: progress; }

.waitlist-status {
  margin: var(--space-3) auto 0;
  max-width: 420px;
  min-height: 1.3em;
  font-weight: 600;
  color: var(--cream);
}
.waitlist-status.is-success { color: var(--peach-soft); }
.waitlist-status.is-error { color: #F2AEAE; }

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer {
  background: var(--night-deep);
  color: color-mix(in srgb, var(--cream) 75%, transparent);
  padding-block: var(--space-6) var(--space-4);
  position: relative;
  z-index: 3;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-4) var(--space-5);
  justify-content: space-between;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; }
.footer-links {
  display: flex;
  gap: var(--space-3);
}
.footer-links a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--cream) 78%, transparent);
}
.footer-links a:hover { color: var(--cream); }
.footer-copy {
  margin: var(--space-3) var(--space-3) 0;
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--cream) 55%, transparent);
}

/* ---------------------------------------------------
   Scroll reveal — objects settling into the scene
--------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------------------------------------------
   Responsive tweaks
--------------------------------------------------- */
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .columns { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .scribble-pile { min-height: 190px; }
  .note-2 { left: 60px; top: 40px; }
  .note-3 { top: 100px; left: 10px; }
  .note-4 { top: 130px; left: 120px; }
}
