/* design-about.css — /about only.

   The page as four boards, each with one idea in its motion:
     1. the opening racks focus onto him, and "Mostly I listen." lands a beat
        after the rest of the sentence;
     2. every film is pinned to a board; the one you look at is the only one
        lit, and the frame leans in and reframes toward where you look;
     3. On Set is laid out by year, every photograph whole — the year holds
        while its photographs pass;
     4. what people say is set as type: the crowd drifts, the named voices lead.
   Scroll-linked pieces use CSS scroll timelines (compositor, no JS); browsers
   without them get the same boards standing still. Colours are the site's own. */

:root { --ab-r: 10px; --ab-gap: clamp(14px, 1.8vw, 26px); }

/* =========================================================================
   1. Opening
   ========================================================================= */

/* The opening holds the screen: the words sit in the negative space of the
   picture, with the CV buttons above the fold. (The row of figures under the
   lede is gone: no numbers on the opening.) */
@media (min-width: 901px) {
  .pagehead--plate {
    display: flex; flex-direction: column; align-items: flex-start;
    min-height: 100vh; min-height: 100svh;
    padding: 6.5rem var(--gut) 0;
  }
  .pagehead--plate > .hero__eyebrow { margin-top: auto; }
  .pagehead--plate > .pagehead__act { margin-bottom: auto; padding-bottom: 2rem; }
  .pagehead--plate .pagehead__title { max-width: min(14ch, 54vw); }
  .pagehead--plate .pagehead__lede,
  .pagehead--plate .pagehead__pub { max-width: min(52ch, 46vw); }
}

