:root {
  color-scheme: dark;
  --paper: #f2f1ea;
  --ink: #080909;
  --gutter: clamp(20px, 5.8vw, 120px);
  --nav-height: clamp(70px, 9svh, 100px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--paper);
  background: #000;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
[hidden] { display: none !important; }
::selection { background: #d7dec9; color: #151711; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.site-layout { position: relative; isolation: isolate; }
.metal-track { position: absolute; inset: 0 0 auto; height: var(--ribbon-track-height, 100%); z-index: -1; pointer-events: none; }
.metal {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: #000;
}
.metal::before, .metal canvas {
  position: absolute; inset: -6% auto auto calc(37% - var(--ribbon-travel, 0%));
  width: 72%; height: 115%;
}
.metal::before { content: ""; background: url("satin.webp") center / cover no-repeat; }
.metal.live::before { display: none; }
.profile-header {
  position: relative; height: 82vh; height: 82svh; min-height: 310px;
  display: grid; align-items: end;
  padding: 0 var(--gutter) clamp(40px, 9svh, 124px);
  overflow: clip;
}
.identity { width: max-content; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1 {
  display: flex; align-items: center; width: fit-content;
  font: italic 750 clamp(68px, 17.4vw, 340px)/.92 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.09em; color: #f5f5ef;
}
.badge {
  position: relative;
  display: block;
  width: 2.55em;
  margin-inline-end: -.14em;
  transform: translateY(.065em);
  height: .76em;
  overflow: hidden;
}
.badge img { position: absolute; width: 140%; left: -22%; top: -104%; }
.badge .reflection {
  /* Lift the dark bevels as the light passes and let the rim scatter a little light. */
  filter: contrast(.72) brightness(2.65) drop-shadow(0 0 .025em #d7eaffaa);
  --light-band: linear-gradient(105deg,
    transparent calc(var(--glint, -30%) - 19%),
    #fff8 calc(var(--glint, -30%) - 9%),
    white calc(var(--glint, -30%) - 2%),
    white calc(var(--glint, -30%) + 2%),
    #fff6 calc(var(--glint, -30%) + 7%),
    transparent calc(var(--glint, -30%) + 15%));
  -webkit-mask-image: var(--light-band);
  mask-image: var(--light-band);
  pointer-events: none;
}
@property --glint { syntax: '<percentage>'; inherits: false; initial-value: -30%; }
@keyframes badge-glint { 0%, 38% { --glint: -30%; } 78%, 100% { --glint: 130%; } }
.profile-details {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .35em .85em;
  margin: .74em 0 0 .22em; font-size: clamp(28px, 2.75vw, 50px);
}
.profile-location {
  white-space: nowrap;
  color: #c9c9c2; font-size: .68em; letter-spacing: -.025em;
}
.local-clock {
  display: inline-flex; align-items: center; gap: .42em; margin: 0;
  color: #e6e6df; font-size: clamp(28px, 2.75vw, 50px); line-height: 1;
  letter-spacing: -.052em; font-weight: 430; font-variant-numeric: tabular-nums;
}
.local-clock time { align-self: baseline; }
.clock-face { position: relative; width: .8em; height: .8em; border: .065em solid currentColor; border-radius: 50%; }
.clock-face::before, .clock-face::after {
  content: ""; position: absolute; left: calc(50% - .035em); bottom: 50%; width: .07em; height: 24%;
  background: currentColor; border-radius: 1em; transform-origin: bottom;
  transform: rotate(var(--hour-angle));
}
.clock-face::after { height: 37%; transform: rotate(var(--minute-angle)); }
.section-nav {
  position: sticky; top: 0; z-index: 8; min-height: var(--nav-height);
  display: flex; align-items: center; gap: clamp(22px, 5.2vw, 110px); padding-inline: var(--gutter);
}
.section-nav::before {
  position: absolute; content: ""; inset: 0; z-index: -1;
  background: #080909f5; opacity: var(--nav-veil, 0); pointer-events: none;
}
.section-nav a {
  display: inline-flex; align-items: center; gap: .35em; position: relative; min-height: var(--nav-height);
  color: #e7e7e0; text-decoration: none; font-size: clamp(27px, 3.55vw, 62px);
  letter-spacing: -.073em; font-weight: 525; line-height: 1;
}
.section-nav a:hover, .section-nav a:focus-visible { color: white; }
.section-nav i { display: inline-grid; flex: none; position: relative; width: .57em; height: .57em; color: #aaada8; }
.section-nav [aria-current] i, .section-nav a:hover i { color: #f0f2e8; }
.disc-icon { border: .047em solid; border-radius: 50%; place-items: center; }
.disc-icon::after { content: ""; width: 28%; height: 28%; border: .04em solid; border-radius: 50%; }
.pad-icon { background: currentColor; clip-path: polygon(0 35%,35% 35%,35% 0,65% 0,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0 65%); }
.project-icon::before, .project-icon::after { content: ""; position: absolute; width: 51%; height: 51%; border: .04em solid; }
.project-icon::before { left: 0; top: 0; }
.project-icon::after { right: 0; bottom: 0; }
.section-nav [aria-current]::after { content: ""; position: absolute; bottom: .15em; left: .93em; right: -.06em; height: 2px; background: currentColor; }
main { min-width: 0; }
main > section:not(.poolrooms) { position: relative; }
main h2 {
  scroll-margin-top: calc(var(--nav-height) + 18px);
  font-size: clamp(65px, 8.9vw, 174px); line-height: .93; font-weight: 530; letter-spacing: -.08em;
  margin-bottom: clamp(28px,4vw,75px);
}
h2 em { font-weight: 400; }
h2:focus { outline: none; }
.listening-room {
  padding: clamp(65px, 10vw, 156px) max(var(--gutter), calc((100vw - 1400px)/2)) clamp(90px, 13vw, 225px);
  background: linear-gradient(177deg, #0000, #0a0b0cdd 19%, #0d0e0ff5 64%, #101212);
}
.listening-room .record { max-width: 1300px; }
section[aria-labelledby="games"] {
  padding: clamp(65px,10vw,155px) max(var(--gutter), calc((100vw - 1600px)/2)) clamp(80px,10vw,160px);
  color: #171916;
  background: #bfc3b8;
}
/* The negative-space cuts extend each scene into the one before it. */
section[aria-labelledby="games"]::before, section[aria-labelledby="projects"]::before {
  content: ""; position: absolute; inset: auto 0 calc(100% - 1px); height: clamp(32px, 6vw, 112px);
  pointer-events: none; background: inherit;
}
section[aria-labelledby="games"]::before {
  clip-path: polygon(0 100%, var(--cut-left, 8%) 83%, 83% 0, 100% 0, 100% 100%);
}
section[aria-labelledby="projects"]::before {
  clip-path: polygon(0 0, 12% 0, var(--cut-right, 92%) 88%, 100% 100%, 0 100%);
}
section[aria-labelledby="games"] h2 { position: relative; z-index: 1; }
section[aria-labelledby="projects"] {
  padding: clamp(65px,11vw,180px) max(var(--gutter), calc((100vw - 1400px)/2)) clamp(70px, 12vw, 200px);
  background: #111311;
}
.entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 34px); }
.work { display: block; color: inherit; text-decoration: none; min-width: 0; }
.work h3 { margin-top: 16px; font-size: clamp(22px, 2.4vw, 40px); font-weight: 550; line-height: 1.08; letter-spacing: -.055em; overflow-wrap: anywhere; }
.work p { max-width: 32ch; margin-top: 8px; color: #bfc1c2; font-size: 15px; line-height: 1.45; }
.work small { display: block; color: #a3a6a9; font-size: 12px; margin-top: 8px; }
.project-art { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.2; container-type: inline-size; }
.wii-art { background: radial-gradient(ellipse at 50% 28%, #e6f4fc, #9db5c3 65%, #61747f); }
.gamepad {
  position: absolute; width: 93%; height: 63%; top: 19%; left: 3.5%;
  border-radius: 18% / 28%;
  background: linear-gradient(155deg, #fff 8%, #e6e7e5 35%, #b0b5b9 96%);
  box-shadow: inset 1px 2px 2px #fff, inset -2px -5px 3px #959b9d, 0 6px 0 #7c8386, 3px 18px 16px #29404e61;
  transform: perspective(700px) rotateY(-12deg) rotateZ(-9deg);
}
.pad-screen {
  position: absolute; inset: 15% 19% 16%;
  display: grid; place-items: center;
  overflow: hidden;
  border: 2.4cqi solid #24282a; border-radius: 8%;
  background: linear-gradient(150deg, #f8ffff, #c5d6dc);
  box-shadow: 0 0 0 1px #888, 0 2px 2px #fff;
}
.menu-tiles { width: 83%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.menu-tiles img { display: block; width: 100%; height: auto; border-radius: 15%; box-shadow: 0 1px 3px #2334; }
.stick { position: absolute; width: 9%; aspect-ratio: 1; left: 5%; top: 17%; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #f3f3f3 10%, #d6d8d7 60%, #a0a8ab 77%, #f8f8f8); box-shadow: 0 2px 3px #3335; }
.right-stick { left: auto; right: 5%; }
.dpad { position: absolute; width: 9%; aspect-ratio: 1; left: 5.5%; top: 46%; background: linear-gradient(#8b9195,#a9acaf) center / 34% 100% no-repeat,linear-gradient(#979ca0,#a9acaf) center / 100% 34% no-repeat; }
.action-keys { position: absolute; width: 12%; aspect-ratio: 1; top: 43%; right: 4%; background: radial-gradient(circle at 50% 16%, #a8adb0 0 13%, transparent 16%),radial-gradient(circle at 50% 84%, #a8adb0 0 13%, transparent 16%),radial-gradient(circle at 16% 50%, #a8adb0 0 13%, transparent 16%),radial-gradient(circle at 84% 50%, #a8adb0 0 13%, transparent 16%); }
.notch-art { background: radial-gradient(ellipse at 60% 0%, #a8a2a0, #65666b 54%, #36373c); }
.laptop-lid {
  position: absolute; width: 119%; height: 102%; top: 35%; left: -7%;
  border-radius: 5cqi; padding: 2cqi;
  border: 1px solid #eeeced;
  transform: perspective(600px) rotateY(-12deg) rotateZ(-7deg);
  background: #101013; box-shadow: 0 -2px 1px #77797b, 0 6px 24px #0005;
}
.laptop-screen {
  height: 100%; border-radius: 3.3cqi; overflow: hidden;
  background: radial-gradient(ellipse at 90% 102%, #152239 0 36%, transparent 36.5%),
    radial-gradient(ellipse at 100% 122%, #8f3e3e 0 60%, transparent 60.7%),
    linear-gradient(125deg,#b1c5ca, #6d8c9a 44%, #2c485b 74%);
}
.notch-island { position: relative; display: flex; justify-content: space-between; align-items: center; margin: -1px auto 0; padding: 0 2cqi 1cqi; width: 36%; height: 8.3cqi; border-radius: 0 0 2.6cqi 2.6cqi; background: #08080a; }
.notch-island img { width: 5.3cqi; height: 5.3cqi; border-radius: 1cqi; }
.lens { position: absolute; top: 28%; left: 50%; width: 1.6cqi; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #2b455a, #03040a 80%); }
.sound-bars { width: 5.5cqi; height: 3.7cqi; background: repeating-linear-gradient(90deg, #e4ce86 0 12%, transparent 12% 21%); clip-path: polygon(0 30%, 20% 30%, 20% 0, 40% 0, 40% 40%, 64% 40%, 64% 18%, 82% 18%, 82% 42%, 100% 42%, 100% 68%, 78% 68%, 78% 92%, 62% 92%, 62% 60%, 40% 60%, 40% 100%, 20% 100%, 20% 74%, 0 74%); }

.entries { align-items: start; gap: clamp(24px, 6vw, 110px); }
.work:nth-child(2) { margin-top: clamp(48px, 9vw, 150px); }
.project-art { aspect-ratio: 1.45; }
.work h3 { font-size: clamp(28px, 3.5vw, 60px); }
.work p { font-size: clamp(15px, 1.2vw, 20px); }
.work small { font-size: 13px; }
.in-poolrooms .section-nav:not(:focus-within) { visibility: hidden; opacity: 0; pointer-events: none; }
@media (min-width: 760px) {
  .listening-room .record { grid-template-columns: minmax(0,1.13fr) minmax(0,.87fr); column-gap: clamp(40px,8vw,150px); }
  .listening-room .sleeve { position: sticky; top: calc(var(--nav-height) + 16px); }
}
@media (max-width: 640px) {
  :root { --nav-height: 62px; --gutter: 6vw; }
  .profile-header { height: 75svh; min-height: 270px; padding-bottom: 8svh; }
  h1 { font-size: 21vw; }
  .metal::before, .metal canvas { left: calc(7% - var(--ribbon-travel, 0%)); width: 105%; }
  .section-nav { gap: 0; justify-content: space-between; }
  .section-nav a { font-size: clamp(22px, 5.85vw, 36px); }
  .entries { grid-template-columns: minmax(0,1fr); gap: 50px; }
  .work:nth-child(2) { margin: 0 0 0 8%; }
  .work:first-child { margin-right: 8%; }
}
@media (max-height: 520px) and (min-width: 641px) {
  .profile-header { min-height: 210px; }
  h1 { font-size: min(17vw, 36svh); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .identity { transform: translateY(var(--hero-drift, 0px)); }
  .badge .reflection { animation: badge-glint 7s ease-in-out infinite; }
  .listening-room .vinyl { margin-right: var(--record-slip, 0%); }
  .game-theatre { clip-path: inset(0 var(--stage-opening, 0%)); }
  .game-theatre:focus-within { clip-path: none; }
  .project-art .gamepad { rotate: var(--project-turn, 0deg); }
  .project-art .laptop-lid { translate: 0 var(--project-lift, 0%); }
  .section-nav { transition: opacity 280ms ease; }
  .gamepad, .laptop-lid { transition: transform 360ms ease; }
  .work:hover .gamepad, .work:focus-visible .gamepad { transform: perspective(700px) rotateY(-6deg) rotateZ(-5deg) translateY(-2%); }
  .work:hover .laptop-lid, .work:focus-visible .laptop-lid { transform: perspective(600px) rotateY(-6deg) rotateZ(-4deg) translateY(-3%); }
}
