/* =========================================================
   First View Studio: "How it works" timeline + all animations.
   Loaded after styles.css.
   ========================================================= */

/* ---------- HOW IT WORKS: heading left, horizontal timeline under it ---------- */
.how-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.how-intro .sec-lead { margin-top: 0; }
.how-intro .btn { margin-top: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(18px, 2.4vw, 32px); position: relative; }
/* grey track + the brass line that draws across it */
.timeline::before, .timeline::after { content: ""; position: absolute; left: 0; right: 0; top: 31px; height: 2px; border-radius: 2px; }
.timeline::before { background: var(--line-strong); }
.timeline::after { background: linear-gradient(90deg, var(--brass-1), var(--brass-2) 70%, rgba(212,169,87,.3)); box-shadow: 0 0 14px rgba(212,169,87,.6); transform-origin: left; }
.timeline > li { position: relative; z-index: 1; display: flex; flex-direction: column; }
.t-num { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.3px var(--brass-text);
  background: radial-gradient(circle at 35% 30%, #222B3B, var(--surface) 70%); border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 8px var(--bg), inset 1px 1px 0 rgba(255,255,255,.12), 0 14px 30px -12px rgba(0,0,0,.8); }
.t-card { flex: 1; padding: 22px 22px 24px; border-radius: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.timeline h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.timeline p { margin: 0; font-size: .98rem; }
.t-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .98rem; }
.t-list li { position: relative; padding-left: 20px; line-height: 1.45; }
.t-list li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(180deg, var(--brass-1), var(--brass-2)); box-shadow: 0 0 8px rgba(212,169,87,.5); }

@media (max-width: 1000px) {
  .how-head { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 900px) {
  /* still horizontal on phones: swipe sideways through the steps */
  .timeline { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 22px var(--gutter) 14px 0; margin-right: calc(-1 * var(--gutter)); scrollbar-width: none; }
  .timeline::-webkit-scrollbar { display: none; }
  .timeline > li { flex: 0 0 min(78%, 320px); scroll-snap-align: start; }
  .timeline::before, .timeline::after { right: auto; top: 53px; width: calc(5 * min(78vw, 320px) + 64px); }
  .swipe-hint { display: block; }
}
@media (min-width: 901px) { .swipe-hint { display: none; } }
.swipe-hint { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--brass-text); }

/* ---------- PROBLEMS: heading left, one box per symptom under it ---------- */
.symptoms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.symptom { position: relative; padding: 26px 24px 28px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.06), var(--shadow-card); transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease); }
.symptom::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #E0705E, rgba(224,112,94,0)); opacity: .8; }
.symptom::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(224,112,94,.12), transparent); pointer-events: none; }
.symptom:hover { transform: translateY(-4px); border-color: rgba(224,112,94,.35); box-shadow: inset 1px 1px 0 rgba(255,255,255,.06), 0 30px 60px -28px rgba(0,0,0,.9), 0 0 40px -20px rgba(224,112,94,.35); }
.sym-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  background: radial-gradient(circle at 30% 25%, #2A3242, #151B26); border: 1px solid var(--line-strong); box-shadow: inset 1px 1px 0 rgba(255,255,255,.1), 0 10px 24px -12px rgba(0,0,0,.8); }
.sym-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--brass-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sym-icon svg .x { stroke: #E0705E; stroke-width: 2; }
.symptom h3 { font-size: 1.16rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; margin-bottom: 10px; }
.symptom p { margin: 0; font-size: .98rem; }
.sym-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.sym-list li { position: relative; padding-left: 24px; font-size: .98rem; line-height: 1.45; }
.sym-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg);
  background: linear-gradient(135deg, #F08A78, #C9533F); box-shadow: 0 0 10px rgba(224,112,94,.55); }
.js .symptom .sym-list li { opacity: 0; transform: translateX(-14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0ms) + 400ms + var(--b, 0) * 140ms); }
.js .symptom.on .sym-list li { opacity: 1; transform: none; }
.sym-list li:nth-child(2) { --b: 1; } .sym-list li:nth-child(3) { --b: 2; }

/* ---------- section footer: closing line + button under the content ---------- */
.sec-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3.4vw, 40px); border-radius: 22px; position: relative; overflow: hidden;
  background: radial-gradient(600px 200px at 0% 0%, rgba(212,169,87,.10), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)), rgba(14,18,28,.6);
  border: 1px solid rgba(242,236,223,.1); box-shadow: inset 1px 1px 0 rgba(255,255,255,.08), var(--shadow-card); }
