/* shared. — linen */
:root {
  --linen: #f4efe6;
  --linen-deep: #ebe3d5;
  --sand: #d9cbb3;
  --oat: #c9b89a;
  --ink: #2f2a24;
  --ink-soft: #6b6157;
  --terracotta: #b0674a;
  --terracotta-deep: #94533a;
  --card: #fbf8f2;
  --espresso: #3b2c22;
  --espresso-deep: #241b15;
  --rust: #7d3f29;
  --olive: #4f4a35;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 6vw;
}
.nav.solid { position: static; border-bottom: 1px solid var(--sand); }
.wordmark {
  font-family: var(--serif); font-size: 30px; font-weight: 500;
  letter-spacing: .5px; text-decoration: none;
}
.wordmark span { color: var(--terracotta); }
.nav.solid { background: var(--linen); }
.nav-link {
  font-size: 14px; letter-spacing: 2px;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

/* ---------- hero video ---------- */
.hero {
  position: relative; height: 92vh; min-height: 560px; overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244,239,230,.55) 0%, rgba(244,239,230,0) 28%,
              rgba(36,27,21,.05) 40%, rgba(36,27,21,.72) 100%);
}
.hero-copy {
  position: relative; z-index: 2; color: #fbf8f2;
  padding: 0 6vw 9vh; max-width: 900px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 92px);
  line-height: 1.02; letter-spacing: -1px; margin-bottom: 18px;
}
.hero p { font-size: 19px; max-width: 560px; margin-bottom: 34px; opacity: .95; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: 15px; letter-spacing: 2px;
  padding: 16px 34px; border-radius: 999px; border: 1px solid var(--terracotta);
  background: var(--terracotta); color: #fbf8f2;
  transition: background .25s, transform .25s;
}
.btn:hover { background: var(--rust); border-color: var(--rust); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn.ghost:hover { background: var(--espresso); color: var(--linen); }

/* ---------- sections ---------- */
section { padding: 110px 6vw; }
.eyebrow {
  font-size: 13px; letter-spacing: 3px; color: var(--rust); font-weight: 400;
  margin-bottom: 14px; display: block;
}
h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.1; margin-bottom: 22px;
}
h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin-bottom: 12px; }
.narrow { max-width: 680px; margin: 0 auto; text-align: center; }
.lede { font-size: 19px; color: var(--ink-soft); }

/* ---------- recap demo (x-factor) ---------- */
.recap-demo { background: var(--linen-deep); text-align: center; }
.recap-demo .hint { color: var(--ink-soft); font-size: 15px; margin-bottom: 50px; }
.deck {
  position: relative; width: min(420px, 88vw); height: 520px; margin: 0 auto;
  perspective: 1400px;
}
.card {
  position: absolute; inset: 0; background: var(--card); border-radius: 22px;
  box-shadow: 0 22px 50px rgba(73, 58, 40, .16); padding: 30px 30px 34px;
  text-align: left; display: flex; flex-direction: column; cursor: pointer;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .6s;
  user-select: none;
}
.card .tag {
  font-size: 12px; letter-spacing: 3px; color: var(--rust);
  display: flex; justify-content: space-between; margin-bottom: 18px;
}
.card .tag em { font-style: normal; color: var(--ink-soft); letter-spacing: 1px; }
.card h4 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; margin-bottom: 16px; }
.card .photo { border-radius: 14px; overflow: hidden; height: 210px; margin-bottom: 18px; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.card .note { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.35; }
.card .by { margin-top: auto; font-size: 14px; color: var(--ink-soft); }
.card .song {
  display: flex; align-items: center; gap: 14px; background: var(--linen);
  border-radius: 14px; padding: 16px; margin: 6px 0 22px;
}
.song .play {
  width: 46px; height: 46px; border-radius: 50%; background: var(--espresso);
  display: grid; place-items: center; flex-shrink: 0;
}
.song .bars { flex: 1; display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.song .bars i {
  flex: 1; background: var(--oat); border-radius: 2px; height: 30%;
  animation: eq 1.1s ease-in-out infinite;
}
.song .bars i:nth-child(odd) { animation-delay: -.4s; }
.song .bars i:nth-child(3n) { animation-delay: -.7s; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 95%; } }
.stats { display: grid; gap: 14px; margin: 8px 0 20px; }
.stat { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--sand); padding-bottom: 12px; }
.stat b { font-family: var(--serif); font-weight: 500; font-size: 46px; color: var(--rust); line-height: 1; min-width: 40px; }
.forgot-list { list-style: none; margin: 4px 0 20px; }
.forgot-list li { padding: 12px 0; border-bottom: 1px dashed var(--sand); font-size: 16px; }

