/* Public About: final design D (approved prototype). Loaded after about.css, whose original
   rules stay untouched. Every hidden or moving state requires html[data-about-motion="on"],
   which /about-motion.js sets only when motion is allowed: without JavaScript, after an
   error, or under prefers-reduced-motion the page is complete and static.
   Layers, bottom to top: page sky (fixed, z -1) < hero / chapters < red thread overlay (z 1)
   < chapter content (z 2) < side nav (z 12) < header (z 20). */
.about-page {
  --am-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --am-k: 1;
  background: transparent; /* the fixed sky layer paints the page */
  overflow-x: clip;
}
html:has(> body.about-page) { background-color: #07040f; } /* overscroll under the dark footer */
@media (max-width: 860px) { .about-page { --am-k: 0.6; } }
.about-page [id^="about-section-"] { scroll-margin-top: 96px; }
.about-page .about-story::before { content: none; }

/* ------------------------------------------------------------ page sky: five moods */
.about-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.about-sky i { position: absolute; inset: 0; opacity: var(--o, 0); will-change: opacity; }
.about-sky i:nth-child(1) { --o: 1; background: radial-gradient(circle at 10% 20%, rgba(255, 207, 226, 0.55), transparent 34%), radial-gradient(circle at 92% 42%, rgba(255, 232, 241, 0.7), transparent 30%), #fff7fa; }
.about-sky i:nth-child(2) { --o: var(--o1, 0); background: radial-gradient(circle at 80% 28%, rgba(255, 231, 210, 0.7), transparent 40%), radial-gradient(circle at 12% 74%, rgba(255, 220, 230, 0.45), transparent 36%), #fff9f2; }
.about-sky i:nth-child(3) { --o: var(--o2, 0); background: radial-gradient(circle at 18% 30%, rgba(255, 200, 222, 0.55), transparent 38%), radial-gradient(circle at 84% 72%, rgba(255, 222, 234, 0.65), transparent 34%), #fff2f7; }
.about-sky i:nth-child(4) { --o: var(--o3, 0); background: radial-gradient(circle at 82% 26%, rgba(232, 214, 248, 0.65), transparent 40%), radial-gradient(circle at 14% 76%, rgba(255, 216, 232, 0.5), transparent 36%), #f8f2fc; }
.about-sky i:nth-child(5) { --o: var(--o4, 0); background: radial-gradient(ellipse 80% 60% at 50% 110%, rgba(122, 63, 160, 0.35), transparent 70%), linear-gradient(#4a2d5e, #22142f 55%, #0d0818); }

/* Mobile reading progress (the side nav is hidden on small screens) */
.about-progress {
  position: fixed; z-index: 30; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; display: none;
  transform-origin: 0 50%; scale: var(--read, 0) 1;
  background: linear-gradient(90deg, #f6a9c4, #e95f8a 60%, #c63f73);
}
@media (max-width: 860px) { html[data-about-motion="on"] .about-progress { display: block; } }

/* ------------------------------------------------------------ hero */
.about-page .about-hero { background: none; isolation: isolate; }
.about-hero-bg {
  position: absolute; z-index: -1; inset: -16% 0 -2% 0;
  background:
    linear-gradient(180deg, rgba(116, 34, 82, 0.08), rgba(171, 43, 90, 0.18)),
    image-set(url("/login-art/background.webp") type("image/webp"), url("/login-art/background.jpg") type("image/jpeg")) center 48% / cover no-repeat;
}
@media (max-width: 860px) { .about-hero-bg { background-position: center 44%; } }
html[data-about-motion="on"] .about-hero-bg { translate: 0 calc(var(--hero-shift, 0) * 1px); will-change: translate; }
html[data-about-motion="on"] .about-page .about-hero-copy {
  opacity: calc(1 - var(--hero-p, 0) * 1.25);
  translate: 0 calc(var(--hero-p, 0) * -44px * var(--am-k));
  scale: calc(1 - var(--hero-p, 0) * 0.04);
}
/* The hearts wrapper is a 0x0 static box in about.css, so its hearts are positioned against the
   hero. A translate would make the wrapper their containing block and collapse every heart's
   left/top percentage to 0 (all six stacked in one spot). Give it the hero's exact box first
   (same as the homepage motion does) so each heart keeps its original place. */
.about-page .about-hero > .about-hearts { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
html[data-about-motion="on"] .about-page .about-hearts { translate: 0 calc(var(--hero-p, 0) * -70px * var(--am-k)); }
html[data-about-motion="on"] .about-page .about-butterflies { translate: 0 calc(var(--hero-p, 0) * -120px * var(--am-k)); }
@keyframes about-hero-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
html[data-about-motion="on"] .about-page .about-hero-copy > * { animation: about-hero-in 1100ms var(--am-ease) both; }
html[data-about-motion="on"] .about-page .about-hero-copy > :nth-child(2) { animation-delay: 140ms; }
html[data-about-motion="on"] .about-page .about-hero-copy > :nth-child(3) { animation-delay: 320ms; }
html[data-about-motion="on"] .about-page .about-hero-copy > :nth-child(4) { animation-delay: 460ms; }

/* ------------------------------------------------------------ reveals */
html[data-about-motion="on"] .about-page [data-reveal] {
  transition: opacity 760ms var(--am-ease), translate 900ms var(--am-ease), scale 900ms var(--am-ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
html[data-about-motion="on"] .about-page [data-reveal][data-state="armed"] {
  opacity: 0; translate: 0 calc(28px * var(--am-k)); transition-duration: 0ms; transition-delay: 0ms;
}
/* Chapter numbers: the dashed ring turns into place, the small heart follows. */
html[data-about-motion="on"] .about-page .about-index[data-state="armed"] { translate: 0 0; }
.about-page .about-index span {
  position: relative; z-index: 2; background: #fffafc;
  transition: border-color 500ms ease, color 500ms ease, background-color 500ms ease, box-shadow 500ms ease, rotate 1000ms var(--am-ease), scale 1000ms var(--am-ease), opacity 700ms ease;
}
.about-page .about-index i { transition: color 500ms ease, translate 700ms var(--am-ease) 380ms, opacity 500ms ease 380ms; }
html[data-about-motion="on"] .about-page .about-index[data-state="armed"] span { rotate: -100deg; scale: 0.7; opacity: 0; transition-duration: 0ms; }
html[data-about-motion="on"] .about-page .about-index[data-state="armed"] i { translate: 0 -14px; opacity: 0; transition-duration: 0ms; transition-delay: 0ms; }
.about-page .about-index.is-reached span { border-style: solid; border-color: rgba(224, 87, 127, 0.5); color: #cc3b66; background: #fff; }
.about-page .about-index.is-here span { box-shadow: 0 0 0 6px rgba(255, 206, 223, 0.55), 0 14px 30px rgba(216, 82, 128, 0.18); }
.about-page .about-index.is-reached i { color: #e2456f; }
/* Rows of cards arrive one after another. */
html[data-about-motion="on"] .about-page .about-stats-grid > [data-state="armed"] { scale: 0.96; }
html[data-about-motion="on"] .about-page .about-like-grid > [data-reveal] { transition-delay: calc(var(--i, 0) * 70ms); }
html[data-about-motion="on"] .about-page .about-like-grid > [data-state="armed"] { translate: 0 22px; scale: 0.97; }
.about-page .about-like-grid > span { transition-property: opacity, translate, scale, box-shadow; }
.about-page .about-like-grid > span:hover { translate: 0 -3px; box-shadow: 0 20px 36px rgba(216, 82, 128, 0.16); }

/* ------------------------------------------------------------ 01 photo */
.about-page .about-photo-card img { height: auto; }
html[data-about-motion="on"] .about-page .about-photo-card {
  clip-path: inset(0 round 8px);
  transition: clip-path 1200ms var(--am-ease), opacity 700ms ease, translate 900ms var(--am-ease);
}
html[data-about-motion="on"] .about-page .about-photo-card[data-state="armed"] { clip-path: inset(10% 8% 10% 8% round 8px); translate: 0 18px; transition-duration: 0ms; }
html[data-about-motion="on"] .about-page .about-photo-card img { scale: calc(1.08 - var(--ph, 0) * 0.08); will-change: scale; }

/* ------------------------------------------------------------ 02 envelope + letter */
/* The envelope is drawn by .about-env (inside the original .about-envelope frame); the
   original static drawing is switched off. Purely decorative: the letter itself is still
   loaded only after authentication by about-public.js. */
.about-page .about-envelope { place-items: center; perspective: 900px;
  background: radial-gradient(ellipse at 50% 72%, rgba(255, 238, 226, 0.9), rgba(255, 247, 251, 0.75) 70%), rgba(255, 255, 255, 0.75); }
.about-page .about-envelope::before, .about-page .about-envelope::after { content: none; }
.about-page .about-envelope > .envelope-flap, .about-page .about-envelope > span { display: none; }
.about-env { position: relative; width: 220px; height: 140px; margin-top: 70px; transform-style: preserve-3d; }
.about-env-back, .about-env-paper, .about-env-pocket, .about-env-flap { position: absolute; left: 0; right: 0; }
.about-env-seal { position: absolute; }
.about-env-back { inset: 0; border-radius: 6px; background: linear-gradient(160deg, #f7b5cb, #ec90b0); box-shadow: 0 16px 30px rgba(216, 82, 128, 0.22); }
.about-env-paper {
  left: 12px; right: 12px; top: 10px; height: 126px; z-index: 2; border-radius: 4px; padding: 16px 16px 0;
  background: linear-gradient(#fffdfd, #fff4f8); box-shadow: 0 4px 12px rgba(160, 60, 100, 0.12);
  display: grid; align-content: start; gap: 9px;
}
.about-env-paper span { font-family: var(--font-script); color: rgba(217, 58, 102, 0.85); font-size: 24px; line-height: 1; text-align: center; }
.about-env-paper i { display: block; height: 1px; background: rgba(217, 58, 102, 0.18); }
.about-env-pocket { inset: 0; z-index: 3; border-radius: 6px; background: linear-gradient(165deg, #ffd5e3, #f7aec8); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.about-env-flap { top: 0; height: 88px; z-index: 4; transform-origin: 50% 0; background: linear-gradient(180deg, #f9c3d6, #f39ab9); clip-path: polygon(0 0, 100% 0, 50% 100%); transform: rotateX(0deg); }
.about-env-seal {
  left: 50%; top: 66px; z-index: 5; width: 34px; height: 34px; margin-left: -17px;
  display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 16px;
  background: radial-gradient(circle at 35% 30%, #ff8db2, #c92e60); box-shadow: 0 4px 10px rgba(150, 30, 70, 0.35);
}
/* Opened state: also the no-motion state, so the paper is visible without JavaScript. */
.about-envelope:not([data-state="armed"]) .about-env-flap { transform: rotateX(180deg); z-index: 1; }
.about-envelope:not([data-state="armed"]) .about-env-seal { opacity: 0; scale: 0.4; }
.about-envelope:not([data-state="armed"]) .about-env-paper { translate: 0 -62%; }
html[data-about-motion="on"] .about-envelope .about-env-flap { transition: transform 700ms cubic-bezier(0.5, 0, 0.3, 1) 200ms, z-index 0ms linear 550ms; }
html[data-about-motion="on"] .about-envelope .about-env-seal { transition: opacity 320ms ease, scale 320ms ease; }
html[data-about-motion="on"] .about-envelope .about-env-paper { transition: translate 1000ms var(--am-ease) 700ms; }
html[data-about-motion="on"] .about-page .about-envelope[data-state="armed"] { opacity: 1; translate: 0 0; }
html[data-about-motion="on"] .about-envelope[data-state="armed"] * { transition-duration: 0ms !important; transition-delay: 0ms !important; }
/* The letter card (its prompt is real text) arrives together with the envelope. */
html[data-about-motion="on"] .about-page .about-letter[data-reveal] { transition-delay: 160ms; }
/* After sign-in the original letter replaces the lock: let it settle in softly. */
@keyframes about-letter-open { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
html[data-about-motion="on"] .about-page .about-letter:not(.is-locked) > * { animation: about-letter-open 700ms var(--am-ease) both; }

/* ------------------------------------------------------------ red thread */
.about-thread { position: absolute; left: 0; top: 0; z-index: 1; width: 100%; height: 0; pointer-events: none; }
.about-thread svg { position: absolute; left: 0; top: 0; overflow: visible; }
.about-thread path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.about-thread .thread-base { stroke: rgba(224, 87, 127, 0.16); stroke-width: 1.2; stroke-dasharray: 1.5 6; }
.about-thread .thread-live { stroke: url(#aboutThreadInk); stroke-width: 1.6; }
.about-thread .thread-glow { stroke: rgba(240, 130, 165, 0.14); stroke-width: 5; }
.about-thread-heart {
  position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  display: grid; place-items: center; color: #e2456f; font-size: 14px; line-height: 1;
  text-shadow: 0 0 8px rgba(255, 170, 200, 0.85);
  translate: var(--hx, -100px) var(--hy, -100px); will-change: translate; transition: opacity 180ms ease, scale 180ms ease;
}
/* The heart slips into a chapter number instead of drawing over it. */
.about-thread-heart.is-hidden { opacity: 0; scale: 0.5; }
html:not([data-about-motion="on"]) .about-thread { display: none; }

/* ------------------------------------------------------------ side nav */
.about-page .about-section-dots { opacity: 0; visibility: hidden; transition: opacity 400ms ease, visibility 0s linear 400ms; }
.about-page.nav-on .about-section-dots, html:not([data-about-motion="on"]) .about-page .about-section-dots { opacity: 1; visibility: visible; transition: opacity 400ms ease; }
.about-page .about-section-dots::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1px; background: rgba(224, 87, 127, 0.2); }
.about-page .about-section-dots a { transition: opacity 240ms ease, color 240ms ease, translate 240ms ease; }
/* about.css always marks the first link; here the current chapter decides. */
.about-page .about-section-dots a:first-child { opacity: 0.68; }
.about-page .about-section-dots a:first-child::before { opacity: 0; }
.about-page .about-section-dots a::before { transition: opacity 240ms ease, scale 240ms ease; scale: 0.6; }
.about-page .about-section-dots a.is-active, .about-page .about-section-dots a:hover { opacity: 1; }
.about-page .about-section-dots a.is-active { color: var(--rose); translate: -4px 0; }
.about-page .about-section-dots a.is-active::before { opacity: 1; scale: 1; }
.about-page .about-section-dots a:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.about-page .about-section-dots .dot-label {
  position: absolute; right: calc(100% + 26px); top: 50%; translate: 0 -50%;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap; font-size: 12px; font-weight: 700;
  color: var(--rose-dark); background: rgba(255, 248, 251, 0.94); box-shadow: 0 6px 16px rgba(216, 82, 128, 0.12);
  opacity: 0; pointer-events: none; transition: opacity 180ms ease;
}
.about-page .about-section-dots a:hover .dot-label, .about-page .about-section-dots a:focus-visible .dot-label { opacity: 1; }
.about-page.on-night .about-section-dots a { color: #ffd7e6; }
.about-page.on-night .about-section-dots::before { background: rgba(255, 214, 229, 0.25); }

/* ------------------------------------------------------------ 05 + footer: night zone
   One grid row each, so every background layer is exactly as tall as its content row while
   the effects slot spans both. The zone creates no stacking context: backgrounds, effects
   and decoration (z 0) < red thread (z 1) < content (z 2).
   .about-night-fx is reserved for a future canvas / WebGL scene and is empty for now. */
.about-night { position: relative; display: grid; grid-template-columns: 100%; }
.about-night > * { grid-column: 1; position: relative; }
.about-night-bg-ending, .about-night-stars, .about-night > .about-ending { grid-row: 1; }
.about-night-bg-footer, .about-night > .about-footer { grid-row: 2; }
.about-night-fx { grid-row: 1 / 3; z-index: 0; pointer-events: none; overflow: hidden; }
.about-night-bg, .about-night-stars { z-index: 0; pointer-events: none; }
.about-night > .about-ending, .about-night > .about-footer { z-index: 2; }
/* Chapter 04 -> 05: starts transparent over the sky (already turning to night) and deepens
   to the footer's first colour. */
.about-night-bg-ending { background: linear-gradient(to bottom, rgba(74, 45, 94, 0) 0%, rgba(74, 45, 94, 0.55) 22%, #2a1838 55%, #120b1f 82%, #07040f 100%); }
.about-night-bg-footer {
  background:
    radial-gradient(ellipse 60% 120% at 50% 135%, rgba(122, 63, 160, 0.22), transparent 70%),
    linear-gradient(to bottom, #07040f 0%, #08040f 40%, #0b0617 100%);
}
.about-night-stars { overflow: hidden; }
.about-night-stars i { position: absolute; left: 0; top: 0; width: 2px; height: 2px; border-radius: 50%; }
.about-night-stars i:first-child { box-shadow: 8vw 30vh rgba(255,240,250,.8), 22vw 18vh rgba(255,240,250,.5), 36vw 40vh rgba(255,240,250,.7), 61vw 22vh rgba(255,240,250,.6), 78vw 36vh rgba(255,240,250,.8), 90vw 16vh rgba(255,240,250,.5), 48vw 12vh rgba(255,240,250,.45), 70vw 52vh rgba(255,240,250,.6); }
.about-night-stars i:last-child { box-shadow: 14vw 48vh rgba(255,214,229,.7), 30vw 26vh rgba(255,214,229,.55), 54vw 34vh rgba(255,214,229,.6), 84vw 58vh rgba(255,214,229,.5), 94vw 30vh rgba(255,214,229,.65), 4vw 62vh rgba(255,214,229,.5); }
html[data-about-motion="on"] .about-night-stars i:last-child { animation: about-twinkle 5.5s ease-in-out infinite alternate; }
@keyframes about-twinkle { from { opacity: 0.25; } to { opacity: 1; } }

.about-night > .about-ending {
  justify-self: center; width: min(720px, 100% - 48px); margin: 0;
  padding: clamp(130px, 15vw, 210px) 0 clamp(100px, 11vw, 150px); color: rgba(255, 240, 248, 0.88);
}
.about-night > .about-ending .about-index { justify-items: center; margin-bottom: 18px; }
.about-page .about-night .about-index span,
.about-page .about-night .about-index.is-reached span { background: #2b1a3a; border-color: rgba(255, 214, 229, 0.5); color: #ffd7e6; box-shadow: 0 0 30px rgba(233, 95, 138, 0.25); }
.about-page .about-night .about-index.is-reached span { border-style: solid; border-color: rgba(255, 168, 200, 0.75); }
.about-page .about-night .about-index i { color: rgba(255, 190, 214, 0.75); }
.about-night .about-ending-script { width: fit-content; margin-inline: auto; color: #ffd3e3; text-shadow: 0 0 26px rgba(255, 150, 190, 0.35); }
.about-night .ornament { border-bottom-color: rgba(255, 214, 229, 0.5); }
.about-night .ornament::after { color: rgba(255, 214, 229, 0.85); }
.about-night .about-ending > p:not(.about-ending-script) { color: rgba(255, 236, 246, 0.82); }
/* Handwriting: the script line is uncovered left to right. */
html[data-about-motion="on"] .about-night .about-ending-script { clip-path: inset(-20% 0 -20% 0); transition: clip-path 1900ms cubic-bezier(0.45, 0, 0.2, 1) 150ms, opacity 400ms ease; }
html[data-about-motion="on"] .about-night .about-ending-script[data-state="armed"] { clip-path: inset(-20% 100% -20% 0); opacity: 1; translate: 0 0; transition-duration: 0ms; }
html[data-about-motion="on"] .about-night .ornament[data-state="armed"] { scale: 0.4 1; opacity: 0; translate: 0 0; }
html[data-about-motion="on"] .about-night .about-ending [data-reveal] { transition-duration: 1100ms; transition-delay: calc(var(--i, 0) * 160ms); }

/* Footer: the homepage footer's layout, type and dark palette. */
.about-footer {
  padding: clamp(64px, 8vw, 104px) clamp(24px, 7vw, 118px) calc(28px + env(safe-area-inset-bottom, 0px));
  color: rgba(230, 220, 250, 0.62); font-family: var(--font-sans);
}
.about-footer p { margin: 0; }
.about-footer__inner, .about-footer__base { width: min(1180px, 100%); margin: 0 auto; }
.about-footer__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 56px; flex-wrap: wrap; padding-bottom: clamp(36px, 4.5vw, 52px); }
.about-footer__name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; }
.about-footer__alias { font-family: var(--font-script); font-size: clamp(38px, 3.4vw, 48px); line-height: 1; color: #fff1f8; text-shadow: 0 0 22px rgba(201, 138, 201, 0.35); }
.about-footer__cjk { font-family: var(--font-serif); font-size: 15px; font-weight: 700; letter-spacing: 0.32em; color: rgba(244, 198, 222, 0.78); }
.about-footer p.about-footer__line { margin-top: 14px; font-family: var(--font-script); font-size: clamp(18px, 1.5vw, 21px); color: rgba(244, 198, 222, 0.66); }
.about-footer__nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 30px; }
.about-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(240, 230, 252, 0.72); font-family: var(--font-serif); font-size: 14px; letter-spacing: 0.2em; transition: color 180ms ease; }
.about-footer__nav a:hover, .about-footer__top:hover { color: #fff; }
.about-footer__base { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; }
.about-footer__base::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 198, 222, 0.26) 18%,
    rgba(244, 198, 222, 0.26) calc(50% - 20px), transparent calc(50% - 20px),
    transparent calc(50% + 20px), rgba(244, 198, 222, 0.26) calc(50% + 20px),
    rgba(244, 198, 222, 0.26) 82%, transparent);
}
.about-footer__since { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(230, 220, 250, 0.5); }
.about-footer__since time { font-variant-numeric: tabular-nums; }
.about-footer__heart { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); font-size: 13px; line-height: 1; color: rgba(244, 198, 222, 0.7); }
.about-footer__top {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 16px;
  border: 1px solid rgba(244, 198, 222, 0.22); border-radius: 999px; color: rgba(240, 230, 252, 0.78);
  font-size: 13px; letter-spacing: 0.14em; transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.about-footer__top:hover { border-color: rgba(244, 198, 222, 0.48); background-color: rgba(244, 198, 222, 0.06); }
.about-footer__arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(244, 198, 222, 0.12); color: #ffd9e8; }
.about-footer a:focus-visible { outline: 2px solid #f4c6de; outline-offset: 4px; border-radius: 6px; }
@media (max-width: 640px) {
  .about-footer { padding-top: 56px; text-align: center; }
  .about-footer__inner { flex-direction: column; align-items: center; gap: 28px; }
  .about-footer__name { flex-direction: column; align-items: center; gap: 10px; }
  .about-footer__cjk { padding-left: 0.32em; }
  .about-footer__nav { justify-content: center; gap: 0 22px; }
  .about-footer__base { flex-direction: column-reverse; gap: 18px; padding-top: 30px; }
}

/* Decorative loops stop while their section is off-screen or the tab is hidden. */
.about-page .is-paused, .about-page .is-paused *, .about-page .is-paused::before, .about-page .is-paused::after,
.about-page .is-paused *::before, .about-page .is-paused *::after { animation-play-state: paused !important; }

/* ------------------------------------------------------------ mobile */
@media (max-width: 860px) {
  /* Frosted glass over a plain light background costs a lot while scrolling on iPhone. */
  .about-page .about-photo-card, .about-page .about-envelope, .about-page .about-letter,
  .about-page .about-stats-grid > div, .about-page .about-like-grid span {
    -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgba(255, 255, 255, 0.9);
  }
  .about-thread .thread-live { stroke-width: 1.3; }
  .about-thread .thread-glow { display: none; }
  .about-thread .thread-base { stroke-dasharray: 1 5; }
  .about-thread-heart { width: 14px; height: 14px; margin: -7px 0 0 -7px; font-size: 11px; text-shadow: none; }
  .about-page .about-envelope { min-height: 236px; }
  .about-env { width: 188px; height: 120px; margin-top: 62px; }
  .about-env-paper { height: 108px; }
  .about-env-flap { height: 75px; }
  .about-env-seal { top: 55px; }
  .about-night > .about-ending { padding: 110px 0 90px; width: min(720px, 100% - 44px); }
  html[data-about-motion="on"] .about-night-stars i:last-child { animation: none; }
  /* iPhone: plain colours for the fixed sky layers (no radial gradients to composite). */
  .about-sky i:nth-child(1) { background: #fff7fa; }
  .about-sky i:nth-child(2) { background: #fff8f1; }
  .about-sky i:nth-child(3) { background: #fff1f6; }
  .about-sky i:nth-child(4) { background: #f8f2fc; }
  .about-sky i:nth-child(5) { background: linear-gradient(#3d2550, #120b1f); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* The original hero loops (floating hearts, butterflies, sparkles) also stay still. */
  .about-page .about-hearts span, .about-page .about-butterflies, .about-page .about-butterflies *,
  .about-page .about-butterflies::before, .about-page .about-butterflies::after { animation: none !important; }
  .about-page .about-section-dots, .about-page .about-section-dots a, .about-page .about-section-dots a::before,
  .about-thread-heart, .about-footer__nav a, .about-footer__top { transition: none; }
}