@media (prefers-reduced-motion: no-preference) {
  /* A rack focus: the plate arrives soft and a touch close, and settles
     sharp — the first thing the page does is pay attention. */
  .pagehead__plate { animation: ab-rack 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .pagehead__plate img { animation: ab-settle-in 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

  /* The sentence arrives, then — a held beat — "Mostly I listen." The name
     and the first line are there from the first frame and pull into focus
     with the plate (no fade from nothing, no wait: what is on screen at
     open never waits); the rest rises after them. */
  .pagehead--plate > .hero__eyebrow,
  .pagehead--plate .pagehead__title { animation: ab-resolve 1.1s var(--ease) both; }
  .pagehead--plate .pagehead__lede,
  .pagehead--plate .pagehead__pub,
  .pagehead--plate .pagehead__grace,
  .pagehead--plate .pagehead__act { animation: ab-rise 1.1s var(--ease) both; }
  .pagehead--plate .pagehead__title em { display: inline-block; animation: ab-listen 1.3s var(--ease) 1.05s both; }
  .pagehead--plate .pagehead__lede    { animation-delay: 1.4s; }
  .pagehead--plate .pagehead__pub     { animation-delay: 1.45s; }
  .pagehead--plate .pagehead__grace   { animation-delay: 1.5s; }
  .pagehead--plate .pagehead__act     { animation-delay: 1.6s; }

  /* Leaving the opening, the picture falls behind the page. It moves inside
     its frame (the translate property, so it composes with the settle), and
     the frame's fade to the ground stays where it is. */
  @supports (animation-timeline: scroll()) {
    @media (min-width: 901px) {
      .pagehead__plate img {
        animation: ab-settle-in 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both, ab-recede linear both;
        animation-timeline: auto, scroll(root);
        animation-range: normal, 0 100vh;
      }
    }
  }
}
@keyframes ab-rack { from { filter: blur(16px); } to { filter: blur(0); } }
@keyframes ab-settle-in { from { opacity: 0.35; transform: scale(1.1); } to { opacity: 1; transform: none; } }
@keyframes ab-recede { from { translate: 0 0; } to { translate: 0 20%; } }
@keyframes ab-resolve {
  from { transform: translateY(16px); filter: blur(8px); }
  to   { transform: none; filter: blur(0); }
}
@keyframes ab-rise {
  from { opacity: 0; transform: translateY(16px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes ab-listen {
  from { opacity: 0; filter: blur(14px); transform: translateY(0.12em); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}

/* Where the photographs ran: one quiet line under the lede, in the grace
   note's voice, the two names its only links. */
.pagehead__pub {
  margin: 1rem 0 0; max-width: 52ch;
  font-size: 0.95rem; line-height: 1.6; color: var(--fg-faint); text-wrap: pretty;
}
.pagehead__pub a {
  color: var(--fg-dim); text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.22); text-underline-offset: 4px;
  transition: color 0.35s var(--ease), text-decoration-color 0.35s var(--ease);
}
.pagehead__pub a:hover { color: var(--fg); text-decoration-color: currentColor; }

/* =========================================================================
   2. Every film, pinned
   ========================================================================= */
.pins {
  position: relative; z-index: 1;
  padding: clamp(3rem, 9vh, 6.5rem) var(--gut) clamp(1rem, 3vh, 2rem);
}
.pins__board {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px) var(--ab-gap); align-items: start;
}
.pins__col { display: flex; flex-direction: column; gap: clamp(24px, 2.8vw, 38px); min-width: 0; }

.pin { display: block; color: inherit; text-decoration: none; outline: none; }
.pin__media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--ab-r);
  background: var(--surface, #0f1011); border: 1px solid var(--line);
  /* Opacity comes back after a short hold, so crossing the gap between two
     stills does not flash the whole board. */
  transition: border-color 0.4s var(--ease), opacity 0.5s var(--ease) 0.18s;
}
.pin--tall .pin__media { aspect-ratio: 3 / 4; }
/* The frame leans in, and reframes toward where you look — the way an
   operator follows the eye. --px/--py come from design-about.js; the long
   ease is the operator's lag. */
.pin__media picture { display: contents; }
.pin__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), translate 1.4s var(--ease);
}
.pin__cap { display: flex; flex-direction: column; gap: 1px; padding: 0.8rem 2px 0; transition: opacity 0.5s var(--ease) 0.18s; }
.pin__t { font-size: 14px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.35; color: var(--fg); }
.pin__k { font-size: 13px; line-height: 1.4; letter-spacing: -0.005em; color: var(--fg-faint); }

.pin:focus-visible .pin__media { outline: 2px solid var(--fg); outline-offset: 3px; }
.pin:hover .pin__media, .pin:focus-visible .pin__media { border-color: rgba(255, 255, 255, 0.24); }
.pin:focus-visible .pin__media img { transform: scale(1.06); }
@media (hover: hover) and (pointer: fine) {
  .pin:hover .pin__media img { transform: scale(1.08); translate: var(--px, 0) var(--py, 0); }
  /* One film at a time: the rest of the board steps back while you look. */
  .pins__board:has(.pin:hover) .pin:not(:hover) .pin__media { opacity: 0.45; transition-delay: 0s; }
  .pins__board:has(.pin:hover) .pin:not(:hover) .pin__cap { opacity: 0.5; transition-delay: 0s; }
}
.pins__board:has(.pin:focus-visible) .pin:not(:focus-visible) .pin__media { opacity: 0.45; transition-delay: 0s; }

.pins__note { max-width: 1320px; margin: clamp(2.5rem, 6vh, 4rem) auto 0; text-align: center; }
.pins__note .btn { font-weight: 500; font-size: 14px; }

@media (max-width: 899px) {
  /* Two columns: the four balanced columns pair up, two above two. */
  .pins__board { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(24px, 6vw, 34px); column-gap: 12px; }
  .pins__col { gap: clamp(22px, 6vw, 30px); }
  .pin__cap { padding-top: 0.6rem; }
  .pin__t { font-size: 13.5px; }
  .pin__k { font-size: 12.5px; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Each still is pinned as it comes up the screen. */
    .pin { animation: ab-pin linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
  }
}
@keyframes ab-pin { from { opacity: 0; transform: translateY(46px) scale(0.965); } to { opacity: 1; transform: none; } }

/* =========================================================================
   3. On Set — by year
   ========================================================================= */
/* Every photograph is shown whole, at the shape it was taken: rhythm comes
   from size and placement, never from cropping out the rig or the room. */
#onset .onset__sub { margin-bottom: clamp(3rem, 8vh, 5.5rem); }
.set { max-width: 1320px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(4rem, 11vh, 7rem); }
.set__group {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr);
  column-gap: clamp(1.5rem, 3vw, 3rem);
}
/* The year stays put while its photographs pass, and hands over to the next. */
.set__yr {
  position: sticky; top: 6rem; align-self: start; margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.1rem); font-weight: 500; line-height: 1;
  letter-spacing: -0.04em; color: var(--fg); font-variant-numeric: tabular-nums;
}
.set__prints {
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem) var(--ab-gap); align-items: start;
}
.set__print { margin: 0; min-width: 0; grid-column: span 5; }
/* Three to a year: a wide print, a smaller one beside it sharing its
   baseline, and a third below, set in from the edge. */