.sec-foot::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--brass-1), var(--brass-2)); box-shadow: 0 0 14px rgba(212,169,87,.6); }
.sec-foot > div { flex: 1 1 420px; }
.sec-foot .sec-lead { margin: 0; max-width: 640px; }
.sec-foot .serif-line { margin: 6px 0 0; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 1.08rem; }
@media (max-width: 640px) { .sec-foot .btn { width: 100%; } }

/* ---------- WHY FIRST VIEW: one box per reason ---------- */
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.why-box { position: relative; padding: 28px 26px 28px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.06), var(--shadow-card); transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease); }
.why-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--brass-1), rgba(212,169,87,0)); }
.why-box::after { content: ""; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(212,169,87,.10), transparent); pointer-events: none; }
.why-box:hover { transform: translateY(-4px); border-color: rgba(212,169,87,.4); box-shadow: inset 1px 1px 0 rgba(255,255,255,.06), 0 30px 60px -28px rgba(0,0,0,.9), 0 0 44px -22px rgba(212,169,87,.45); }
.why-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  background: radial-gradient(circle at 30% 25%, #2A3242, #151B26); border: 1px solid var(--line-strong); box-shadow: inset 1px 1px 0 rgba(255,255,255,.1), 0 10px 24px -12px rgba(0,0,0,.8); }
.why-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brass-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.why-box h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 10px; }
.why-box p { margin: 0; }
.why-foot { margin-top: clamp(32px, 4vw, 48px); display: flex; justify-content: center; }
@media (max-width: 640px) { .why-foot .btn { width: 100%; } }

