/* Homepage only. Loaded after styles.css.
   Scenes: hero (rise + highlighter), scope sheets, promise statement, the sticky
   wish-list-to-scope scene, and the deliverable cards joined by drawn lines.
   Everything here has a finished, at-rest state for reduced motion. */

/* ---------- Hero ---------- */
.hero .hero-proof { display: flex; align-items: center; gap: 10px; margin: 0; }
.hero .hero-proof::before { content: ""; width: 8px; height: 8px; background: var(--ink); display: block; flex: none; }

.h1 {
    font-size: clamp(50px, 9.6vw, 150px);
    line-height: .93; letter-spacing: -0.05em;
    margin: 28px 0 64px; max-width: none;
}
.h1 .ln { display: block; overflow: hidden; padding-bottom: .07em; }
.h1 .ln > span { display: inline-block; animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * .1s); }
.h1 .a { font-weight: 600; }
.h1 .b { font-weight: 250; color: var(--mute); }
.h1 .b .mark { background-size: 0% .42em; animation: sweep 1.1s 1.1s cubic-bezier(.3,.7,.2,1) forwards; color: var(--ink); font-weight: 400; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes sweep { to { background-size: 100% .42em; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 72px; align-items: start; }
.hero .hero-problem { margin-bottom: 1.6rem; }
.hero .subtitle { margin-bottom: 0; }

/* Scope sheets: the real product as the hero */
.sheet-label { color: var(--mute); margin-bottom: 12px; display: block; }
.sheet-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.sheet-tabs button {
    font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
    min-height: 44px; padding: 0 14px; background: transparent; color: var(--ink);
    border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
}
.sheet-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.sheet { background: #fff; border: 1px solid var(--rule); color: var(--ink); }
.sheet[hidden] { display: none; }
.sheet-bar { height: 8px; background: var(--mark); }
.sheet-in { padding: 24px 28px 26px; }
.sheet-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.sheet-row .mono, .sheet .mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; color: var(--mute); }
.chip {
    font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
    padding: 4px 8px; border: 1px solid var(--ink); transition: background .3s; white-space: nowrap; color: var(--ink);
}
.chip.sent { background: var(--mark); }
.sheet h3 { font-size: 34px; font-weight: 300; line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 6px; }
.sheet-sub { color: var(--mute); font-size: 1rem; margin-bottom: 18px; }
.sheet-list { display: grid; gap: 0; margin-bottom: 18px; }
.sheet-list div { padding: 12px 0; border-top: 1px solid var(--rule); }
.sheet-list dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.sheet-list dd { font-size: 15px; line-height: 1.4; }
.sheet-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--ink); padding-top: 14px; }
.sheet-foot .mono { color: var(--ink); }
.sheet-foot .text-link { font-size: 15px; }

