/* App pages and the Apps index. Builds on styles.css and case.css; pages set --accent and --accent-2. */
.ap-icon { width: 1.25em; height: 1.25em; flex: none; }

/* Hero */
.ap-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 92svh; padding: 120px clamp(18px, 4vw, 48px) 72px; overflow: hidden; text-align: center; }
.ap-hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 90%; z-index: -1; background: radial-gradient(40% 50% at 35% 40%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%), radial-gradient(35% 45% at 68% 35%, color-mix(in srgb, var(--accent-2) 26%, transparent), transparent 70%); filter: blur(10px); }
.ap-hero-logo { width: clamp(112px, 13vw, 168px); height: auto; filter: drop-shadow(0 24px 60px color-mix(in srgb, var(--accent) 45%, transparent)); }
.ap-hero h1 { margin: 34px 0 0; font-size: clamp(3.4rem, 9vw, 9rem); line-height: .86; letter-spacing: -.075em; font-weight: 520; }
.ap-tagline { max-width: 820px; margin: 26px auto 0; color: #d6d6d2; font-size: clamp(1.15rem, 1.9vw, 1.65rem); line-height: 1.4; letter-spacing: -.025em; }
.ap-meta { margin: 22px 0 0; color: var(--muted); font-size: .92rem; }
.ap-meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }

/* Download buttons */
.ap-downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.ap-dl { display: inline-flex; align-items: center; gap: 14px; min-width: 250px; padding: 14px 22px 14px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.04); text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.ap-dl .ap-icon { width: 28px; height: 28px; }
.ap-dl b { display: block; font-weight: 500; }
.ap-dl small { display: block; margin-top: 2px; color: var(--muted); font-size: .8rem; }
.ap-dl:hover { border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.ap-dl.is-primary { border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0b0610; }
.ap-dl.is-primary small { color: rgba(11,6,16,.72); }
.ap-dl:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Problem and solution */
.ap-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 22px); }
.ap-story article { padding: clamp(24px, 3vw, 44px); border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.ap-story article.is-accent { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 9%, var(--panel)); }
.ap-story .is-accent .cs-label { color: var(--accent); }
.ap-story p { margin: 16px 0 0; font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: 1.42; letter-spacing: -.025em; }
.ap-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 72px); padding-top: 26px; border-top: 1px solid var(--line); }
.ap-numbers strong { display: block; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(2.6rem, 5vw, 5rem); line-height: .95; letter-spacing: -.065em; font-weight: 500; }
.ap-numbers span { display: block; margin-top: 10px; color: var(--muted); line-height: 1.4; }

