/* =========================================================
   CYBRIX story layer: the thread, the opening story,
   the scroll-through journey, questions, extra hover life.
   Sits on top of styles.css and uses its tokens.
   ========================================================= */
main { position: relative; z-index: 0; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 400; background: var(--sand); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-family: var(--f-wide); font-size: 13px; transition: top .3s var(--ease); }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

/* ---------- The thread: one line that travels the page with you ---------- */
.thread { position: absolute; left: 0; top: 0; width: 100%; z-index: -1; pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.thread__base { stroke: rgba(198, 185, 165, .1); }
.thread__lit { stroke: var(--sand); opacity: .55; }
.thread__dot { fill: var(--sand-2); }
.thread__halo { fill: rgba(230, 220, 203, .16); transform-box: fill-box; transform-origin: center; animation: halo 3.2s var(--ease) -1s infinite; }
@keyframes halo { 0% { transform: scale(.5); opacity: 1; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@media (max-width: 1100px) { .thread { display: none; } }

/* ---------- Hero: words answer the cursor ---------- */
.hero__title .word { cursor: default; }
.is-ready .hero__title .word { transition: transform 1.4s var(--ease), color .6s var(--ease), -webkit-text-stroke-color .6s var(--ease); }
.is-ready .hero__title .line:hover .word--outline { color: var(--sand-2); }
.hero__cue { position: absolute; left: 50%; bottom: 22px; z-index: 3; display: grid; justify-items: center; gap: 8px; transform: translateX(-50%); font-family: var(--f-wide); font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); transition: opacity .6s var(--ease); }
.hero__cue i { width: 1px; height: 34px; background: linear-gradient(var(--sand), transparent); transform-origin: top; animation: cue 2.6s var(--ease-in-out) -1s infinite; }
.hero__cue.is-gone { opacity: 0; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 900px), (max-height: 620px) { .hero__cue { display: none; } }
.marquee__row span { transition: color .4s var(--ease); }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__row span:hover { color: var(--sand-2); }

/* ---------- 01. The opening story: words light as you scroll ---------- */
.story { position: relative; height: 260vh; }
.story__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.story__text { font-weight: 500; font-size: clamp(25px, 3.5vw, 54px); line-height: 1.24; letter-spacing: -.02em; max-width: 24ch; }
.story__text .sw { display: inline-block; opacity: .13; transition: opacity .5s var(--ease), color .5s var(--ease), transform .5s var(--ease); }
.story__text .sw.on { opacity: 1; }
.story__text .sw.hl.on { color: var(--sand); }
.story__text .sw.near { opacity: 1; color: var(--sand-2); transform: translateY(-3px); }
.story__meter { margin-top: clamp(28px, 4vw, 48px); display: flex; align-items: center; gap: 16px; font-family: var(--f-wide); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.story__meter i { display: block; width: 140px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.story__meter i::after { content: ""; position: absolute; inset: 0; background: var(--sand); transform-origin: left; transform: scaleX(var(--p, 0)); }
.story.is-static { height: auto; padding: clamp(56px, 7vw, 96px) 0; }
.story.is-static .story__pin { position: static; height: auto; }
.story.is-static .story__meter { display: none; }

/* ---------- 02. The journey: a project, scrolled through ---------- */
.journey { position: relative; padding-top: clamp(56px, 7vw, 96px); }
.journey__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 4.4vw, 60px); line-height: 1.1; letter-spacing: -.01em; max-width: 17ch; }
.journey__title em { font-style: normal; color: var(--sand); }
.journey__track { position: relative; height: 620vh; }
.journey__pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.journey__inner { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: clamp(16px, 3vw, 44px); align-items: center; }
.journey__stage { display: grid; }
.jc { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: center;
  opacity: var(--o, 0); visibility: hidden; pointer-events: none; }
.jc.is-on { visibility: visible; }
.jc.is-active { pointer-events: auto; }
.jc__text { transform: translateY(calc((1 - var(--o, 0)) * 26px)); }
.jc__num { font-family: var(--f-display); font-size: clamp(52px, 8vw, 118px); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-2); margin-bottom: 14px; }
.jc__text h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2.7vw, 38px); line-height: 1.16; max-width: 15ch; margin-bottom: 16px; }
.jc__text p { color: var(--muted); font-size: clamp(15px, 1.2vw, 17.5px); max-width: 40ch; }
.jc__hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 100px; font-family: var(--f-wide); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }
.jc__hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sand); animation: blink 2.4s var(--ease-in-out) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.jc__scene { position: relative; height: min(64vh, 560px); min-height: 400px; border-radius: 30px; border: 1px solid var(--line-2); background: linear-gradient(160deg, #262625, #1f1f1f); overflow: hidden; isolation: isolate;
  transform: translateY(calc((1 - var(--o, 0)) * 40px)) scale(calc(.94 + .06 * var(--o, 0))); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9); }
