/* Rewired home page. A navy hero with the R motion graphic, then plain, bright,
   editorial sections. Newsreader (serif) for headlines, Source Sans 3 for
   reading, and Montserrat only where the brand mark and app appear. */
@font-face { font-family: 'Montserrat'; src: url('assets/fonts/montserrat-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --blue: #2444f9;
  --blue-2: #5b74ff;
  --blue-soft: #a9bcff;
  --navy: #0b2545;
  --navy-2: #071a35;
  --navy-3: #12305a;
  --sand: #f4c77d;
  --sand-ink: #9a6a1f;
  --sky: #e8f1fd;
  --cloud: #f6f8fc;
  --paper: #fdfbf7;
  --white: #ffffff;
  --ink: #0b2545;
  --ink-2: #4f5d72;
  --line: #dde4ef;
  --sand-wash: #fbf1e0;
  --hit: #1f9d63;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --hand: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;
  --brand: 'Montserrat', 'Avenir Next', 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ------------------------------------------------------------ buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; font: 600 16px/1.2 var(--sans); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.btn:focus-visible, .text-link:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--blue); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--sand); }
.btn-ghost { border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-small { min-height: 38px; padding: 8px 14px; font-size: 15px; border-radius: 8px; }
.text-link { font-weight: 600; color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }
.text-link.light { color: var(--white); text-decoration-color: rgba(255, 255, 255, .5); }

/* ------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(253, 251, 247, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { display: block; font: 800 16px/1 var(--brand); letter-spacing: -.02em; color: var(--navy); }
.brand small { display: block; margin-top: 3px; font: 600 9px/1 var(--brand); letter-spacing: .24em; color: var(--ink-2); }
.nav-links { display: flex; align-items: center; gap: 28px; font: 500 16px var(--sans); }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--navy); }
.nav-actions { display: flex; gap: 8px; }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 520px) {
  .brand small { display: none; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-small { min-height: 36px; padding: 7px 11px; font-size: 14px; }
}
/* phones: keep both header buttons, so the brand shows as the R. mark only */
@media (max-width: 420px) { .brand span { display: none; } }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(70% 60% at 85% 10%, rgba(36, 68, 249, .28), transparent 70%), var(--navy); }
.hero .wrap { position: relative; display: grid; padding-block: 80px 24px; gap: 40px; }
.hero-copy { display: grid; gap: 24px; justify-items: start; max-width: 760px; }
.eyebrow { font: 500 16px var(--sans); color: var(--sand); }
.hero h1 { font-size: clamp(46px, 7.6vw, 92px); line-height: 1; letter-spacing: -.025em; font-weight: 450; font-variation-settings: 'opsz' 72; }
.hero h1 em { font-style: italic; color: var(--sand); }
.hero .lead { max-width: 34em; color: #d3dcea; font-size: 20px; line-height: 1.55; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ------------------------------------------------------------ R engine (hero motion graphic) */
.engine { position: relative; width: 100%; max-width: 1100px; justify-self: center; }
.engine-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.engine svg.pipes { position: absolute; inset: 0; overflow: visible; }
.pipes .tube { fill: none; stroke: #1b3866; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.pipes .core { fill: none; stroke: #0d2140; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.pipes .pulse { fill: none; stroke: var(--sand); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(244, 199, 125, .9)); }
.pipes .pulse.blue { stroke: var(--blue-2); filter: drop-shadow(0 0 6px rgba(91, 116, 255, .9)); }

.e-tile { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 22px; background: linear-gradient(160deg, #1d3a68, #12294d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 0 #081a33, 0 14px 30px rgba(0, 0, 0, .35); display: grid; place-items: center; transition: transform .35s, box-shadow .35s; }
.e-tile svg { width: 34px; height: 34px; color: #8fa8ff; transition: color .35s; }
.e-tile span { position: absolute; top: 106px; left: 50%; transform: translateX(-50%); font: 600 15px var(--sans); color: #9fb0cc; white-space: nowrap; transition: color .35s; }
.e-tile.on { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 0 #081a33, 0 0 0 2px var(--sand), 0 18px 40px rgba(244, 199, 125, .25); }
.e-tile.on svg { color: var(--sand); }
.e-tile.on span { color: var(--white); }

.before { position: absolute; width: 150px; height: 300px; margin: -150px 0 0 -75px; display: grid; justify-items: center; align-content: start; gap: 6px; animation: bob 4s ease-in-out infinite; }
.figure-before { width: 150px; height: 270px; overflow: visible; }
.figure-before .skin, .figure-before .head { fill: rgba(244, 199, 125, .16); stroke: var(--sand); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 12px rgba(244, 199, 125, .55)); }
.before span { font: italic 500 17px var(--serif); color: var(--sand); white-space: nowrap; }
@keyframes bob { 50% { transform: translateY(-6px); } }

.e-hub { position: absolute; width: 184px; height: 184px; margin: -92px 0 0 -92px; border-radius: 48px; background: linear-gradient(160deg, #2a4c86, #12294d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 0 #081a33, 0 30px 60px rgba(0, 0, 0, .45), 0 0 80px rgba(36, 68, 249, .35); display: grid; place-items: center; }
.e-hub .face { position: relative; width: 136px; height: 136px; border-radius: 36px; background: linear-gradient(160deg, var(--blue-2), var(--blue)); box-shadow: inset 0 -6px 14px rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .25); display: grid; place-items: center; }
.e-hub .r { font: 800 92px/1 var(--brand); color: var(--white); letter-spacing: -.04em; position: relative; z-index: 2; text-shadow: 0 6px 18px rgba(7, 26, 53, .4); }
.e-hub .r i { font-style: normal; color: var(--sand); }
.e-hub .ring { position: absolute; inset: -14px; border-radius: 56px; border: 2px solid rgba(244, 199, 125, 0); transition: border-color .3s; }
.e-hub.busy .ring { border-color: rgba(244, 199, 125, .6); animation: ring 1s ease-out infinite; }
@keyframes ring { from { transform: scale(.94); opacity: 1; } to { transform: scale(1.08); opacity: 0; } }

.body-panel { position: absolute; width: 340px; border-radius: 16px; background: rgba(7, 26, 53, .92); box-shadow: inset 0 0 0 1px #24406e, 0 24px 50px rgba(0, 0, 0, .4); overflow: hidden; text-align: left; }
.body-panel .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #1d3a68; font: 500 13px var(--sans); color: #9fb0cc; }
.body-panel .bar i { width: 9px; height: 9px; border-radius: 50%; background: #24406e; }
.body-panel .bar i:first-child { background: var(--sand); }
.body-panel .bar b { margin-left: auto; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.bp-main { display: grid; grid-template-columns: 1fr 104px; align-items: center; gap: 4px; padding: 10px 14px 0; }
.figure { width: 100%; height: 320px; overflow: visible; }
.figure .skin { fill: url(#bodyFill); stroke: #6d8bff; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(91, 116, 255, .55)); }
.figure .head { fill: url(#bodyFill); stroke: #6d8bff; stroke-width: 1.6; }
.figure .def { fill: none; stroke: var(--sand); stroke-width: 1.5; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(244, 199, 125, .8)); }
.figure .scan { fill: url(#scanFill); }
.bp-stats { margin: 0; display: grid; gap: 12px; }
.bp-stats div { display: grid; gap: 0; }
.bp-stats dt { font: 500 14px var(--sans); color: #9fb0cc; }
.bp-stats dd { margin: 0; font: 600 24px/1.1 var(--serif); color: var(--white); font-variant-numeric: tabular-nums lining-nums; }
.bp-stats dd.down { color: var(--sand); }
.bp-last { margin: 4px 14px 0; padding: 8px 12px; border-radius: 10px; background: rgba(36, 68, 249, .18); font: 500 14px/1.4 var(--sans); color: #dfe6ff; min-height: 36px; }
.bp-last.flash { animation: line-in .35s ease-out both; }
.bp-note { margin: 8px 14px 12px; font: italic 400 13px var(--sans); color: #7488aa; }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } }

.packet { position: absolute; z-index: 5; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--sand); color: var(--navy); font: 600 14px var(--sans); white-space: nowrap; box-shadow: 0 0 24px rgba(244, 199, 125, .6); opacity: 0; pointer-events: none; }
.packet svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(11, 37, 69, .12); }

.engine-ctrl { position: absolute; right: 0; bottom: 0; z-index: 6; min-height: 32px; padding: 4px 12px; border-radius: 8px; border: 1px solid #24406e; background: rgba(7, 26, 53, .7); color: #9fb0cc; font: 500 14px var(--sans); cursor: pointer; }
.engine-ctrl:hover { color: var(--white); }
.engine-ctrl:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }

/* ------------------------------------------------------------ band under the hero */
.band { background: var(--navy-2); color: #c9d5e9; }
.band .wrap { padding-block: 28px; }
.band p { font: italic 400 clamp(19px, 2.2vw, 24px)/1.4 var(--serif); max-width: 46em; }

/* ------------------------------------------------------------ light sections */
.section { padding-block: 104px; }
.section.soft { background: var(--cloud); }
.section h2 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.02em; max-width: 18ch; }

/* the note from Abhey */
.letter .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: 48px 72px; align-items: start; }
.letter-body { display: grid; gap: 20px; max-width: 34em; font-size: 20px; line-height: 1.65; color: #26364e; }

.sign { margin-top: 4px; font: 600 40px/1 var(--hand); color: var(--blue); transform: rotate(-3deg); transform-origin: left; }
@media (max-width: 860px) { .letter .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* how it works: a plain ruled list */
.ways { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: w; }
.ways li { counter-increment: w; border-top: 2px solid var(--navy); padding-top: 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.ways li::before { content: counter(w); font: italic 400 22px/1 var(--serif); color: var(--sand-ink); }
.ways h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.ways p { color: var(--ink-2); }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; gap: 32px; } }

/* recognise yourself */
.quotes { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.quotes figure { margin: 0; display: grid; gap: 12px; align-content: start; min-width: 0; }
.quotes blockquote { margin: 0; font: italic 400 clamp(24px, 2.6vw, 30px)/1.25 var(--serif); color: var(--navy); }
.quotes figcaption { color: var(--ink-2); max-width: 32em; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; gap: 36px; } }

/* what's included */
.included { display: grid; grid-template-columns: 4fr 7fr; gap: 40px 72px; align-items: start; }
.included-head { display: grid; gap: 16px; justify-items: start; }
.included-head p { color: var(--ink-2); max-width: 26em; }
.list { margin: 0; display: grid; }
.list div { display: grid; grid-template-columns: 160px 1fr; gap: 8px 24px; padding-block: 18px; border-top: 1px solid var(--line); }
.list div:last-child { border-bottom: 1px solid var(--line); }
.list dt { font: 600 19px var(--serif); color: var(--navy); }
.list dd { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .included { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .list div { grid-template-columns: 1fr; gap: 2px; } }

/* the Week 8 promise */
.promise { border-left: 4px solid var(--sand); background: var(--sand-wash); border-radius: 0 12px 12px 0; padding: clamp(28px, 5vw, 56px); display: grid; gap: 20px; justify-items: start; }
.promise-label { font: 600 16px var(--sans); color: var(--sand-ink); }
.promise h2 { max-width: 20ch; }
.promise h2 em { font-style: italic; color: var(--sand-ink); }
.promise p { color: #3b4a60; max-width: 40em; }
.promise small { color: var(--ink-2); font-size: 15px; }
.promise small a { color: inherit; text-underline-offset: 3px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-row { display: grid; grid-template-columns: 4fr 7fr; gap: 40px 72px; align-items: start; }
.faq-head { display: grid; gap: 20px; justify-items: start; position: sticky; top: 104px; }
.faq-head p { color: var(--ink-2); max-width: 26em; }
.faq-list { display: grid; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; cursor: pointer; list-style: none; font: 600 20px/1.35 var(--serif); color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 12px no-repeat, var(--cloud); transition: transform .25s ease, background-color .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--sky); }
.faq-item summary:hover { color: var(--blue); }
.faq-item summary:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; border-radius: 4px; }
.faq-a { display: grid; gap: 12px; padding: 0 48px 22px 0; color: var(--ink-2); max-width: 40em; }
.faq-a p { margin: 0; }
.faq-a a { color: var(--blue); text-underline-offset: 3px; }
@media (max-width: 860px) { .faq-row { grid-template-columns: 1fr; } .faq-head { position: static; } .faq-a { padding-right: 0; } .faq-item summary { font-size: 18px; } }

/* footer */
.footer { background: var(--navy-2); color: #9fb0cc; font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer .contact { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; }
.footer .legal { flex-basis: 100%; font-size: 14px; color: #7488aa; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { color: var(--sand); }
.footer .ig { display: inline-flex; align-items: center; gap: 8px; }
.footer .ig svg { width: 18px; height: 18px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero .wrap { padding-block: 56px 16px; gap: 32px; }
  .hero .lead { font-size: 18px; }
  .section { padding-block: 72px; }
  .letter-body { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .before { animation: none; }
}

/* ------------------------------------------------------------ pricing page */
.nav-links a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-color: var(--sand); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.hero-short .wrap { padding-block: 72px 80px; }
.price-hero { grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px 64px; }
.price-card { display: grid; gap: 12px; justify-items: start; padding: 32px; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.price-name { font: 600 16px var(--sans); color: var(--ink-2); }
.price-card .amount { font: 500 clamp(48px, 6vw, 64px)/1 var(--serif); letter-spacing: -.02em; color: var(--navy); font-variant-numeric: lining-nums; }
.price-card p { color: var(--ink-2); }
.price-card strong { color: var(--ink); }
.price-card .price-small { font-size: 16px; }
.price-card .btn { margin-top: 8px; }
@media (max-width: 860px) { .price-hero { grid-template-columns: 1fr; } }

.apply { display: grid; grid-template-columns: 5fr 6fr; gap: 48px 72px; align-items: start; }
.apply-head { display: grid; gap: 20px; }
.apply-head > p { color: var(--ink-2); max-width: 30em; }
.ways.compact { margin-top: 12px; grid-template-columns: 1fr; gap: 20px; }
.ways.compact li { border-top-width: 1px; border-color: var(--line); padding-top: 14px; grid-template-columns: 28px 1fr; column-gap: 12px; }
.ways.compact li::before { grid-row: span 2; }
.ways.compact h3 { font-size: 21px; }
.apply-form { display: grid; gap: 18px; padding: clamp(20px, 4vw, 36px); border-radius: 14px; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.apply-form h3 { font-size: 26px; line-height: 1.2; }
.apply-form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.apply-form .field { display: grid; gap: 6px; min-width: 0; }
.apply-form label { font: 600 16px/1.35 var(--sans); color: var(--ink); }
.apply-form input, .apply-form select, .apply-form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid #c9d4e6; background: var(--white); color: var(--ink); font: 400 17px var(--sans); }
.apply-form textarea { min-height: 110px; resize: vertical; }
.apply-form input:focus-visible, .apply-form select:focus-visible, .apply-form textarea:focus-visible { outline: 3px solid var(--sand); outline-offset: 1px; border-color: var(--navy); }
.apply-form .fine { font-size: 15px; color: var(--ink-2); }
.apply-form .fine a { color: inherit; text-underline-offset: 3px; }
.apply-form .btn { width: 100%; }
.apply-form .hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .apply { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .apply-form .pair { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .footer .contact { flex-wrap: nowrap; gap: 16px; font-size: 14px; }
  .footer .contact .ig { gap: 6px; white-space: nowrap; }
  .footer .contact svg { width: 16px; height: 16px; }
}
@media (max-width: 360px) { .footer .contact { flex-wrap: wrap; } }

/* ------------------------------------------------------------ resources page */
.ways.soon li { gap: 12px; }
.soon-tag { justify-self: start; padding: 4px 10px; border-radius: 6px; background: var(--sand-wash); color: var(--sand-ink); font: 600 14px var(--sans); }
.soon-note { margin-top: 56px; color: var(--ink-2); }

/* ------------------------------------------------------------ "What that looks like" film
   A 9:16 motion piece in the shape of a short app promo: a cold open, big
   kinetic words, numbered steps on one phone that tilts in and then fills the
   frame, a win screen and an end card. Montserrat inside the frame because it
   shows the app. The frame's data-scene sets the backdrop and the phone pose. */
.film-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 56px 72px; align-items: center; }
.film-copy { display: grid; gap: 18px; align-content: start; }
.film-lead { color: var(--ink-2); max-width: 30em; }
.film-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: fs; }
.film-steps li { counter-increment: fs; }
.film-steps button { width: 100%; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 12px 14px 12px 10px; border: 0; border-radius: 12px; background: none; text-align: left; color: var(--ink); cursor: pointer; font: inherit; transition: background .3s; }
.film-steps button::before { content: "0" counter(fs); grid-row: span 2; font: 800 15px/1.7 var(--brand); color: var(--line); transition: color .3s; }
.film-steps b { font: 600 19px/1.35 var(--sans); }
.film-steps span { font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.film-steps button:hover { background: var(--cloud); }
.film-steps button[aria-current="true"] { background: var(--sky); }
.film-steps button[aria-current="true"]::before { color: var(--blue); }
.film-steps button:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
.film { margin: 0; display: grid; gap: 12px; justify-items: center; }
.film-frame { position: relative; width: 100%; max-width: 360px; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; isolation: isolate;
  background: #0a1530; box-shadow: 0 30px 80px rgba(11, 37, 69, .28), inset 0 0 0 1px rgba(255, 255, 255, .06); font-family: var(--brand); color: var(--white); container-type: inline-size; }

/* backdrops: night sky, warm wash, win green */
.film-sky, .film-wash, .film-win { position: absolute; inset: 0; z-index: -1; transition: opacity .8s ease; }
.film-sky { background:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff8, transparent), radial-gradient(1px 1px at 78% 12%, #fff9, transparent),
    radial-gradient(1px 1px at 34% 42%, #fff6, transparent), radial-gradient(1.4px 1.4px at 88% 38%, #fff7, transparent),
    radial-gradient(1px 1px at 22% 70%, #fff5, transparent), radial-gradient(1.2px 1.2px at 64% 62%, #fff6, transparent),
    radial-gradient(1px 1px at 52% 24%, #fff7, transparent), radial-gradient(1px 1px at 8% 52%, #fff5, transparent),
    radial-gradient(90% 55% at 50% 105%, rgba(91, 116, 255, .55), transparent 70%),
    linear-gradient(180deg, #0a1530 0%, #12245a 60%, #2a2f7a 100%); }
.film-sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1px 1px at 44% 8%, #fff, transparent), radial-gradient(1px 1px at 70% 80%, #fff, transparent), radial-gradient(1.3px 1.3px at 16% 88%, #fff, transparent); animation: twinkle 3s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .2; } to { opacity: .9; } }
.film-wash { opacity: 0; background: linear-gradient(180deg, #1c1f55 0%, #5b2b63 45%, #b4485a 78%, #f0a35b 100%); }
.film-win { opacity: 0; background: radial-gradient(90% 60% at 50% 30%, #1f8a57 0%, #0f4d33 55%, #082a1d 100%); }
.film-frame[data-scene="1"] .film-wash { opacity: 1; }
.film-frame[data-scene="6"] .film-win { opacity: 1; }

/* scenes */
.fs { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .45s; }
.fs.on { opacity: 1; }

/* 0: cold open, the clock rolls to 6:00 on week one */
.fc-dot { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 18px 6px rgba(244, 199, 125, .55); }
.fs-clock.on .fc-dot { animation: fdot 1s cubic-bezier(.6, 0, .3, 1) forwards; }
@keyframes fdot { 60% { transform: none; opacity: 1; } to { transform: translateY(-90px) scale(.4); opacity: 0; } }
.fc-time { display: grid; justify-items: center; gap: 8px; margin-top: -40px; }
.fc-time small { font: 700 11px var(--brand); letter-spacing: .28em; text-transform: uppercase; color: var(--sand); }
.fc-time em { font: 600 10px var(--brand); font-style: normal; letter-spacing: .3em; text-transform: uppercase; color: #9fb0cc; }
.fc-digits { display: flex; margin: 0; font: 200 64px/1 var(--brand); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fc-digits .colon { color: var(--sand); padding: 0 2px; animation: fblink 1s steps(1) infinite; }
.roll { display: inline-block; height: 1em; overflow: hidden; }
.roll i { display: block; font-style: normal; }
.fs-clock.on .roll i { animation: roll .45s cubic-bezier(.5, 0, .2, 1) forwards; }
.fs-clock.on .roll:nth-child(2) i { animation-delay: 1.35s; }
.fs-clock.on .roll:nth-child(4) i { animation-delay: 1.25s; }
.fs-clock.on .roll:nth-child(5) i { animation-delay: 1.15s; }
@keyframes roll { to { transform: translateY(-100%); } }
.fc-line { position: relative; width: 120px; height: 1px; margin-top: 10px; background: rgba(255, 255, 255, .2); }
.fc-line i { position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 8px var(--sand); }
.fs-clock.on .fc-line i { animation: fline 2.2s linear forwards; }
@keyframes fline { to { left: calc(100% - 5px); } }
.fs-clock.on .fc-time { animation: fcap .7s cubic-bezier(.2, .8, .2, 1) .5s both; }
@keyframes fcap { from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(4px); } }

/* 1: kinetic words */
.fs-kinetic { place-items: center start; padding: 0 26px; }
.kt { grid-area: 1 / 1; display: grid; text-transform: uppercase; }
.kt span { font: 800 22px/1 var(--brand); font-size: 7cqw; letter-spacing: -.01em; }
.kt b { font: 900 46px/.92 var(--brand); font-size: 13.4cqw; letter-spacing: -.04em; white-space: nowrap; }
.kt-b b { color: var(--sand); text-shadow: 0 0 30px rgba(244, 199, 125, .45); }
.kt-b b i { font-style: normal; color: var(--white); }
.fs-kinetic.on .kt-a span { animation: ftx .35s ease-out .1s both; }
.fs-kinetic.on .kt-a b { animation: fslam .45s cubic-bezier(.2, 1.4, .4, 1) .35s both; }
.fs-kinetic.on .kt-a { animation: fout .3s ease-in 1.35s forwards; }
.fs-kinetic.on .kt-b span { animation: ftx .35s ease-out 1.55s both; }
.fs-kinetic.on .kt-b b { animation: fslam .5s cubic-bezier(.2, 1.4, .4, 1) 1.8s both; }
@keyframes ftx { from { opacity: 0; transform: translateX(-12px); } }
@keyframes fslam { from { opacity: 0; transform: scale(1.7); filter: blur(8px); } }
@keyframes fout { to { opacity: 0; transform: translateY(-16px); filter: blur(4px); } }
.kt-ring { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); opacity: 0; }
.fs-kinetic.on .kt-ring { animation: fring 1.4s ease-out .35s both; }
@keyframes fring { from { opacity: .8; transform: scale(.4); } to { opacity: 0; transform: scale(1.4); } }

/* numbered step header and tag */
.fs-top { position: absolute; top: 32px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 8px; font: 800 14px/1 var(--brand); letter-spacing: .08em; text-transform: uppercase; z-index: 3; transition: opacity .3s; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.fs-n { color: var(--sand); }
.fs-dash { width: 14px; height: 2px; background: rgba(255, 255, 255, .5); }
.fs-tag { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); padding: 4px 11px; border-radius: 99px; background: rgba(255, 255, 255, .14); font: 700 10px/1.4 var(--brand); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; z-index: 3; transition: opacity .3s, background .3s; backdrop-filter: blur(6px); }
.fs-tag.alert { background: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .25); }
.film-frame.swap .fs-top, .film-frame.swap .fs-tag, .film-frame.bare .fs-top, .film-frame.bare .fs-tag { opacity: 0; }

/* the phone: hidden, tilted in 3D for step one, then upright and filling the frame */
.fm-phone { position: absolute; left: 50%; top: 92px; width: min(300px, calc(100% - 44px)); height: 640px; padding: 7px; border-radius: 44px; background: linear-gradient(145deg, #2b3446, #0b0f1a 40%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 40px 60px -20px rgba(0, 0, 0, .6); z-index: 2;
  transform-origin: 50% 0; transform: translateX(-50%) translateY(180px) perspective(900px) rotateY(-40deg) rotateX(24deg) scale(.5); opacity: 0;
  transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity .5s ease; }
.film-frame[data-scene="2"] .fm-phone { opacity: 1; transform: translateX(-50%) translateY(32px) perspective(900px) rotateY(-20deg) rotateX(12deg) rotateZ(-5deg) scale(.7); }
.film-frame[data-scene="2"] .fm-phone::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 8%; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(24px); transform: translateY(160px); z-index: -1; }
.film-frame[data-scene="3"] .fm-phone, .film-frame[data-scene="4"] .fm-phone, .film-frame[data-scene="5"] .fm-phone { opacity: 1; transform: translateX(-50%) perspective(900px); }
.fm-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #f4f6fa; }
.fm-status { position: absolute; top: 0; left: 0; right: 0; height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 26px; font: 700 12px var(--brand); color: var(--navy); }
.fm-island { position: absolute; left: 50%; top: 9px; width: 78px; height: 22px; margin-left: -39px; border-radius: 99px; background: #05070c; }
.fm-status i { display: flex; gap: 2px; align-items: end; }
.fm-status i::before { content: ""; width: 16px; height: 8px; border-radius: 2px; border: 1.5px solid currentColor; }

/* the app UI on the phone screens */
.fm-scr { position: absolute; inset: 40px 0 0; padding: 6px 12px; display: grid; gap: 9px; align-content: start; color: var(--navy); font-size: 12px; line-height: 1.4; opacity: 0; transition: opacity .35s; }
.fm-scr.on { opacity: 1; }
.fm-scr > * { border-radius: 18px; background: var(--white); box-shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 6px 18px rgba(11, 37, 69, .07); }
.fm-scr.on > * { animation: fin .6s cubic-bezier(.2, .8, .2, 1) both; }
.fm-scr.on > *:nth-child(2) { animation-delay: .12s; } .fm-scr.on > *:nth-child(3) { animation-delay: .24s; }
.fm-scr.on > *:nth-child(4) { animation-delay: .36s; } .fm-scr.on > *:nth-child(5) { animation-delay: .48s; } .fm-scr.on > *:nth-child(6) { animation-delay: .6s; }
@keyframes fin { from { opacity: 0; transform: translateY(22px) scale(.97); } }
.fm-scr small { font: 700 9.5px/1.3 var(--brand); letter-spacing: .1em; text-transform: uppercase; color: #7b8aa3; }
.u-head { padding: 12px 14px; display: grid; gap: 2px; }
.u-head b { font: 800 17px/1.2 var(--brand); letter-spacing: -.02em; }
.u-head em { font-style: normal; color: #7b8aa3; font-weight: 600; }
.u-btn { padding: 11px; text-align: center; font: 800 13px var(--brand); color: var(--white) !important; background: var(--blue) !important; border-radius: 99px !important; }
.fm-scr.on .u-btn { animation: fin .6s both, press .5s ease 1.9s both !important; }
@keyframes press { 50% { transform: scale(.94); box-shadow: 0 0 0 10px rgba(36, 68, 249, .25); } }
.u-r { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--navy); color: var(--white); font: 800 14px/1 var(--brand); }
.u-r i { font-style: normal; color: var(--sand); }

.u-hero { padding: 14px; color: var(--white); background: linear-gradient(160deg, var(--blue-2), var(--blue)) !important; display: grid; gap: 2px; }
.u-hero small { color: rgba(255, 255, 255, .8); }
.u-hero b { font: 800 18px/1.2 var(--brand); }
.u-session { padding: 12px 14px 12px 60px; position: relative; display: grid; }
.u-session b { font: 800 15px var(--brand); }
.u-session em { font-style: normal; color: #7b8aa3; }
.u-ic { position: absolute; left: 12px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--white); background: linear-gradient(160deg, var(--blue-2), var(--blue)); }
.u-ic svg { width: 20px; height: 20px; }
.u-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: none !important; box-shadow: none !important; }
.u-pills div { padding: 10px 12px; border-radius: 16px; background: var(--navy); color: var(--white); display: grid; gap: 3px; }
.u-pills small { color: #9fb0cc; }
.u-pills b { font: 800 17px var(--brand); }
.u-pills i { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); position: relative; overflow: hidden; }
.u-pills i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--sand); border-radius: 4px; }
.fm-scr.on .u-pills i::after { animation: fbar 1.2s ease .7s forwards; }
@keyframes fbar { to { width: var(--w); } }
.u-note { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.u-note p { font-weight: 600; }

.u-set { display: grid; grid-template-columns: 40px 1fr auto 1fr auto; gap: 6px; align-items: center; padding: 8px 12px; font-weight: 700; }
.u-set span { font-size: 11px; }
.u-in { font-style: normal; display: block; min-height: 30px; padding: 5px 0; border-radius: 9px; box-shadow: inset 0 0 0 1.5px #d6deeb; text-align: center; font: 800 14px var(--brand); }
.u-in.typing { box-shadow: inset 0 0 0 2px var(--blue); }
.u-set small { letter-spacing: .04em; }
.u-toast { padding: 9px 12px; text-align: center; font-weight: 800; color: var(--hit); background: #e2f5eb !important; }
.fm-scr.on .u-toast { animation: fin .5s 2.3s both !important; }

.u-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: none !important; box-shadow: none !important; }
.u-grid div { padding: 10px 12px; border-radius: 14px; background: var(--white); display: block; }
.u-grid small { display: block; }
.u-grid b { font: 800 22px/1.1 var(--brand); letter-spacing: -.02em; display: inline; }
.u-grid em { font-style: normal; font-weight: 700; color: #7b8aa3; }
.u-kcal { display: flex; align-items: baseline; gap: 4px; padding: 12px 14px; background: var(--sky) !important; }
.u-kcal span { margin-right: auto; font-weight: 700; }
.u-kcal b { font: 800 26px/1 var(--brand); letter-spacing: -.03em; color: var(--blue); }
.u-kcal em { font-style: normal; font-weight: 700; }

.u-score { padding: 12px 14px; display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; }
.u-score b { font: 800 40px/1 var(--brand); letter-spacing: -.04em; }
.u-score span { font: 800 20px var(--brand); color: #7b8aa3; }
.u-alert { display: flex; gap: 10px; align-items: center; padding: 12px; background: #fde8e6 !important; box-shadow: inset 0 0 0 1.5px #e5484d, 0 6px 18px rgba(11, 37, 69, .07) !important; color: #b42318; }
.u-alert i { flex: none; width: 11px; height: 11px; border-radius: 50%; background: currentColor; animation: fpulse 1.2s ease-in-out infinite; }
@keyframes fpulse { 50% { box-shadow: 0 0 0 6px rgba(229, 72, 77, .2); } }
.u-alert b { display: block; font-weight: 800; font-size: 13px; }
.u-alert small { color: #6b3a36; letter-spacing: .02em; text-transform: none; font-weight: 600; font-size: 10.5px; }
.u-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }
.u-photos div { aspect-ratio: 3 / 4; border-radius: 12px; border: 1.5px dashed #c6d0e2; display: grid; place-items: end center; padding-bottom: 6px; position: relative; overflow: hidden; }
.u-photos div::before { content: ""; position: absolute; inset: 0; background: linear-gradient(170deg, #dfe7ff, #b9c6f5); transform: translateY(101%); }
.u-photos div::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--hit); color: var(--white); font: 800 10px/16px var(--brand); text-align: center; opacity: 0; }
.fm-scr.on .u-photos div::before { animation: fphoto .5s ease forwards; } .fm-scr.on .u-photos div::after { animation: fpop .3s ease forwards; }
.fm-scr.on .u-photos div:nth-child(1)::before, .fm-scr.on .u-photos div:nth-child(1)::after { animation-delay: .9s; }
.fm-scr.on .u-photos div:nth-child(2)::before, .fm-scr.on .u-photos div:nth-child(2)::after { animation-delay: 1.25s; }
.fm-scr.on .u-photos div:nth-child(3)::before, .fm-scr.on .u-photos div:nth-child(3)::after { animation-delay: 1.6s; }
@keyframes fphoto { to { transform: none; } }
@keyframes fpop { to { opacity: 1; } }
.u-photos span { position: relative; z-index: 1; font-weight: 800; font-size: 11px; }

/* 6: the win, a week on track */
.fs-win { place-items: center; align-content: center; gap: 8px; display: grid; justify-items: center; padding: 0 24px; text-align: center; }
.win-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 3px solid #4ade80; box-shadow: 0 0 24px rgba(74, 222, 128, .5), inset 0 0 16px rgba(74, 222, 128, .25); }
.win-check svg { width: 30px; height: 30px; stroke-dasharray: 40; stroke-dashoffset: 40; }
.fs-win.on .win-check { animation: fpop2 .5s cubic-bezier(.2, 1.4, .4, 1) .1s both; }
.fs-win.on .win-check svg { animation: fdraw .45s ease-out .45s forwards; }
@keyframes fpop2 { from { opacity: 0; transform: scale(.4); } }
@keyframes fdraw { to { stroke-dashoffset: 0; } }
.win-h { font: 900 46px/1 var(--brand); letter-spacing: -.04em; margin-top: 6px; }
.win-chip { display: grid; padding: 6px 16px; border-radius: 10px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); font: 800 13px var(--brand); }
.win-chip small { font: 700 8.5px var(--brand); letter-spacing: .18em; text-transform: uppercase; color: #b6e6c9; }
.win-streak { display: flex; align-items: center; gap: 4px; margin: 10px 0 0; }
.win-streak svg { width: 26px; height: 32px; }
.win-streak b { font: 900 54px/1 var(--brand); color: var(--sand); letter-spacing: -.04em; }
.win-days { font: 800 10px var(--brand); letter-spacing: .24em; text-transform: uppercase; }
.win-dots { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 9px; }
.win-dots li { display: grid; justify-items: center; gap: 4px; font: 700 8.5px var(--brand); color: #b6e6c9; }
.win-dots li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.fs-win.on .win-dots li::before { animation: fdotfill .3s ease forwards; }
.fs-win.on .win-dots li:nth-child(1)::before { animation-delay: 1.0s; } .fs-win.on .win-dots li:nth-child(2)::before { animation-delay: 1.12s; }
.fs-win.on .win-dots li:nth-child(3)::before { animation-delay: 1.24s; } .fs-win.on .win-dots li:nth-child(4)::before { animation-delay: 1.36s; }
.fs-win.on .win-dots li:nth-child(5)::before { animation-delay: 1.48s; } .fs-win.on .win-dots li:nth-child(6)::before { animation-delay: 1.6s; }
.fs-win.on .win-dots li:nth-child(7)::before { animation-delay: 1.72s; }
@keyframes fdotfill { to { background: var(--sand); box-shadow: 0 0 10px rgba(244, 199, 125, .7); } }
.win-btn { margin-top: 14px; padding: 12px 26px; border-radius: 99px; background: linear-gradient(180deg, #5ee59a, #2fbf71); color: #063b22; font: 800 14px var(--brand); box-shadow: 0 10px 30px rgba(47, 191, 113, .45); }
.fs-win.on .win-h, .fs-win.on .win-chip { animation: fcap .6s cubic-bezier(.2, .8, .2, 1) .35s both; }
.fs-win.on .win-chip { animation-delay: .5s; }
.fs-win.on .win-streak, .fs-win.on .win-days, .fs-win.on .win-dots { animation: fcap .6s cubic-bezier(.2, .8, .2, 1) .75s both; }
.fs-win.on .win-btn { animation: fin .6s cubic-bezier(.2, .8, .2, 1) 2.1s both; }
.cf { position: absolute; left: 50%; top: 22%; width: 3px; height: 10px; border-radius: 2px; background: var(--c, var(--sand)); opacity: 0; }
.fs-win.on .cf { animation: fconf 1.8s cubic-bezier(.1, .7, .3, 1) .3s forwards; }
@keyframes fconf { 10% { opacity: 1; } to { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }

/* 7: end card, the glow becomes the app icon */
.fs-end { display: grid; justify-items: center; align-content: center; gap: 6px; padding: 0 24px; text-align: center; }
.end-orb { position: absolute; left: 50%; top: 38%; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; background: radial-gradient(circle, #fff6e6 0%, var(--sand) 45%, rgba(244, 199, 125, 0) 72%); opacity: 0; }
.fs-end.on .end-orb { animation: forb 1.1s cubic-bezier(.6, 0, .3, 1) both; }
@keyframes forb { 0% { opacity: 0; transform: scale(.2); } 35% { opacity: 1; transform: scale(1.5); } 100% { opacity: 0; transform: scale(.35); } }
.end-icon { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 50px rgba(91, 116, 255, .55); }
.end-name { margin-top: 10px; font: 900 32px/1 var(--brand); letter-spacing: -.03em; }
.end-line { margin: 0; font: 600 12.5px/1.4 var(--brand); color: #c9d5e9; }
.end-label { margin-top: 18px; font: 800 9.5px var(--brand); letter-spacing: .24em; text-transform: uppercase; color: var(--sand); }
.end-bar { display: flex; align-items: center; gap: 8px; width: min(230px, 100%); padding: 10px 14px; border-radius: 99px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); font: 700 13.5px var(--brand); text-align: left; }
.end-bar svg { flex: none; width: 15px; height: 15px; color: var(--sand); }
.end-bar i { font-style: normal; min-height: 1.2em; }
.end-bar i.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--sand); animation: fblink .8s steps(1) infinite; }
@keyframes fblink { 50% { opacity: 0; } }
.fs-end.on .end-icon { animation: fend .7s cubic-bezier(.2, 1.3, .4, 1) .75s both; }
.fs-end.on .end-name, .fs-end.on .end-line { animation: fcap .6s cubic-bezier(.2, .8, .2, 1) 1s both; }
.fs-end.on .end-label, .fs-end.on .end-bar { animation: fcap .6s cubic-bezier(.2, .8, .2, 1) 1.3s both; }
@keyframes fend { from { opacity: 0; transform: scale(.4); } }

.film-ctrl { border: 1px solid var(--line); background: var(--white); color: var(--navy); border-radius: 99px; padding: 6px 16px; font: 600 14px var(--sans); cursor: pointer; }
.film-note { font-size: 15px; font-style: italic; color: var(--ink-2); }
.film-ctrl:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
@media (max-width: 860px) {
  .film-row { grid-template-columns: 1fr; gap: 20px; }
  .film-copy { display: contents; }
  .film-copy h2 { order: 1; }
  .film-lead { order: 2; }
  .film { order: 3; margin-top: 8px; }
  .film-steps { order: 4; margin-top: 8px; }
}
@media (max-width: 400px) { .fc-digits { font-size: 56px; } .win-h { font-size: 40px; } }
@media (prefers-reduced-motion: reduce) {
  .film-sky::after, .u-alert i, .fc-digits .colon { animation: none; }
  .fs, .fm-phone, .fm-scr, .film-sky, .film-wash, .film-win { transition: none; }
  .fs.on *, .fs.on *::before, .fm-scr.on > *, .fm-scr.on *, .fm-scr.on *::before, .fm-scr.on *::after { animation: none !important; }
  .fc-dot, .kt-a, .kt-ring, .end-orb, .cf { display: none; }
  .fs-clock .roll i { transform: translateY(-100%); }
  .win-check svg { stroke-dashoffset: 0; }
  .win-dots li::before { background: var(--sand); }
  .fm-scr .u-photos div::before { transform: none; }
  .fm-scr .u-photos div::after { opacity: 1; }
  .fm-scr .u-pills i::after { width: var(--w); }
}
