/* ==========================================================
   Motive — "Footage to Finish" navigation journey
   Film-production layer on top of styles.css
   ========================================================== */
:root { --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }

html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Opening title sequence ---------- */
.loader { display: none; }
html.has-loader .loader { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; }
html.has-loader body { overflow: hidden; }
.loader__half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); }
.loader__half--top { top: 0; }
.loader__half--bot { bottom: 0; }
.loader__center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--cream); }
.loader__logo { width: min(260px, 60vw); clip-path: inset(0 100% 0 0); }
.loader__logo img { width: 100%; height: auto; }
.loader__rec, .loader__tc { margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .18em; color: rgba(246, 240, 230, .6); }
.loader__rec { display: flex; align-items: center; gap: 8px; }
.loader__rec span { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; animation: blink 1s steps(2) infinite; }
.loader__corners i { position: absolute; width: 34px; height: 34px; border: 1.5px solid rgba(246, 240, 230, .35); }
.loader__corners i:nth-child(1) { top: 28px; left: 28px; border-right: 0; border-bottom: 0; }
.loader__corners i:nth-child(2) { top: 28px; right: 28px; border-left: 0; border-bottom: 0; }
.loader__corners i:nth-child(3) { bottom: 28px; left: 28px; border-right: 0; border-top: 0; }
.loader__corners i:nth-child(4) { bottom: 28px; right: 28px; border-left: 0; border-top: 0; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Scene slate (HUD) ---------- */
.slate {
  position: fixed; left: 20px; bottom: 20px; z-index: 42; width: 134px;
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); pointer-events: none;
  filter: drop-shadow(0 14px 24px rgba(32, 27, 19, .28));
}
.slate.is-on { opacity: 1; transform: none; }
.slate__clap {
  height: 16px; border-radius: 4px 4px 0 0; transform-origin: 3px 100%;
  background: repeating-linear-gradient(-55deg, var(--ink) 0 12px, var(--cream) 12px 24px);
  border: 1.5px solid var(--ink);
}
.slate__body {
  background: var(--ink); color: var(--cream); border-radius: 0 0 10px 10px; padding: 10px 12px 9px;
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px;
}
.slate__sc { font: 500 10px var(--mono); letter-spacing: .14em; color: rgba(246, 240, 230, .55); }
.slate__sc b { font-size: 13px; color: var(--clay-2); font-weight: 600; }
.slate__name { overflow: hidden; height: 20px; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 20px; white-space: nowrap; }
.slate__name { position: relative; }
.slate__name span { position: absolute; left: 0; top: 0; }
.slate__tc { grid-column: 1 / -1; font: 500 10px var(--mono); letter-spacing: .12em; color: rgba(246, 240, 230, .45); }

