/* Studio home page. Builds on site.css: same tokens, plus one light "works" section. */

/* ---------- hero ---------- */
.studio-hero { padding-block: clamp(28px, 4vw, 56px) clamp(40px, 6vw, 96px); overflow: hidden; }
.studio-title {
  direction: ltr;
  text-align: center;
  font-size: clamp(120px, 27vw, 560px);
  line-height: .74;
  letter-spacing: .01em;
  margin-block: clamp(12px, 2vw, 32px) clamp(24px, 3vw, 48px);
}
.studio-title .line { display: block; }
.studio-title i { font-style: normal; color: var(--accent); }
@media (max-width: 759px) { .studio-title { font-size: clamp(110px, 31vw, 260px); } }

.i-arrow-down { --i: url("../icons/arrow-left.svg"); transform: rotate(-90deg); }

/* Offset block shadow: the button lifts off it on hover. */
.btn-pop { box-shadow: -6px 6px 0 var(--accent); transition: color .3s var(--expo), border-color .3s var(--expo), transform .25s var(--expo), box-shadow .25s var(--expo); }
.btn-pop:hover, .btn-pop:focus-visible { transform: translate(-3px, 3px); box-shadow: -3px 3px 0 var(--ink); }
.btn-pop:active { transform: translate(-6px, 6px); box-shadow: 0 0 0 var(--accent); }

/* ---------- film reel: real frames from the work, drifting sideways ---------- */
.reel {
  direction: ltr;
  margin-top: clamp(40px, 5.5vw, 88px);
  padding-block: 18px;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle, var(--ink-3) 0 2.5px, transparent 3px) 0 5px / 26px 8px repeat-x,
    radial-gradient(circle, var(--ink-3) 0 2.5px, transparent 3px) 0 calc(100% - 5px) / 26px 8px repeat-x,
    var(--bg-2);
  overflow: hidden;
}
.reel-track { display: flex; gap: 14px; width: max-content; padding-inline: 14px; will-change: transform; }
.reel.is-rolling .reel-track { animation: reel 90s linear infinite; }
.reel.is-rolling:hover .reel-track, .reel.is-rolling:focus-within .reel-track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(-50%); } }
.frame { flex: none; width: clamp(240px, 26vw, 420px); margin: 0; }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; background: var(--bg-3); }
.frame figcaption { margin-top: 8px; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--ink-3); direction: rtl; text-align: right; }

/* ---------- statement: words light up as you scroll ---------- */
.statement { padding-block: clamp(72px, 10vw, 160px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 120px); align-items: center; }
.statement-text { font-size: clamp(44px, 6.4vw, 124px); line-height: .96; max-width: 16ch; }

/* Two real frames, stacked like prints on a desk. They drift apart a little while scrolling. */
.statement-stack { position: relative; direction: ltr; aspect-ratio: 5 / 4; }
.shot { position: absolute; margin: 0; width: 74%; padding: 10px 10px 0; background: var(--ink); border-radius: var(--radius); will-change: transform; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; background: var(--bg-3); }
.shot figcaption { padding: 9px 2px 10px; font: 500 12px/1.3 var(--mono); letter-spacing: .05em; color: var(--bg); direction: rtl; text-align: right; }
.shot-back { top: 0; left: 0; rotate: -5deg; box-shadow: -10px 10px 0 var(--bg-3); }
.shot-front { bottom: 0; right: 0; rotate: 4deg; box-shadow: 10px 10px 0 var(--accent); }
@media (max-width: 900px) {
  .statement { grid-template-columns: 1fr; }
  .statement-stack { max-width: 520px; width: 100%; }
}
.statement-text .w { transition: opacity .2s linear; }
.motion .statement-text.is-split .w { opacity: .22; }
.motion .statement-text.is-split .w.on { opacity: 1; }

