/* contact: a quiet contact sheet. Stats by the name, every frame numbered,
   each shoot's pick circled in grease pencil. The red is for marks only. */
:root {
  --paper: #F7F7F5;
  --ink: #1B1B1B;
  --muted: #5E5E5A;
  --line: #CFCFCA;
  --blank: #E6E6E2;
  --sans: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --gut: 16px;
  --pad: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--paper); padding: 8px 16px; z-index: 2; }
.skip:focus { top: 16px; }

/* Header: who, then the stats a booker looks for, then how to reach. */
.top { max-width: 1400px; margin: 0 auto; padding: var(--pad) var(--pad) 32px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "who stats" "reach stats";
  column-gap: 48px; row-gap: 16px; align-items: start; }
.who { grid-area: who; }
h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; }
.role { margin-top: 6px; font-size: 17px; }
.lede { margin-top: 12px; color: var(--muted); max-width: 46ch; display: grid; gap: 8px; }
.reach { grid-area: reach; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.reach a { text-decoration-color: currentColor; }
.reach a:hover { text-decoration-thickness: 2px; }

.stats { grid-area: stats; display: grid; grid-template-columns: repeat(auto-fit, minmax(4.8em, 1fr)); gap: 16px 20px; }
.stats.wide { grid-template-columns: repeat(auto-fit, minmax(10em, 1fr)); }
.stats.wide dd { font-size: 17px; }
.stats div { border-top: 1px solid var(--ink); padding-top: 8px; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { font-size: 20px; line-height: 1.2; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }

/* The sheet: one lattice of equal frames. Each shoot is a run of frames plus its note,
   sharing the columns through subgrid so every frame lines up with every other. */
.sheet { --cols: 6; max-width: 1400px; margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 40px var(--gut); }
.roll { grid-column: span min(calc(var(--n) + 2), var(--cols)); display: grid; grid-template-columns: subgrid;
  row-gap: 20px; align-items: start; scroll-margin-top: 24px; }
.frame a { display: block; position: relative; }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; background: var(--blank); }
.frame figcaption { margin-top: 6px; font: 400 11px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }

/* The pick: a grease-pencil loop drawn past the frame edge. */
.mark { position: absolute; inset: -7px -8px -8px -7px; width: calc(100% + 15px); height: calc(100% + 15px);
  overflow: visible; pointer-events: none; transform: rotate(-0.6deg); }
.mark path { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

.note { grid-column: span 2; display: grid; gap: 6px; align-content: start; max-width: 40ch; }
.note h3 { font-size: 16px; line-height: 1.25; font-weight: 600; }
.meta { color: var(--muted); }
.summary { display: grid; gap: 8px; font-size: 14px; }
.credits { font-size: 13px; color: var(--muted); }
.note a { text-decoration-color: currentColor; }

/* After the sheet: about and CV, quiet. */
.more { max-width: 1400px; margin: 96px auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px 64px; align-items: start; }
.more h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.about p { max-width: 62ch; }
.about p + p { margin-top: 12px; }
.cv h3 { font-size: 14px; font-weight: 500; color: var(--muted); margin: 20px 0 4px; }
.cv h3:first-of-type { margin-top: 0; }
.cv ul { list-style: none; margin: 0; padding: 0; }
.cv li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.cv small { display: block; font-size: 14px; color: var(--muted); }
.years { color: var(--muted); font-variant-numeric: tabular-nums; }

.foot { max-width: 1400px; margin: 96px auto 0; padding: 20px var(--pad) 40px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted); }

@media (max-width: 1139px) { .sheet { --cols: 5; } }
@media (max-width: 899px) {
  .sheet { --cols: 4; }
  .top { grid-template-columns: 1fr; grid-template-areas: "who" "stats" "reach"; row-gap: 20px; }
}
@media (max-width: 599px) {
  :root { --gut: 8px; }
  .top { padding-bottom: 20px; row-gap: 16px; }
  .role { font-size: 16px; }
  .lede { margin-top: 8px; font-size: 14px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 12px; }
  .stats.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats.wide dd { font-size: 15px; }
  .stats dt { font-size: 12px; }
  .stats dd { font-size: 17px; }
  .sheet { --cols: 3; row-gap: 28px; }
  .roll { row-gap: 14px; }
  .mark { inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); }
  .mark path { stroke-width: 1.7; }
  .note { grid-column: 1 / -1; }
  .note.brief { grid-column: span 2; }
}

/* Motion 1: hovering a pick redraws its pencil mark. At rest the mark is always complete. */
@media (prefers-reduced-motion: no-preference) {
  .mark path { stroke-dasharray: 1; stroke-dashoffset: 0; }
  .pick a:hover .mark path, .pick a:focus-visible .mark path { animation: draw 0.6s cubic-bezier(.5, 0, .2, 1); }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
@media print { .skip { display: none; } }
