@import url("fonts.css");

/* Henry Kennedy — modelled on jesperlandberg.com (Awwwards Site of the Day, Sep 2026):
   a black room, the work on a curved wall (assets/js/wall.js), small labels in the
   four corners, a full index by name, and every project on a white sheet. */

:root {
  --bg: #000;
  --ink: #fff;
  --dim: rgb(255 255 255 / .56);
  --faint: rgb(255 255 255 / .3);
  --line: rgb(255 255 255 / .14);
  --paper: #fff;
  --pink: #0d0d0d;
  --pdim: #646464;
  --pline: #e7e7e7;
  --sans: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --edge: clamp(16px, 2.6vw, 38px);
  --radius: 18px;

  --ease-out: cubic-bezier(.16, .84, .24, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
  --reveal: 900ms;
  --arrive: 1000ms;
  --stagger: 80ms;
  --rise: 22px;
  --focus: currentColor;
  --selection: #fff;
  --selection-ink: #000;
}

html { background: var(--bg); color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
a { color: inherit; }
button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.icon { width: 18px; height: 18px; flex: none; }
.skip { background: #fff; color: #000; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.label { font-size: 12px; line-height: 1.2; font-weight: 560; text-transform: uppercase; letter-spacing: .06em; }

/* ------------------------------------------------------- the four corners -- */
.chrome {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--edge);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 560;
  text-transform: uppercase;
  letter-spacing: .06em;
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }
.chrome--top { top: 0; align-items: flex-start; }
.chrome--bottom { bottom: 0; align-items: flex-end; }
.chrome a, .chrome-link { display: inline-block; min-width: 44px; padding: 16px 0; text-decoration: none; color: var(--ink); transition: color 300ms; }
.chrome--top { margin-top: -6px; }
.chrome--bottom { margin-bottom: -6px; }
.chrome-pair a { padding-inline: 4px; }
.chrome-pair a:first-child { padding-left: 0; }
.chrome-name span { display: block; }
.chrome-sub { margin-top: 6px; color: var(--dim); }
.chrome-pair { display: inline-flex; align-items: center; }
.chrome-pair > span { color: var(--dim); white-space: pre; }
.chrome-pair a:not([aria-current]) { color: var(--dim); }
@media (hover: hover) {
  .chrome a:hover, .chrome-link:hover, .chrome-pair a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
}

/* ------------------------------------------------------------------ home -- */
.home main { padding: 112px var(--edge) 96px; }
.intro { max-width: 36ch; margin-bottom: 30px; }
.intro-title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; font-weight: 520; letter-spacing: -.02em; }
.intro-line { margin-top: 10px; color: var(--dim); }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.card {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: clip;
  border-radius: var(--radius);
  background: #111;
  color: #fff;
  text-decoration: none;
}
.card-media, .card-media picture, .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-media img { object-fit: cover; transition: scale 900ms var(--ease-out); }
.card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 50%, rgb(0 0 0 / .62)); }
.card-name { position: absolute; left: 20px; bottom: 18px; z-index: 2; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.1; letter-spacing: -.01em; }
.card-tag { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.card-go { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #000; color: #fff; transition: background-color 300ms, color 300ms; }
.card-type { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: radial-gradient(circle at 50% 40%, #222, #0a0a0a 70%); }
.card-type b { font-size: clamp(110px, 16vw, 200px); line-height: .78; font-weight: 640; letter-spacing: -.06em; }
.card-type span { font-size: 12px; font-weight: 560; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
@media (hover: hover) {
  .card:hover .card-media img { scale: 1.035; }
  .card:hover .card-go { background: #fff; color: #000; }
}
.wall-hint { display: none; }

/* the wall is on: the room is the canvas, and the list stays for keyboards and screen readers */
html.has-wall, html.has-wall body { height: 100%; overflow: hidden; }
html.has-wall .home main { padding: 0; }
html.has-wall .intro, html.has-wall .cards { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wall-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.wall-canvas.is-dragging { cursor: grabbing; }
.wall-canvas.is-over { cursor: pointer; }
html.has-wall .wall-hint { display: block; position: fixed; left: 50%; bottom: 24px; z-index: 30; translate: -50% 0; color: var(--dim); transition: opacity 600ms; pointer-events: none; }
html.has-wall .wall-hint.is-gone { opacity: 0; }

/* --------------------------------------------------------------- profile -- */
.profile {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}
.profile:popover-open { display: grid; place-items: center; }
.profile::backdrop { background: rgb(0 0 0 / .55); }
/* the page's own corners step aside while the profile's corners are up */
body:has(.profile:popover-open) .chrome { opacity: 0; pointer-events: none; }
body:has(.profile:popover-open) .wall-hint { opacity: 0; }
.profile-top { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: flex-start; padding: 14px var(--edge); font-size: 12px; font-weight: 560; text-transform: uppercase; letter-spacing: .06em; }
.profile-top a, .profile-top .chrome-link { display: inline-block; min-width: 44px; padding: 16px 0; margin-top: -6px; text-decoration: none; }
.lens {
  position: relative;
  display: grid;
  place-items: center;
  width: min(76vmin, 680px);
  aspect-ratio: 1;
  padding: 14%;
  border-radius: 50%;
  text-align: center;
  background: radial-gradient(circle, rgb(0 0 0 / .94) 0 58%, rgb(0 0 0 / .6) 66%, rgb(255 255 255 / .05) 70.5%, transparent 71%);
  backdrop-filter: blur(24px) saturate(1.8) brightness(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.8) brightness(1.2);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28), inset 0 0 90px 6px rgb(255 255 255 / .08), 0 50px 140px rgb(0 0 0 / .7);
}
.lens::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgb(255 255 255 / .7), rgb(150 205 255 / .22), rgb(255 255 255 / .06), rgb(215 247 74 / .3), rgb(255 160 220 / .2), rgb(255 255 255 / .7));
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63.5%, #000 70%, transparent 71%);
  mask: radial-gradient(circle, transparent 62%, #000 63.5%, #000 70%, transparent 71%);
  opacity: .75;
  pointer-events: none;
}
.lens-in { position: relative; display: grid; gap: 18px; justify-items: center; }
.lens-bio { max-width: 34ch; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.45; }
.lens-facts { max-width: 40ch; color: var(--dim); line-height: 1.5; }
.lens-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.lens-links a { display: inline-block; padding: 10px 2px; text-decoration: none; }
.lens-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .lens::before { animation: turn 24s linear infinite; }
  .profile .lens { transition: scale 700ms var(--ease-out), opacity 500ms var(--ease-out); }
  .profile:not(:popover-open) .lens { scale: .9; opacity: 0; }
  @starting-style { .profile:popover-open .lens { scale: .9; opacity: 0; } }
  .profile { transition: display 500ms allow-discrete, overlay 500ms allow-discrete; }
}
@keyframes turn { to { rotate: 1turn; } }

/* ------------------------------------------------------------------ full -- */
.full-room { min-height: 100svh; display: grid; place-content: center; padding: 120px clamp(16px, 7vw, 140px); text-align: center; }
.full-list { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; max-width: 1000px; margin: 0 auto; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.32; letter-spacing: -.015em; }
.full-list li:not(:last-child)::after { content: "·"; margin: 0 .32em; color: var(--dim); }
.full-list a { display: inline-block; padding: 7px 0; text-decoration: none; transition: color 300ms; text-shadow: 0 1px 18px rgb(0 0 0 / .6); }
@media (hover: hover) { .full-list:has(a:hover) a:not(:hover) { color: var(--faint); } }
.full-note { margin-top: 40px; color: var(--dim); }
.full-peek { position: fixed; left: 0; top: 0; z-index: 0; width: clamp(220px, 22vw, 340px); aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; pointer-events: none; opacity: 0; transition: opacity 250ms; }
.full-peek.is-on { opacity: 1; }

/* ----------------------------------------------------------------- sheet -- */
.sheet-room { min-height: 100svh; padding: 12px; }
.sheet {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4.4vw, 72px);
  min-height: calc(100svh - 24px);
  padding: clamp(24px, 3.4vw, 52px);
  border-radius: 22px;
  background: var(--paper);
  color: var(--pink);
}
.sheet ::selection { background: #000; color: #fff; }
.sheet :focus-visible { outline-color: #000; }
.sheet-side { position: sticky; top: clamp(24px, 3.4vw, 52px); align-self: start; display: grid; gap: 20px; max-width: 32rem; }
.sheet-crumb { color: var(--pdim); }
.sheet-crumb a { text-decoration: none; }
.sheet-crumb a:hover { color: var(--pink); }
.sheet-title { font-size: clamp(36px, 3.6vw, 56px); line-height: 1; font-weight: 520; letter-spacing: -.03em; }
.sheet-line { font-size: 16px; line-height: 1.55; }
.sheet-line--dim { color: var(--pdim); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.round { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pink); color: #fff; transition: background-color 300ms; }
.round .icon { width: 16px; height: 16px; }
.round:hover { background: #444; }
.tag { padding: 10px 13px; border-radius: 999px; background: #f0f0f0; font-size: 12px; line-height: 1; font-weight: 560; text-transform: uppercase; letter-spacing: .06em; }
.meta { border-top: 1px solid var(--pline); }
.meta > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--pline); font-size: 14px; }
.meta dt { color: var(--pdim); }
.meta dd { margin: 0; text-align: right; }
.meta a { display: inline-block; padding: 12px 0; margin: -12px 0; text-decoration: none; }
.meta a:hover { text-decoration: underline; }
.sheet-next { display: flex; align-items: center; gap: 12px; width: fit-content; margin-top: 6px; padding: 8px 0; font-size: 20px; letter-spacing: -.01em; text-decoration: none; }
.sheet-next .label { color: var(--pdim); }
.sheet-next .icon { transition: translate 400ms var(--ease-out); }
.sheet-next:hover .icon { translate: 5px 0; }
.sheet-next--end { display: none; }
.sheet-media { display: grid; gap: 18px; align-content: start; padding-top: 58px; }
.shot { margin: 0; overflow: clip; border-radius: 12px; background: #f1f1f1; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 12px 14px; color: var(--pdim); }
.shot--type { display: grid; place-items: center; aspect-ratio: 3 / 2; background: radial-gradient(circle at 50% 40%, #222, #0a0a0a 70%); color: #fff; }
.big-type { display: grid; justify-items: center; gap: 12px; }
.big-type b { font-size: clamp(140px, 18vw, 260px); line-height: .78; font-weight: 640; letter-spacing: -.06em; }
.big-type span { font-size: 12px; font-weight: 560; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.sec { display: grid; gap: 12px; max-width: 42rem; padding: 30px 2px 14px; }
.sec-label { color: var(--pdim); }
.sec-title { font-size: clamp(22px, 2vw, 28px); line-height: 1.12; font-weight: 520; letter-spacing: -.02em; }
.sec p { font-size: 16px; line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.steps li { display: grid; align-content: start; gap: 8px; padding: 16px; border-radius: 12px; background: #f3f3f3; }
.steps .label { color: var(--pdim); }
.steps b { font-size: 18px; font-weight: 600; }
.steps span:last-child { font-size: 14px; line-height: 1.45; color: #333; }
.facts { border-top: 1px solid var(--pline); }
.facts li { padding: 11px 0; border-bottom: 1px solid var(--pline); font-size: 15px; }
.facts a { text-decoration: none; }
.facts a:hover { text-decoration: underline; }
.sheet-close { position: fixed; top: 30px; right: 30px; z-index: 20; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--pink); color: #fff; box-shadow: 0 6px 24px rgb(0 0 0 / .18); transition: scale 400ms var(--ease-out); }
.sheet-close:hover { scale: 1.08; }

/* ------------------------------------------------------------------ lost -- */
.lost-room { min-height: 100svh; display: grid; place-content: center; gap: 14px; padding: 120px var(--edge); text-align: center; }
.lost-title { font-size: clamp(40px, 6vw, 88px); line-height: 1; font-weight: 520; letter-spacing: -.035em; }
.lost-line { color: var(--dim); }
.lost-line a { color: var(--ink); }

/* ---------------------------------------------------------------- phones -- */
@media (max-width: 44.99em) {
  .chrome--top { background: linear-gradient(rgb(0 0 0 / .92) 55%, transparent); padding-bottom: 26px; }
  .chrome--bottom { background: linear-gradient(transparent, rgb(0 0 0 / .92) 45%); padding-top: 26px; }
  .home main { padding-top: 104px; }
  .cards { gap: 12px; }
  .lens { width: 94vw; padding: 15% 13%; }
  .lens-bio { font-size: 15px; }

  .sheet-room { padding: 8px; }
  .sheet { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 28px; border-radius: 18px; }
  .sheet-side { position: static; }
  .sheet-media { padding-top: 0; }
  .sheet-next--side { display: none; }
  .sheet-next--end { display: flex; margin-top: 10px; }
  .sheet-close { top: 18px; right: 18px; width: 46px; height: 46px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
