/* Dhaatu workshop page. Builds on tokens.css and site.css. */

/* ---------- 1. Hero: the furnace door opens ---------- */
.ws-hero { position: relative; }
.ws-hero__stage { position: relative; height: 100svh; min-height: 560px; width: 100%; overflow: hidden; }
html.ws-live .ws-hero { height: 220svh; }
html.ws-live .ws-hero__stage { position: sticky; top: 0; }
.ws-hero__door { position: absolute; inset: 0; will-change: clip-path, transform; }
.ws-hero__door video { z-index: 1; }
.ws-hero__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22,19,15,.78) 0%, rgba(22,19,15,.15) 34%, rgba(22,19,15,0) 50%),
    linear-gradient(0deg, rgba(22,19,15,.92) 0%, rgba(22,19,15,.55) 32%, rgba(22,19,15,0) 60%);
}
.ws-hero__h1 {
  position: relative; z-index: 3;
  padding: calc(var(--header-h) + 20px) var(--pad) 0;
  font-weight: 700;
  font-size: clamp(52px, 8vw, 140px);
  line-height: 0.94;
  max-width: 14ch;
  text-wrap: balance;
}
@media (min-width: 900px) { .ws-hero__h1 { max-width: none; padding-right: 18vw; } }
.ws-hero__answer {
  position: absolute; z-index: 3;
  left: var(--pad); right: var(--pad); bottom: 72px;
  max-width: 34rem;
}
.ws-hero__answer .eyebrow { margin-bottom: 12px; }
.ws-hero__body { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; margin-bottom: 22px; }
@media (min-width: 900px) {
  .ws-hero__answer { left: auto; right: var(--pad); bottom: clamp(48px, 7vh, 88px); }
}
@media (max-height: 700px) and (max-width: 899px) { .ws-hero__body { font-size: 15px; margin-bottom: 14px; } .ws-hero__answer { bottom: 64px; } }

/* ---------- 2. Story ---------- */
.ws-story { position: relative; padding-top: clamp(56px, 8vw, 120px); }
.ws-story__reveal { display: flex; flex-direction: column; justify-content: center; }
.ws-story__reveal .fx-reveal__stage { padding-inline: 0; }
.ws-story__body {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 3.2vw, 46px); line-height: 1.12;
  max-width: 30ch; margin: 0 0 28px;
  text-wrap: pretty;
}
@media (min-width: 900px) { .ws-story__body { max-width: min(30ch, 60vw); } }
.ws-story__ph { max-width: 40ch; }
.ws-story__photo { width: 58vw; aspect-ratio: 16 / 10; margin: 56px var(--pad) clamp(72px, 10vw, 140px) auto; }
.ws-story__photo img { position: relative; height: 112%; top: -8%; }
@media (min-width: 900px) {
  .ws-story__photo { position: absolute; right: var(--pad); top: 118svh; width: 22vw; margin: 0; z-index: 1; }
  .ws-story { padding-bottom: clamp(96px, 12vw, 180px); }
}

/* ---------- 3. People ---------- */
.ws-people { position: relative; padding-block: clamp(96px, 12vw, 180px); display: grid; gap: 64px; }
.ws-people__body { max-width: 40ch; margin-top: 24px; color: var(--ink); }
.ws-crafts { display: grid; gap: 88px; }
.ws-craft { display: grid; gap: 18px; }
.ws-craft__photo img { position: relative; height: 112%; top: -8%; }
.ws-craft__title { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.02; margin: 10px 0 10px; }
.ws-craft__text p { color: var(--muted); max-width: 30ch; }
.ws-craft--1 .ws-craft__photo { width: 72vw; aspect-ratio: 4 / 3; }
.ws-craft--2 .ws-craft__photo { width: 58vw; aspect-ratio: 16 / 9; margin-left: auto; }
.ws-craft--2 .ws-craft__text { margin-left: 30vw; }
.ws-craft--3 .ws-craft__photo { width: 46vw; aspect-ratio: 3 / 4; margin-left: 12vw; }
.ws-craft--3 .ws-craft__text { margin-left: 12vw; }
.ws-craft--4 .ws-craft__photo { width: 80vw; aspect-ratio: 2.36 / 1; margin-left: auto; }
@media (min-width: 900px) {
  .ws-people { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .ws-people__intro { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--header-h) + 8vh); }
  .ws-people__intro .d-m { font-size: 64px; }
  .ws-crafts { grid-column: 5 / span 8; gap: 0; }
  .ws-craft { grid-template-columns: auto 1fr; align-items: end; column-gap: 2.4vw; }
  .ws-craft__text { padding-bottom: 6px; }
  .ws-craft--1 { margin: 2vh 0 0 6vw; }
  .ws-craft--1 .ws-craft__photo { width: 28vw; }
  .ws-craft--2 { margin: 22vh 0 0 14vw; }
  .ws-craft--2 .ws-craft__photo { width: 22vw; margin: 0; }
  .ws-craft--2 .ws-craft__text { margin: 0; }
  .ws-craft--3 { margin: 18vh 0 0 0; align-items: start; }
  .ws-craft--3 .ws-craft__photo { width: 18vw; margin: 0; }
  .ws-craft--3 .ws-craft__text { margin: 12vh 0 0; }
  .ws-craft--4 { margin: 20vh 0 8vh 18vw; }
  .ws-craft--4 .ws-craft__photo { width: 26vw; margin: 0; }
}

