:root {
  --bg: #f4f3ef;
  --ink: #111;
  --mute: #8d8a82;
  --soft: #55524b;
  --line: #d8d5cc;
  --loud: #111;
  --on: #fff;
  --pad: clamp(16px, 3.5vw, 56px);
  --head: 64px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
main { flex: 1; outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--head);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background .35s, color .35s, border-color .35s;
}
.wordmark {
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
}
.header-right { display: flex; gap: clamp(16px, 3vw, 36px); }
.hbtn {
  background: none; border: 0; padding: 10px 0; cursor: pointer;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.hbtn[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }
.hbtn#sound { color: var(--mute); }
.hbtn#sound[aria-pressed="true"] { color: inherit; }
body.menu-open .site-header { background: transparent; border-color: transparent; color: var(--mfg, var(--ink)); }
body.menu-open .hbtn#sound { color: inherit; opacity: .6; }

/* ---------- menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 30;
  background: var(--mbg, var(--bg));
  color: var(--mfg, var(--ink));
  padding: calc(var(--head) + 24px) var(--pad) 32px;
  display: flex; align-items: center;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .5s cubic-bezier(.7, 0, .2, 1), background .35s, color .35s, visibility 0s .5s;
}
body.menu-open .menu { clip-path: inset(0); visibility: visible; transition-delay: 0s; }
body.menu-open { overflow: hidden; }
.menu-list { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 1180px; margin-inline: auto; }
.menu-list a {
  display: flex; align-items: baseline; gap: clamp(12px, 2.4vw, 28px);
  padding: .06em 0;
  font-size: clamp(38px, 8.5vw, 104px); font-weight: 300; letter-spacing: -.035em; line-height: 1.04;
  text-decoration: none;
}
.menu-list .mn, .menu-list .mc {
  font-size: 12px; letter-spacing: .14em; font-weight: 400; min-width: 2.4em; opacity: .7;
}
.menu-list .mc { margin-left: auto; text-align: right; }
.menu-list .ml { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.menu-list a:hover .ml, .menu-list a:focus-visible .ml { transform: translateX(.18em); }

/* ---------- home ---------- */
.home {
  min-height: calc(100svh - var(--head));
  padding: 32px var(--pad) 48px;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.strap { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile {
  --k: 3;
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  padding: 14px 16px;
  background: var(--tile); color: #111; text-decoration: none;
  transition: background .35s, color .35s;
  -webkit-tap-highlight-color: transparent;
}
.tile:hover, .tile:focus-visible { --k: 1; background: var(--loud); color: var(--on); }
.t-n { position: absolute; bottom: 14px; left: 16px; font-size: 12px; letter-spacing: .14em; }
.t-name { display: block; font-size: clamp(22px, 3vw, 56px); font-weight: 400; letter-spacing: -.03em; line-height: .95; max-width: 85%; }
.mark { position: absolute; left: 10%; right: 10%; bottom: 10%; top: 24%; width: 80%; height: 66%; margin: auto; overflow: visible; }

/* mark animation: slow when idle (--k = 3), full speed on hover (--k = 1) */
.bar { transform-origin: center; transform-box: fill-box; animation: bar calc(1.1s * var(--k)) ease-in-out infinite alternate; animation-delay: calc(var(--i) * 45ms); }
@keyframes bar { from { transform: scaleY(.55); } to { transform: scaleY(1.12); } }
.ring { transform-origin: 50px 50px; animation: spin calc(var(--t) * var(--k) / 3) linear infinite; animation-direction: var(--dir); }
@keyframes spin { to { transform: rotate(360deg); } }
.dot { transform-origin: center; transform-box: fill-box; animation: ripple calc(1.7s * var(--k)) ease-in-out infinite; animation-delay: calc(var(--dist) * -130ms * var(--k)); }
@keyframes ripple { 0%, 100% { transform: scale(.3); } 50% { transform: scale(1.5); } }
.cube { transform-origin: 50px 44px; animation: turn calc(1.3s * var(--k)) ease-in-out infinite alternate; }
@keyframes turn { from { transform: scaleX(1); } to { transform: scaleX(.42); } }
.layer { transform-origin: 50px 90px; animation: layer calc(.7s * var(--k)) ease-in-out infinite alternate; animation-delay: calc(var(--i) * 110ms); }
@keyframes layer { from { transform: scaleX(.5); } to { transform: scaleX(1); } }

/* ---------- section pages ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: clamp(36px, 7vw, 88px) var(--pad) 96px; animation: fade .45s both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.kicker { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); display: flex; align-items: center; }
.dot { display: inline-block; width: 10px; height: 10px; background: var(--loud); margin-right: 12px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h1 {
  margin: .2em 0 .2em; font-weight: 300; text-transform: uppercase; line-height: .9; letter-spacing: -.035em;
  font-size: clamp(40px, 10.5vw, 136px);
}
.arrows { display: flex; gap: 8px; flex: none; }
.arrow {
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--loud); color: var(--on); text-decoration: none;
  transition: transform .2s;
}
.arrow svg { width: 26px; height: 26px; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.arrow[data-dir="-1"]:hover svg { transform: translateX(-4px); }
.arrow[data-dir="1"]:hover svg { transform: translateX(4px); }
.arrow:active { transform: scale(.94); }
.intro { max-width: 54ch; margin: 0; color: var(--soft); font-size: 16px; }

.facets {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  margin: 56px 0 24px; padding-top: 28px; border-top: 1px solid var(--line);
}
.facet { display: flex; align-items: center; gap: 14px; max-width: 100%; }
.f-label, .head { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.seg { display: inline-flex; border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: none; background: none; border: 0; border-right: 1px solid var(--line);
  padding: 9px 16px; cursor: pointer; white-space: nowrap;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft);
  transition: background .2s, color .2s;
}
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--ink); background: rgba(0, 0, 0, .04); }
.seg button[aria-pressed="true"] { background: var(--loud); color: var(--on); }

/* list */
.row {
  display: grid; align-items: baseline; gap: 0 24px;
  grid-template-columns: minmax(120px, 1.15fr) minmax(160px, 1.7fr) 56px minmax(90px, .9fr) minmax(190px, 1.8fr) 24px;
  padding: 16px 12px; margin: 0 -12px;
  border-bottom: 1px solid var(--line);
  transition: background .18s, color .18s;
}
.row.head { padding-top: 10px; padding-bottom: 10px; cursor: default; }
.item { margin: 0 -12px; border-bottom: 1px solid var(--line); animation: rise .4s both; animation-delay: var(--d, 0ms); scroll-margin-top: 88px; }
.item .row { margin: 0; border-bottom: 0; cursor: default; }
.item.has-more .row { cursor: pointer; }
.row.head { margin: 0 -12px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.row .c-project, .row .c-year, .row .c-label { color: var(--mute); }
.row.head .c-roles { font-size: 11px; letter-spacing: .16em; color: var(--mute); }
.row .c-roles { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.row:not(.head):hover, .row:not(.head):focus-visible, .item.open .row { background: var(--loud); color: var(--on); outline: none; }
.row:not(.head):hover span, .row:not(.head):focus-visible span, .item.open .row span { color: inherit; }
.sl { font-style: normal; margin: 0 .2em; opacity: .45; letter-spacing: 0; }
.c-tg { justify-self: end; align-self: center; }
.tg { position: relative; display: block; width: 14px; height: 14px; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.tg::before, .tg::after { content: ""; position: absolute; background: currentColor; }
.tg::before { left: 0; right: 0; top: 6px; height: 1.5px; }
.tg::after { top: 0; bottom: 0; left: 6px; width: 1.5px; }
.item.open .tg { transform: rotate(135deg); }

/* expanding panel */
.panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .7, .2, 1); }
.item.open .panel { grid-template-rows: 1fr; }
.panel-in { overflow: hidden; min-height: 0; }
.p-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; padding: 28px 12px 36px; }
.p-text p + p { margin-top: 1em; }
.p-text p { margin: 0; max-width: 52ch; font-size: 16px; color: var(--soft); }
.p-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.p-img { margin: 0; }
.p-img img { display: block; width: 100%; height: auto; }
.p-aud { margin: 0; grid-column: 1 / -1; }
.p-aud figcaption { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.player { display: flex; align-items: center; gap: 14px; }
.pl-btn { position: relative; flex: none; width: 44px; height: 44px; border: 0; padding: 0; cursor: pointer; background: var(--loud); color: var(--on); }
.pl-btn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-35%, -50%); border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }
.player.playing .pl-btn::before { width: 12px; height: 14px; transform: translate(-50%, -50%); border: 0; background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px); }
.pl-bar { position: relative; flex: 1; height: 28px; cursor: pointer; }
.pl-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: var(--line); }
.pl-fill { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; width: 0; background: var(--loud); }
.pl-time { flex: none; min-width: 5.5em; text-align: right; font-size: 11px; letter-spacing: .1em; color: var(--mute); font-variant-numeric: tabular-nums; }
.p-media.one { grid-template-columns: minmax(0, 1fr); }
.p-media.one .p-img img { width: auto; max-width: 100%; max-height: 300px; }
.slot-box { border: 1px dashed var(--mute); padding: 20px; min-height: 120px; display: grid; place-items: center; color: var(--mute); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.slot-box.ratio { aspect-ratio: 4 / 3; min-height: 0; }
.slot-box.wide { grid-column: 1 / -1; min-height: 64px; }
.p-text .slot-box { min-height: 160px; place-items: start; }
.slot-box.small { min-height: 0; padding: 12px 16px; margin-top: 20px; place-items: start; }
.p-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.p-link { display: inline-block; padding: 11px 18px; background: var(--loud); color: var(--on); text-decoration: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; transition: transform .2s; }
.p-link:hover { transform: translateY(-2px); }
.p-vid { margin: 0; grid-column: 1 / -1; }
.p-vid video { display: block; width: 100%; height: auto; background: #000; }
.p-grid.is-3d { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.viewer { position: relative; grid-column: 1 / -1; aspect-ratio: 4 / 3; background: #e7e4dc; overflow: hidden; }
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.v-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); pointer-events: none; }
.v-msg[hidden] { display: none; }
.v-hint { position: absolute; left: 14px; bottom: 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); pointer-events: none; }
.viewer[data-placeholder="1"] .v-hint::after { content: " \00b7  placeholder model"; }
.sr + .list { margin-top: 48px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.empty { color: var(--mute); padding: 32px 0; }
.slot { margin: 40px 0 0; padding: 28px; border: 1px dashed var(--line); color: var(--mute); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

.contact-row { grid-template-columns: 160px 1fr; cursor: default; }
.contact-row .ph { color: var(--mute); }
.contact-row a { text-underline-offset: 4px; }

/* ---------- footer ---------- */
.site-footer { padding: 24px var(--pad) 32px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); border-top: 1px solid var(--line); }

/* ---------- tablet / phone ---------- */
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .t-name { font-size: clamp(18px, 5.2vw, 44px); max-width: 100%; }
  .t-n { left: 14px; }
  .mark { width: 54%; height: auto; left: 23%; right: auto; top: 29%; bottom: auto; margin: 0; }
}
@media (max-width: 720px) {
  :root { --head: 56px; }
  .row.head { display: none; }
  h1 { font-size: clamp(32px, 9.2vw, 136px); }
  .arrows { gap: 6px; }
  .arrow { width: 36px; height: 36px; }
  .arrow svg { width: 20px; height: 20px; }
  .p-grid, .p-grid.is-3d { grid-template-columns: 1fr; gap: 20px; padding: 20px 12px 28px; }
  .viewer { aspect-ratio: 1 / 1; }
  .row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "project year" "artist label" "roles tg";
    gap: 4px 16px; padding: 16px 12px;
  }
  .row .c-project { grid-area: project; color: var(--ink); font-size: 18px; line-height: 1.2; }
  .row .c-year { grid-area: year; text-align: right; }
  .row .c-artist { grid-area: artist; color: var(--soft); }
  .row .c-label { grid-area: label; text-align: right; }
  .row .c-roles { grid-area: roles; margin-top: 4px; font-size: 11px; }
  .row .c-tg { grid-area: tg; margin-top: 4px; }
  .contact-row { grid-template-columns: 1fr; }
  .facets { margin-top: 36px; }
  .facet { flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
  .hbtn { font-size: 11px; }
}

@media (hover: none) {
  .row:not(.head):hover { background: none; color: inherit; }
  .item.open .row { background: var(--loud); color: var(--on); }
  .row:not(.head):active { background: var(--loud); color: var(--on); }
  .row:not(.head):active span { color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
.p-media.sq .p-img img { aspect-ratio: 1; object-fit: cover; }
.p-media .p-img.wide { grid-column: 1 / -1; }
.p-media.sq .p-img.wide img { aspect-ratio: auto; object-fit: initial; }

.p-media.sq { grid-template-columns: repeat(2, minmax(0, 260px)); }
.p-media.sq .p-img.wide { max-width: 532px; }
@media (max-width: 900px) { .p-media.sq { grid-template-columns: repeat(2, minmax(0, 1fr)); } .p-media.one .p-img img { max-height: 280px; } }