.jc__scene::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 20%), rgba(198, 185, 165, .12), transparent 55%); }
.sc { position: absolute; inset: 0; padding: clamp(18px, 2.6vw, 34px); display: flex; flex-direction: column; }
/* a part of a scene that arrives when the scene's own progress passes --at */
.seq { --a: clamp(0, calc((var(--t, 0) - var(--at, 0)) * 7), 1); opacity: var(--a); transform: translateY(calc((1 - var(--a)) * 16px)); }

/* the rail */
.journey__rail { display: grid; justify-items: center; gap: 0; }
.journey__rail button { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--f-wide); font-size: 11px; color: var(--muted); background: var(--bg); transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease); }
.journey__rail button:hover { border-color: var(--sand); color: var(--sand-2); transform: scale(1.08); }
.journey__rail button.is-on { background: var(--sand); color: var(--bg); border-color: var(--sand); }
.journey__rail i { display: block; width: 1px; height: clamp(22px, 5vh, 48px); background: var(--line); position: relative; overflow: hidden; }
.journey__rail i::after { content: ""; position: absolute; inset: 0; background: var(--sand); transform-origin: top; transform: scaleY(var(--f, 0)); }

/* scene 1: the call */
.sc-call { align-items: center; justify-content: center; text-align: center; gap: 12px; }
.call__ring { position: relative; width: clamp(92px, 11vw, 132px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: rgba(29, 29, 29, .7); transition: width .8s var(--ease), border-color .6s var(--ease); }
.call__ring::before, .call__ring::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--sand); opacity: 0; animation: ring 2.4s var(--ease) infinite; }
.call__ring::after { animation-delay: -1.2s; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.75); opacity: 0; } }
.mark--call { width: 62%; height: auto; --sw: 2.2; }
.call__who { font-family: var(--f-display); font-size: clamp(16px, 1.6vw, 21px); letter-spacing: .06em; margin-top: 6px; }
.call__state { position: relative; height: 22px; width: 100%; font-family: var(--f-wide); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.call__state span { position: absolute; inset: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.call__state .st-on { opacity: 0; transform: translateY(8px); color: #9fdc9a; }
.call__state b { font-weight: 500; color: var(--ivory); margin-left: 8px; font-variant-numeric: tabular-nums; }
.call__actions { display: flex; gap: 12px; margin-top: 10px; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.call__btn { height: 50px; padding: 0 26px; border-radius: 100px; font-family: var(--f-wide); font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease); }
.call__btn--yes { background: var(--sand); color: var(--bg); }
.call__btn--yes:hover { background: var(--ivory); transform: scale(1.05); }
.call__btn--yes::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2c7a36; animation: blink 1.4s var(--ease-in-out) infinite; }
.call__chat { position: absolute; left: clamp(18px, 2.6vw, 34px); right: clamp(18px, 2.6vw, 34px); bottom: clamp(18px, 2.6vw, 30px); display: grid; gap: 8px; pointer-events: none; }
.bubble { max-width: 78%; padding: 10px 15px; border-radius: 18px; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.4; text-align: left; }
.bubble--them { justify-self: start; background: rgba(198, 185, 165, .13); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble--you { justify-self: end; background: var(--sand); color: var(--bg); border-bottom-right-radius: 6px; }
.sc-call.is-live .call__ring { width: clamp(64px, 7vw, 84px); border-color: #9fdc9a; }
.sc-call.is-live .call__ring::before, .sc-call.is-live .call__ring::after { animation: none; opacity: 0; }
.sc-call.is-live .st-in { opacity: 0; transform: translateY(-8px); }
.sc-call.is-live .st-on { opacity: 1; transform: none; }
.sc-call.is-live .call__actions { opacity: 0; transform: translateY(10px); pointer-events: none; }
.sc-call.is-live { justify-content: flex-start; padding-top: clamp(22px, 4vh, 44px); }
.call__wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 0; opacity: 0; transition: height .7s var(--ease), opacity .6s var(--ease), margin .7s var(--ease); }
.call__wave i { width: 3px; height: 100%; border-radius: 3px; background: var(--sand); transform: scaleY(.14); }
.sc-call.is-live .call__wave { height: clamp(34px, 6vh, 58px); opacity: .85; margin-top: 10px; }
.sc-call.is-live .call__wave i { animation: wave 1s var(--ease-in-out) var(--d, 0s) infinite alternate; }
@keyframes wave { from { transform: scaleY(.14); } to { transform: scaleY(var(--pk, .9)); } }

/* scene 2: the brief */
.sc-brief { gap: 16px; }
.doc { flex: 1; min-height: 0; border-radius: 20px; border: 1px solid var(--line); background: rgba(29, 29, 29, .72); padding: clamp(14px, 1.8vw, 24px); display: flex; flex-direction: column; }
.doc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc__head b { font-family: var(--f-display); font-weight: 400; font-size: clamp(14px, 1.3vw, 17px); letter-spacing: .04em; }
.doc__head span { font-family: var(--f-wide); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); }
.doc__list { list-style: none; flex: 1; min-height: 0; overflow: hidden; padding-top: 6px; }
.doc__list li { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s var(--ease), opacity .5s var(--ease); }
.doc__list li.on { grid-template-rows: 1fr; opacity: 1; }
.doc__list li > div { overflow: hidden; display: flex; align-items: center; gap: 12px; font-size: clamp(13.5px, 1.1vw, 15.5px); }
.doc__list li > div::before { content: ""; flex: none; width: 16px; height: 16px; margin: 8px 0; border-radius: 50%; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%231d1d1d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain; }
.doc__empty { color: var(--muted); font-size: 14px; padding-top: 10px; transition: opacity .4s var(--ease); }
.doc.has-items .doc__empty { opacity: 0; height: 0; padding: 0; overflow: hidden; }
.doc__foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.doc__foot b { font-weight: 600; color: var(--sand-2); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button { padding: 9px 15px; border-radius: 100px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--ivory); display: inline-flex; align-items: center; gap: 8px; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); }
.pick button::before { content: "+"; color: var(--sand); transition: transform .4s var(--ease), color .4s var(--ease); }
.pick button:hover { border-color: var(--sand); transform: translateY(-2px); }
.pick button[aria-pressed="true"] { background: var(--sand); color: var(--bg); border-color: var(--sand); }
.pick button[aria-pressed="true"]::before { color: var(--bg); transform: rotate(45deg); }

/* scene 3: the build, with a daily update */
.sc-build { gap: 14px; }
.build__top { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; }
.build__top span { font-family: var(--f-wide); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.build__top b { font-family: var(--f-display); font-weight: 400; font-size: clamp(18px, 2vw, 26px); color: var(--sand-2); font-variant-numeric: tabular-nums; }
.build__bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.build__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sand-deep), var(--sand-2)); transform-origin: left; transform: scaleX(var(--t, 0)); }
.feed { list-style: none; flex: 1; min-height: 0; display: grid; align-content: start; gap: 8px; }
.feed li { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(29, 29, 29, .6); transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease); }
.feed .day { font-family: var(--f-wide); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); }
.feed p { font-size: clamp(13px, 1.05vw, 15px); line-height: 1.35; }
.feed em { font-style: normal; font-family: var(--f-wide); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #9fdc9a; }
.feed li.is-hot { border-color: var(--sand); background: rgba(198, 185, 165, .12); transform: translateX(6px); }
.feed li.is-hot.seq, .feed.is-open li.seq { --a: 1; }
.week { display: flex; align-items: center; gap: 8px; }
.week span { font-family: var(--f-wide); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.week button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); font-family: var(--f-wide); font-size: 12px; color: var(--muted); transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); }
.week button:hover, .week button:focus-visible { transform: translateY(-3px); border-color: var(--sand); color: var(--ivory); }
.week button.is-done { background: rgba(198, 185, 165, .16); color: var(--sand-2); border-color: var(--line-2); }
.week button.is-hot { background: var(--sand); color: var(--bg); border-color: var(--sand); }