/* ---------- 4. Scale ---------- */
.ws-scale { padding-block: clamp(96px, 12vw, 180px) clamp(96px, 10vw, 160px); border-top: 1px solid var(--rule); }
.ws-figs { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 48px 20px; margin-top: 40px; }
.ws-fig { display: grid; align-content: end; gap: 14px; }
.ws-fig__mask { display: block; overflow: hidden; padding-top: 0.06em; }
.ws-fig__n { display: block; font-size: clamp(64px, 9vw, 150px); white-space: nowrap; }
.ws-fig__pre { display: block; font-size: 0.34em; letter-spacing: 0.08em; line-height: 1; margin-bottom: 0.12em; color: var(--muted); }
.ws-fig__line { max-width: 18ch; color: var(--ink); }
.ws-scale__rule { margin-top: 40px; background: var(--accent); height: 1px; }
@media (min-width: 900px) {
  .ws-figs { grid-template-columns: repeat(4, auto); gap: 0 2vw; margin-top: 56px; }
}

/* ---------- 5. Projects ---------- */
.ws-proj { position: relative; border-top: 1px solid var(--rule); }
.ws-proj__stage { display: grid; gap: 40px; padding-block: clamp(96px, 12vw, 160px); }
.ws-proj__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ws-proj__photo { aspect-ratio: 4 / 3; margin: 0; }
.ws-proj__photo:first-child { grid-column: 1 / -1; width: 82%; margin-left: auto; }
.ws-proj__copy .d-m { max-width: 14ch; margin-bottom: 36px; }
.ws-order { gap: 6px; }
.ws-order__title { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 2.4vw, 34px); line-height: 1.05; }
.ws-order__line { color: var(--ink); max-width: 44ch; margin: 0; }
.ws-order__meta { display: flex; gap: 18px; color: var(--accent); margin: 2px 0 0; }
.ws-order, .ws-order__title, .ws-order__line { transition: color 240ms var(--ease-glow); }
@media (min-width: 900px) {
  .ws-proj__stage { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
  .ws-proj__media { grid-column: 1 / span 6; }
  .ws-proj__copy { grid-column: 8 / span 5; }
  html.ws-live .ws-proj { height: 260svh; }
  html.ws-live .ws-proj__stage { position: sticky; top: 0; height: 100svh; width: 100%; padding-block: calc(var(--header-h) + 3vh) 4vh; }
  html.ws-live .ws-proj__media { display: block; position: relative; aspect-ratio: 4 / 3; }
  html.ws-live .ws-proj__photo { position: absolute; inset: 0; width: 100%; margin: 0; opacity: 0; filter: blur(6px); transition: opacity 720ms var(--ease-pour), filter 720ms var(--ease-pour); }
  html.ws-live .ws-proj__photo.is-on { opacity: 1; filter: blur(0); }
  html.ws-live .ws-order:not(.is-on) .ws-order__title,
  html.ws-live .ws-order:not(.is-on) .ws-order__line { color: var(--muted); }
  html.ws-live .ws-order:not(.is-on) .ws-order__meta { color: var(--muted); }
}

/* ---------- 6. Place ---------- */
.ws-place { display: grid; gap: 48px; padding-block: clamp(96px, 12vw, 180px) clamp(72px, 8vw, 120px); border-top: 1px solid var(--rule); }
.ws-place__map { position: relative; margin: 0; color: var(--ash); }
.ws-map { width: 100%; aspect-ratio: 2 / 1; }
.ws-map svg { width: 100%; height: 100%; }
.ws-map--base svg { opacity: 0.5; }
.ws-map--base svg g circle { opacity: 1; }
.ws-map--home { position: absolute; inset: 0 0 auto 0; }
.ws-place__key { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; color: var(--ink); }
.ws-key { display: inline-flex; align-items: center; gap: 10px; }
.ws-key::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.ws-key--home::before { background: var(--accent); width: 12px; height: 12px; }
.ws-place__body { max-width: 40ch; margin-top: 24px; }
.ws-facts { margin-top: 32px; }
.ws-facts > div { position: relative; padding-block: 16px; display: grid; gap: 6px; }
.ws-facts > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); transform-origin: 0 50%; transform: scaleX(var(--draw, 1)); }
.ws-facts dd { margin: 0; }
.ws-facts address { font-style: normal; }
.ws-facts .mail { padding-top: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.ws-place__act { display: grid; gap: 14px; justify-items: start; margin-top: 36px; }
@media (min-width: 900px) {
  .ws-place { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
  .ws-place__map { grid-column: 1 / span 7; }
  .ws-place__copy { grid-column: 8 / span 5; }
  .ws-facts > div { grid-template-columns: 9.5rem 1fr; align-items: baseline; }
}