/* ---------- UP-FRONT PRICES: one box each, payment plan inside Launch ---------- */
.upfront { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 30px 30px 28px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.06), var(--shadow-card); transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease); }
.price-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--brass-1), rgba(212,169,87,0)); }
.price-card:hover { transform: translateY(-4px); border-color: rgba(212,169,87,.4); box-shadow: inset 1px 1px 0 rgba(255,255,255,.06), 0 30px 60px -28px rgba(0,0,0,.9), 0 0 50px -24px rgba(212,169,87,.45); }
.price-card--main { border-color: rgba(212,169,87,.45); background: radial-gradient(500px 260px at 50% 0%, rgba(212,169,87,.12), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.pc-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--ink); margin: 0; letter-spacing: -.01em; }
.pc-name small { font-size: .78rem; font-weight: 600; color: var(--ink-mute); letter-spacing: 0; }
.pc-price { margin: 12px 0 16px; display: flex; align-items: baseline; gap: 10px; }
.pc-price .price.price--big { font-size: clamp(2.4rem, 4vw, 3rem); line-height: 1; }
.pc-price .price { margin-left: 0 !important; }
.pc-per { color: var(--ink-mute); font-weight: 500; }
.pc-desc { margin: 0 0 20px; padding-top: 16px; border-top: 1px solid var(--line); flex: 1; }
.pc-list { list-style: none; margin: 0 0 22px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; flex: 1; align-content: start; }
.pc-list li { position: relative; padding-left: 28px; line-height: 1.45; }
.pc-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,169,87,.22), rgba(212,169,87,.08)); box-shadow: inset 0 0 0 1px rgba(227,196,127,.5); }
.pc-list li::after { content: ""; position: absolute; left: 6px; top: calc(.2em + 4px); width: 5px; height: 9px; border: solid var(--brass-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pc-pay { margin: 0 0 22px; padding: 14px 16px; border-radius: 14px; background: rgba(212,169,87,.07); border: 1px solid rgba(212,169,87,.28); }
.pc-pay-title { margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--brass-text); }
.pc-pay-text { margin: 0; }
.pc-btn { width: 100%; }

/* ---------- MONTHLY PLANS: one card per plan; the editor can add more ---------- */
.plans-head { max-width: 920px; margin: clamp(56px, 7vw, 88px) 0 clamp(24px, 3vw, 36px); }
.plans-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.03em; line-height: 1.1; }
.plans-lead { margin: 12px 0 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.06), var(--shadow-card); transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease); }
.plan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--brass-1), rgba(212,169,87,0)); }
.plan:hover { transform: translateY(-4px); border-color: rgba(212,169,87,.4); box-shadow: inset 1px 1px 0 rgba(255,255,255,.06), 0 30px 60px -28px rgba(0,0,0,.9), 0 0 50px -24px rgba(212,169,87,.45); }
.plan--mid { border-color: rgba(212,169,87,.45); background: radial-gradient(400px 220px at 50% 0%, rgba(212,169,87,.12), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.plan-name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--ink); margin: 0; letter-spacing: -.01em; }
.plan-price { margin: 10px 0 18px; display: flex; align-items: baseline; gap: 6px; }
.plan-amt { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -.03em;
  background: linear-gradient(180deg, var(--brass-1), var(--brass-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .04em; }
.plan-per { color: var(--ink-mute); font-weight: 500; }
.plan-list { list-style: none; margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; flex: 1; align-content: start; }
.plan-list li { position: relative; padding-left: 28px; line-height: 1.45; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,169,87,.22), rgba(212,169,87,.08)); box-shadow: inset 0 0 0 1px rgba(227,196,127,.5); }
.plan-list li::after { content: ""; position: absolute; left: 6px; top: calc(.2em + 4px); width: 5px; height: 9px; border: solid var(--brass-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan-btn { width: 100%; }
.plans-foot { margin: 26px 0 0; color: var(--ink-mute); }

/* ---------- ANIMATIONS ----------
   Hidden start states only apply when JS is running (html.js) and the
   visitor allows motion. JS adds .in when an element scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
  /* hero: pieces rise in one after another on load */
  .js .hero-title { animation: rise 1s var(--ease) both; }
  .js .hero-lead { animation: rise 1s var(--ease) .25s both; }
  .js .hero .cta-tiles { animation: rise 1s var(--ease) .4s both; }
  .js .hero-area { animation: rise 1s var(--ease) .5s both; }
  .js .hero-ghost { animation: ghost 2.4s var(--ease) both; }
  .js .hero-floor { animation: floor 1.8s var(--ease) .2s both; }
  .js .hero-art { animation: rise-big 1.4s var(--ease) .55s both; }
  .js .hero .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero .scribble::after { clip-path: inset(0 100% 0 0); animation: draw 1.2s var(--ease) 1s forwards; }
  .js .hero mark.hl { background-size: 0% 100%; background-repeat: no-repeat; animation: mark .9s var(--ease) 1.1s forwards; }
  .js .hero .uline { animation: uline .9s var(--ease) .9s forwards; }

  /* gold accent words in headings: a slow light sweep */
  .ital { background-image: linear-gradient(100deg, #E9C67E 0%, #FBEBC4 18%, #E9C67E 36%, #B9893A 60%, #E9C67E 100%); background-size: 220% 100%; animation: shimmer 7s linear infinite; }

  /* section title rule grows out */
  .js .big-title::after { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .35s; }
  .js .in .big-title::after { transform: scaleX(1); }

  /* marker highlights sweep on like a real highlighter */
  .js mark.hl { background-size: 0% 100%; background-repeat: no-repeat; transition: background-size .9s var(--ease) .45s; }
  .js mark.hl.in { background-size: 100% 100%; }
  /* brass underline draws left to right */
  .js .uline { text-decoration: none; background: linear-gradient(var(--brass-2), var(--brass-2)) 0 100% / 0% 2px no-repeat; padding-bottom: 2px; transition: background-size .9s var(--ease) .5s; }
  .js .uline.in { background-size: 100% 2px; }
  /* red wavy underline appears after the line is read */
  .js .wavy { text-decoration-color: transparent; transition: text-decoration-color .8s ease .7s; }
  .js .wavy.in { text-decoration-color: #E0705E; }
  /* blue words glow in */
  .js .sky { transition: text-shadow 1s ease .4s; }
  .js .sky.in { text-shadow: 0 0 18px rgba(157,184,242,.4); }
  /* serif pull lines slide in */
  .js .serif-line { opacity: 0; transform: translateX(-24px); transition: opacity 1s var(--ease) .3s, transform 1s var(--ease) .3s; }
  .js .serif-line.in { opacity: 1; transform: none; }

  /* lists: children stagger in (JS sets --i on each child) */
  .js .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js .stagger.in > * { opacity: 1; transform: none; }

  /* timeline: line draws across, steps drop in one by one, numbers pop and ring */
  .js .timeline::after { transform: scaleX(0); transition: transform 1.8s var(--ease) .2s; }
  .js .timeline.in::after { transform: scaleX(1); }
  .js .timeline > li { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 260ms + 300ms); }
  .js .timeline.in li { opacity: 1; transform: none; }
  .js .timeline .t-num { transform: scale(.4); transition: transform .9s cubic-bezier(.34,1.56,.64,1); transition-delay: calc(var(--i, 0) * 260ms + 380ms); }
  .js .timeline.in .t-num { transform: scale(1); animation: ring 2.4s ease-out calc(var(--i, 0) * 260ms + 1.1s) 1; }

  /* work rows: screenshot slides in from its side, phone pops up after */
  .js .work.reveal { opacity: 1; transform: none; }
  .js .work .browser { opacity: 0; transform: translateX(-60px) rotate(-1.5deg); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
  .js .work--flip .browser { transform: translateX(60px) rotate(1.5deg); }
  .js .work .mini-phone { opacity: 0; transform: translateY(40px) scale(.9); transition: opacity .9s var(--ease) .45s, transform 1s cubic-bezier(.34,1.4,.64,1) .45s; }
  .js .work .work-text { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease) .25s, transform .9s var(--ease) .25s; }
  .js .work.in .browser, .js .work.in .mini-phone, .js .work.in .work-text { opacity: 1; transform: none; }

  /* prices: $0 pops in */
  .js .price.price--big { display: inline-block; transform: scale(.5); opacity: 0; transition: transform .9s cubic-bezier(.34,1.56,.64,1) .5s, opacity .5s .5s; }
  .js .in .price.price--big, .js .on .price.price--big { transform: scale(1); opacity: 1; }
  /* launch: the old price gets slashed after the card rises in */
  .js .pc-was::after { transform: rotate(-12deg) scaleX(0); transition: transform .6s var(--ease) .3s; }
  .js .in .pc-was::after, .js .on .pc-was::after { transform: rotate(-12deg) scaleX(1); }
  /* compare: our row lights up last */
  .js .c-us { transition: box-shadow 1s var(--ease) 1.1s; }
  .js .compare.in .c-us { box-shadow: inset 2px 0 0 var(--brass-2), 0 0 40px -12px rgba(212,169,87,.4); }

  /* about: photo tilts in, quote rule appears */
  .js .about-photo.reveal { transform: translateX(-40px) rotate(-2deg); }
  .js .about-photo.reveal.in { transform: none; }
  .js .quote { border-left-color: transparent; transition: border-color 1s ease .6s; }
  .js .in .quote { border-left-color: var(--brass-2); }

  /* primary buttons: a light sheen passes over every few seconds */
  .btn--primary, .tile--primary, .dock-main { position: relative; overflow: hidden; isolation: isolate; }
  .btn--primary::after, .tile--primary::after, .dock-main::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%; z-index: -1; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: sheen 5.5s ease-in-out infinite; }
  .tile--primary::after { animation-delay: 1.6s; } .dock-main::after { animation-delay: 2.8s; }

  /* footer wordmark rises */
  .js .wordmark { opacity: 0; transform: translateY(40px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
  .js .wordmark.in { opacity: 1; transform: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes rise-big { from { opacity: 0; transform: translateY(70px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ghost { from { opacity: 0; letter-spacing: .05em; } to { opacity: 1; letter-spacing: -.05em; } }
@keyframes floor { from { opacity: 0; transform: perspective(700px) rotateX(75deg) translateY(80px); } to { opacity: 1; transform: perspective(700px) rotateX(62deg); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -120% 0; } }
@keyframes sheen { 0%, 70% { left: -40%; } 100% { left: 130%; } }
@keyframes draw { to { clip-path: inset(0 0 0 0); } }
@keyframes mark { to { background-size: 100% 100%; } }
@keyframes uline { to { background-size: 100% 2px; } }
@keyframes ring { 0% { box-shadow: 0 0 0 8px var(--bg), 0 0 0 8px rgba(212,169,87,.6); } 100% { box-shadow: 0 0 0 8px var(--bg), 0 0 0 30px rgba(212,169,87,0); } }

/* ---------- ENTRANCES: fade in, fly in, appear in order ----------
   JS tags elements with data-a (up / left / right / pop / rise) and adds
   .on when they scroll into view; --d staggers things that arrive together. */
@media (prefers-reduced-motion: no-preference) {
  /* containers no longer fade as one block; their pieces animate instead */
  .js .reveal:not(.work):not(.timeline):not(.about-photo), .js .stagger > * { opacity: 1; transform: none; transition-property: none; }
  .js .reveal.about-photo { opacity: 1; transform: none; }

  .js [data-a] { opacity: 0; will-change: transform, opacity;
    transition: opacity .9s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms), box-shadow .5s var(--ease), background .5s var(--ease); }
  .js [data-a="up"]    { transform: translateY(44px); }
  .js [data-a="left"]  { transform: translateX(-90px); }
  .js [data-a="right"] { transform: translateX(90px); }
  .js [data-a="rise"]  { transform: translateY(80px) scale(.96); }
  .js [data-a="pop"]   { transform: scale(.6); transition: opacity .6s var(--ease) var(--d, 0ms), transform .9s cubic-bezier(.34,1.56,.64,1) var(--d, 0ms), box-shadow .5s var(--ease); }
  .js [data-a].on { opacity: 1; transform: none; }
  .js .btn[data-a].on:hover { transform: translateY(-2px); }
  .js h2[data-a="left"] { transition-duration: 1s, 1.3s; }

  /* hero headline: each word flies up and settles, in order */
  .js .hero-title { animation: none; }
  .js .hero-title .w:not(.ital) { background: linear-gradient(180deg, var(--ink) 0%, #E6DDCB 55%, #BDB4A2 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .js .hero-title .w { display: inline-block; animation: fly-word 1.1s cubic-bezier(.2,.9,.25,1.15) both; animation-delay: calc(var(--w, 0) * 110ms + 100ms); }
  .js .hero-title .ital.w { animation: fly-word 1.1s cubic-bezier(.2,.9,.25,1.15) both, shimmer 7s linear 2s infinite; animation-delay: calc(var(--w, 0) * 110ms + 100ms), 2s; }
  .js .hero-lead { animation: rise 1s var(--ease) .65s both; }
  .js .hero .cta-tiles .tile { animation: pop-in .9s cubic-bezier(.34,1.56,.64,1) both; }
  .js .hero .cta-tiles .tile--primary { animation-delay: .85s; }
  .js .hero .cta-tiles .tile--glass { animation-delay: 1s; }
  .js .hero .cta-tiles { animation: none; }
  .js .hero-area { animation: rise 1s var(--ease) 1.15s both; }
  .js .hero-art { animation: rise-big 1.4s var(--ease) 1.1s both; }
  .js .hero .scribble::after { animation-delay: 1.4s; }
  .js .hero mark.hl { animation-delay: 1.5s; }
  .js .hero .uline { animation-delay: 1.3s; }
  /* fan cards fly in from their sides */
  .js .fan-l { animation: fan-l-in 1.4s var(--ease) 1.4s both, bob-l 8s ease-in-out 2.8s infinite; }
  .js .fan-r { animation: fan-r-in 1.4s var(--ease) 1.55s both, bob-r 9s ease-in-out 2.95s infinite; }
  .js .fan-note { animation: rise 1s var(--ease) 2s both; }

  /* nav slides down on load */
  .js .nav-inner { animation: drop .9s var(--ease) both; }
}
@keyframes fly-word { from { opacity: 0; transform: translateY(.9em) rotate(4deg); filter: blur(6px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes fan-l-in { from { opacity: 0; transform: translateX(-160%) rotateY(40deg) rotateZ(-8deg) scale(.86); } to { opacity: .9; transform: translateX(-102%) rotateY(24deg) rotateZ(-3deg) scale(.86); } }
@keyframes fan-r-in { from { opacity: 0; transform: translateX(60%) rotateY(-40deg) rotateZ(8deg) scale(.86); } to { opacity: .9; transform: translateX(2%) rotateY(-24deg) rotateZ(3deg) scale(.86); } }

/* ---------- REDUCED MOTION: nothing moves, but things still fade in, in order ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-a] { opacity: 0; transition: opacity .9s ease var(--d, 0ms) !important; }
  .js [data-a].on { opacity: 1; }
  .js .timeline > li, .js .work .browser, .js .work .mini-phone, .js .work .work-text, .js .wordmark { opacity: 0; transition: opacity .9s ease !important; }
  .js .timeline > li { transition-delay: calc(var(--i, 0) * 200ms + 150ms) !important; }
  .js .work .work-text { transition-delay: .25s !important; }
  .js .work .mini-phone { transition-delay: .45s !important; }
  .js .timeline.in li, .js .work.in .browser, .js .work.in .mini-phone, .js .work.in .work-text, .js .wordmark.in { opacity: 1; }
  .js .hero-copy > *, .js .hero-art { opacity: 0; animation: fade-only .9s ease forwards; }
  .js .hero-copy > :nth-child(2) { animation-delay: .25s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .45s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .6s; }
  .js .hero-art { animation-delay: .75s; }
}
@keyframes fade-only { to { opacity: 1; } }

/* phones: the ring pulse would be clipped by the swipe area, so skip it */
@media (max-width: 900px) { .js .timeline.in .t-num { animation: none; } }

/* Launch card: regular price slashed, founding price next to it */
.pc-price--sale { flex-wrap: wrap; row-gap: 4px; }
.pc-was { position: relative; align-self: center; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--ink-mute); text-decoration: none; padding: 0 4px; }
.pc-was::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: linear-gradient(90deg, #E35D5D, #F08A6A); box-shadow: 0 0 10px rgba(227,93,93,.6); transform: rotate(-12deg); transform-origin: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