/* scene 4: you say yes */
.sc-approve { flex-direction: row; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 44px); }
.phone { position: relative; flex: none; height: 88%; aspect-ratio: 9 / 18.5; border-radius: 30px; border: 1px solid var(--line-2); background: #151515; padding: 9px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.phone__screen { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #2b2a28, #1f1f1f); padding: 12% 9% 9%; display: flex; flex-direction: column; gap: 6%; }
.ui-bar { height: 5%; width: 46%; border-radius: 6px; background: rgba(244, 241, 236, .7); }
.ui-hero { height: 27%; border-radius: 14px; background: linear-gradient(135deg, var(--sand), var(--sand-deep)); position: relative; }
.ui-row { height: 8%; border-radius: 9px; background: rgba(244, 241, 236, .1); display: flex; align-items: center; padding: 0 8%; }
.ui-row::before { content: ""; height: 26%; width: var(--w, 60%); border-radius: 4px; background: rgba(244, 241, 236, .35); }
.ui-cta { margin-top: auto; height: calc(9% + 3% * var(--fix1, 0)); border-radius: 100px; background: var(--ivory); transition: height .7s var(--ease), background .7s var(--ease); }
.note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 12px; background: var(--ivory); color: var(--bg); font-size: 11.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7); }
.note::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--bg); flex: none; transition: background .5s var(--ease); }
.note.is-fixed { background: #cfe9cb; }
.note.is-fixed::before { background: #2c7a36 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain; border-color: #2c7a36; }
.note--1 { left: 52%; bottom: 13%; }
.note--2 { left: 44%; top: 15%; }
.approve { display: grid; justify-items: center; gap: 14px; text-align: center; max-width: 210px; }
.approve__btn { position: relative; width: clamp(104px, 10vw, 132px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-wide); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; color: var(--ivory); background: rgba(29, 29, 29, .8); transition: transform .4s var(--ease), background .6s var(--ease), color .6s var(--ease); touch-action: none; user-select: none; -webkit-user-select: none; }
.approve__btn:hover { transform: scale(1.05); }
.approve__btn svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.approve__btn circle { fill: none; stroke-width: 2.5; }
.approve__btn .trk { stroke: var(--line-2); }
.approve__btn .prg { stroke: var(--sand); stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: calc(289px - 289px * var(--h, 0)); }
.approve p { font-size: 13.5px; color: var(--muted); min-height: 3em; }
.sc-approve.is-approved .approve__btn { background: var(--sand); color: var(--bg); }
.sc-approve.is-approved .ui-cta { background: var(--sand); }
.spark { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--sand-2); opacity: 0; pointer-events: none; }
.sc-approve.is-approved .spark { animation: spark 1.1s var(--ease) both; }
@keyframes spark { 0% { opacity: 1; transform: rotate(var(--r)) translateX(40px) scale(1); } 100% { opacity: 0; transform: rotate(var(--r)) translateX(calc(40px + var(--d))) scale(.3); } }

/* scene 5: live */
.sc-live { align-items: center; justify-content: center; text-align: center; gap: 14px; }
.mark--live { position: absolute; left: 50%; top: 50%; width: min(118%, 640px); height: auto; transform: translate(-50%, -50%); --sw: .5; opacity: .26; z-index: -1; }
.live__badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 100px; border: 1px solid rgba(159, 220, 154, .5); font-family: var(--f-wide); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: #9fdc9a; background: rgba(29, 29, 29, .8); }
.live__title { font-family: var(--f-display); font-size: clamp(26px, 3.6vw, 50px); line-height: 1.08; }
.live__stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.live__stores span { padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line-2); font-size: 13px; background: rgba(29, 29, 29, .8); transition: border-color .4s var(--ease), transform .4s var(--ease), color .4s var(--ease); }
.live__stores span:hover { border-color: var(--sand); color: var(--sand-2); transform: translateY(-3px); }
.beat { width: min(78%, 360px); height: 44px; }
.beat path { fill: none; stroke: var(--sand); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.jc.is-active .beat path { animation: beat 2.8s linear infinite; }
@keyframes beat { 0% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: -1; } }
.live__note { font-size: 14px; color: rgba(244, 241, 236, .78); }