/* ---------- light section: the tokens flip, components follow ---------- */
.light {
  --bg: #ece5d8;
  --bg-2: #e2dacb;
  --bg-3: #d8cfbe;
  --ink: #0e0d0b;
  --ink-2: rgba(14, 13, 11, .76);
  --ink-3: rgba(14, 13, 11, .62);
  --line: rgba(14, 13, 11, .18);
  --accent-ink: #160903;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}
.light ::selection { background: var(--ink); color: var(--bg); }
.light :focus-visible { outline-color: var(--ink); }
.dark {
  --bg: #0e0d0b;
  --bg-2: #171512;
  --bg-3: #211e1a;
  --ink: #ece5d8;
  --ink-2: rgba(236, 229, 216, .74);
  --ink-3: rgba(236, 229, 216, .58);
  --line: rgba(236, 229, 216, .14);
  color: var(--ink);
}

/* ---------- works ---------- */
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.work { display: grid; gap: clamp(28px, 4vw, 72px); align-items: end; margin-top: clamp(40px, 6vw, 96px); }
.work + .work { margin-top: clamp(88px, 12vw, 200px); padding-top: clamp(56px, 7vw, 112px); border-top: 1px solid var(--line); }
.work-kombat { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.work-overlays { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.work-body { display: grid; gap: 18px; justify-items: start; }
.work-title { font-size: clamp(56px, 7.4vw, 128px); direction: ltr; }
.work-body .lede { max-width: 38ch; }
.work-body .btn { margin-top: 10px; }

.work-media {
  display: block;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: -12px 12px 0 var(--accent);
  overflow: hidden;
  transition: transform .5s var(--expo), box-shadow .5s var(--expo);
}
.work-media img { width: 100%; height: auto; aspect-ratio: 1600 / 736; object-fit: cover; transition: transform 1.2s var(--expo); }
.work-media:hover, .work-media:focus-visible { transform: translate(-6px, 6px); box-shadow: -6px 6px 0 var(--accent); }
.work-media:hover img { transform: scale(1.03); }

.work-stage {
  border: 2px solid #0e0d0b;
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: 12px 12px 0 var(--accent);
  overflow: hidden;
}

/* Facts about a project, four across. */
.specs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 2px solid var(--ink); }
.specs > div { padding: 18px 0 4px; padding-inline-end: 24px; }
.specs > div + div { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.specs dt { font: 500 13px/1.4 var(--mono); letter-spacing: .06em; color: var(--ink-3); margin-bottom: 8px; }
.specs dd { margin: 0; font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.specs dd strong { font: 700 clamp(44px, 4.4vw, 68px)/.8 var(--display); display: block; margin-bottom: 8px; }

.work-gallery { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 2.4vw, 36px); align-items: start; }
.work-gallery-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.work-gallery-flip figure:first-child { margin-top: 0; }
.work-gallery-flip figure:last-child { margin-top: clamp(24px, 5vw, 88px); }
.work-gallery figure { margin: 0; }
.work-gallery figure:first-child { margin-top: clamp(24px, 5vw, 88px); }
.work-gallery img { width: 100%; height: auto; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--ink); }
.work-gallery figcaption { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

/* ---------- closing ---------- */
.closing { display: grid; gap: clamp(28px, 4vw, 56px); justify-items: start; }
.closing-title { font-size: clamp(64px, 11vw, 200px); line-height: .84; }
.closing-title em { font-style: normal; color: var(--accent); display: block; }

@media (max-width: 900px) {
  .work-kombat, .work-overlays { grid-template-columns: 1fr; }
  .work-overlays .work-stage { order: -1; }
  .work-media { box-shadow: -8px 8px 0 var(--accent); }
  .work-stage { box-shadow: 8px 8px 0 var(--accent); }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs > div:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .specs > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .work-gallery, .work-gallery-flip { grid-template-columns: 1fr; }
  .work-gallery figure:first-child, .work-gallery-flip figure:last-child { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reel { overflow-x: auto; }
  .reel.is-rolling .reel-track { animation: none; }
}

/* ---------- a project the admin switched off ---------- */
.work.is-off { filter: grayscale(1); opacity: .45; }
.work.is-off a { pointer-events: none; cursor: default; }
.work.is-off .work-media, .work.is-off .btn-pop { box-shadow: none; }
.work.is-off .work-stage { display: none; }

/* ---------- works filter ---------- */
.work-filter { display: inline-flex; margin-top: clamp(20px, 2.6vw, 36px); }
.work-filter button { flex: none; min-width: 84px; }
.work[hidden] + .work { margin-top: clamp(40px, 6vw, 96px); padding-top: 0; border-top: 0; }
.work-site .work-media img { aspect-ratio: 16 / 9; }
@media (max-width: 480px) {
  .work-filter { display: flex; }
  .work-filter button { flex: 1; min-width: 0; padding-inline: 6px; }
}