.set__print--wide { grid-column: 1 / span 6; grid-row: 1; }
.set__print--side { grid-column: 7 / span 4; grid-row: 1; align-self: end; }
.set__print--mid  { grid-column: 2 / span 5; grid-row: 2; }
.set__group--flip .set__print--wide { grid-column: 5 / span 6; }
.set__group--flip .set__print--side { grid-column: 1 / span 4; }
.set__group--flip .set__print--mid  { grid-column: 5 / span 5; }
.set__print--half { grid-column: span 5; }
.set__print--half:nth-child(even) { margin-top: clamp(4rem, 12vw, 10rem); }
.set__print--full { grid-column: 1 / -1; }

.set__win {
  position: relative; overflow: hidden; aspect-ratio: 3 / 2;
  border-radius: var(--ab-r); background: #000;
}
.set__img { width: 100%; height: 100%; object-fit: cover; }
.no-js .set__img[data-src] { display: none; }   /* its <noscript> copy stands in */
.set__win::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.set__cap { padding-top: 0.85rem; font-size: 13px; line-height: 1.4; letter-spacing: -0.005em; color: var(--fg-faint); }

@media (max-width: 1000px) {
  .set__group { grid-template-columns: minmax(0, 1fr); }
  .set__yr { position: static; margin-bottom: clamp(1.25rem, 4vw, 2rem); }
}
@media (max-width: 700px) {
  .set { gap: clamp(3.5rem, 14vw, 5rem); }
  /* On a phone the year rides under the bar while its photographs pass. */
  .set__yr {
    position: sticky; top: 64px; z-index: 3;
    margin: 0 calc(-1 * var(--gut)) 0.75rem; padding: 0.7rem var(--gut) 0.9rem;
    font-size: 1.6rem;
    background: linear-gradient(var(--bg) 62%, rgba(8, 9, 10, 0));
  }
  /* Wide prints take the width; the smaller two of a year pair up. */
  .set__prints { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 10px; }
  .set__print, .set__print--wide, .set__print--half, .set__print--full,
  .set__group--flip .set__print--wide {
    grid-column: 1 / -1; grid-row: auto; margin-top: 0;
  }
  .set__print--side, .set__print--mid,
  .set__group--flip .set__print--side, .set__group--flip .set__print--mid {
    grid-column: span 1; grid-row: auto; margin-top: 0; align-self: start;
  }
  .set__print--wide .set__win, .set__print--half .set__win, .set__print--full .set__win {
    margin: 0 calc(-1 * var(--gut)); border-radius: 0;
  }
  .set__print--wide .set__win::after, .set__print--half .set__win::after, .set__print--full .set__win::after { box-shadow: none; }
  .set__cap { padding-top: 0.7rem; }
}

/* Each print opens top-down as it arrives and the picture settles inside
   it; the caption follows. The opening starts fast and lands slowly, so it
   never lingers as a thin line. Time-based, once, on arrival (design-about.js
   adds .ab-armed and .is-open) — a scroll-linked version left prints
   half-open wherever the reader stopped. */
