:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6e6e6e;
  --faint: #a3a3a3;
  --line: #e8e8e8;
  --tile: #f1f1f0;
  --accent: #e8501e;
  --pad: 80px;
  --label: 298px;
  --gap: 30px;
  --stack: 32px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: "Geist", system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
/* Hover: a slow wave under the link. The straight underline is kept for the current page. */
a:not(.tile):not(.home-link) { position: relative; }
a:not(.tile):not(.home-link):hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 5px; background: currentColor; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 5'%3E%3Cpath d='M0 2.5Q4 0 8 2.5T16 2.5' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x 0 0 / 16px 5px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 5'%3E%3Cpath d='M0 2.5Q4 0 8 2.5T16 2.5' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x 0 0 / 16px 5px;
  animation: squiggle 1.8s linear infinite;
}
a[aria-current="page"]:hover::after { display: none; }
@keyframes squiggle { to { -webkit-mask-position: -16px 0; mask-position: -16px 0; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1760px; margin: 0 auto; }

/* Type */
.display { font-size: 44px; line-height: 1.16; font-weight: 500; letter-spacing: -0.02em; }
.name { font-size: 26px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
.lead { font-size: 26px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }
.ui { font-weight: 500; }
.small { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }

/* Header and footer */
.site-header { display: flex; align-items: baseline; justify-content: space-between; padding: 30px var(--pad); border-bottom: 1px solid var(--line); font-weight: 500; }
.site-header .side { width: 300px; }
.site-header .locale { display: flex; justify-content: flex-end; align-items: baseline; gap: 14px; font-weight: 400; font-size: 14px; color: var(--muted); }
.lens-toggle { align-self: center; width: 22px; height: 22px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; }
.lens-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.lens-toggle[aria-pressed="false"] { color: var(--faint); }
.lens-toggle[aria-pressed="false"] svg { stroke-dasharray: 2 2.2; }
.lens-toggle:hover { color: var(--accent); }
.lens-toggle { position: relative; }
.lens-toggle::after { content: attr(data-tip); position: absolute; top: calc(100% + 10px); right: -4px; padding: 6px 9px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 12px; line-height: 1; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(-3px); transition: opacity .15s ease, transform .15s ease; z-index: 10; }
.lens-toggle:hover::after, .lens-toggle:focus-visible::after { opacity: 1; transform: none; }

.site-header nav { display: flex; gap: 30px; }
.site-header .home-link:hover { text-decoration: none; }
.wordmark { position: relative; display: inline-block; }
.wordmark canvas { position: absolute; pointer-events: none; }
.wordmark.dither { color: transparent; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 36px var(--pad) 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; gap: 24px; color: var(--ink); }

/* Home */
.intro { display: flex; padding: 84px var(--pad) 0; }
.intro .identity { width: var(--label); flex: none; }
.intro .identity p + p { margin-top: 6px; }
.intro .statement { flex: 1; min-width: 0; }
.intro h1 { color: var(--muted); }
.intro h1 b { color: var(--ink); font-weight: 500; }
.links { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-top: 40px; font-weight: 500; }
.ticker { overflow: hidden; margin-top: 72px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; gap: 64px; padding-right: 64px; list-style: none; font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; color: var(--faint); white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }
.filters { display: flex; flex-wrap: wrap; gap: 8px 30px; align-items: center; padding: 80px var(--pad) 0; font-weight: 500; }
.filters button { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; padding: 2px 0; }
.filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"]::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.grid { display: flex; gap: var(--gap); align-items: flex-start; padding: 32px var(--pad) 120px; }
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--stack); }
.tile { display: block; }
.tile:hover { text-decoration: none; }
.tile .media { position: relative; border-radius: 12px; overflow: hidden; background: var(--tile); }
.tile .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile .media .preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.tile .media .preview.playing { opacity: 1; }
.tile:hover .media img, .tile:hover .media .preview { transform: scale(1.025); }
.tile .cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 15px; }
.tile .cap > span:last-child { color: var(--muted); text-align: right; }
.tile[hidden] { display: none; }

