/* The people page and the history page (5.10.2026). Same night sky, same gold, same handwriting as the rest of the
   site. People: a constellation of faces, then a journey from group to group. History: chapters on one golden thread. */

/* ---------- people (round 2, 5.10.2026) ----------
   One scroll down. The faces are the content: real photos, all the same shape, big enough to recognise someone.
   Words in the person's own voice; the long story waits behind one tap. Notes from the crowd look like notes. */
.pe-hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(78svh, 760px); display: grid; align-items: end; padding: calc(var(--header-h, 80px) + 30px) 0 clamp(24px, 4vw, 48px); }
.pe-hero-bg { position: absolute; inset: 0; z-index: -1; }
.pe-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.pe-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 6, 41, .35) 0%, rgba(14, 6, 41, .15) 35%, rgba(14, 6, 41, .82) 72%, var(--bg, #0e0629) 100%); }
.pe-hero-in { text-align: center; }
.pe-k { margin: 0; font-family: var(--font-hand); font-weight: 700; color: var(--gold, #ffd700); }
.pe-hero h1 { margin: 2px 0 0; font-family: var(--font-hand); font-weight: 800; font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1.02; color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .6); }
.pe-lead { margin: 10px auto 0; max-width: 54ch; font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.65; color: #f1ecff; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.pe-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.pe-jump a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; font-weight: 700; text-decoration: none; color: #fff; background: rgba(14, 6, 41, .55); box-shadow: inset 0 0 0 1px rgba(255, 215, 0, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pe-jump a:hover, .pe-jump a:focus-visible { background: rgba(255, 215, 0, .18); }
.pe-body { padding-bottom: clamp(30px, 5vw, 70px); }
.pe-sec { scroll-margin-top: 90px; padding-top: clamp(40px, 6vw, 84px); }
.pe-h { max-width: 62ch; margin-bottom: clamp(16px, 2.4vw, 28px); }
.pe-h h2 { margin: 0; font-family: var(--font-hand); font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; }
.pe-h p { margin: 6px 0 0; color: var(--text-soft); line-height: 1.65; font-size: clamp(1rem, 1.3vw, 1.1rem); }
.pe-role { margin: 0; font-size: .9rem; font-weight: 700; color: var(--gold, #ffd700); }
/* a portrait: the same shape for everyone, the face kept in frame (focus points) */
.pe-pic { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 20px; background: linear-gradient(150deg, #3b1a82, #b04a9a); }
.pe-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.3, .9, .3, 1); }
.pe-pic.none { display: grid; place-items: center; }
.pe-pic.none b { font-family: var(--font-hand); font-size: clamp(3rem, 7vw, 5rem); color: rgba(255, 255, 255, .85); }
.pe-q { margin: 8px 0 0; }
.pe-q p { margin: 0; font-family: var(--font-hand); font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.4; color: #fff4d6; }
.pe-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; font-size: .85rem; }
.pe-links span { color: var(--text-soft); }
.pe-links a { padding: 4px 11px; border-radius: 999px; text-decoration: none; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.pe-links a:hover { box-shadow: inset 0 0 0 1px var(--gold, #ffd700); }
.pe-story p { margin: 10px 0 0; line-height: 1.75; font-size: 1rem; }
/* the two spreads */
.pe-spread { scroll-margin-top: 90px; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin-bottom: clamp(26px, 4vw, 50px); }
.pe-spread.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.pe-spread.flip .pe-pic { order: 2; }
.pe-spread .pe-pic.big { aspect-ratio: 4 / 5; border-radius: 28px; box-shadow: 0 0 0 1px rgba(255, 215, 0, .35), 0 40px 80px -40px #000; }
.pe-sp-t h3 { margin: 2px 0 0; font-family: var(--font-hand); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.pe-sp-t .pe-q p { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.pe-sp-t .pe-story { max-width: 62ch; color: #e9e3fa; }
/* the grid of portraits */
.pe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(14px, 2vw, 24px); align-items: start; }
.pe-card { scroll-margin-top: 90px; display: grid; gap: 10px; }
.pe-card:hover .pe-pic img { transform: scale(1.04); }
.pe-card-t h3 { margin: 0; font-size: 1.18rem; line-height: 1.2; }
.pe-inst { display: inline-block; margin-bottom: 4px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; color: #1a0d00; background: var(--gold, #ffd700); }
.pe-more { margin-top: 8px; }
.pe-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-weight: 700; font-size: .9rem; color: var(--gold, #ffd700); }
.pe-more summary::-webkit-details-marker { display: none; }
.pe-more summary::after { content: '+'; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 215, 0, .15); transition: rotate .25s; }
.pe-more[open] summary::after { rotate: 45deg; }
.pe-more .pe-story p { font-size: .96rem; margin-top: 4px; }
:target.pe-card .pe-pic, :target.pe-spread .pe-pic { box-shadow: 0 0 0 3px var(--gold, #ffd700), 0 0 40px -6px rgba(255, 215, 0, .6); }
/* more hands: a credits list */
.pe-also { margin-top: clamp(22px, 3vw, 36px); padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.pe-also h3 { margin: 0 0 10px; font-family: var(--font-hand); font-size: 1.4rem; }
.pe-also ul { list-style: none; margin: 0; padding: 0; columns: 2 280px; column-gap: 30px; }
.pe-also li { break-inside: avoid; display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); }
.pe-also li b { white-space: nowrap; }
.pe-also li span { color: var(--text-soft); font-size: .92rem; }
/* the band stands on a photo of the stage */
.pe-band { position: relative; isolation: isolate; margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); padding-bottom: clamp(30px, 5vw, 60px); }
.pe-band-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.pe-band-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: blur(3px) saturate(1.1); transform: scale(1.05); }
.pe-band-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg, #0e0629), rgba(14, 6, 41, .55) 18%, rgba(14, 6, 41, .7) 80%, var(--bg, #0e0629)); }
.pe-band-in { max-width: var(--wrap, 1200px); margin-inline: auto; }
/* notes from the crowd: paper, handwriting, a little tape */
.pe-notes { list-style: none; margin: 0; padding: 0; columns: 3 260px; column-gap: 18px; }
.pe-note { position: relative; break-inside: avoid; margin: 0 0 18px; padding: 22px 18px 16px; border-radius: 4px; color: #2a1a3e; background: #fffaf0; box-shadow: 0 20px 34px -22px rgba(0, 0, 0, .8); rotate: calc((var(--i) % 3 - 1) * 1.1deg); }
.pe-note::before { content: ''; position: absolute; top: -10px; left: 50%; width: 64px; height: 20px; translate: -50% 0; rotate: -3deg; background: rgba(255, 215, 0, .55); }
.pe-note p { margin: 0; font-family: var(--font-hand); font-size: 1.2rem; line-height: 1.45; }
.pe-note cite { display: grid; gap: 1px; margin-top: 10px; font-style: normal; }
.pe-note cite b { font-size: .95rem; }
.pe-note cite a, .pe-note cite span { font-size: .8rem; color: #7b5d9a; text-decoration: none; }
/* the homes */
.pe-homes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.pe-home { scroll-margin-top: 90px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.pe-logo { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: #fff; font-size: 1.8rem; }
.pe-logo img { width: 100%; height: 100%; object-fit: contain; }
.pe-home h3 { margin: 0; font-size: 1.05rem; }
.pe-home-t { margin: 6px 0 0; font-size: .92rem; line-height: 1.6; color: var(--text-soft); }
.pe-end { margin-top: clamp(40px, 6vw, 80px); text-align: center; }
.pe-end h2 { margin: 0; font-family: var(--font-hand); font-size: clamp(2rem, 4.6vw, 3.2rem); }
.pe-end p { margin: 6px auto 16px; color: var(--text-soft); }
.pe-end .btn-row { justify-content: center; }
@media (max-width: 800px) {
  .pe-hero { min-height: 70svh; }
  .pe-spread, .pe-spread.flip { grid-template-columns: 1fr; }
  .pe-spread.flip .pe-pic { order: 0; }
  .pe-spread .pe-pic.big { aspect-ratio: 4 / 4.2; }
  .pe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .pe-card-t h3 { font-size: 1.04rem; }
  .pe-q p { font-size: 1rem; }
  .pe-note p { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .pe-note { rotate: none; } .pe-pic img { transition: none; } }

/* ---------- history ---------- */
.hs-top { padding: calc(var(--header-h, 80px) + clamp(18px, 3vw, 44px)) 0 clamp(16px, 2.4vw, 30px); text-align: center; background: radial-gradient(70% 90% at 50% 0%, rgba(167, 139, 250, .22), transparent 72%); }
.hs-k { margin: 0; font-family: var(--font-hand); font-weight: 700; color: var(--gold, #ffd700); }
.hs-top h1 { margin: 2px 0 0; font-family: var(--font-hand); font-weight: 800; font-size: clamp(2.5rem, 7.5vw, 5rem); line-height: 1.04; background: linear-gradient(180deg, #fff, #e9d5ff 45%, #ffd700); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-lead { margin: 10px auto 0; max-width: 56ch; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.7; color: var(--text-hero, #efe9ff); }
.hs-rail { position: sticky; top: calc(var(--header-h, 76px) + 4px); z-index: 30; padding: 6px 0; }
.hs-rail .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 5px; border-radius: 999px; background: rgba(14, 6, 41, .84); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 16px 30px -18px #000; width: max-content; max-width: calc(100vw - 24px); }
.hs-rail .wrap::-webkit-scrollbar { display: none; }
@media (max-width: 800px) { .hs-rail .wrap { margin-inline: 12px; } }
 { .hs-moment { rotate: none; translate: none; transition: none; } }
.hs-nums { list-style: none; margin: 18px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.hs-nums li { display: grid; max-width: 150px; } .hs-nums b { font-family: var(--font-hand); font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; } .hs-nums span { font-size: .84rem; color: var(--text-soft); line-height: 1.35; }
.hs-rail a { flex: none; display: grid; gap: 0; min-height: 44px; align-content: center; padding: 4px 14px; border-radius: 999px; text-decoration: none; color: var(--text-soft, #cfc6e8); white-space: nowrap; }
.hs-rail a b { font-size: .82rem; color: var(--gold, #ffd700); } .hs-rail a span { font-size: .86rem; font-weight: 700; }
.hs-rail a:hover, .hs-rail a:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; }
.hs-body { padding-bottom: clamp(30px, 5vw, 70px); }
.hs-thread { position: relative; padding-inline-start: clamp(22px, 4vw, 44px); }
.hs-thread::before { content: ''; position: absolute; inset-block: 30px 10px; inset-inline-start: clamp(8px, 1.6vw, 18px); width: 3px; border-radius: 3px; background: linear-gradient(180deg, transparent, var(--gold, #ffd700) 4%, #f472b6 50%, #7c4dff 96%, transparent); opacity: .7; }
.hs-ch { position: relative; scroll-margin-top: 140px; padding-top: clamp(30px, 5vw, 64px); }
.hs-dot { position: absolute; top: calc(clamp(30px, 5vw, 64px) + 10px); inset-inline-start: calc(-1 * clamp(22px, 4vw, 44px) + clamp(8px, 1.6vw, 18px) - 7px); width: 17px; height: 17px; border-radius: 50%; background: var(--gold, #ffd700); box-shadow: 0 0 0 5px rgba(14, 6, 41, .9), 0 0 20px rgba(255, 215, 0, .7); }
.hs-ch-head { max-width: 62ch; }
.hs-years { margin: 0; font-weight: 800; font-size: .95rem; letter-spacing: .04em; color: var(--gold, #ffd700); font-variant-numeric: tabular-nums; }
.hs-ch-head h2 { margin: 2px 0 6px; font-family: var(--font-hand); font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.1; }
.hs-ch-head p:last-child { margin: 0; line-height: 1.75; font-size: clamp(1rem, 1.4vw, 1.1rem); }
.hs-ch-ph { display: block; margin: 16px 0; border-radius: 26px; overflow: hidden; aspect-ratio: 21 / 9; box-shadow: 0 30px 60px -36px #000; }
.hs-ch-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 14px; align-items: start; }
.hs-card { display: grid; grid-template-rows: auto 1fr; border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .3s var(--ease-spring, ease), box-shadow .3s; }
.hs-card:hover, .hs-card:focus-visible { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--gold, #ffd700), 0 24px 40px -26px #000; }
.hs-c-ph { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(140deg, #2e1065, #7c4dff); }
.hs-c-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-c-ph.empty { display: grid; place-items: center; font-size: 2rem; color: rgba(255, 255, 255, .5); }
.hs-c-t { display: grid; gap: 3px; padding: 12px 14px 14px; }
.hs-c-t small { font-size: .8rem; color: var(--gold, #ffd700); font-weight: 700; } .hs-c-t b { font-size: 1.15rem; } .hs-c-t span { font-size: .92rem; line-height: 1.5; color: var(--text-soft); }
.hs-c-t em { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-style: normal; font-weight: 700; font-size: .86rem; color: var(--gold, #ffd700); } .hs-c-t em svg { width: 15px; height: 15px; }
.hs-card.t-circle .hs-c-t b { font-family: var(--font-hand); font-size: 1.4rem; }
/* a moment: a handwritten note pinned between the cards */
.hs-moment { --c: #ffd700; position: relative; display: grid; gap: 4px; padding: 16px; border-radius: 6px 22px 22px 22px; text-decoration: none; color: #fff; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, #160b3d), #160b3d); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 24px 40px -30px #000; rotate: calc((var(--i) % 2 * 2 - 1) * .6deg); transition: rotate .3s, transform .3s; }
.hs-moment:hover, .hs-moment:focus-visible { rotate: 0deg; transform: translateY(-3px); }
.hs-moment.k-funny { --c: #ffd23f; } .hs-moment.k-personal { --c: #ff5f7e; } .hs-moment.k-music { --c: #5eead4; } .hs-moment.k-event { --c: #a78bfa; } .hs-moment.k-community { --c: #7ee07a; } .hs-moment.k-photo { --c: #4fa8ff; }
.hs-m-ph { display: block; margin: -16px -16px 8px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px 22px 0 0; } .hs-m-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-m-kind { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; color: var(--c); } .hs-m-kind i { font-style: normal; }
.hs-moment b { font-size: 1.05rem; }
.hs-moment q { font-family: var(--font-hand); font-size: 1.22rem; line-height: 1.4; quotes: '"' '"'; }
.hs-moment cite { font-style: normal; font-size: .85rem; color: var(--text-soft); }
.hs-tn { margin-top: clamp(34px, 5vw, 70px); } .hs-tn h2, .hs-end h2 { margin: 0 0 12px; text-align: center; font-family: var(--font-hand); font-size: clamp(1.9rem, 4.4vw, 3rem); }
.hs-tn ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hs-tn li { display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.hs-tn p { margin: 0; padding: 14px 16px; line-height: 1.55; } .hs-tn small { display: block; font-weight: 800; font-size: .78rem; color: var(--gold, #ffd700); }
.hs-then { background: rgba(255, 255, 255, .04); } .hs-now { background: rgba(255, 215, 0, .08); }
.hs-end { margin-top: clamp(34px, 5vw, 70px); text-align: center; } .hs-end p { margin: 0 auto 14px; max-width: 50ch; color: var(--text-soft); } .hs-end .btn-row { justify-content: center; }
@media (max-width: 800px) { .hs-ch-ph { aspect-ratio: 16 / 10; } .hs-tn li { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hs-moment { rotate: none; translate: none; transition: none; } }
/* on a phone each chapter's cards and moments are one row you swipe through, so the page stays short */
@media (max-width: 800px) {
  .hs-items { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 4px 2px 10px; margin-inline: -2px; scrollbar-width: none; }
  .hs-items::-webkit-scrollbar { display: none; }
  .hs-items > * { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
  .hs-moment { rotate: none; }
  .hs-ch-ph { margin: 12px 0 4px; }
  .hs-ch-head p:last-child { font-size: .98rem; }
}
/* rows that are not full sit in the middle, so the end of a group never looks like a hole */
.pe-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.pe-card { flex: 0 1 clamp(210px, 23%, 270px); }
.pe-pic.none { align-content: center; gap: 4px; background: radial-gradient(80% 60% at 50% 30%, rgba(255, 255, 255, .14), transparent 70%), linear-gradient(150deg, #2e1065, #6d28d9 60%, #b04a9a); }
.pe-pic.none i { font-style: normal; font-size: 2.6rem; opacity: .9; }
.pe-pic.none b { font-size: clamp(2rem, 4vw, 3rem); opacity: .6; }
@media (max-width: 800px) { .pe-card { flex: 0 1 calc(50% - 6px); } }