@media (prefers-reduced-motion: no-preference) {
  .ab-armed .set__win {
    clip-path: inset(0 0 100% 0 round var(--ab-r));
    transition: clip-path 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--ab-d, 0ms);
  }
  .ab-armed .set__img {
    transform: scale(1.14);
    transition: transform 1.9s cubic-bezier(0.16, 1, 0.3, 1) var(--ab-d, 0ms);
  }
  .ab-armed .set__cap {
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.8s var(--ease) calc(var(--ab-d, 0ms) + 0.35s), transform 0.8s var(--ease) calc(var(--ab-d, 0ms) + 0.35s);
  }
  .ab-armed .set__print.is-open .set__win { clip-path: inset(0 0 0 0 round var(--ab-r)); }
  .ab-armed .set__print.is-open .set__img { transform: none; }
  .ab-armed .set__print.is-open .set__cap { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .set__print--wide .set__win, .set__print--half .set__win, .set__print--full .set__win { --ab-r: 0px; }
}

/* =========================================================================
   One print, as published — between the films and the set
   ========================================================================= */
/* A single photograph, the same hand as the On Set prints (whole, at the
   shape it was taken, captioned underneath), hung on the page's centre line
   between the board and the set: hung right of centre it left half the row
   empty, with no year rail beside it as the On Set rows have. */
.pubprint {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto; box-sizing: content-box;
  padding: clamp(4rem, 12vh, 7.5rem) var(--gut) 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ab-gap);
}
.pubprint .pubprint__print { grid-column: 4 / span 6; grid-row: auto; margin: 0; }
.pubprint__win { aspect-ratio: 1074 / 730; }
.pubprint__win picture { display: contents; }
.pubprint .set__cap a {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--line); text-underline-offset: 4px;
  transition: color 0.35s var(--ease), text-decoration-color 0.35s var(--ease);
}
.pubprint .set__cap a:hover { color: var(--fg); text-decoration-color: currentColor; }
@media (max-width: 1000px) { .pubprint .pubprint__print { grid-column: 3 / span 8; } }
@media (max-width: 700px) {
  .pubprint { grid-template-columns: minmax(0, 1fr); padding-top: clamp(3rem, 12vw, 4.5rem); }
  .pubprint .pubprint__print { grid-column: 1 / -1; }
}

/* =========================================================================
   Sixteen Days of Sudan — small, between the set and the comments
   ========================================================================= */
/* Frames of his AI series as small squares (bin-build-about-sudan.py), kept
   small on purpose (Ahmed: "they shouldn't be a big section"). A quiet heading
   on a hairline, one line saying what they are, then one row of squares that
   scrolls sideways. No motion of its own. */
.sudan {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto; box-sizing: content-box;
  padding: 0 var(--gut);
}
.sudan__head { padding-top: 0.85rem; border-top: 1px solid var(--line); }
.sudan__title {
  margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.3;
  letter-spacing: -0.02em; color: var(--fg);
}
.sudan__sub { margin: 0.35rem 0 0; max-width: 62ch; font-size: 0.85rem; line-height: 1.55; color: var(--fg-faint); }
.sudan__sub a {
  color: var(--fg-dim); white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--line); text-underline-offset: 4px;
  transition: color 0.35s var(--ease), text-decoration-color 0.35s var(--ease);
}
.sudan__sub a:hover { color: var(--fg); text-decoration-color: currentColor; }
.sudan__grid {
  list-style: none; margin: 1.25rem 0 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 10px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.sudan__fr { scroll-snap-align: start; }
.sudan__fr { margin: 0; min-width: 0; }
.sudan__fr a { display: block; border-radius: 6px; }
.sudan__fr a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.sudan__fr picture { display: block; }
.sudan__fr img { transition: opacity .3s ease; }
.sudan__fr a:hover img { opacity: .82; }
.sudan__fr img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 6px; background: #000;
}
@media (max-width: 700px) {
  .sudan__grid { grid-auto-columns: 120px; gap: 6px; margin-top: 1rem; }
  .sudan__fr img { border-radius: 4px; }
}