/* Inner pages */
.page-head { display: flex; padding: 84px var(--pad) 0; }
.page-head .label { width: var(--label); flex: none; }
.page-head .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.back { color: var(--muted); font-weight: 500; }
.facts { display: flex; padding: 56px var(--pad) 0; }
.facts::before { content: ""; width: var(--label); flex: none; }
.facts dl { flex: 1; display: flex; flex-wrap: wrap; gap: 14px 30px; border-top: 1px solid var(--line); padding-top: 20px; }
.facts dl div { flex: 1 1 160px; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { font-weight: 500; }
.media-block { padding: 30px var(--pad) 0; display: flex; flex-direction: column; gap: 30px; }
.media-block:first-of-type { padding-top: 72px; }
.media-row { display: flex; gap: 30px; }
.media-row > * { flex: 1; min-width: 0; }
.frame { border-radius: 12px; overflow: hidden; background: var(--tile); }
.frame img { width: 100%; height: auto; }
.frame.portrait { max-width: 735px; margin: 0 auto; width: 100%; }
.next { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 140px var(--pad) 120px; }
.next p { margin-bottom: 8px; }
.next .name a:hover { text-decoration: none; opacity: .7; }

/* About and contact */
.split { display: flex; gap: 80px; padding: 84px var(--pad) 140px; }
.split .portrait { width: 520px; flex: none; border-radius: 12px; overflow: hidden; align-self: flex-start; background: var(--tile); }
.split .portrait img { width: 100%; height: auto; }
.split .copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.bio { font-size: 26px; line-height: 1.32; font-weight: 500; letter-spacing: -0.01em; }
.list .small { margin-bottom: 2px; }
.list ul { list-style: none; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list li span:first-child { font-weight: 500; }
.list li span:last-child { color: var(--muted); text-align: right; }
.contact-label { width: var(--label); flex: none; }
.reveal { display: inline-block; margin-top: 4px; text-align: left; font-family: "Geist Mono", ui-monospace, monospace; font-size: 18px; font-weight: 500; letter-spacing: 0.01em; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 5px; overflow-wrap: anywhere; }
.reveal[data-state="jumbled"] { color: var(--muted); }
.reveal[data-state="done"] { text-decoration: none; user-select: all; cursor: copy; }
.reveal-hint { margin-top: 10px; min-height: 1.4em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.reveal-hint a { color: var(--ink); }
.copied { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); animation: rise .35s ease-out both; }
.copied svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; animation: draw .5s .1s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(3px); } }

