*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #111;
  --grey: #6e6e6e;
  --label: #4a4a4a;
  --rule: #e6e6e6;
  --wrap: 44rem;
  --measure: 34rem;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  /* Helvetica is the Swiss original and ships on every machine — no font download. */
  font-family: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.hero { padding-top: clamp(3.5rem, 9vh, 6rem); padding-bottom: clamp(1.25rem, 2.5vh, 2rem); }

h1 {
  margin: 0;
  font-size: clamp(2rem, 7.2vw, 4.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.meta {
  margin: 1.6rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.portrait { margin: 0 auto; }
.portrait img {
  display: block;
  width: 100%;
  max-width: 23rem;
  height: auto;
  margin: 0 auto;
}

/* Figures — the evidence, set large enough to read as content rather than caption. */
.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  margin-top: clamp(2rem, 4.5vh, 3rem);
  border-top: 1px solid var(--rule);
  padding-top: 1.9rem;
}
.figures .n {
  display: block;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.figures .l {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--grey);
}

section { margin-top: clamp(6rem, 17vh, 10rem); }

.label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: var(--measure);
  margin-bottom: 1.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a3a3a;
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.35em; }
.prose p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.15s ease;
}
a:hover { border-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.contact { line-height: 2.1; }
.contact a { border-bottom-color: var(--ink); }

/* Cover grid — the work, shown rather than listed. */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.25rem;
  margin-top: 2.75rem;
}
.tile {
  display: block;
  border-bottom: 0;
  transition: opacity 0.15s ease;
}
.tile:hover { opacity: 0.72; }
.tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  /* sddefault is 4:3 with the video letterboxed; cover crops the black bars off. */
  object-fit: cover;
  background: #f4f4f4;
}
.tile .cap {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.35;
}
/* Long YouTube titles must not set the row height — clamp so the grid stays even. */
.tile .ttl {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em; /* always reserve two lines so every row aligns */
}
.tile .by {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.75rem;
  color: var(--grey);
}

.more {
  display: inline-block;
  margin-top: 2.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

footer { margin-top: clamp(7rem, 20vh, 12rem); padding-bottom: 4rem; }
footer .rule { border-top: 1px solid var(--rule); margin-bottom: 1.75rem; }
footer p { margin: 0 0 0.5rem; font-size: 0.8125rem; color: var(--grey); }
footer p:last-child { margin-bottom: 0; }
footer a { border-bottom-color: transparent; }
footer a:hover { border-bottom-color: var(--grey); }

@media (max-width: 640px) {
  .figures { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  a, .tile { transition: none; }
}
