/* Prelude for Weddings — landing page */
:root {
  --canvas: #F5F0EC;
  --canvas-soft: #F0EAE4;
  --anchor: #1A2140;
  --ink: #1F1C1A;
  --mist: #7A7370;
  --hairline: #E0DEDA;
  --live: #33B872;
  --active: #3F8C66;
  --golden: #C79D59;
  --surface: #FEFCFA;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@900&display=block');

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--canvas);
  color: var(--anchor);
  font-family: system-ui, -apple-system, "Inter", "SF Pro Text", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

.wordmark {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--anchor);
  line-height: 0.9;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: rgba(245, 240, 236, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 460ms cubic-bezier(.2,.6,.2,1), transform 460ms cubic-bezier(.2,.6,.2,1);
}
.nav.is-revealed {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.nav .wordmark {
  font-size: 28px;
}

/* App Store badge — dark navy pill */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--anchor);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px 12px 18px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1), background 240ms;
}
.appstore:hover { transform: translateY(-1px); background: #232a4f; }
.appstore .apple-glyph {
  width: 22px; height: 22px;
  fill: #fff;
}
.appstore .row { display: flex; flex-direction: column; line-height: 1.05; }
.appstore .row .pre { font-size: 10px; opacity: 0.7; letter-spacing: 0.08em; text-transform: uppercase; }
.appstore .row .main { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

/* Sections */
section {
  padding: 120px 40px;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0;
  padding-bottom: 0;
  overflow-x: clip;
}

.hero .wordmark-big {
  font-size: clamp(72px, 10vw, 140px);
  margin-bottom: 12px;
}

.hero .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 32px;
}

.hero h1 {
  font-family: system-ui, -apple-system, "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--anchor);
  margin-bottom: 16px;
  white-space: nowrap;
}

.hero .subline {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--mist);
  font-weight: 400;
  max-width: 36ch;
  line-height: 1.4;
  margin-bottom: 28px;
}

.hero .cta-row {
  margin-bottom: 40px;
}

.hero-video-wrap {
  width: min(1080px, 80vw);
  margin: 0 auto;
}

.quick-tools-video {
  width: 70%;
  max-width: 70%;
  overflow-x: clip;
}

/* Phone frame — flat, black, no tilt */
.phone {
  position: relative;
  width: 320px;
  aspect-ratio: 1290 / 2796;
  /* The cropped images already include a phone bezel from App Store, so we
     simply present them on canvas, scaled. They look like a flat phone shot. */
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  user-select: none;
  -webkit-user-drag: none;
}

.phone--hero {
  width: 360px;
  margin: 0 auto;
}

.phone--lg { width: 380px; }
.phone--xl { width: 420px; }

/* Section: dark navy */
.section--dark {
  background: var(--anchor);
  color: #fff;
  padding: 160px 40px;
  text-align: center;
}

.section--dark h2 {
  color: #fff;
}

.section--dark .subline {
  color: rgba(255,255,255,0.7);
}

/* Section heading patterns */
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 18px;
}

.section--dark .label {
  color: rgba(255,255,255,0.55);
}

h2 {
  font-family: system-ui, -apple-system, "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 76px);
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--anchor);
  margin-bottom: 18px;
}

.subline {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--mist);
  font-weight: 400;
  line-height: 1.45;
  max-width: 42ch;
}

.center { text-align: center; }
.center .subline { margin-left: auto; margin-right: auto; }

/* Video placeholder */
.video-slot {
  position: relative;
  width: 100%;
  max-width: 980px;
  aspect-ratio: 16 / 10;
  background: var(--canvas-soft);
  border-radius: 28px;
  margin: 64px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 18px 50px -20px rgba(31, 28, 26, 0.18);
}

.section--dark .video-slot {
  background: #232a4f;
  box-shadow: 0 18px 60px -10px rgba(0,0,0,0.4),
              0 0 80px rgba(255,255,255,0.04) inset;
  border: 1px solid rgba(255,255,255,0.06);
}

.video-slot__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.section--dark .video-slot__label { color: rgba(255,255,255,0.45); }

.video-slot__play {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.video-slot__play::after {
  content: "";
  width: 0; height: 0;
  border-left: 14px solid rgba(255,255,255,0.7);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}

.section--light .video-slot__play {
  background: rgba(31, 33, 64, 0.06);
  border-color: rgba(31, 33, 64, 0.1);
}
.section--light .video-slot__play::after {
  border-left-color: rgba(31, 33, 64, 0.6);
}

.video-slot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Two-column layouts */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Role split (Photographer / Videographer) */
.role-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.role-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
}