/* Feature cards */
.ap-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.ap-features article { padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: 22px; background: var(--panel); transition: border-color .3s; }
.ap-features article:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.ap-feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: color-mix(in srgb, var(--accent) 16%, #151515); color: var(--accent); }
.ap-feature-icon .ap-icon { width: 26px; height: 26px; }
.ap-features h3 { margin: 22px 0 6px; font-size: 1.55rem; font-weight: 500; letter-spacing: -.04em; }
.ap-feature-lead { margin: 0 0 16px; color: #d6d6d2; }
.ap-features ul { margin: 0; padding: 0; list-style: none; }
.ap-features li { position: relative; padding: 10px 0 10px 20px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.5; }
.ap-features li::before { content: ""; position: absolute; top: 18px; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Setup */
.ap-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.ap-steps li { padding-top: 20px; border-top: 2px solid var(--accent); counter-increment: step; }
.ap-steps li::before { content: counter(step, decimal-leading-zero); color: var(--accent); font-size: .9rem; }
.ap-steps h3 { margin: 10px 0 8px; font-size: 1.4rem; font-weight: 500; letter-spacing: -.035em; }
.ap-steps p { margin: 0; color: var(--muted); line-height: 1.55; }
.ap-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.ap-notes > div { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.ap-notes b { font-weight: 500; }
.ap-notes p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.ap-built { margin-top: clamp(40px, 5vw, 64px); }
.ap-stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.ap-stack li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: #d6d6d2; font-size: .92rem; }

/* Closing download block */
.ap-cta { text-align: center; }
.ap-cta .cs-wrap { position: relative; }
.ap-cta .cs-wrap::before { content: ""; position: absolute; inset: 10% 20%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); }
.ap-cta img { filter: drop-shadow(0 16px 40px color-mix(in srgb, var(--accent) 40%, transparent)); }
.ap-cta h2 { margin: 24px 0 12px; font-size: clamp(2.6rem, 5.5vw, 5.4rem); line-height: .95; letter-spacing: -.065em; font-weight: 500; }
.ap-cta > .cs-wrap > p:not(.ap-meta) { max-width: 620px; margin: 0 auto; color: #cfcfcb; font-size: 1.15rem; line-height: 1.5; }
.ap-cta p a { text-decoration: underline; text-underline-offset: 3px; }

.ap-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.6vw, 22px); }

/* AyPhone: phone ⇄ Mac */
.ay-link { display: grid; grid-template-columns: 180px 1fr 180px; gap: clamp(14px, 2vw, 28px); align-items: center; margin-top: clamp(28px, 3vw, 40px); padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.ay-device { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 18px; text-align: center; }
.ay-device .ap-icon { width: 40px; height: 40px; color: var(--accent); }
.ay-device b { margin-top: 6px; font-weight: 500; }
.ay-device small { color: var(--muted); }
.ay-lines { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ay-lines li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 12px 16px; border-radius: 12px; background: #161616; }
.ay-lines li::before { content: ""; position: absolute; inset: 50% -28px auto; height: 2px; z-index: -1; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.ay-lines span { font-weight: 500; color: var(--accent); }
.ay-lines small { color: #c9c9c5; line-height: 1.4; font-size: .92rem; }
.ay-nocloud { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 6px 0 0; color: #d6d6d2; }
.ay-nocloud .ap-icon { color: var(--accent); }

/* Cru: the seek bar */
.cr-scrub { position: relative; margin-top: clamp(28px, 3vw, 40px); padding: 120px clamp(20px, 3vw, 40px) clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 22px; background: #0e0e0e; }
.cr-scrub-preview { position: absolute; top: 24px; left: calc(var(--x) + 2%); transform: translateX(-50%); display: grid; place-items: center; width: 150px; height: 84px; border: 2px solid var(--accent); border-radius: 10px; background: linear-gradient(135deg, #2a1a10, #4a2a14); }
.cr-scrub-preview span { color: rgba(255,255,255,.6); font-size: .75rem; }
.cr-scrub-preview b { position: absolute; bottom: -26px; color: var(--accent); font-size: .85rem; font-weight: 500; }
.cr-scrub-wave { display: flex; align-items: flex-end; gap: 3px; height: 64px; margin-top: 18px; }
.cr-scrub-wave i { flex: 1; height: calc(var(--h) * 4px); border-radius: 2px; background: color-mix(in srgb, var(--accent) 55%, #333); }
.cr-scrub-subs { position: relative; height: 30px; margin-top: 10px; }
.cr-scrub-subs span { position: absolute; top: 0; height: 100%; border-radius: 6px; background: #2b2b2b; }
.cr-scrub-subs .is-drag { display: grid; place-items: center; background: var(--accent); color: #140a03; font-size: .75rem; font-weight: 500; white-space: nowrap; overflow: hidden; }
.cr-scrub-bar { height: 6px; margin-top: 14px; border-radius: 99px; background: #262626; }
.cr-scrub-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.cr-scrub-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.cr-scrub-legend b { display: block; color: var(--ink); font-weight: 500; }

/* Cru: keyboard */
.cr-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cr-keys > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.cr-cap { display: inline-flex; align-items: center; gap: 6px; min-width: 52px; height: 48px; padding: 0 14px; border: 1px solid #3a3a3a; border-bottom-width: 4px; border-radius: 10px; background: #1b1b1b; font-size: 1.05rem; font-weight: 500; }
.cr-cap em { color: var(--accent); font-style: normal; }
.cr-keys small { color: var(--muted); font-size: .92rem; }

/* Apps index */
.ap-intro { max-width: 720px; margin: -40px 0 60px; color: var(--muted); font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.5; }
.ap-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ap-tile { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 2.4vw, 32px); align-items: center; min-height: 260px; padding: clamp(24px, 3vw, 44px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); isolation: isolate; transition: border-color .3s, transform .3s; }
.ap-tile::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; z-index: -1; background: radial-gradient(50% 50% at 25% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); transition: opacity .3s; opacity: .7; }
.ap-tile:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-3px); }
.ap-tile:hover::before { opacity: 1; }
.ap-tile img { width: clamp(84px, 9vw, 112px); height: auto; filter: drop-shadow(0 14px 32px color-mix(in srgb, var(--accent) 40%, transparent)); }
.ap-tile h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 500; letter-spacing: -.05em; }
.ap-tile p { margin: 8px 0 14px; color: #cfcfcb; line-height: 1.45; }
.ap-tile-platforms { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.ap-tile-platforms .ap-icon { width: 18px; height: 18px; color: var(--ink); }
.ap-tile .arrow { align-self: start; font-size: 1.4rem; }
.ap-tiles + .editorial-footer { margin-top: 130px; }

@media (max-width: 1000px) {
  .ap-tiles { grid-template-columns: 1fr; }
  .cr-scrub-legend { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ap-story, .ap-gallery { grid-template-columns: 1fr; }
  .ap-numbers { grid-template-columns: 1fr 1fr; }
  .ay-link { grid-template-columns: 1fr 1fr; }
  .ay-lines { grid-column: 1 / -1; grid-row: 2; }
  .ay-lines li::before { display: none; }
}
@media (max-width: 600px) {
  .ap-dl { width: 100%; min-width: 0; }
  .ap-tile { grid-template-columns: 1fr; }
  .ap-tile .arrow { position: absolute; top: 24px; right: 24px; }
  .ay-lines li { grid-template-columns: 1fr; gap: 4px; }
  .cr-scrub-legend { grid-template-columns: 1fr; }
  .cr-scrub-preview { left: 50%; }
  .ap-intro { margin-top: -20px; }
}

/* Hero screenshot */
.ap-hero-shot { width: min(1180px, 100%); margin: clamp(48px, 6vw, 80px) 0 0; }
.ap-hero-shot .cs-zoom { overflow: hidden; border-radius: 18px; background: none; box-shadow: 0 40px 120px -20px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 1px rgba(255,255,255,.08); }
.ap-hero-shot img { display: block; width: 100%; height: auto; }

/* Screenshot tour: alternating rows */
.ap-spots { display: grid; gap: clamp(56px, 8vw, 120px); }
.ap-spot { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.ap-spot:nth-child(even) .ap-spot-media { order: 2; }
.ap-spot-media { display: flex; gap: clamp(12px, 1.6vw, 22px); justify-content: center; }
.ap-spot-media .cs-zoom { overflow: hidden; border-radius: 14px; background: none; box-shadow: 0 30px 80px -24px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 0 1px rgba(255,255,255,.08); }
.ap-spot-media img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.ap-spot-media .cs-zoom:hover img { transform: scale(1.015); }
.ap-spot.is-phone .ap-spot-media .cs-zoom { flex: 0 1 260px; border-radius: 26px; }
.ap-spot-copy .cs-label { color: var(--accent); }
.ap-spot-copy h3 { margin: 12px 0 14px; font-size: clamp(1.8rem, 3.2vw, 3.1rem); line-height: 1; letter-spacing: -.055em; font-weight: 500; }
.ap-spot-copy p { margin: 0; color: #d0d0cc; font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.6; }
.ap-spot-copy ul { margin: 22px 0 0; padding: 0; list-style: none; }
.ap-spot-copy li { position: relative; padding: 10px 0 10px 20px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.5; }
.ap-spot-copy li::before { content: ""; position: absolute; top: 18px; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

@media (max-width: 900px) {
  .ap-spot { grid-template-columns: 1fr; }
  .ap-spot:nth-child(even) .ap-spot-media { order: 0; }
  .ap-spot.is-phone .ap-spot-media .cs-zoom { flex-basis: 46%; border-radius: 18px; }
}

/* Feature moments: bento cards with an illustration on top */
.ap-moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.ap-moment, .ap-more { display: flex; flex-direction: column; padding: clamp(18px, 2vw, 26px); border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.ap-moment.is-wide { grid-column: span 2; }
.ap-moment-art { position: relative; margin-bottom: 22px; overflow: hidden; border-radius: 16px; background: radial-gradient(70% 90% at 50% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), #0b0b0b; }
.ap-moment.is-wide .ap-moment-art { flex: 1; display: grid; place-items: center; }
.ap-moment h3 { margin: 0 0 8px; font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 500; }
.ap-moment.is-wide h3 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); }
.ap-moment p { margin: 0; color: var(--muted); line-height: 1.55; }
.ap-more { justify-content: center; background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.ap-more .cs-label { color: var(--accent); }
.ap-more ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.ap-more li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: #d6d6d2; font-size: .88rem; }

/* Illustrations (src/illustrations.mjs) */
.il { display: block; width: 100%; height: auto; max-height: 340px; }
.il text { font-family: inherit; font-weight: 500; letter-spacing: 0; }
.il-device { fill: #171717; stroke: rgba(255,255,255,.26); stroke-width: 1.5; }
.il-screen { fill: #0d0d0d; }
.il-notch { fill: #2b2b2b; }
.il-bar { fill: #1d1d1d; }
.il-panel { fill: #1f1f1f; stroke: rgba(255,255,255,.14); }
.il-chip { fill: #262626; }
.il-slot { fill: none; stroke: rgba(255,255,255,.3); stroke-dasharray: 4 4; }
.il-text { fill: rgba(255,255,255,.2); }
.il-text-faint { fill: rgba(255,255,255,.08); }
.il-text-strong { fill: rgba(255,255,255,.6); }
.il-accent { fill: var(--accent); }
.il-accent-soft { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.il-outline { stroke: var(--accent); stroke-width: 1.5; }
.il-ok { fill: #34c759; }
.il-no { fill: #ff453a; }
.il-check { fill: none; stroke: #04140a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il-doc { fill: #e9e9e6; }
.il-doc-fold { fill: none; stroke: #9a9a96; stroke-width: 1.5; }
.il-cursor { fill: #fff; stroke: #000; stroke-width: 1; }
.il-ring { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.il-dash { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 6; }
.il-stroke { fill: none; stroke: rgba(255,255,255,.6); stroke-width: 2; stroke-linecap: round; }
.il-grid { stroke: rgba(255,255,255,.07); }
.il-curve-base { stroke: rgba(255,255,255,.2); stroke-dasharray: 3 5; }
.il-curve { fill: none; stroke: var(--accent); stroke-width: 3; }
.il-wave { fill: rgba(255,255,255,.18); }
.il-wave-hot { fill: color-mix(in srgb, var(--accent) 70%, #fff); }
.il-flash { fill: #fff; opacity: 0; }
.il-label { fill: #ececea; }
.il-label-dark { fill: #120a18; }
.il-label-muted { fill: rgba(255,255,255,.5); }
.il-label-accent { fill: var(--accent); }

/* Motion. Each loop runs ~4s; positions use --dx/--dy set on the group. */
.il-move { animation: il-move 4s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes il-move { 0%, 8% { transform: translate(0, 0); opacity: 0; } 14% { opacity: 1; } 52%, 72% { transform: translate(var(--dx), var(--dy)); opacity: 1; } 86%, 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.il-pop { animation: il-pop 4s ease infinite; animation-delay: var(--d, 0s); }
@keyframes il-pop { 0%, 10% { opacity: 0; } 22%, 78% { opacity: 1; } 92%, 100% { opacity: 0; } }
.il-ring { animation: il-ring 1.4s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes il-ring { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.il-blink { animation: il-blink 1s steps(1) infinite; }
@keyframes il-blink { 50% { opacity: 0; } }
.il-flash { animation: il-flash 4s ease infinite; }
@keyframes il-flash { 0%, 4% { opacity: 0; } 7% { opacity: .85; } 16%, 100% { opacity: 0; } }
.il-trace { animation: il-trace 5s ease-in-out infinite; }
@keyframes il-trace { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(var(--ax), 0); } 50% { transform: translate(var(--ax), var(--ay)); } 75% { transform: translate(0, var(--ay)); } }
.il-slide { animation: il-slide 4s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes il-slide { 0%, 18% { transform: translateX(0); } 50%, 85% { transform: translateX(var(--dx)); } 100% { transform: translateX(0); } }
.il-scrub { animation: il-scrub 5s ease-in-out infinite; }
@keyframes il-scrub { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(var(--dx)); } }
.il-scrub-fill { animation: il-scrub-fill 5s ease-in-out infinite; }
@keyframes il-scrub-fill { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(4); } }
.il-swipe { animation: il-swipe 2.6s ease-in-out infinite; }
@keyframes il-swipe { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(var(--dy)); opacity: 1; } 85%, 100% { transform: translateY(var(--dy)); opacity: 0; } }
.il-fill { animation: il-fill 2.6s ease-in-out infinite; }
@keyframes il-fill { 0%, 10% { transform: scaleY(.3); } 70%, 100% { transform: scaleY(.85); } }
.il-pulse { animation: il-pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes il-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.il-eq-bump { animation: il-eq-bump 3.6s ease-in-out infinite; }
@keyframes il-eq-bump { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1.2); } }
.il-eq-handle { animation: il-eq-handle 3.6s ease-in-out infinite; }
@keyframes il-eq-handle { 0%, 100% { transform: translateY(-35px); } 50% { transform: translateY(-84px); } }
.il-progress { animation: il-progress 6s linear infinite; }
@keyframes il-progress { from { transform: scaleX(.15); } to { transform: scaleX(1); } }
.il-drag { animation: il-drag 4s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes il-drag { 0%, 10% { transform: translate(0, 0); } 25% { transform: translate(0, -22px); } 55% { transform: translate(var(--dx), -22px); } 68%, 90% { transform: translate(var(--dx), 0); } 100% { transform: translate(0, 0); } }

@media (prefers-reduced-motion: reduce) {
  .il * { animation: none !important; }
  .il-move, .il-pop { opacity: 1; }
  .il-eq-bump { transform: none; }
  .il-eq-handle { transform: translateY(-70px); }
}

@media (max-width: 1000px) {
  .ap-moments { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .ap-moments { grid-template-columns: 1fr; }
  .ap-moment.is-wide { grid-column: auto; }
}

/* File transfer, both ways (files illustration, 8 s loop): Mac → phone, then phone → Mac */
.il-glow-halo { fill: var(--accent); opacity: .6; }
.il-glow-edge { fill: none; stroke: var(--accent); stroke-width: 2; }
.il-glow-inner .il-glow-halo { opacity: .22; }
.il-fx-mac, .il-fx-phone, .il-fx-lift, .il-fx-recv-mac, .il-fx-head-b { opacity: 0; }
.il-fx-mac { animation: il-fx-mac 8s ease-in-out infinite; }
@keyframes il-fx-mac { 0%, 18% { opacity: 0; } 25% { opacity: 1; } 33%, 70% { opacity: 0; } 78% { opacity: 1; } 88% { opacity: .3; } 96%, 100% { opacity: 0; } }
.il-fx-phone { animation: il-fx-phone 8s ease-in-out infinite; }
@keyframes il-fx-phone { 0%, 30% { opacity: 0; } 37% { opacity: 1; } 46%, 50% { opacity: 0; } 55% { opacity: 1; } 63%, 100% { opacity: 0; } }
.il-fx-drop { animation: il-fx-drop 8s cubic-bezier(.55, 0, .35, 1) infinite; }
@keyframes il-fx-drop { 0%, 2% { transform: translateY(0); opacity: 0; } 5% { opacity: 1; } 22% { transform: translateY(var(--dy)); opacity: 1; } 25%, 100% { transform: translateY(var(--dy)); opacity: 0; } }
.il-fx-dock { animation: il-fx-dock 8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes il-fx-dock { 0%, 21% { transform: scale(1); } 25% { transform: scale(1.5); } 30%, 100% { transform: scale(1); } }
.il-fx-recv-phone { animation: il-fx-recv-phone 8s ease-out infinite; }
@keyframes il-fx-recv-phone { 0%, 32% { opacity: 0; transform: translateY(6px); } 37%, 45% { opacity: 1; transform: translateY(0); } 49%, 100% { opacity: 0; } }
.il-fx-lift { animation: il-fx-lift 8s cubic-bezier(.55, 0, .35, 1) infinite; }
@keyframes il-fx-lift { 0%, 50% { opacity: 0; transform: translate(0, 0); } 53% { opacity: 1; transform: translate(0, -6px); } 74% { opacity: 1; transform: translate(var(--dx), var(--dy)); } 77%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
.il-fx-recv-mac { animation: il-fx-recv-mac 8s ease-out infinite; }
@keyframes il-fx-recv-mac { 0%, 74% { opacity: 0; transform: translateY(6px); } 79%, 94% { opacity: 1; transform: translateY(0); } 99%, 100% { opacity: 0; } }
.il-fx-flow { animation: il-fx-flow 8s linear infinite; }
@keyframes il-fx-flow { 0% { stroke-dashoffset: 0; } 48%, 50% { stroke-dashoffset: -88; } 98%, 100% { stroke-dashoffset: 0; } }
.il-fx-head-a { animation: il-fx-head-a 8s linear infinite; }
@keyframes il-fx-head-a { 0%, 46% { opacity: 1; } 50%, 100% { opacity: 0; } }
.il-fx-head-b { animation: il-fx-head-b 8s linear infinite; }
@keyframes il-fx-head-b { 0%, 50% { opacity: 0; } 54%, 96% { opacity: 1; } 100% { opacity: 0; } }