/* =========================================================================
   4. What people say
   ========================================================================= */
/* The crowd: two lines of voices drifting past, set as type, not chips. */
#said .says { margin-bottom: clamp(3.5rem, 9vh, 6rem); padding: 0.4rem 0; }
#said .say {
  margin: 0 clamp(2rem, 3.4vw, 3.25rem) 0 0; padding: 0;
  background: none; border: 0; border-radius: 0; gap: 0.7rem;
}
#said .say__t { font-size: clamp(1.05rem, 1.45vw, 1.3rem); font-weight: 500; letter-spacing: -0.02em; color: var(--fg); }
#said .says__row--back { margin-top: 1rem; }
#said .says__row--back .say__t { color: var(--fg-dim); }
#said .say__u {
  font-family: var(--ff); font-size: 13px; letter-spacing: -0.005em;
  text-transform: none; color: var(--fg-faint);
}
#said .says.ab-still .says__row { animation-play-state: paused; }
/* Standing still, the voices wrap into one centred paragraph of quotes. The
   track was sized to its content, so without this it stayed one line wide
   and ran off both edges of the screen. */
@media (prefers-reduced-motion: reduce) {
  #said .says { margin-left: 0; margin-right: 0; }
  #said .says__track:first-child { flex: 1 1 100%; flex-wrap: wrap; justify-content: center; row-gap: 0.9rem; max-width: 1100px; margin: 0 auto; }
  #said .say {
    flex: 0 1 auto; max-width: 100%; margin: 0 0.9rem;
    flex-wrap: wrap; justify-content: center; column-gap: 0.5rem; white-space: normal; text-align: center;
  }
  #said .say__t { font-size: 1rem; }
}

/* The two named voices lead, as type. */
.said-leads {
  max-width: 1320px; margin: 0 auto clamp(3.5rem, 9vh, 6rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 5vw, 5rem);
}
#said .said-leads .said {
  margin: 0; padding: 1.5rem 0 0; display: block;
  background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0;
}
#said .said-leads .said__en {
  font-size: clamp(1.45rem, 2.5vw, 2.2rem); line-height: 1.2; font-weight: 500;
  letter-spacing: -0.028em; text-wrap: balance; color: var(--fg);
}
#said .said-leads .said__by { margin-top: 1.1rem; font-size: 14px; color: var(--fg-dim); }

/* The rest in columns under the leads, in the same hand: type on a hairline,
   no boxes. Columns pack, so no comment waits on its neighbour. */
.said-wall { max-width: 1320px; margin: 0 auto; columns: 3 260px; column-gap: clamp(2rem, 4vw, 4rem); }
#said .said-wall .said {
  display: block; break-inside: avoid;
  margin: 0 0 clamp(2rem, 4vw, 2.75rem); padding: 1.15rem 0 0;
  background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0;
}
#said .said-wall .said__en { font-size: 16px; line-height: 1.62; letter-spacing: -0.005em; color: var(--fg); }
/* a quote about one film names it; the name leads to the film's page */
#said .said__film { color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color .35s var(--ease); }
#said .said__film:hover { text-decoration-color: currentColor; }
#said .said__by {
  font-family: var(--ff); text-transform: none; letter-spacing: -0.005em;
  font-size: 13px; line-height: 1.45; color: var(--fg-faint); padding-top: 0.9rem; margin: 0;
}
#said .said__by::before { content: "— "; }

@media (max-width: 760px) {
  .said-leads { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================================
   Reduced motion: every board stands still, fully composed.
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .set__win { clip-path: none !important; }
  .set__img, .set__cap { transform: none !important; opacity: 1 !important; }
  .pin:hover .pin__media img, .pin:focus-visible .pin__media img { transform: none; translate: none; }
}
@media print {
  .pin, .set__win, .set__img { animation: none !important; transform: none !important; clip-path: none !important; }
  .set__yr { position: static; }
}
