/* The People page (people.html). Shares site.css for the nav, buttons, contact block and footer. */
html.page-people { background: var(--darkroom); }
.page-people body { background: var(--darkroom); }

/* ---------- opening ---------- */
.pp-open { padding-top: calc(var(--nav-h) + clamp(64px, 12vh, 150px)); padding-bottom: clamp(32px, 6vh, 72px); }
.pp-eyebrow { font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--safelight); }
.pp-h { font: 900 clamp(48px, 7.2vw, 132px)/.9 var(--display); letter-spacing: -.01em; max-width: 13em; text-wrap: balance; }
.pp-lede { margin-top: 28px; max-width: 34em; font: 400 clamp(17px, 1.3vw, 21px)/1.55 var(--text); color: var(--fog); }

/* ---------- the four: portrait and words side by side, alternating sides ---------- */
.pp-list { padding-bottom: clamp(60px, 10vh, 120px); overflow-x: clip; }
.pp { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 120px); align-items: center;
  padding-block: clamp(36px, 7vh, 90px); border-top: 1px solid rgba(236, 231, 224, .08); }
.pp:nth-child(even) .pp-pic { order: 2; }
.pp-pic { position: relative; aspect-ratio: 1; width: 100%; max-width: 720px; justify-self: center; }
/* the frame shows the middle of the portrait (units 100-900 of 1000), so the face fills it; the dots' canvas reaches
   well past the frame so drifting dots are never cut off */
