/* =========================================================
   MISSION: MILESTONE — about.css
   The Crew manifest page: one cream card on the black — the paper from the cut-paper world — with the
   photo top-left, the typed manifest fields, headline and two paragraphs. Loads after styles.css (nav,
   buttons, close section, reticle, stars).
   ========================================================= */

.links a.active { color: var(--accent); }
.links a.active::after { transform: scaleX(1); }

/* ---------- the slide ---------- */
.about-page main { z-index: auto; }   /* no stacking context on main, so .crew can sit between the star layers and the rocks */
.crew { position: relative; z-index: 55; min-height: 100vh;   /* above the top star layer (50), under the asteroids (60): stars behind the card, rocks in front */ display: grid; place-items: center; padding: calc(var(--nav-h) + 4vh) var(--gutter) 8vh; }

/* ---------- the card ---------- */
.manifest {
  position: relative; z-index: 1; width: min(900px, 92vw); margin-left: 6vw;
  background: var(--cream); color: var(--ink);
  padding: 44px 48px 40px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.65);   /* pass 7: the card sits straight */
}
.manifest .corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--ink); }
.manifest .corner.tl { left: 14px; top: 14px; border-right: 0; border-bottom: 0; }
.manifest .corner.tr { right: 14px; top: 14px; border-left: 0; border-bottom: 0; }
.manifest .corner.bl { left: 14px; bottom: 14px; border-right: 0; border-top: 0; }
.manifest .corner.br { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }
.m-head { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; }
.m-head span:first-child { color: var(--accent); }

.m-grid { display: grid; grid-template-columns: 300px 1fr; gap: 42px; margin-top: 24px; }   /* p37: wider, so the two proof rows under the fields wrap to two lines instead of three */

/* the photo: two-tone (ink on the cream) in a simple frame */
.shot { position: relative; width: 300px; padding: 7px; border: 1.5px solid var(--ink); margin: 0; }
.shot img {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(1.05); mix-blend-mode: multiply;
}

.m-fields { margin: 20px 0 0; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.5; }
.m-fields div { display: grid; grid-template-columns: 66px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.m-fields div:last-child { border-bottom: 0; }
.m-fields dt { color: var(--accent); letter-spacing: 0.3em; font-size: 9.5px; font-weight: 600; padding-top: 1px; }
.m-fields dd { margin: 0; opacity: 0.9; }
/* p37: the two proof rows. A 66px label column can't hold "Development work for", and the lists
   need the whole width, so these stack label over value and the separators stay orange. */
.m-fields .wide { grid-template-columns: 1fr; gap: 6px; padding: 9px 0; }
.m-fields .wide dt { letter-spacing: 0.24em; }
.m-fields .wide dd { opacity: 1; }
.m-fields .wide ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 3px 0; font-weight: 500; letter-spacing: 0.14em; }
/* the separator trails the word it follows rather than leading the next one — on a `before` it ends
   up stranded at the start of a wrapped line */
.m-fields .wide li:not(:last-child)::after { content: '·'; margin: 0 7px; color: var(--accent); }

.m-left { padding-bottom: 0; }
.manifest h1 { font-family: var(--display); font-size: clamp(38px, 3.1vw, 50px); line-height: 0.92; text-transform: uppercase; margin: 2px 0 22px; }
.manifest h1 em { color: var(--accent); font-style: normal; }
.manifest h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.manifest h1 .inner { display: block; }
.m-copy { font-size: clamp(12.5px, 0.9vw, 14px); line-height: 1.66; opacity: 0.92; max-width: 60ch; }
.m-copy p + p { margin-top: 14px; }
/* ---------- interactions: held · ID confirmed ---------- */
/* held: the card tilts toward the mouse inside a perspective; a band of light crosses the paper as it turns */
.hold { perspective: 1400px; position: relative; z-index: 1; }
.manifest .sheen {
  position: absolute; inset: 0; pointer-events: none; z-index: 5; opacity: 0;
  background: linear-gradient(115deg, transparent 0 calc(var(--lx, 50%) - 14%), rgba(255, 255, 255, 0.5) calc(var(--lx, 50%) - 3%), rgba(255, 255, 255, 0.1) calc(var(--lx, 50%) + 3%), transparent calc(var(--lx, 50%) + 14%));
  mix-blend-mode: screen;
}
/* ID confirmed: one scan pass as the print goes to colour, lock corners on the face, the tag under the frame */
.shot img { transition: filter 0.3s var(--ease), opacity 0.3s var(--ease); }
.shot .lock { position: absolute; left: 33%; top: 15%; width: 38%; height: 38%; pointer-events: none; opacity: 0; }
.shot .lock i { position: absolute; width: 16px; height: 16px; border: 2.5px solid var(--accent); }
.shot .lock i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.shot .lock i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.shot .lock i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.shot .lock i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.shot .scan { position: absolute; left: 7px; right: 7px; top: 7px; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); opacity: 0; pointer-events: none; }
.shot .idtag { position: absolute; left: 0; right: 0; bottom: -22px; display: flex; justify-content: space-between; font-size: 9.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); font-weight: 600; white-space: nowrap; pointer-events: none; }
.shot.id img { filter: none; }   /* stays multiplied onto the cream so the switch to colour is a fade, not a pop */
.shot.id .lock { opacity: 1; }
.about-page:not(.static) .shot { cursor: none; }

/* the scroll hint sits bottom-right, like Process */
.about-page .scroll-hint { left: auto; right: var(--gutter); bottom: 34px; }

/* ---------- before the entrance (about.js takes it from here); reduced motion shows it settled ---------- */
.about-page:not(.static) .manifest { opacity: 0; }

/* ---------- narrow / reduced motion: flat and stacked ---------- */
@media (max-width: 1024px) {
  .about-page .links { display: none; }
  .crew { place-items: start; padding-top: calc(var(--nav-h) + 6vh); }
  .manifest { transform: none; margin-left: 0; width: 100%; padding: 28px 24px 32px; }
  .m-grid { grid-template-columns: 1fr; gap: 26px; }
  .shot { width: min(300px, 66vw); margin: 0 auto; }   /* centred in the stacked card */
  .manifest h1 { font-size: clamp(34px, 8vw, 46px); }
  .m-copy { font-size: 13px; max-width: none; }
  .about-page .scroll-hint { display: none; }
}
