/* A postage stamp, an opening envelope and two pages from the mailroom. */
.about { width: min(1240px, 100% - 48px); padding-block: 32px 80px; }
.about-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.05fr 1fr; gap: 12px; align-items: center; padding: clamp(36px, 5vw, 72px); color: #fffdf8; }
/* Perforate the background only: focus rings and the paper's shadows stay intact. */
.about-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain), var(--cobalt); --r: 10px; mask: radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r)); }
.about-intro { position: relative; z-index: 1; }
.about .about-kicker { margin-bottom: 28px; color: var(--sun); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.about-kicker::before { content: ""; display: inline-block; width: 28px; height: 2px; margin-right: 12px; vertical-align: middle; background: currentColor; }
.about h1 { max-width: 12ch; margin-bottom: 28px; color: #fffdf8; font-size: clamp(52px, 7.4vw, 104px); line-height: .95; letter-spacing: -.055em; overflow-wrap: anywhere; }
.about-intro > p:not(.about-kicker) { max-width: 42ch; font-size: 17px; line-height: 1.7; color: #f2ecdf; }
.about .btn { gap: 32px; margin-top: 18px; background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 #192690; }
.about .btn > span:last-child { font-size: 24px; line-height: 1; }
.about .btn:hover { background: #e0ff77; }
.about-hero :focus-visible { outline-color: #fffdf8; }

/* Decorative paper layers: no canvas, animation library or hidden story text. */
.about-post { position: relative; width: 100%; max-width: 520px; aspect-ratio: .88; justify-self: center; isolation: isolate; }
.envelope-back, .envelope-front { position: absolute; inset: 44% 6% 12%; border-radius: 3px; rotate: -10deg; }
.envelope-back { background: #e2cda7; box-shadow: 0 28px 32px -12px #10165066; }
.envelope-back::before { content: ""; position: absolute; inset: -60% 0 99%; background: var(--grain), #d4b989; clip-path: polygon(0 100%, 50% 0, 100% 100%); transform-origin: bottom; }
.letter { position: absolute; inset: 12% 14% 23%; display: flex; flex-direction: column; align-items: center; padding: 9% 8% 0; rotate: 7deg; background: var(--grain), #fffdf8; box-shadow: 0 2px 3px #1a1f3a14, 0 10px 28px #1a1f3a44; color: var(--cobalt); }
.letter > span { font: 400 clamp(28px, 3.4vw, 44px)/1.15 "Nothing You Could Do", "Fraunces", Georgia, serif; text-align: center; text-wrap: balance; }
.ink-heart { flex: none; width: 28%; margin-top: 16px; rotate: -10deg; }
.envelope-front { background: linear-gradient(147deg, transparent 49.6%, #d9cdb5 50%, transparent 50.6%) left / 50% 100% no-repeat, linear-gradient(213deg, transparent 49.6%, #d9cdb5 50%, transparent 50.6%) right / 50% 100% no-repeat, var(--grain), #eee1c9; clip-path: polygon(0 0, 50% 45%, 100% 0, 100% 100%, 0 100%); }
.about-post .trail { position: absolute; left: 38%; bottom: 21%; width: 24%; aspect-ratio: 1; display: grid; place-items: center; border: 5px solid #b7d64d; border-radius: 48% 52% 45% 55%; background: var(--sun); rotate: -10deg; box-shadow: inset 0 0 0 2px #dff783, 2px 5px 0 #8c713f44, 0 8px 12px #1a1f3a22; }
.about-post .mascot { width: 74%; line-height: 0; }
.about-post .mascot svg { width: 100%; }
.postmark { position: absolute; right: -5%; bottom: -1%; width: 48%; color: #fffdf8; rotate: -12deg; }
.post-sparks { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--sun); pointer-events: none; }
.about-caption { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 16px 0; color: var(--cobalt); text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.about-caption::before, .about-caption::after { content: ""; flex: 1; max-width: 80px; height: 1px; background: currentColor; }

.about-story { display: grid; grid-template-columns: .95fr 1.05fr; align-items: start; gap: 28px; padding: 60px 28px 64px; }
.about-story section { position: relative; padding: 40px; background: var(--grain), #fffdf8; box-shadow: 0 2px 3px #1a1f3a0a, 0 16px 32px -20px #1a1f3a55; rotate: -2deg; }
.about-story section + section { margin-top: 28px; rotate: 2deg; }
.about-story section::before { content: ""; position: absolute; top: -12px; left: calc(50% - 45px); width: 90px; height: 26px; background: #cdec5ca6; rotate: 5deg; }
.about-story section + section::before { background: #bac9edaa; rotate: -8deg; }
.story-number { display: block; font: 500 56px/1 "Fraunces", Georgia, serif; color: var(--cobalt); }
.about h2 { margin: 20px 0 16px; font: 500 clamp(28px, 3vw, 40px)/1.08 "Fraunces", Georgia, serif; letter-spacing: -.035em; text-wrap: balance; }
.about-story p { margin: 0; font-size: 16px; line-height: 1.8; }
.story-flourish { display: block; width: 160px; height: 56px; margin-top: 28px; color: var(--cobalt); }
.about-contact { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; margin-inline: 12px; padding: 36px 44px; background: var(--grain), var(--sun); border-radius: 4px; }
.about-contact .story-number { font-size: 72px; }
.about-contact h2 { margin: 0 0 8px; }
.about-contact p { margin: 0; color: var(--ink); }
.contact-flourish { font-size: 72px; line-height: 1; color: var(--cobalt); }

/* Open, lift, write, frank. Each action finishes; reduced motion sees the final composition. */
@media (prefers-reduced-motion: no-preference) {
  .envelope-back::before { animation: flap-opens .8s ease-in-out .1s backwards; }
  .letter { animation: letter-arrives 1.2s cubic-bezier(.2, .7, .2, 1) .65s backwards; transition: translate .4s ease; }
  .ink-heart path { stroke-dasharray: 1; animation: ink-writes .8s ease 1.65s backwards; }
  .postmark { animation: postmark-lands .35s ease-out 2.35s backwards; }
  .post-sparks path { stroke-dasharray: 1; animation: ink-writes .5s ease 2s backwards; }
  .about .btn > span:last-child { transition: transform .25s ease; }
  .about .btn:hover > span:last-child { transform: translate(3px, -3px); }
  @media (hover: hover) { .about-post:hover .letter { translate: 0 -8px; } }
  @keyframes flap-opens { from { transform: scaleY(-1); } to { transform: scaleY(1); } }
  @keyframes letter-arrives { from { transform: translateY(30%) rotate(-12deg); opacity: 0; } }
  @keyframes ink-writes { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes postmark-lands { from { opacity: 0; transform: scale(1.5) rotate(14deg); } to { opacity: 1; transform: none; } }
}
@media (max-width: 900px) {
  .about-hero { padding: 40px; gap: 0; }
  .about h1 { font-size: clamp(48px, 7.4vw, 68px); }
  .about-story { gap: 20px; padding-inline: 16px; }
  .about-story section { padding: 28px; }
  .letter > span { font-size: 30px; }
}
@media (max-width: 680px) {
  .about { width: calc(100% - 24px); padding-block: 16px 48px; }
  .about-hero { grid-template-columns: 1fr; padding: 40px 28px 28px; }
  .about-hero::before { --r: 7px; }
  .about .about-kicker { margin-bottom: 24px; font-size: 11px; }
  .about h1 { font-size: clamp(45px, 12vw, 76px); margin-bottom: 24px; }
  .about-intro > p:not(.about-kicker) { font-size: 16px; }
  .about-post { max-width: 400px; margin-top: 20px; }
  .letter > span { font-size: clamp(23px, 6.5vw, 34px); }
  .ink-heart { margin-top: 10px; }
  .about-post .trail { border-width: 3px; }
  .about-caption { font-size: 10px; gap: 8px; }
  .about-caption::before, .about-caption::after { max-width: 20px; }
  .about-story { grid-template-columns: 1fr; gap: 32px; padding: 44px 12px 40px; }
  .about-story section, .about-story section + section { margin: 0; rotate: -1deg; }
  .about-story section + section { rotate: 1deg; }
  .about-contact { grid-template-columns: 1fr auto; gap: 16px; padding: 28px; }
  .about-contact .story-number { font-size: 48px; }
  .about-contact > div { grid-column: 1 / -1; grid-row: 2; }
  .contact-flourish { grid-column: 2; grid-row: 1; font-size: 48px; }
}