/* the journey without the pin: phones in landscape, reduced motion */
.journey.is-static .journey__track { height: auto; }
.journey.is-static .journey__pin { position: static; height: auto; display: block; padding: 24px 0 clamp(40px, 6vw, 80px); }
.journey.is-static .journey__inner { grid-template-columns: minmax(0, 1fr); }
.journey.is-static .journey__rail { display: none; }
.journey.is-static .journey__stage { gap: clamp(40px, 7vw, 90px); }
.journey.is-static .jc { grid-area: auto; --o: 1; visibility: visible; pointer-events: auto; }

@media (max-width: 900px) {
  .journey__track { height: 560vh; }
  .journey__inner { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .journey__rail { grid-row: 2; display: flex; justify-content: center; align-items: center; }
  .journey__rail button { width: 34px; height: 34px; font-size: 10px; }
  .journey__rail i { width: clamp(14px, 6vw, 34px); height: 1px; }
  .journey__rail i::after { transform-origin: left; transform: scaleX(var(--f, 0)); }
  .jc { grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: center; }
  .jc__scene { order: -1; height: min(46svh, 400px); min-height: 300px; border-radius: 24px; }
  .jc__num { font-size: 40px; margin-bottom: 6px; }
  .jc__text h3 { font-size: 21px; margin-bottom: 8px; max-width: 20ch; }
  .jc__text p { font-size: 14.5px; }
  .jc__hint { margin-top: 12px; padding: 7px 12px; font-size: 10px; }
  .journey.is-static .jc__scene { height: 400px; }
  .note { font-size: 10.5px; padding: 6px 9px; }
  .note--2 { top: 3%; left: 26%; }
  .note--1 { bottom: 4%; left: 34%; }
  .approve { align-self: flex-start; margin-top: 16%; }
  .approve { max-width: 130px; } .approve p { font-size: 12px; }
  .feed li { padding: 7px 11px; grid-template-columns: 38px 1fr auto; gap: 8px; }
  .feed { gap: 6px; }
  .week button { width: 34px; height: 34px; }
  .pick button { padding: 7px 12px; font-size: 12.5px; }
  .call__chat { gap: 6px; }
}
@media (max-width: 900px) and (max-height: 700px) { .jc__text p { display: none; } }

/* ---------- Cards lean toward the cursor ---------- */
@media (hover: hover) and (pointer: fine) {
  .tilt.is-in { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  .tilt.is-tilting { transition: transform .18s linear, border-color .4s; transition-delay: 0s; }
}

/* ---------- Questions ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 90px); align-items: start; }
.faq__head { position: sticky; top: 110px; }
.q { border-top: 1px solid var(--line); }
.q:last-child { border-bottom: 1px solid var(--line); }
.q h3 { font: inherit; }
.q button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; text-align: left; font-family: var(--f-wide); font-weight: 500; font-size: clamp(16px, 1.45vw, 20px); transition: color .4s var(--ease), padding .5s var(--ease); }
.q button:hover { color: var(--sand-2); padding-left: 12px; }
.q__pm { flex: none; position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .4s var(--ease), border-color .4s var(--ease), transform .6s var(--ease); }
.q__pm::before, .q__pm::after { content: ""; position: absolute; left: 12px; right: 12px; top: 18px; height: 1px; background: var(--sand); transition: transform .5s var(--ease), background .4s var(--ease); }
.q__pm::after { transform: rotate(90deg); }
.q button:hover .q__pm { border-color: var(--sand); }
.q.is-open .q__pm { background: var(--sand); border-color: var(--sand); transform: rotate(180deg); }
.q.is-open .q__pm::before, .q.is-open .q__pm::after { background: var(--bg); }
.q.is-open .q__pm::after { transform: rotate(0deg); }
.q__a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .6s var(--ease), visibility 0s .6s; }
.q__a > div { overflow: hidden; }
.q__a p { padding: 0 60px 26px 0; color: var(--muted); font-size: 16px; max-width: 62ch; opacity: 0; transform: translateY(-8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.q.is-open .q__a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .6s var(--ease), visibility 0s; }
.q.is-open .q__a p { opacity: 1; transform: none; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } .faq__head { position: static; } .q__a p { padding-right: 0; } }

@media (pointer: coarse) {
  .pick button { min-height: 44px; }
  .week button { min-width: 44px; min-height: 44px; }
  .journey__rail button { min-width: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .thread { display: none; }
  .story__text .sw { opacity: 1; }
  .seq { --a: 1; }
  .hero__cue { display: none; }
}
body.is-paused *, body.is-paused *::before, body.is-paused *::after { animation-play-state: paused !important; }

/* ---------- Phones: every scene gets the room it needs, nothing sits on top of anything ---------- */
@media (max-width: 900px) {
  .journey__pin { height: 100svh; }                          /* the part of the screen you can really see */
  .jc__scene { height: clamp(300px, calc(100svh - 400px), 420px); min-height: 0; }
  .jc__num { font-size: 30px; margin-bottom: 4px; }
  .sc { padding: 14px; }

  /* 1. the call: the chat sits under the caller, in line, so the two can never collide */
  .sc-call { gap: 8px; }
  .call__who { margin-top: 0; }
  .call__actions { height: 50px; transition: opacity .5s var(--ease), transform .5s var(--ease), height .5s var(--ease), margin .5s var(--ease); }
  .sc-call.is-live { padding-top: 14px; }
  .sc-call.is-live .call__ring { width: 52px; }
  .sc-call.is-live .call__actions { height: 0; margin: 0; overflow: hidden; }
  .call__chat { position: static; align-self: stretch; margin-top: auto; }
  .sc-call:not(.is-live) .call__chat { display: none; }
  .bubble { max-width: 88%; padding: 8px 13px; }

  /* 2. the brief: picked features line up as small tags, so the list always has room */
  .sc-brief { gap: 10px; }
  .doc { padding: 12px 14px; border-radius: 16px; }
  .doc__head { padding-bottom: 8px; }
  .doc__list { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0 12px; padding-top: 4px; }
  .doc__list li { display: none; }
  .doc__list li.on { display: block; animation: tagIn .45s var(--ease) both; }
  .doc__list li > div { gap: 6px; font-size: 13px; }
  .doc__list li > div::before { width: 14px; height: 14px; margin: 3px 0; }
  .doc__empty { font-size: 13px; padding-top: 6px; }
  .doc__foot { padding-top: 8px; font-size: 12.5px; }
  .pick { gap: 6px; }

  /* 3. the build: five equal day buttons, no label fighting them for space */
  .sc-build { gap: 10px; }
  .week { gap: 6px; }
  .week span { display: none; }
  .week button { flex: 1; width: auto; min-width: 0; height: 40px; }

  /* 4. you say yes: the notes stay on the phone, the button keeps its own side */
  .sc-approve { gap: 16px; }
  .note { white-space: normal; width: max-content; max-width: 104%; line-height: 1.2; }
  .note--2 { top: 15%; left: 6%; }
  .note--1 { bottom: 15%; left: 6%; }
  .approve { align-self: center; margin-top: 0; max-width: none; flex: 1; min-width: 0; gap: 10px; }
  .approve__btn { width: 100px; }
  .approve p { min-height: 0; }
  .journey.is-static .jc__scene { height: 440px; }
}
@keyframes tagIn { from { opacity: 0; transform: translateY(6px) scale(.92); } }
@media (max-width: 900px) and (max-height: 700px) {
  .jc__scene { height: clamp(290px, calc(100svh - 320px), 400px); }
  .doc { padding: 9px 14px; }
  .doc__head { padding-bottom: 6px; }
  .doc__list { padding-top: 3px; }
  .doc__list li > div { font-size: 12.5px; }
  .doc__list li > div::before { margin: 2px 0; }
}
/* short phones: one update at a time, the day buttons work as tabs */
@media (max-width: 900px) and (max-height: 779px) {
  .sc-call.is-live .call__wave { height: 0; margin: 0; opacity: 0; }
  .pick button { min-height: 40px; }
  .journey:not(.is-static) .feed { grid-template-rows: minmax(0, 1fr); align-content: stretch; gap: 0; }
  .journey:not(.is-static) .feed li { grid-area: 1 / 1; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 6px 10px; padding: 14px 16px; border-color: var(--line-2); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
  .journey:not(.is-static) .feed li.is-cur { opacity: var(--a); visibility: visible; transition: opacity .4s var(--ease), visibility 0s; }
  .journey:not(.is-static) .feed li.is-hot { transform: translateY(calc((1 - var(--a)) * 16px)); }
  .journey:not(.is-static) .feed .day { grid-area: 1 / 1; font-size: 11.5px; }
  .journey:not(.is-static) .feed em { grid-area: 1 / 2; font-size: 10.5px; }
  .journey:not(.is-static) .feed p { grid-area: 2 / 1 / 3 / -1; align-self: center; font-size: clamp(16px, 4.7vw, 19px); line-height: 1.3; }
  .beat { display: none; }
  .sc-live { gap: 10px; }
  .live__title { font-size: 24px; }
  .live__stores { gap: 6px; }
  .live__stores span { padding: 6px 10px; font-size: 12px; }
  .live__note { font-size: 13px; }
  .journey:not(.is-static) .week button.is-cur { border-color: var(--sand); color: var(--ivory); }
  .journey:not(.is-static) .week button.is-cur.is-done { background: var(--sand); color: var(--bg); }
}
@media (max-width: 900px) and (max-height: 600px) {
  .doc__foot { display: none; }
}

@media (min-width: 901px) and (max-height: 700px) {
  .feed { gap: 6px; }
  .feed li { padding: 7px 14px; }
}