.pp-pic img { position: absolute; left: -12.5%; top: -12.5%; width: 125%; height: 125%; max-width: none; transition: opacity .6s var(--ease); }
.pp-pic canvas { position: absolute; inset: -31.25%; width: 162.5%; height: 162.5%; pointer-events: none; }
.pp-pic.is-live img { opacity: 0; }
.pp-num { font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--safelight); }
.pp-name { margin-top: 14px; font: 900 clamp(72px, 9vw, 176px)/.84 var(--display); letter-spacing: -.01em; }
.pp-role { margin-top: 22px; font: 600 clamp(18px, 1.4vw, 24px)/1.3 var(--text); }
.pp-body { margin-top: 12px; max-width: 30em; font: 400 17px/1.6 var(--text); color: var(--fog); }
/* a soft light follows the pointer across the role and lines (js/people.js sets --mx, --my and --lg) */
.pp-name { width: fit-content; color: var(--paper); }
.pp-role { background: radial-gradient(circle 130px at var(--mx, -999px) var(--my, -999px), rgba(212, 95, 58, calc(var(--lg, 0) * .9)) 0%, rgba(212, 95, 58, 0) 70%), linear-gradient(var(--paper), var(--paper));
  -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.pp-body { background: radial-gradient(circle 160px at var(--mx, -999px) var(--my, -999px), rgba(236, 231, 224, calc(var(--lg, 0))) 0%, rgba(236, 231, 224, 0) 75%), linear-gradient(var(--fog), var(--fog));
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- the names: letters that move with the pointer, a different way for each role (js/people.js) ---------- */
.pp-name.is-split { position: relative; }
.pp-name .wd { white-space: nowrap; }
.pp-name .ch { display: inline-block; transform-origin: 50% 80%; will-change: transform; transition: color .25s var(--ease), opacity .12s linear; }
/* CEO / Creative Head: the design-tool wordmark is drawn on a canvas over the (invisible) text, which keeps the
   layout and the name for screen readers */
.pp-name.is-tech { position: relative; }
.tt-ghost { color: var(--paper); }
.pp-name.is-drawn .tt-ghost { color: transparent; }   /* the canvas draws the name once the font is ready */
.tt-base { display: inline-block; width: 0; height: 0; }
.tt-canvas { position: absolute; left: -90px; top: -80px; width: calc(100% + 260px); height: calc(100% + 150px); pointer-events: none; }
/* COO / Technical Head: the letter under the pointer, cycling through symbols */
.anim-decode .pp-name .ch.is-hot { color: var(--safelight); }
.anim-decode .pp-role { font-variant-numeric: tabular-nums; }
/* DOP / CGI Artist: racks into focus from a wireframe; the letter nearest the pointer shows as its wireframe */
.anim-focus .pp-name { width: min-content; -webkit-text-stroke: 1.5px rgba(236, 231, 224, var(--stroke, 0)); filter: blur(var(--blur, 0px)); }
.anim-focus .pp-name .ch { color: rgba(236, 231, 224, var(--solid, 1)); }
.anim-focus .pp-name .ch.is-wire { color: transparent; -webkit-text-stroke: 1.5px var(--safelight); }
@property --solid { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --stroke { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --blur { syntax: '<length>'; inherits: true; initial-value: 0px; }
.js .anim-focus:not(.is-shown) .pp-name { --solid: 0; --stroke: 1; --blur: 7px; }
.anim-focus.is-play .pp-name { animation: pp-rack 1.6s var(--ease) both; }
@keyframes pp-rack {
  0% { --blur: 7px; --solid: 0; --stroke: 1; }
  45% { --blur: 0px; --solid: 0; --stroke: 1; }
  60% { --blur: 1.5px; }
  75% { --blur: 0px; }
  100% { --blur: 0px; --solid: 1; --stroke: 0; }
}
.pp-brackets { position: absolute; inset: -.12em -.18em -.04em; pointer-events: none; opacity: 0; transform: scale(1.12); }
.pp-brackets i { position: absolute; width: .2em; height: .2em; border: 0 solid var(--safelight); }
.pp-brackets i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; } .pp-brackets i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.pp-brackets i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; } .pp-brackets i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.anim-focus.is-play .pp-brackets { animation: pp-brackets 1.9s var(--ease) forwards; }
@keyframes pp-brackets { 0% { opacity: 0; transform: scale(1.12); } 25% { opacity: 1; transform: scale(1); } 75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
/* Creative Writer: typed in; then the writing cursor follows the pointer between the letters */
.anim-type .pp-name .ch.is-hidden { opacity: 0; }
.pp-caret { position: absolute; left: 0; top: .06em; width: .06em; height: .74em; margin-left: -.03em; background: var(--safelight); animation: pp-blink 1s steps(1) infinite; pointer-events: none; }
@keyframes pp-blink { 50% { opacity: 0; } }

/* each person's own links, as icons */
.pp-links { list-style: none; display: flex; gap: 6px; margin: 18px 0 0 -10px; padding: 0; }
.pp-links a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--paper);
  transition: color .25s var(--ease), transform .25s var(--ease); }
.pp-links a:hover, .pp-links a:focus-visible { color: var(--safelight); transform: translateY(-2px); }
.pp-links svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pp-links svg .fill { fill: currentColor; stroke: none; }

/* waiting for the fourth photo */
.pp-wait { position: absolute; inset: 12%; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line);
  font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--line); }

/* the copy rises in as each person arrives (js adds .is-in) */
.js .pp-text > * { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .pp.is-in .pp-text > * { opacity: 1; transform: none; }
.js .pp.is-in .pp-text > :nth-child(2) { transition-delay: .06s; } .js .pp.is-in .pp-text > :nth-child(3) { transition-delay: .12s; } .js .pp.is-in .pp-text > :nth-child(4) { transition-delay: .18s; }

/* ---------- phones ---------- */
@media (max-width: 900px) {
  .pp { grid-template-columns: 1fr; gap: 20px; }
  .pp:nth-child(even) .pp-pic { order: 0; }
  .pp-pic { max-width: 520px; }
  .pp-name { font-size: clamp(64px, 19vw, 104px); }
}
@media (max-width: 640px) { .pp-body { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .js .pp-text > * { opacity: 1; transform: none; transition: none; }
}
