/* The scroll story at the top of the home page. */
.story { height: 1300vh; position: relative; }
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; pointer-events: none; will-change: transform, opacity; }
.layer > * { pointer-events: auto; }
.tag { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 2px; color: var(--soft); text-transform: uppercase; }
.mini-card { background: var(--card); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.mini-card span { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 1.2px; color: var(--soft); }
.mini-card b { font-size: 19px; }
.mini-card small { font-size: 15px; color: var(--soft); }
.scroll-hint { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 2px; color: var(--soft); }
@media (prefers-reduced-motion: reduce) {
  .story { height: auto; } .stage { position: relative; height: auto; overflow: visible; } .stage > canvas { display: none; }
  .layer { position: relative; inset: auto; padding: 48px 16px; } .scroll-hint { display: none; }
}

.side { width: 100%; max-width: 1100px; display: flex; justify-content: flex-start; }
.side > div { max-width: 360px; }
.side h2 { margin-top: 8px; }
.side p { margin-top: 12px; }
.big h1 { font-size: clamp(46px, 9vw, 100px); text-align: center; text-shadow: 0 2px 24px var(--ground); }
.end { text-align: center; }
.end .lock { display: flex; align-items: center; gap: 14px; justify-content: center; }
.end .lock span { font-size: clamp(48px, 9vw, 96px); font-weight: 800; letter-spacing: -2px; }

.quote { max-width: 760px; text-align: center; font-size: clamp(24px, 4vw, 42px); line-height: 1.25; font-weight: 700; text-shadow: 0 2px 24px var(--ground), 0 0 6px var(--ground); }
.quote .tag { display: block; margin-bottom: 14px; }
.lock span { font-size: clamp(48px, 9vw, 96px); font-weight: 800; letter-spacing: -2px; text-shadow: 0 2px 24px var(--ground); }

/* The phone walking through a job, with the steps beside it. */
.chap .side { max-width: 1120px; padding-inline: 24px; }
.chap.right .side { justify-content: flex-end; }
.chap-in { max-width: 430px !important; text-shadow: 0 1px 14px var(--ground); }
.chap-in h2 { font-size: clamp(26px, 3.4vw, 40px); }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 4px; }
.steps li { border-left: 3px solid var(--line); padding: 8px 0 8px 14px; color: var(--soft); transition: color 0.2s, border-color 0.2s; }
.steps b { font-size: 19px; }
.steps p { display: none; margin-top: 4px; font-size: 16px; line-height: 1.4; color: var(--ink); }
.steps li.on { border-color: var(--accent); color: var(--ink); }
.steps li.on p { display: block; }
.jphone { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; perspective: 1400px; pointer-events: none; }
.phone-body { position: relative; flex: none; transform-style: preserve-3d; will-change: transform; --thick: 22px; }
.jphone .phone { margin: 0; box-shadow: none; transform: translateZ(calc(var(--thick) / 2)); backface-visibility: hidden; }
.phone-slice { position: absolute; inset: 0; border-radius: 48px; background: #4A5450; outline: 1px solid transparent; }
.phone-slice i { position: absolute; width: 5px; background: #6B7671; box-shadow: 0 -1.5px 0 #0B0F0E, 0 1.5px 0 #0B0F0E; }
.phone-slice .power { right: -5px; top: 24%; height: 11%; border-radius: 0 3px 3px 0; }
.phone-slice .vol { left: -5px; top: 21%; height: 7%; border-radius: 3px 0 0 3px; }
.phone-slice .vol.two { top: 30%; }
.button-face { position: absolute; left: 50%; width: calc(var(--thick) / 2); margin-left: calc(var(--thick) / -4); border-radius: 3px; background: linear-gradient(90deg, #5F6B66, #A3AFA9 50%, #5F6B66); box-shadow: 0 0 0 1.5px #0B0F0E; }
.button-face.power { top: 24%; height: 11%; }
.button-face.vol { top: 21%; height: 7%; }
.button-face.vol.two { top: 30%; }
.phone-edge { position: absolute; top: 48px; bottom: 48px; left: 50%; width: var(--thick); margin-left: calc(var(--thick) / -2); background: #4A5450; }
.phone-cap { position: absolute; left: 48px; right: 48px; top: 50%; height: var(--thick); margin-top: calc(var(--thick) / -2); background: #4A5450; }
.phone .shot { opacity: 0; visibility: hidden; transition: opacity 0s 0.2s, visibility 0s 0.2s; }
.phone .shot.on { opacity: 1; visibility: visible; z-index: 1; transition: opacity 0.2s; }
.phone-back { position: absolute; inset: 0; border-radius: 48px; display: flex; align-items: center; justify-content: center; background: #1B2220; border: 3px solid #4A5450; transform: rotateY(180deg) translateZ(calc(var(--thick) / 2)); backface-visibility: hidden; }
.cam, .cam-slice { position: absolute; top: 24px; right: 24px; width: 104px; height: 104px; border-radius: 30px; }
.cam { background: linear-gradient(145deg, #333E3A, #232B28); border: 1.5px solid #566260; transform-style: preserve-3d; backface-visibility: hidden; }
.cam-slice { background: #4A5450; outline: 1px solid transparent; }
.cam i, .cam s { position: absolute; width: 40px; height: 40px; border-radius: 50%; display: block; backface-visibility: hidden; }
.cam s { background: #4A5450; }
.cam i { border: 4px solid #5A6661; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.55) 0 7%, transparent 9%), radial-gradient(circle at 50% 50%, #24364A 0 22%, #0A0E12 40% 62%, #151B1F 100%); box-shadow: inset 0 0 6px #000; }
.cam .a { top: 7px; left: 7px; }
.cam .b { bottom: 7px; left: 7px; }
.cam .c { top: 34px; right: 7px; width: 30px; height: 30px; }
/* The phone in the app's white mode, on the dark page. Take "white" off the phone to go back to dark. */
.phone.white { --ground: #E6ECE8; --card: #F6F9F7; --ink: #121816; --soft: #53625B; --line: #C5D0C9; --accent: #0B7049; --shadow: #121816; --grid: rgba(18, 24, 22, 0.06); color: var(--ink); box-shadow: 8px 8px 0 #000; }
.phone.white .logo-light { display: inline; }
.phone.white .logo-dark { display: none; }
.set-view { overflow: hidden; }
.set-scroll { display: grid; gap: 12px; position: relative; will-change: transform; }
.set-part { display: grid; gap: 8px; padding: 6px 10px 10px 6px; border: 2px solid transparent; transition: border-color 0.2s; }
.set-part.on { border-color: var(--accent); }
.s-logo { display: flex; align-items: center; justify-content: center; height: 62px; border: 1.5px dashed var(--soft); font-size: 14px; letter-spacing: 1.5px; color: var(--soft); }
.s-sub { font-size: 14px; letter-spacing: 1.2px; color: var(--soft); margin-top: 8px; }
.s-title { font-size: 33px; line-height: 40px; font-weight: 800; letter-spacing: -0.8px; margin-top: 2px; }
.s-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; margin-top: 20px; font-size: 18px; line-height: 1.35; }
.s-sect { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
.s-card { background: var(--card); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow); padding: 16px; display: grid; gap: 12px; }
.s-card p { margin: 0 0 4px; color: var(--soft); }
.s-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.s-row span { color: var(--soft); }
.s-row b { font-weight: 700; text-align: right; }
.s-row.hot span, .s-row.hot b { color: var(--accent); }
.s-row.warn span, .s-row.warn b { color: #E8A33D; }
.s-row.line { border-top: 1.5px solid var(--line); padding-top: 8px; }
.s-row.big { border-top: 1.5px solid var(--line); padding-top: 8px; font-size: 20px; }
.s-row.big span { color: var(--ink); font-weight: 700; }
.s-inv { font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.s-fix { background: var(--line); padding: 10px 12px; display: grid; gap: 4px; }
.s-fix p { margin: 0; color: var(--ink); }
.s-note { border: 1.5px dashed var(--line); padding: 10px 14px; font-weight: 700; }
.s-note small { display: block; font-size: 16px; font-weight: 400; color: var(--soft); }
.s-btns { display: flex; gap: 10px; margin-top: 6px; }
.s-btns span { flex: 1; min-height: 46px; display: flex; align-items: center; justify-content: center; background: var(--card); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--shadow); font-size: 15px; font-weight: 700; white-space: nowrap; padding: 0 6px; }
@media (max-width: 859px) {
  .chap { align-items: flex-start; }
  .chap .side { padding-inline: 8px; }
  .chap-in { max-width: none !important; }
  .chap-in h2 { font-size: 25px; line-height: 1.15; }
  .steps { margin-top: 10px; }
  .steps li:not(.on) { display: none; }
  .jphone { align-items: flex-start; padding-top: 52vh; padding-top: 52dvh; }
  .steps p { font-size: 15px; line-height: 1.35; }
}
@media (prefers-reduced-motion: reduce) {
  .jphone { display: none; }
  .steps li { border-color: var(--accent); color: var(--ink); }
  .steps p { display: block; }
  .steps li:not(.on) { display: block; }
}
@media (max-width: 859px) and (max-height: 760px) { .chap-cta { display: none; } }
