:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background: #000;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 8px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 12px 18px; background: #000; }
.skip-link:focus { top: 20px; }
.portfolio-home { position: relative; isolation: isolate; display: grid; grid-template-rows: auto auto auto; align-content: start; row-gap: var(--page-extra-gap, 0px); min-height: 150svh; overflow: hidden; }
.photo-background {
  --photo-fade: linear-gradient(to bottom, transparent, #000 14%, #000 58%, transparent), linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  position: absolute; z-index: -1; inset: 28px max(24px, calc((100% - 1440px) / 2)) 0; pointer-events: none; opacity: .3;
}
.hero-photo { position: relative; z-index: 2; display: block; width: 100%; height: auto; }
/* Feather all four edges and corners; keep the unblurred photo above its extension. */
.hero-photo, .photo-background::before {
  -webkit-mask-image: var(--photo-fade);
  -webkit-mask-composite: source-in;
  mask-image: var(--photo-fade);
  mask-composite: intersect;
}
.photo-background::before {
  content: ""; position: absolute; z-index: 1; top: 0; left: 0; right: 0;
  aspect-ratio: 1586 / 992;
  background: url('assets/keyboardist-natural-nails.png') center / 100% 100% no-repeat;
  transform: scale(1.3); filter: blur(55px);
}
/* A second, wider blur carries the image colors through the full extended page. */
.photo-extension {
  position: absolute; z-index: 0; inset: -100px -100px -100px;
  background: url('assets/keyboardist-natural-nails.png') center top / 100% 100% no-repeat;
  filter: blur(85px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 66%, transparent), linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 66%, transparent), linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
  mask-composite: intersect;
}
.home-intro { position: relative; min-height: min(610px, 72svh); padding: 44px 24px 80px; text-align: center; }
.home-intro h1 { width: fit-content; max-width: 100%; margin: 0 auto; font-family: var(--font-display); font-size: 174px; line-height: 1.15; font-weight: 500; overflow-wrap: anywhere; }
.home-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 48px; width: min(100%, 700px); margin: 44px auto 0; padding: 0; list-style: none; color: #c2c2c2; font-family: var(--font-display); font-size: 21px; font-style: italic; line-height: 1.5; font-weight: 400; overflow-wrap: break-word; }
.home-roles li { min-width: 0; }
.roles-divider { width: min(100%, 700px); height: 0; margin: 44px auto 0; border: 0; border-top: 1px solid #ffffff33; }
.roles-divider--top { margin-top: 55px; }
/* Undo the heading's 0.75 scale for the quote width, preserving its previous measure. */
.home-manifesto { width: min(100%, calc(var(--name-width, 570px) / .75)); margin: 44px auto 0; color: #ededed; font-family: var(--font-display); font-size: 36px; font-weight: 400; line-height: 1.55; overflow-wrap: break-word; }
.home-manifesto blockquote, .home-manifesto p { margin: 0; }
.home-manifesto figcaption { margin-top: 16px; color: #cfcfcf; font-size: 20px; }
.entry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; width: min(1180px, calc(100% - 96px)); margin: 0 auto; padding: 0 0 110px; }
.entry { min-width: 0; display: grid; grid-template-rows: auto 1fr; gap: 16px; text-decoration: none; }
.entry-photo { display: block; aspect-ratio: 1 / 1; background: #fff; opacity: .7; border-radius: 4px; transition: opacity 180ms ease; overflow: hidden; }
.entry-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.entry:hover .entry-photo, .entry:focus-visible .entry-photo { opacity: 1; }
.entry-title { font-family: var(--font-display); font-size: 28px; font-weight: 500; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.entry-pending .entry-title { color: #bdbdbd; font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: 400; }
.home-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; width: min(1180px, calc(100% - 96px)); margin: 0 auto; padding: 28px 0 36px; border-top: 1px solid #ffffff24; font-size: 14px; color: #bdbdbd; }
.home-footer a { text-decoration: none; }
.home-footer a:hover { color: #fff; }
@media (max-width: 960px) {
  .home-intro h1 { font-size: 132px; }
  .home-intro { min-height: min(520px, 70svh); }
  .home-roles { font-size: 21px; }
  .entry-grid { gap: 36px 20px; width: calc(100% - 56px); }
  .entry-title { font-size: 25px; }
  .home-footer { width: calc(100% - 56px); }
}
@media (max-width: 600px) {
  .photo-background { inset: 16px 0 0; }
  .hero-photo { height: 500px; object-fit: cover; object-position: 49% top; }
  .photo-background::before { height: 500px; aspect-ratio: auto; background-size: cover; background-position: 49% top; filter: blur(35px); }
  .photo-extension { background-size: auto 100%; }
  .home-intro { min-height: min(470px, 72svh); padding: 42px 20px 70px; }
  .home-intro h1 { font-size: 87px; }
  .home-roles { grid-template-columns: minmax(0, 1fr); gap: 12px; font-size: 19px; line-height: 1.6; }
  .roles-divider--top { margin-top: 27px; }
  .home-manifesto { margin-top: 36px; font-size: 31.5px; line-height: 1.5; }
  .home-manifesto figcaption { font-size: 18px; }
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100% - 40px); gap: 32px 20px; padding-bottom: 68px; }
  .entry-title { font-size: 24px; }
  .entry-pending .entry-title { font-size: 14px; }
  .home-footer { width: calc(100% - 40px); font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