.role-col h3 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: 14px;
  max-width: 14ch;
}

.role-col .subline {
  max-width: 36ch;
}

.two-col .col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.two-col .col--phone {
  align-items: center;
}

.two-col .col h2 {
  font-size: clamp(36px, 4.5vw, 60px);
}

/* Import → Timeline section (legacy flow — superseded by .transform) */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1300px;
  margin: 80px auto 0;
}

.flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.flow__step .step-text {
  max-width: 28ch;
}

.flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  position: relative;
  margin-top: 0;
}

.flow__arrow svg { display: block; overflow: visible; }

/* animated arrow dash */
@keyframes dash {
  0%   { stroke-dashoffset: 80; opacity: 0.0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.0; }
}
.flow__arrow .stroke {
  stroke-dasharray: 4 6;
  stroke-dashoffset: 80;
  animation: dash 3.2s cubic-bezier(.5,.0,.4,1) infinite;
}

/* Watch pair render — sits on canvas, no frame */
.watch-pair {
  width: min(460px, 90vw);
  height: auto;
  display: block;
}

/* Showcase section — full-bleed, phone bleeds off the left */
.showcase-section {
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 120px;
  padding-top: 80px;
  border-top: 1px solid var(--hairline);
}

.showcase-section .showcase {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.showcase--wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 80px;
  align-items: center;
  padding: 120px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.showcase__media {
  display: flex;
  justify-content: center;
}

.showcase--wide .showcase__media {
  justify-content: flex-start;
  width: 100%;
}

.showcase__media img {
  width: min(560px, 100%);
  height: auto;
  display: block;
}

.showcase--wide .showcase__media img {
  width: 100%;
  max-width: 480px;
}

.showcase__copy {
  padding-right: 48px;
}

.showcase__copy h3 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 14px;
  max-width: 16ch;
}

.showcase__copy .subline {
  max-width: 38ch;
}

@media (max-width: 880px) {
  .showcase,
  .showcase--wide {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 80px;
    padding: 56px 24px;
    text-align: center;
    max-width: none;
  }
  .showcase-section .showcase { margin-top: 0; padding-top: 32px; }
  .showcase--wide .showcase__media {
    justify-content: center;
    margin-left: 0;
  }
  .showcase--wide .showcase__media img {
    width: min(480px, 100%);
  }
  .showcase__copy { padding-right: 0; order: -1; }
  .showcase__copy h3,
  .showcase__copy .subline { margin-left: auto; margin-right: auto; }
  .schedule-img { width: 80vw !important; }
}

/* Transform: Before → Sort → After */
.transform__stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.transform__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin: 0;
}

.transform__side--before {
  transform: translateY(28px);
}
.transform__side--after {
  transform: translateY(-28px);
}

.transform__phone {
  width: min(460px, 100%);
  aspect-ratio: 1080 / 2200;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.transform__phone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.transform__beat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: var(--anchor);
  position: relative;
  padding: 0 8px;
}

/* Weave animation — the beat between phones */
.transform__weave {
  width: 220px;
  height: 240px;
  display: block;
  overflow: visible;
}

.weave__rail {
  opacity: 0.6;
}

/* Travelling beam: slides in from left, reaches midpoint, fades */
.weave__beam {
  stroke-dasharray: 60;
  animation: weave-beam 4.2s cubic-bezier(.55, 0, .25, 1) infinite;
}

@keyframes weave-beam {
  0%   { transform: translateX(-70px); opacity: 0; }
  6%   { opacity: 1; }
  35%  { transform: translateX(60px);  opacity: 1; }
  45%  { transform: translateX(60px);  opacity: 0; }
  100% { transform: translateX(60px);  opacity: 0; }
}

/* Fan-out lines: drawn in sequence after beam reaches midpoint */
.weave__line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
  animation: weave-line 4.2s cubic-bezier(.4, 0, .2, 1) infinite;
}

.weave__line--1 { animation-delay: 0.00s; }
.weave__line--2 { animation-delay: 0.10s; }
.weave__line--3 { animation-delay: 0.20s; }
.weave__line--4 { animation-delay: 0.30s; }
.weave__line--5 { animation-delay: 0.40s; }

@keyframes weave-line {
  0%, 32%   { stroke-dashoffset: 100; opacity: 0; }
  38%       { opacity: 0.85; }
  62%       { stroke-dashoffset: 0;   opacity: 0.85; }
  88%       { stroke-dashoffset: 0;   opacity: 0.85; }
  100%      { stroke-dashoffset: 0;   opacity: 0; }
}