/* Paths: two schedule rows, not cards */
.paths { margin-top: 88px; border-top: 1px solid var(--ink); }
.path {
    display: grid; grid-template-columns: 220px minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: baseline;
    padding: 28px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit;
}
.path .eyebrow { margin: 0; }
.pt {
    font-size: clamp(30px, 4.6vw, 70px); line-height: 1; letter-spacing: -0.05em; font-weight: 300; width: fit-content;
    background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 90% / 0% .4em;
    transition: background-size .55s cubic-bezier(.3,.7,.2,1);
}
.path:hover .pt, .path:focus-visible .pt { background-size: 100% .4em; }
.pd { font-size: 16px; color: var(--mute); display: block; }
.pd b { display: block; color: var(--ink); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; margin-top: 10px; }
.pd .go { display: inline-block; margin-top: 10px; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Promise statement ---------- */
.statement { padding: 120px 0 90px; border-bottom: 1px solid var(--ink); }
.statement .eyebrow { margin-bottom: 32px; }
.stmt {
    font-size: clamp(34px, 5.4vw, 84px); line-height: 1.02; letter-spacing: -0.04em;
    font-weight: 300; max-width: 15em; margin-bottom: 40px;
}
.stmt .w { transition: opacity .12s linear; }
.statement .lede { max-width: 30em; margin-bottom: 64px; }
.lede { font-size: 20px; max-width: 28em; color: var(--mute); margin-bottom: 56px; }

/* ---------- Scene: wish list to scope sheet ---------- */
.night { background: var(--night); color: var(--on-night); }
.scene { height: 430vh; position: relative; border-bottom: 0; }
.stage { position: sticky; top: 0; height: 100vh; min-height: 640px; padding-top: 64px; display: flex; align-items: center; overflow: hidden; }
.stage .container { width: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.scene h2 { font-size: clamp(32px, 4.2vw, 62px); line-height: 1; letter-spacing: -0.045em; font-weight: 300; margin: 18px 0 36px; color: var(--on-night); }
.scene .eyebrow { color: var(--on-night-mute); margin: 0; }
.scene-steps { list-style: none; border-top: 1px solid var(--night-rule); }
.scene-steps li { padding: 14px 0; border-bottom: 1px solid var(--night-rule); opacity: .4; transition: opacity .3s; }
.scene-steps li.on { opacity: 1; }
.scene-steps h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; display: flex; gap: 16px; align-items: baseline; color: var(--on-night); }
.scene-steps h3 .mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-night-mute); min-width: 52px; }
.scene-steps p { font-size: 16px; color: #BDBDB4; max-height: 0; overflow: hidden; transition: max-height .4s; padding-left: 68px; }
.scene-steps li.on p { max-height: 120px; margin-top: 6px; }

.pane { position: relative; height: min(74vh, 640px); }
.tx { position: absolute; left: 0; top: 0; width: 58%; padding-top: 34px; }
.tx .cap { position: absolute; top: 0; left: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-night-mute); }
.tl {
    display: block; width: fit-content; max-width: 100%;
    font-family: var(--mono); font-size: 13px; line-height: 1.5; padding: 3px 7px; margin: 6px 0;
    background-image: linear-gradient(var(--mark), var(--mark)); background-repeat: no-repeat; background-position: 0 0;
    background-size: var(--sw, 0%) 100%; will-change: transform, opacity;
    position: relative; z-index: 3;
}
.pg { position: absolute; right: 0; top: 0; width: 62%; background: var(--paper); color: var(--ink); opacity: 0; }
.pg .bar { height: 8px; background: var(--mark); }
.pg .in { padding: 22px 26px 26px; }
.pg .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.pg .row .mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.pg h3 { font-size: 30px; font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 14px; color: var(--ink); }
.pg .lab { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin: 14px 0 6px; }
.pg p.slot { font-size: 15px; line-height: 1.4; opacity: 0; padding: 3px 0; border-bottom: 1px solid var(--rule); }
.pg p.later { font-size: 14px; color: var(--mute); border-bottom: 0; }
.pg .go { display: inline-block; margin-top: 16px; background: var(--ink); color: var(--paper); padding: 10px 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.pg .price { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--ink); }
.toast {
    position: absolute; right: -6px; bottom: -14px; background: var(--mark); color: var(--ink);
    padding: 12px 16px; max-width: 290px; opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .4s;
}
.toast.on { opacity: 1; transform: none; }
.toast .mono { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #3A3400; }
.toast p { font-size: 15px; font-weight: 500; }

/* ---------- Deliverables: staggered cards joined by drawn lines ---------- */
.deliver { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px; align-items: start; margin: 8px 0 72px; }
.deliver svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.deliver path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s .4s ease; }
.deliver.in path { stroke-dashoffset: 0; }
.dc { position: relative; background: #fff; border: 1px solid var(--ink); padding: 22px 22px 26px; min-height: 210px; display: flex; flex-direction: column; gap: 12px; opacity: .55; transition: opacity .9s calc(var(--i) * .25s); }
.deliver.in .dc { opacity: 1; }
.dc:nth-of-type(2) { margin-top: 64px; }
.dc:nth-of-type(3) { margin-top: 20px; }
.dc:nth-of-type(4) { margin-top: 84px; }
.dc .mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.dc h3 { font-size: 27px; font-weight: 400; letter-spacing: -0.035em; line-height: 1.05; }
.dc p { font-size: 16px; color: var(--mute); }

.fix-foot { align-items: end; }

/* Static fallback for reduced motion */
.scene.static { height: auto; }
.scene.static .stage { position: relative; height: auto; padding: 100px 0; }

@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .deliver { grid-template-columns: 1fr; gap: 20px; }
    .deliver svg { display: none; }
    .dc:nth-of-type(n) { margin-top: 0; min-height: 0; }
    .path { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 900px) {
    .stage .container { grid-template-columns: 1fr; gap: 18px; }
    .scene h2 { font-size: 30px; margin: 10px 0 14px; }
    .scene-steps li:not(.on) { display: none; }
    .scene-steps p { padding-left: 0; }
    .pane { height: min(46vh, 420px); }
    .tx { width: 100%; }
    .pg { width: 92%; }
}
@media (max-width: 560px) {
    .h1 { margin: 22px 0 40px; }
    .paths { margin-top: 56px; }
}

/* Reduced motion: finished state, no animation */
@media (prefers-reduced-motion: reduce) {
    .h1 .ln > span { animation: none; }
    .h1 .b .mark { animation: none; background-size: 100% .42em; }
    .deliver path { stroke-dashoffset: 0; transition: none; }
    .dc { opacity: 1; transition: none; }
    .scene-steps li, .scene-steps p, .toast, .pt, .stmt .w { transition: none; }
}