/* card stack positions */
.card[data-pos="0"] { transform: translateY(0) rotate(0); z-index: 5; opacity: 1; }
.card[data-pos="1"] { transform: translateY(14px) rotate(2.5deg) scale(.97); z-index: 4; opacity: 1; }
.card[data-pos="2"] { transform: translateY(26px) rotate(-2deg) scale(.94); z-index: 3; opacity: .9; }
.card[data-pos="3"], .card[data-pos="4"] { transform: translateY(36px) scale(.9); z-index: 1; opacity: 0; }
.card.leaving { transform: translateX(120%) rotate(14deg) !important; opacity: 0 !important; z-index: 6 !important; }
.card.returning { transform: translateX(-120%) rotate(-14deg) !important; opacity: 0 !important; z-index: 6 !important; }

.deck-controls { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 70px; }
.arrow {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--espresso);
  background: transparent; cursor: pointer; font-size: 20px; color: var(--ink);
  transition: background .2s, color .2s;
}
.arrow:hover { background: var(--espresso); color: var(--linen); }
.dots { display: flex; gap: 10px; }
.dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--oat);
  cursor: pointer; transition: transform .2s, background .2s; padding: 0;
}
.dots button.active { background: var(--espresso); transform: scale(1.4); }

/* ---------- features page ---------- */
.page-hero { padding: 120px 6vw 80px; text-align: center; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 76px);
  line-height: 1.08; margin-bottom: 18px;
}
.feature {
  display: grid; grid-template-columns: 120px 1fr; gap: 40px;
  max-width: 980px; margin: 0 auto; padding: 60px 0; border-top: 1px solid var(--sand);
}
.feature .num { font-family: var(--serif); font-size: 64px; color: var(--rust); line-height: 1; }
.feature p { color: var(--ink-soft); font-size: 18px; max-width: 680px; }
.feature p + p { margin-top: 16px; }
.subfeature {
  margin-top: 34px; background: var(--card); border-left: 4px solid var(--rust); border-radius: 20px; padding: 32px;
  display: grid; grid-template-columns: 1fr 220px; gap: 30px; align-items: center;
}
.subfeature h4 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-bottom: 8px; }
.subfeature p { font-size: 16px; }
.mini-cal { background: var(--linen); border-radius: 14px; padding: 16px; font-size: 12px; }
.mini-cal .mhead { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--ink-soft); letter-spacing: 1px; }
.mini-cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.mini-cal .grid span { padding: 5px 0; border-radius: 6px; color: var(--ink-soft); }
.mini-cal .grid .ev { background: var(--espresso); color: #fff; }
.mini-cal .grid .ev2 { background: var(--terracotta); color: #fff; }
.features-wrap { padding-top: 0; }
.band { background: var(--linen-deep); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 980px; margin: 0 auto; }
.two-col p { color: var(--ink-soft); font-size: 18px; }
.back { text-align: center; padding: 90px 6vw; }

/* ---------- footer ---------- */
footer { background: var(--espresso-deep); color: var(--linen); padding: 70px 6vw 50px; }
.xfactor { max-width: 640px; margin-bottom: 40px; }
.xfactor h5 {
  font-size: 13px; letter-spacing: 3px; color: var(--oat);
  font-weight: 400; margin-bottom: 10px;
}
.xfactor p { font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.fine { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--oat); border-top: 1px solid #4a433b; padding-top: 22px; }

/* ---------- motion & responsive ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s, transform .9s; }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 760px) {
  section { padding: 80px 7vw; }
  .feature { grid-template-columns: 1fr; gap: 10px; padding: 46px 0; }
  .feature .num { font-size: 44px; }
  .subfeature, .two-col { grid-template-columns: 1fr; }
  .deck { height: 540px; }
  .hero { height: 88vh; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .song .bars i { animation: none; height: 60%; }
}

/* ---------- dark accent bands ---------- */
.dark { background: var(--espresso); color: var(--linen); }
.dark .eyebrow { color: #d99a7c; }
.dark .lede, .dark p { color: #e3d8c8; }
.dark h2 { color: #fbf8f2; }
.olive { background: var(--olive); }