/* ---------- Film-strip chapter rail ---------- */
.rail {
  gap: 2px; padding: 12px 7px; border-radius: 12px; background: rgba(32, 27, 19, .92);
  box-shadow: 0 16px 30px -18px rgba(32, 27, 19, .6); right: 18px;
}
.rail::before, .rail::after {
  content: ""; position: absolute; top: 8px; bottom: 8px; width: 3px;
  background: repeating-linear-gradient(to bottom, rgba(246, 240, 230, .35) 0 4px, transparent 4px 9px);
}
.rail::before { left: 2px; }
.rail::after { right: 2px; }
.rail a, .rail.on-dark a {
  width: 28px; height: 24px; border: 0; border-radius: 4px; background: none; color: rgba(246, 240, 230, .45);
  display: grid; place-items: center; text-decoration: none; transform: none;
}
.rail a b { font: 600 10.5px var(--mono); letter-spacing: .04em; }
.rail a:hover { color: var(--cream); }
.rail a.is-active, .rail.on-dark a.is-active { color: #fff; background: var(--clay); transform: none; }
.rail a::before { right: 40px; }
.rail a.is-active::before { opacity: 0; }
.rail__track { position: absolute; left: -10px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: rgba(32, 27, 19, .12); }
.rail.on-dark .rail__track { background: rgba(246, 240, 230, .15); }
.rail__fill { position: absolute; inset: 0; background: var(--clay); transform-origin: 50% 0; transform: scaleY(0); }

/* ---------- Split headings ---------- */
.split .line-mask { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
html.js-split .split:not(.is-split) { visibility: hidden; }

/* ---------- Journey (pinned) ---------- */
.eco { padding-bottom: 0; }
.eco .head { margin-bottom: 0; }
.journey { position: relative; height: 100svh; }
.journey__inner {
  height: 100%; display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center; gap: clamp(20px, 4vw, 60px); padding-top: 70px;
}
.journey__index { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; }
.journey__index::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 1.5px; background: var(--line); }
.journey__index button {
  position: relative; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 6px 0;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s;
}
.journey__index b {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 10.5px var(--mono);
  background: var(--cream); border: 1.5px solid var(--line); transition: background .35s, color .35s, border-color .35s, transform .4s var(--ease);
}
.journey__index li.is-on button { color: var(--ink); }
.journey__index li.is-on b { background: var(--clay); border-color: var(--clay); color: #fff; transform: scale(1.12); }
.journey__index li.is-done b { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.journey__text { display: grid; }
.scene { grid-area: 1 / 1; align-self: center; }
html.motion .scene:not(.is-on) { opacity: 0; visibility: hidden; }
.scene .tag { margin-bottom: 8px; }
.scene h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: .95; margin: 0 0 16px; }
.scene > p { color: var(--muted); font-size: 17px; margin: 0 0 22px; max-width: 460px; }

.journey__stage { display: grid; place-items: center; }
.jv { position: relative; width: min(520px, 100%); aspect-ratio: 1 / 1.02; }
.jv__layer { position: absolute; inset: 0; display: grid; place-items: center; }
html.motion .jv__layer:not(.jv__cam) { visibility: hidden; }

/* viewfinder */
.jv__cam { inset: 4% 0; border-radius: 22px; overflow: hidden; background: var(--ink); box-shadow: 0 40px 70px -40px rgba(32, 27, 19, .7); }
.jv__cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.jv__cam::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 70%, rgba(0,0,0,.45)); }
.vf { position: absolute; z-index: 2; width: 30px; height: 30px; border: 2px solid rgba(255, 255, 255, .85); }
.vf--tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.vf--tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.vf--bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.vf--br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.vf__rec, .vf__meta, .vf__tc { position: absolute; z-index: 2; font: 600 11px var(--mono); letter-spacing: .14em; color: #fff; }
.vf__rec { top: 26px; left: 58px; display: flex; align-items: center; gap: 7px; }
.vf__rec i { width: 9px; height: 9px; border-radius: 50%; background: #E5484D; animation: blink 1.1s steps(2) infinite; }
.vf__meta { top: 26px; right: 58px; opacity: .8; }
.vf__tc { bottom: 26px; left: 58px; font-size: 13px; }
.vf__focus { position: absolute; z-index: 2; left: 50%; top: 46%; width: 74px; height: 56px; transform: translate(-50%, -50%); border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 4px; animation: focus 2.4s var(--ease) infinite; }
@keyframes focus { 0%, 100% { scale: 1; } 50% { scale: .86; } }

/* reels */
.reel {
  position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 9 / 16; margin: calc(34% * -16 / 9 / 2) 0 0 -17%;
  border-radius: 18px; overflow: hidden; border: 3px solid var(--ink); background: var(--ink);
  box-shadow: 0 26px 50px -24px rgba(32, 27, 19, .7);
}
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .65)); }
.reel__ui { position: absolute; z-index: 1; left: 10px; right: 30px; bottom: 10px; color: #fff; font-size: 10.5px; line-height: 1.3; display: grid; gap: 2px; }
.reel__ui b { font-size: 11px; }
.reel__side { position: absolute; z-index: 1; right: 7px; bottom: 12px; display: grid; gap: 8px; color: #fff; font-size: 13px; text-align: center; }
.reel__side span:first-child { color: #ff6b7a; }
.hearts { position: absolute; right: 8%; bottom: 18%; width: 40px; height: 60%; pointer-events: none; }
.hearts i { position: absolute; bottom: 0; left: 50%; font-style: normal; color: var(--clay-2); font-size: 18px; opacity: 0; }
.jv.is-social .hearts i { animation: heart 2.6s ease-out infinite; }
.hearts i:nth-child(2) { animation-delay: .4s !important; left: 10%; font-size: 14px; }
.hearts i:nth-child(3) { animation-delay: .9s !important; left: 80%; }
.hearts i:nth-child(4) { animation-delay: 1.3s !important; left: 30%; font-size: 22px; }
.hearts i:nth-child(5) { animation-delay: 1.8s !important; left: 65%; font-size: 13px; }
.hearts i:nth-child(6) { animation-delay: 2.2s !important; left: 45%; }
@keyframes heart { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-220px) translateX(-14px) scale(1.1); } }

/* email */
.mail { width: 84%; background: #fff; border-radius: 20px; padding: 0 0 20px; overflow: hidden; box-shadow: 0 40px 70px -36px rgba(32, 27, 19, .55); border: 1px solid var(--line); }
.mail__bar, .page__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--sand); font: 500 11px var(--mono); color: var(--muted); }
.mail__bar i, .page__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(32, 27, 19, .18); }
.mail__bar span, .page__bar span { margin-left: 8px; }
.mail__from { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; font-size: 13px; }
.mail__from small { display: block; color: var(--muted); font-size: 11.5px; }
.mail__av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--clay); color: #fff; font-weight: 700; }
.mail__new { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--clay-soft); color: var(--clay); padding: 4px 8px; border-radius: 99px; }
.mail__subj { margin: 6px 18px 12px; font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.mail__img { position: relative; margin: 0 18px 14px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 8; }
.mail__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.mail__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--clay); font-size: 15px; padding-left: 3px; }
.mail__btn, .page__btn { display: inline-block; margin-left: 18px; background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 99px; }
.mail__sent, .page__toast {
  position: absolute; display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--cream);
  font-size: 13px; font-weight: 600; padding: 11px 16px; border-radius: 14px; box-shadow: 0 18px 36px -18px rgba(32, 27, 19, .7);
}
.mail__sent { right: 2%; bottom: 8%; }