/* Arrival dots: pulse on at the endpoint of each line as it lands */
.weave__dot {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: weave-dot 4.2s cubic-bezier(.4, 0, .2, 1) infinite;
  filter: drop-shadow(0 0 0 rgba(51, 184, 114, 0.55));
}

.weave__dot--1 { animation-delay: 0.00s; }
.weave__dot--2 { animation-delay: 0.10s; }
.weave__dot--3 { animation-delay: 0.20s; }
.weave__dot--4 { animation-delay: 0.30s; }
.weave__dot--5 { animation-delay: 0.40s; }

@keyframes weave-dot {
  0%, 56%  { opacity: 0; transform: scale(0.4); }
  62%      { opacity: 1; transform: scale(1.3);
             filter: drop-shadow(0 0 6px rgba(51, 184, 114, 0.65)); }
  72%      { opacity: 1; transform: scale(1);
             filter: drop-shadow(0 0 3px rgba(51, 184, 114, 0.4)); }
  88%      { opacity: 1; transform: scale(1);
             filter: drop-shadow(0 0 0 rgba(51, 184, 114, 0)); }
  100%     { opacity: 0; transform: scale(1); }
}

.transform__beat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--anchor);
}

.transform__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 0 rgba(51, 184, 114, 0.55);
  animation: dot-pulse 1.8s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(51, 184, 114, 0.55); transform: scale(1); }
  50%      { box-shadow: 0 0 0 6px rgba(51, 184, 114, 0); transform: scale(1.1); }
}

@media (max-width: 880px) {
  .transform__stage {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .transform__side--before,
  .transform__side--after {
    transform: none;
  }
  .transform__weave {
    width: 240px;
    height: 80px;
    transform: rotate(0deg);
  }
  .transform__beat {
    gap: 12px;
  }
  .transform__phone { width: min(360px, 86vw); }
}

/* Quick tools chips */
.chips {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 14px 22px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--anchor);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 3px 8px rgba(31, 28, 26, 0.04);
}
.chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.chip--wb .dot { background: #d8d8d8; box-shadow: inset 0 0 0 2px var(--anchor); }
.chip--gold .dot { background: var(--golden); }
.chip--air .dot { background: var(--anchor); }

/* Download CTA */
.download {
  text-align: center;
  padding: 200px 40px 180px;
  background: linear-gradient(180deg, var(--canvas) 0%, var(--canvas-soft) 100%);
}
.download .wordmark-big {
  font-size: clamp(80px, 11vw, 160px);
  margin-bottom: 36px;
}
.download h2 {
  margin-bottom: 16px;
}
.download .subline {
  margin: 0 auto 44px;
}
.download .footnote {
  font-size: 13px;
  color: var(--mist);
  margin-top: 36px;
  letter-spacing: 0.01em;
}

/* Footer rule */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--mist);
  font-size: 13px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(.2,.6,.2,1),
              transform 900ms cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .flow__arrow .stroke { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

/* Subtle warm transition between sections — accomplished by gentle gradient on a couple */
.transition-warm {
  height: 1px;
  background: linear-gradient(180deg, var(--canvas) 0%, var(--canvas-soft) 100%);
}

/* Responsive — stack the import→timeline flow earlier than the rest, since it has 2 phones + arrow */
@media (max-width: 1100px) {
  .flow { grid-template-columns: 1fr; gap: 56px; }
  .flow__arrow { transform: rotate(90deg); height: 48px; }
  .flow__step .step-text { text-align: center !important; align-self: center !important; }
}

@media (max-width: 880px) {
  section { padding: 80px 24px; }
  .nav { padding: 18px 22px; }
  .hero .wordmark-big { font-size: 80px; }
  .hero .eyebrow { margin-bottom: 40px; }
  .hero h1 { font-size: 52px; }
  .two-col { grid-template-columns: 1fr; gap: 56px; }
  .two-col .col { align-items: center; text-align: center; }
  .role-split { grid-template-columns: 1fr; gap: 8px; }
  .role-col { align-items: center; text-align: center; padding: 40px 0; }
  .role-col .chips { justify-content: center !important; }
  .download { padding: 120px 24px; }
  .section--dark { padding: 100px 24px; }
  .appstore .row .main { font-size: 14px; }
  .video-slot { aspect-ratio: 4 / 5; }
  .phone--hero, .phone--lg, .phone--xl { width: min(280px, 80vw); }
  .hero-video-wrap { width: 120vw; margin-left: -14vw; }
  .quick-tools-video { width: 95vw; max-width: 95vw; margin-left: -4vw; }
  .footer { flex-direction: column; gap: 12px; text-align: center; }
}
