:root {
  --wall: #1b1a1d;
  --wall-deep: #131215;
  --card: #edeae4;
  --ink: #1b1a1d;
  --light: #efe7d8;
  --dim: #9c96a0;
  --sans: "Libre Franklin", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; }
body { background: var(--wall); color: var(--light); font-family: var(--sans); font-weight: 300; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--card); outline-offset: 4px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(20px, 5vw, 64px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: .01em; text-decoration: none; }
.brand svg { width: 22px; height: 22px; }
.tagline { font-size: 13px; color: var(--dim); }

.intro { max-width: 720px; padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 64px) 12px; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.intro p { font-size: 17px; line-height: 1.6; color: #cfc8c0; margin-top: 18px; max-width: 54ch; }
.play {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  background: var(--card); color: var(--ink); border: 0; border-radius: 2px;
  padding: 15px 26px 15px 20px; font-size: 15px; font-weight: 600;
  transition: transform .15s, background-color .15s;
}
.play:hover { background: #fff; }
.play:active { transform: scale(.98); }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.intro .hint { font-size: 13px; color: var(--dim); margin-top: 14px; }

/* The wall: each work under its own picture light */

.wall {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px);
  align-items: end; padding: 64px clamp(20px, 5vw, 64px) 56px;
}
.work { display: flex; flex-direction: column; align-items: center; gap: 22px; background: none; border: 0; color: inherit; text-align: left; padding: 0; position: relative; }
.work::before {
  content: ""; position: absolute; left: 50%; top: -48px; width: 150%; height: 150%; transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 42% at 50% 30%, rgba(255, 228, 182, .13), transparent 70%);
  pointer-events: none;
}
.work img { width: 100%; height: auto; display: block; box-shadow: 0 22px 40px -14px rgba(0, 0, 0, .8), 0 0 0 6px #0d0c0e; transition: transform .5s cubic-bezier(.2, .7, .2, 1); position: relative; }
.work:hover img { transform: translateY(-4px); }
.placard { width: 100%; max-width: 220px; align-self: flex-start; background: var(--card); color: var(--ink); padding: 11px 13px 12px; font-size: 11.5px; line-height: 1.45; position: relative; }
.placard b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.placard i { font-style: normal; color: #55505a; }

/* Viewing a single work */

.viewer { position: fixed; inset: 0; background: var(--wall-deep); z-index: 10; overflow: hidden; }
.frame { position: absolute; inset: 0; }
.frame img { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform 2.6s cubic-bezier(.45, .05, .25, 1); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 70px clamp(20px, 6vw, 80px) 26px;
  background: linear-gradient(transparent, rgba(12, 11, 13, .9) 45%);
}
.caption p { max-width: 760px; }
.caption p > span { display: block; font-size: 11.5px; font-weight: 600; color: var(--dim); margin-bottom: 4px; }
.caption em { font-style: normal; }
.asked { font-size: 15px; color: #cfc8c0; margin-bottom: 14px; }
.answer { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.5; }
.word { color: rgba(239, 231, 216, .32); transition: color .15s; }
.word.said { color: var(--light); }
.viewer-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(20px, 5vw, 48px); background: linear-gradient(rgba(12, 11, 13, .75), transparent); }
.viewer-title { font-size: 13px; color: #cfc8c0; }
.close { background: rgba(237, 234, 228, .12); color: var(--light); border: 0; border-radius: 2px; padding: 9px 14px; font-size: 13px; }
.close:hover { background: rgba(237, 234, 228, .22); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 24px clamp(20px, 5vw, 64px) 36px; border-top: 1px solid #2a282d; font-size: 12.5px; color: var(--dim); }
.foot a { color: var(--light); font-weight: 500; text-decoration: none; }

@media (max-width: 900px) {
  .wall { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; align-items: flex-end; padding-top: 48px; }
  .work { flex: 0 0 66%; scroll-snap-align: center; }
  .tagline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .frame img, .work img, .word { transition: none; }
}