/* event page */
.page { position: relative; width: 88%; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 70px -36px rgba(32, 27, 19, .55); }
.page__hero { aspect-ratio: 16 / 7; overflow: hidden; }
.page__hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.page__body { padding: 16px 18px 20px; padding-right: 120px; }
.page__btn { margin-left: 0; background: var(--clay); color: #fff; }
.page__kicker { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); }
.page__title { margin: 0 0 14px; font-family: var(--serif); font-size: 26px; line-height: 1.05; }
.qr { position: absolute; right: 16px; bottom: 18px; width: 88px; height: 88px; background: #fff; padding: 4px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.qr rect { fill: var(--ink); }
.page__toast { left: -4%; bottom: 6%; }
.page__toast b { font-weight: 400; }

.journey__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; }
.journey__bar span { display: block; height: 100%; background: var(--clay); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Velocity marquee ---------- */
.vmarquee { overflow: hidden; padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 10vw, 140px); }
.vmarquee__track { display: flex; align-items: center; gap: 40px; width: max-content; will-change: transform; }
.vmarquee span { font-family: var(--serif); font-size: clamp(56px, 9vw, 140px); line-height: 1; white-space: nowrap; letter-spacing: -.01em; }
.vmarquee i { font-style: normal; color: var(--clay); font-size: clamp(28px, 4vw, 60px); }

/* ---------- Process as a film strip ---------- */
.process.is-h { overflow: hidden; }
.timeline.is-h { display: flex; gap: clamp(30px, 5vw, 80px); width: max-content; padding-right: var(--gutter); }
.timeline.is-h .step { flex: 0 0 clamp(300px, 30vw, 420px); counter-increment: stp; }
.timeline.is-h .timeline__bar { right: 0; }
.timeline { counter-reset: stp; }

/* ---------- Dark sections open up ---------- */
html.motion .score, html.motion .contact { will-change: clip-path; }

/* ---------- Footer signature ---------- */
.foot__sig { padding: 10px var(--gutter) 0; max-width: 1200px; margin: 0 auto; }
.foot__sig svg { width: 100%; height: auto; display: block; overflow: visible; }
.sig__text { font-family: var(--serif); font-style: italic; font-size: 300px; fill: rgba(246, 240, 230, .08); stroke: rgba(246, 240, 230, .35); stroke-width: 1.2; }
.sig__swoosh { fill: none; stroke: var(--clay); stroke-width: 14; stroke-linecap: round; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1360px) {
  .slate { display: none; }
}
@media (max-width: 1100px) {
  .journey__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .journey__index { position: absolute; top: 86px; left: var(--gutter); display: flex; gap: 14px; }
  .journey__index::before { display: none; }
}
@media (max-width: 960px) {
  .slate { display: none; }
  .journey__inner { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-content: start; gap: 14px; padding-top: 84px; padding-bottom: 40px; }
  .journey__index { position: static; order: 0; gap: 6px; flex-wrap: nowrap; }
  .journey__index button { flex-direction: column; gap: 4px; font-size: 11px; padding: 0; }
  .journey__index b { width: 26px; height: 26px; }
  .journey__stage { order: 1; }
  .journey__text { order: 2; align-self: start; }
  .jv { width: min(100%, 44svh); }
  .scene h3 { font-size: 38px; margin-bottom: 8px; }
  .scene > p { font-size: 15px; margin-bottom: 0; }
  .scene .ticks { display: none; }
  .mail__subj { font-size: 18px; }
  .page__title { font-size: 18px; }
  .page__body { padding-right: 90px; }
  .qr { width: 66px; height: 66px; }
  .page__toast { left: auto; right: -2%; bottom: auto; top: -5%; font-size: 12px; padding: 9px 13px; }
  .vf__meta { display: none; }
}
@media (max-width: 600px) {
  .reel__ui, .reel__side { transform: scale(.82); transform-origin: bottom left; }
  .mail__from { padding: 12px 12px 4px; }
  .mail__subj, .mail__img { margin-left: 12px; margin-right: 12px; }
  .mail__btn { margin-left: 12px; }
  .vf { width: 20px; height: 20px; }
  .vf__rec, .vf__tc { left: 44px; }
  .sig__swoosh { stroke-width: 10; }
}

/* No-motion fallback: everything visible, nothing pinned */
html.no-motion .journey { height: auto; }
html.no-motion .journey__inner { padding-block: 40px; }
html.no-motion .journey__text { gap: 40px; }
html.no-motion .scene { grid-area: auto; }
html.no-motion .journey__index, html.no-motion .journey__bar { display: none; }
html.no-motion .jv__layer:not(.jv__cam) { display: none; }
html.no-motion .slate { display: none; }