/* Film player */
.film { position: relative; border-radius: 12px; overflow: hidden; background: #0d0d0d; isolation: isolate; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film .start { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 13px; border-radius: 999px; background: rgba(255,255,255,0.94); color: var(--ink); font-size: 15px; font-weight: 500; transition: opacity .3s ease, transform .3s ease; }
.film .start em { font-style: normal; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.film .start svg { width: 12px; height: 12px; }
.film:hover .start { transform: translateY(-2px); }
.film.active .start { opacity: 0; pointer-events: none; transform: translateY(6px); }
.film .sound { position: absolute; right: 16px; bottom: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,0.94); color: var(--ink); font-size: 13px; font-weight: 500; }
.film .bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; display: flex; align-items: center; gap: 14px; color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; background: linear-gradient(transparent, rgba(0,0,0,0.55)); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.film.active.show .bar, .film.active.paused .bar { opacity: 1; pointer-events: auto; }
.film.active.idle:not(.paused) { cursor: none; }
.film .bar svg { width: 16px; height: 16px; display: block; }
.film .track { flex: 1; height: 18px; display: flex; align-items: center; cursor: pointer; }
.film .rail { position: relative; flex: 1; height: 2px; background: rgba(255,255,255,0.3); border-radius: 2px; transition: height .15s ease; }
.film .track:hover .rail { height: 4px; }
.film .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: #fff; border-radius: 2px; }
.films { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.films .wide { grid-column: 1 / -1; }
.films.squares { grid-template-columns: repeat(3, 1fr); }

/* Lens layer (home, desktop) */
#lens { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 5; }
.lens-on .tile .media img, .lens-on .tile .media .preview.playing { opacity: 0; }
.lens-type .w { color: transparent; }
.lens-type .site-header, .lens-type .site-footer { border-color: transparent; }
.lens-type .filters button[aria-pressed="true"]::before { opacity: 0; }
.lens-type .tile .media { background: transparent; }

/* Tablet: 800 to 1279 */
@media (max-width: 1279px) {
  :root { --pad: 40px; --stack: 28px; --gap: 24px; }
  .display { font-size: 36px; line-height: 1.18; letter-spacing: -0.015em; }
  .site-header { padding: 26px var(--pad); }
  .site-header .side { width: auto; }
  .site-header .locale > span:first-child { display: none; }
  .intro, .page-head { flex-direction: column; gap: 32px; padding-top: 64px; }
  .intro .identity, .page-head .label, .contact-label { width: auto; }
  .page-head { gap: 20px; padding-top: 56px; }
  .ticker { margin-top: 56px; }
  .filters { padding-top: 64px; }
  .grid { padding-top: 28px; padding-bottom: 100px; }
  .facts { padding-top: 32px; }
  .facts::before { display: none; }
  .media-block { gap: 24px; padding-top: 24px; }
  .media-block:first-of-type { padding-top: 48px; }
  .media-row { gap: 24px; }
  .frame.portrait { max-width: 480px; }
  .next { padding: 96px var(--pad); }
  .split { flex-direction: column; gap: 48px; padding: 64px var(--pad) 100px; }
  .split .portrait { width: 400px; max-width: 100%; }
  .films.squares { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile: below 800 */
@media (max-width: 799px) {
  :root { --pad: 20px; --stack: 32px; }
  .display { font-size: 30px; line-height: 1.18; }
  .name { font-size: 22px; }
  .lead, .bio { font-size: 19px; line-height: 1.4; }
  .site-header { padding: 20px var(--pad); }
  .site-header nav { gap: 18px; }
  .site-footer { flex-direction: column; padding: 28px var(--pad) 32px; }
  .intro { padding-top: 44px; gap: 28px; }
  .links { gap: 8px 18px; margin-top: 28px; }
  .ticker { margin-top: 44px; }
  .ticker ul { font-size: 22px; gap: 40px; padding-right: 40px; }
  .ticker-track { animation-duration: 55s; }
  .filters { padding-top: 48px; gap: 8px 18px; }
  .grid { padding-top: 24px; padding-bottom: 80px; }
  .page-head { padding-top: 32px; }
  .media-block, .media-row { gap: 12px; }
  .media-block { padding-top: 12px; }
  .media-block:first-of-type { padding-top: 32px; }
  .media-row { flex-direction: column; }
  .frame.portrait { max-width: none; }
  .films, .films.squares { grid-template-columns: 1fr; gap: 12px; }
  .next { flex-direction: column; align-items: flex-start; padding: 64px var(--pad); }
  .split { padding: 32px var(--pad) 80px; gap: 32px; }
  .split .portrait { width: 100%; }
  .list li { flex-direction: column; gap: 2px; }
  .list li span:last-child { text-align: left; }
}
/* Cap-height alignment: trim the space above the first line so the tops of
   neighbouring text blocks (and images) line up on the capitals, not the line box. */
.intro .identity .name, .intro h1, .page-head .label, .page-head h1,
.split .copy > h1, .contact-label h1, .split .copy > div > .small:first-child,
.list .small, .facts dt, .next .small {
  text-box: trim-start cap alphabetic;
}
.next { align-items: last baseline; }
.list li, .site-footer, .tile .cap { align-items: baseline; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 0.01s !important; }
  a:hover::after { animation: none !important; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker-track { animation: none; width: auto; }
  .ticker ul { flex-wrap: wrap; gap: 6px 32px; padding: 0 var(--pad); white-space: normal; }
  .ticker ul[aria-hidden] { display: none; }
}

.lens-toggle[hidden] { display: none; }
