/* ==========================================================================
   About: the perspective. A figure from the brand book on the left, its printed dots redrawn as live
   glyphs that flicker at rest and scatter from the pointer; the words on the right, on the picture's own sky
   ========================================================================== */
/* the background continues the picture's right edge, top to bottom */
.persp { position: relative; display: grid; align-items: center; min-height: 100vh; overflow: hidden; color: var(--ink); background: linear-gradient(180deg, #d9e0fc, #d1d6fc 30%, #cfcffc 48%, #d4c9fc 62%, #d9b6fc 75%, #c37efd 88%, #ad6dfb); }
.persp__fig { position: absolute; top: -6%; bottom: -6%; left: 0; aspect-ratio: 610 / 1087; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
.persp__fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.persp__fig canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.persp__in { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 24px; padding-block: 14vh; pointer-events: none; }
.persp__in > * { grid-column: 2; }
.persp__in .h2 { max-width: 9.5em; color: inherit; }
.persp__in .lead { max-width: 24em; color: var(--text-2); }
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* the figure drifts as you pass; the words hold still */
    @keyframes persp-push { from { transform: translateY(-4%); } to { transform: translateY(4%); } }
    .persp__fig { animation: persp-push auto linear both; animation-timeline: view(); will-change: transform; }
  }
}

/* ---------- Hero: a wide picture from the brand book under the copy; it settles as the page scrolls ---------- */
.about-hero__pic { position: relative; margin: clamp(48px, 5vw, 72px) 0 0; aspect-ratio: 21 / 9; overflow: hidden; background: var(--tile); }
.about-hero__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes about-pic { from { transform: scale(1.12); } to { transform: none; } }
    .about-hero__pic img { animation: about-pic auto linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; will-change: transform; }
  }
}

/* ---------- Hero: copy left, the four flowers right, over the picture's own night ---------- */
.ahero { position: relative; display: grid; align-items: center; min-height: max(640px, 100vh); overflow: hidden; color: #fff; background: #23139e; }
/* the brand gradient: three soft glows of the brand's violets drift slowly over the deep blue, moved by transform only */
.ahero__bg { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #3d2bd6 0%, #23139e 50%, #0a0560 100%); }
.ahero__bg i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(60px); opacity: 0.85; will-change: transform; }
.ahero__bg i:nth-child(1) { left: -20vmax; top: -25vmax; background: radial-gradient(closest-side, #5600e5, transparent); animation: ahero-a 24s ease-in-out infinite alternate; }
.ahero__bg i:nth-child(2) { right: -25vmax; top: -10vmax; background: radial-gradient(closest-side, rgba(142, 45, 226, 0.9), transparent); animation: ahero-b 30s ease-in-out infinite alternate; }
.ahero__bg i:nth-child(3) { left: 15vmax; bottom: -40vmax; background: radial-gradient(closest-side, rgba(218, 218, 254, 0.45), transparent); animation: ahero-c 36s ease-in-out infinite alternate; }
@keyframes ahero-a { to { transform: translate(30vmax, 20vmax) scale(1.15); } }
@keyframes ahero-b { to { transform: translate(-35vmax, 25vmax) scale(0.9); } }
@keyframes ahero-c { to { transform: translate(-10vmax, -18vmax) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .ahero__bg i { animation: none; } }
/* the rails, as on every other section, and the ASCII field between them */
.ahero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16)) no-repeat left var(--rail) top 0 / 1px 100%, linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16)) no-repeat right var(--rail) top 0 / 1px 100%; }
.ahero__ascii { position: absolute; top: 0; left: var(--rail); width: calc(100% - var(--rail) * 2); height: 100%; z-index: 0; pointer-events: none; }
.ahero__in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 24px; padding-block: calc(var(--nav-h) + 8vh) 10vh; text-align: center; pointer-events: none; }
.ahero__in > * { max-width: 34rem; }
.ahero__in .h1 { max-width: 9.5em; color: #fff; }
.ahero__in .lead { max-width: 44rem; color: rgba(255, 255, 255, 0.86); text-wrap: balance; }
.ahero__in .actions { justify-content: center; pointer-events: auto; }

/* ---------- Hero words: "changing world." in one typeface after another (about.js). They share one slot, as wide as the widest, so the line never jumps ---------- */
.ahero__h { max-width: 12em !important; }
.aw { display: grid; justify-items: center; align-items: center; }
.aw__v { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(0.14em); filter: blur(6px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), filter 0.5s var(--ease-out); }
.aw__v.is-on { opacity: 1; transform: none; filter: none; }
.aw__v.is-out { opacity: 0; transform: translateY(-0.14em); filter: blur(6px); }
.aw__v--inter { font: 500 0.9em/1 "Inter", sans-serif; letter-spacing: -0.04em; }
.aw__v--playfair { font: italic 500 0.95em/1 "Playfair Display", serif; letter-spacing: -0.02em; }
.aw__v--vibes { font: 400 1.2em/1 "Great Vibes", cursive; }
.aw__v--roboto-slab { font: 500 0.86em/1 "Roboto Slab", serif; letter-spacing: -0.03em; }
.aw__v--cinzel { font: 500 0.8em/1 "Cinzel", serif; letter-spacing: 0.02em; }
.aw__v--poppins { font: 500 0.86em/1 "Poppins", sans-serif; letter-spacing: -0.04em; }
.aw__v--maguntia { font: 400 1em/1 "UnifrakturMaguntia", serif; }
.aw__v--manrope { font: 600 0.9em/1 "Manrope", sans-serif; letter-spacing: -0.04em; }
.aw__v--cormorant { font: italic 500 1.08em/1 "Cormorant Garamond", serif; letter-spacing: -0.01em; }
.aw__v--allura { font: 400 1.22em/1 "Allura", cursive; }
.aw__v--josefin-slab { font: 600 1em/1 "Josefin Slab", serif; letter-spacing: -0.02em; }
.aw__v--cormorant-sc { font: 500 0.98em/1 "Cormorant SC", serif; letter-spacing: 0.01em; }
.aw__v--outfit { font: 500 0.92em/1 "Outfit", sans-serif; letter-spacing: -0.04em; }
.aw__v--unifraktur-cook { font: 700 0.96em/1 "UnifrakturCook", serif; }
@media (prefers-reduced-motion: reduce) { .aw__v { transition: none; } }

/* What guides us: the figure in the card under the pointer lifts and grows a little, to show it is the active one */
.scard__fig .hl { transition: translate 0.6s var(--ease-out), scale 0.6s var(--ease-out); }
.scard:hover .scard__fig .hl { translate: 0 -8px; scale: 1.05; }
@media (prefers-reduced-motion: reduce) { .scard__fig .hl { transition: none; } }

/* phones: the perspective copy takes the full width, over a dimmed figure */
@media (max-width: 720px) {
  .persp__in { grid-template-columns: minmax(0, 1fr); }
  .persp__in > * { grid-column: 1; }
  .persp__fig { opacity: 0.35; }
}
