/* Lab 3. The interface type stays neutral (Inter Tight) until the owner's identity settles the face; nothing is drawn
   on the works. The ground is the same warm paper colour as the earlier labs. */
:root {
  --ground: #e6e4de;
  --ink: #141414;
  --mute: #6d6a63;
  --pad: clamp(16px, 2.4vw, 36px);
  --he: 'IBM Plex Sans Hebrew', 'Inter Tight', sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--ground); overflow-x: clip; }
body { overflow-x: clip; }
body { background: var(--ground); color: var(--ink); font: 500 15px/1.35 'Inter Tight', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
html.fieldLocked, html.muLocked { overscroll-behavior: none; }
html.collOpen { overflow: hidden; }
.pill { all: unset; cursor: pointer; padding: 9px 15px; border-radius: 99px; background: rgba(255,255,255,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; transition: background .2s; }
.pill:hover { background: #fff; }
.pill[hidden] { display: none; }
.pill:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #2b6cff; outline-offset: 2px; }
.pill.inv { background: #fff; color: #000; }
.kicker { color: var(--mute); }
/* the dip between sections: the screen goes to ground for a moment while the page moves */
.dip { position: fixed; inset: 0; z-index: 70; background: var(--ground); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.dip.on { opacity: 1; transition-duration: .2s; }

/* ---------- top bar: the name (the identity's place) and the way on to every section ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 var(--pad); pointer-events: none; mix-blend-mode: normal; }
.top > * { pointer-events: auto; }
.who { font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 7px 11px; border-radius: 99px; color: var(--mute); transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: rgba(0,0,0,.06); }
body.on-shirts .top { color: #fff; } body.on-shirts .nav a { color: rgba(255,255,255,.65); } body.on-shirts .nav a:hover { color: #fff; background: rgba(255,255,255,.12); }

/* ---------- 1. posters: a tall section whose screen stays put while the camera travels ---------- */
.posters { position: relative; height: 640vh; }
.field-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.field-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.field-stage canvas.drag { cursor: grabbing; }
.field-stage[data-level="poster"] canvas { cursor: default; }
/* every series' name, in the gap above its block: interface type, never on a poster */
.field-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.flabel { all: unset; position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; white-space: nowrap; display: flex; align-items: baseline; gap: .4em; font-weight: 600; letter-spacing: -.01em; line-height: 1; transition: opacity .35s; will-change: transform; }
.flabel span { font-size: .62em; color: var(--mute); font-weight: 500; }
.flabel:hover b { text-decoration: underline; text-underline-offset: .15em; }
/* the bottom of the screen is the interface's: a band of ground the captions sit on, so no text lands on a poster */
.field-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 230px; z-index: 2; pointer-events: none; background: linear-gradient(rgba(230,228,222,0), rgba(230,228,222,.86) 42%, var(--ground) 70%); transition: opacity .45s; }
.field-stage[data-level="poster"] .field-floor { opacity: 0; }
.field-cap { position: absolute; left: var(--pad); bottom: 70px; z-index: 3; display: grid; gap: 6px; pointer-events: none; max-width: 70vw; }
.field-cap b { font-size: clamp(40px, 6.4vw, 104px); font-weight: 700; letter-spacing: -.035em; line-height: .9; }
.field-cap span { color: var(--mute); font-size: 15px; }
.field-cue { position: absolute; right: var(--pad); bottom: 74px; z-index: 3; color: var(--mute); font-size: 14px; transition: opacity .5s; pointer-events: none; }
.field-cue.gone { opacity: 0; }
.skip { position: absolute; right: var(--pad); top: 66px; z-index: 3; color: var(--mute); font-size: 14px; }
.skip:hover { color: var(--ink); }
.field-index { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 12px var(--pad) 18px; }
.field-index::-webkit-scrollbar { display: none; }
.field-index button { all: unset; cursor: pointer; white-space: nowrap; padding: 7px 11px; border-radius: 99px; color: var(--mute); transition: color .2s, background .2s; }
.field-index button sup { font-size: .68em; margin-left: 2px; }
.field-index button:hover { color: var(--ink); }
.field-index button.on { color: var(--ink); background: rgba(0,0,0,.07); }
.field-stage[data-level="poster"] :is(.field-cap, .field-cue, .field-index, .skip) { opacity: 0 !important; pointer-events: none; }
.field-stage :is(.field-cap, .field-index, .skip) { transition: opacity .45s; }
/* one poster, whole: the interface keeps to the edges and never covers it */
.field-hud { position: absolute; inset: 58px 0 0 0; z-index: 5; pointer-events: none; display: grid; align-content: end; grid-template-columns: auto 1fr auto; align-items: end; gap: 16px; padding: 0 var(--pad) 22px; }
.field-hud[hidden] { display: none; }
.field-hud > * { pointer-events: auto; }
#fhBack { position: absolute; left: var(--pad); top: 6px; }
.fh-cap { grid-column: 1 / 3; display: grid; gap: 2px; pointer-events: none; }
.fh-cap b { font-weight: 600; font-size: 17px; }
.fh-cap span { color: var(--mute); }
.fh-steps { display: flex; align-items: center; gap: 8px; }

/* ---------- 2. music ---------- */
.music { position: relative; height: 560vh; background: radial-gradient(120% 90% at 50% 0%, #eceae5 0%, #dcd9d2 70%, #d3d0c8 100%); }
.music-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.music-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: pointer; }
.mu-cap { position: absolute; left: var(--pad); top: 76px; z-index: 2; display: grid; gap: 4px; max-width: 30ch; pointer-events: none; }
.mu-cap b { font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1; margin-top: 6px; }
.mu-cap span { font-family: var(--he); font-size: 17px; justify-self: start; }
.mu-cap em { font-style: normal; color: var(--mute); font-size: 14px; }
.mu-listen { pointer-events: auto; justify-self: start; font-size: 14px; color: var(--ink); }
.mu-listen[hidden] { display: none; }
.mu-index { position: absolute; left: var(--pad); bottom: 22px; z-index: 2; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; max-width: calc(100% - 2 * var(--pad) - 330px); }
.mu-index::-webkit-scrollbar { display: none; }
.mu-index button { all: unset; cursor: pointer; white-space: nowrap; padding: 7px 11px; border-radius: 99px; color: var(--mute); }
.mu-index button sup { font-size: .68em; margin-left: 2px; }
.mu-index button.on { color: var(--ink); background: rgba(0,0,0,.07); }
.mu-steps { position: absolute; right: var(--pad); bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 8px; }
.mu-steps span { color: var(--mute); font-variant-numeric: tabular-nums; margin-right: 6px; white-space: nowrap; }
.mu-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); pointer-events: none; transition: opacity .6s; }
.mu-load.gone { opacity: 0; }

/* the groups, on a phone: the whole archive after the journey */
.groups { display: none; }
@media (max-width: 760px) {
  .groups { display: block; padding: 28px var(--pad) 56px; }
  .groups header h2 { font-size: 44px; font-weight: 700; letter-spacing: -.035em; line-height: .9; margin: 0; }
  .groups header p { color: var(--mute); margin: 8px 0 22px; }
  .groups-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .gcard { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-width: 0; -webkit-tap-highlight-color: transparent; }
  .gcard img { display: block; height: auto; max-width: 100%; box-shadow: 0 1px 3px rgba(40,34,24,.18); background: #d6d3cc; }
  .g-lead { display: flex; align-items: flex-end; height: 150px; }
  .g-lead img { height: 100%; width: auto; object-fit: contain; }
  .g-more { display: flex; gap: 4px; height: 46px; align-items: flex-end; }
  .g-more img { height: 100%; width: auto; }
  .gcard b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-top: 4px; }
  .gcard small { color: var(--mute); font-size: 13px; line-height: 1.3; }
  .gcard:active { opacity: .6; }
}

/* ---------- 3. shirts: the tower, as in version two ---------- */
.shirts { background: #000; color: #fff; position: relative; height: 100vh; overflow: hidden; }
.bo-word { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 400 30vw/.8 'Anton', sans-serif; color: #1d1d1d; white-space: nowrap; text-transform: uppercase; }
.bo-stage { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 40%; }
.bo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bo-cap { position: absolute; left: var(--pad); right: var(--pad); bottom: 5vh; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 18px; z-index: 3; }

/* the collection, entered */
.coll { position: fixed; inset: 0; z-index: 60; background: #0b0b0b; color: #fff; display: flex; flex-direction: column; }
.coll[hidden] { display: none; }
.coll-h { flex: none; display: flex; align-items: center; gap: 18px; padding: 14px var(--pad); }
.coll-h b { font: 400 34px/1 'Anton', sans-serif; text-transform: uppercase; }
.coll-h > span { color: rgba(255,255,255,.55); }
.coll-h nav { display: flex; gap: 2px; margin-left: auto; }
.coll-h nav button { all: unset; cursor: pointer; padding: 7px 12px; border-radius: 99px; color: rgba(255,255,255,.55); }
.coll-h nav button.on { color: #fff; background: rgba(255,255,255,.12); }
.coll .pill { background: rgba(255,255,255,.12); color: #fff; }
.coll-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(96px, 9vw, 150px), 1fr)); gap: 18px 10px; padding: 8px var(--pad) 60px; align-content: start; overscroll-behavior: contain; }
.cshirt { all: unset; cursor: zoom-in; display: grid; gap: 6px; justify-items: center; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--d), transform .6s cubic-bezier(.2,.7,.2,1) var(--d); }
.cshirt.in { opacity: 1; transform: none; }
.cshirt img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: contain; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.cshirt:hover img { transform: translateY(-4px) scale(1.04); }
.cshirt small { font-size: 11px; color: rgba(255,255,255,.5); min-height: 1em; }
.coll-one { position: absolute; inset: 64px 0 0 0; background: rgba(11,11,11,.94); display: grid; place-items: center; align-content: center; gap: 14px; perspective: 1200px; }
.coll-one[hidden] { display: none; }
.coll-shirt { all: unset; cursor: pointer; }
.coll-shirt img { display: block; height: min(calc(100vh - 170px), 900px); max-width: 86vw; object-fit: contain; }
.coll-one p { color: rgba(255,255,255,.6); }

/* ---------- 4. social: the phone, as in version two ---------- */
#social { background: #e8e6ff; color: #000; }
.so-in { min-height: 100vh; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; padding: 8vh var(--pad); }
.so-head h2 { font-size: clamp(48px, 6vw, 96px); letter-spacing: -.035em; line-height: .9; }
.so-head p { margin-top: 14px; font-size: 19px; max-width: 24ch; }
.so-head ul { list-style: none; margin-top: 28px; padding: 0; display: grid; gap: 10px; }
.so-head li { display: grid; opacity: .35; transition: opacity .25s, transform .25s; }
.so-head li button { all: unset; cursor: pointer; font: 700 26px/1.05 'Inter Tight', sans-serif; }
.so-head li small { font-size: 14px; }
.so-head li.on { opacity: 1; transform: translateX(10px); }
.iphone-fit { width: calc(421px * var(--ps, 1)); height: calc(880px * var(--ps, 1)); }
.iphone { position: relative; width: 421px; height: 880px; padding: 14px; border-radius: 69px; background: #111; box-shadow: inset 0 0 0 2px #3a3a3a, 0 40px 90px rgba(36, 30, 120, .3); transform: scale(var(--ps, 1)); transform-origin: 0 0; }
.island { position: absolute; left: 50%; top: 25px; width: 126px; height: 37px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.screen { position: relative; height: 100%; border-radius: 55px; overflow: hidden; background: #fff; color: #000; display: flex; flex-direction: column; font: 400 14px/1.35 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif; }
.sbar { flex: none; height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 4px 34px 0 50px; font-size: 17px; }
.sic { display: flex; align-items: flex-end; gap: 2px; }
.sic i { width: 3px; background: #000; border-radius: 1px; }
.sic i:nth-child(1) { height: 4px; } .sic i:nth-child(2) { height: 6px; } .sic i:nth-child(3) { height: 8px; } .sic i:nth-child(4) { height: 10px; margin-right: 6px; }
.sic svg { width: 25px; height: 12px; }
.ig-top { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 2px 14px 6px; }
.ig-word { font: 400 30px/1 'Grand Hotel', cursive; }
.ig-ic { display: flex; gap: 18px; }
.ig-scroll { flex: 1; position: relative; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.ig-scroll::-webkit-scrollbar { display: none; }
.stories { display: flex; gap: 12px; padding: 6px 12px 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #efefef; }
.story { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 4px; width: 68px; flex: none; }
.story .ring { width: 64px; height: 64px; border-radius: 50%; padding: 2.5px; background: conic-gradient(from 200deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.story img, .igp .av img, .ig-tab .me img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid #fff; display: block; }
.story small { font-size: 11px; max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.igp header { display: flex; align-items: center; gap: 9px; padding: 9px 12px; }
.igp .av { width: 32px; height: 32px; border-radius: 50%; padding: 1.5px; background: conic-gradient(from 200deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.igp header b { font-size: 13.5px; font-weight: 600; }
.igp .mo { margin-left: auto; display: flex; }
.igp .ph { width: 100%; display: block; }
.igp .acts { display: flex; justify-content: space-between; padding: 9px 12px 4px; }
.igp .acts span { display: flex; gap: 14px; }
.igp p { padding: 2px 12px 16px; font-size: 13.5px; }
.igp p b { font-weight: 600; margin-right: 4px; }
.ig-tab { flex: none; display: flex; justify-content: space-around; align-items: center; padding: 10px 6px 26px; border-top: 1px solid #efefef; background: #fff; }
.ig-tab .me { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #000; }

/* ---------- 5. contact ---------- */
.contact { min-height: 70vh; padding: 14vh var(--pad) 8vh; display: grid; gap: 14px; align-content: start; }
.contact h2 { font-size: clamp(56px, 11vw, 190px); font-weight: 700; letter-spacing: -.045em; line-height: .86; }
.contact p { font-size: 19px; }
.contact .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
.contact .links a { text-decoration: underline; text-underline-offset: 3px; }
.lab-note { margin-top: 8vh; color: var(--mute); font-size: 14px !important; }
.lab-note a { text-decoration: underline; }

/* ---------- phones: the same story, composed for the hand ---------- */
@media (max-width: 760px) {
  .top { height: 52px; background: linear-gradient(var(--ground) 60%, rgba(230,228,222,0)); }
  body.on-shirts .top { background: linear-gradient(#000 60%, rgba(0,0,0,0)); }
  .nav { overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav a { padding: 6px 7px; font-size: 13px; }
  .who { font-size: 15px; white-space: nowrap; }
  .field-floor { height: 250px; }
  .skip { top: auto; bottom: 118px; }
    .field-cap { bottom: 64px; max-width: none; right: var(--pad); }
  .field-cap b { font-size: 46px; }
  .field-cap span { font-size: 14px; }
  .field-cue { display: none; }
  .field-hud { grid-template-columns: 1fr auto; padding-bottom: max(16px, env(safe-area-inset-bottom)); inset: 52px 0 0 0; }
  .fh-cap { grid-column: 1 / -1; }
  .fh-steps { grid-column: 1 / -1; justify-content: flex-end; }
  .fh-steps .pill { padding: 11px 16px; }
  /* on a phone the artists sit at the top, the caption under them, and the sleeves below both: no text on a work */
  .mu-index { top: 54px; bottom: auto; left: 0; right: 0; max-width: none; padding: 0 var(--pad); }
  .mu-cap { top: 96px; max-width: 52vw; }
  .mu-cap b { font-size: 24px; }
  .mu-steps { left: var(--pad); justify-content: flex-end; bottom: max(16px, env(safe-area-inset-bottom)); }
  .mu-steps .pill { padding: 11px 16px; }
  .mu-steps span { margin-right: auto; }
  .bo-word { font-size: 44vw; writing-mode: vertical-rl; }
  .bo-cap { flex-direction: column; align-items: flex-start; }
  .coll-h { flex-wrap: wrap; gap: 8px 14px; }
  .coll-h nav { margin-left: 0; order: 3; flex-basis: 100%; }
  .coll-h .pill { margin-left: auto; }
  .coll-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
  .so-in { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 10vh var(--pad) 8vh; justify-items: center; }
  .so-head { justify-self: stretch; }
  .so-head h2 { font-size: 64px; }
  .so-head ul { display: flex; gap: 14px; overflow-x: auto; margin-top: 14px; scrollbar-width: none; }
  .so-head li { white-space: nowrap; }
  .so-head li button { font-size: 18px; }
  .so-head li.on { transform: none; }
  /* round 3: on a phone the interface gives the works the middle of the screen. One line of title, a short band, small filters */
  .field-floor { height: 150px; }
  .skip { display: none; }
  .field-cap { bottom: 46px; gap: 3px; }
  .field-cap b { font-size: 30px; letter-spacing: -.03em; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .field-cap span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .field-index { padding: 4px var(--pad) max(8px, env(safe-area-inset-bottom)); }
  .field-index button, .mu-index button { padding: 5px 8px; font-size: 13px; }
  .mu-index { top: 50px; }
  .mu-cap { top: 84px; gap: 2px; }
  .mu-cap .kicker { display: none; }
  .mu-cap b { font-size: 20px; margin-top: 0; }
  .mu-cap span, .mu-cap em, .mu-listen { font-size: 13px; }
  .mu-steps { gap: 6px; }
  .mu-steps .pill { padding: 8px 11px; font-size: 13px; }
  .groups header h2 { font-size: 30px; }
  .groups header p { font-size: 13px; margin: 6px 0 16px; }
  .bo-cap { font-size: 14px; bottom: max(14px, env(safe-area-inset-bottom)); gap: 10px; }
  .bo-cap .pill { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
