/* Original artwork and animation; headline matches the homepage type scale. */
.references-hero { overflow: hidden; }
.references-page .references-hero h1,
.references-page .project-cta h2 {
  width:min(960px,86%);
  font-family:var(--sans);
  font-size:clamp(58px,8vw,128px);
  font-weight:400;
  line-height:.95;
  letter-spacing:-.052em;
  margin:32px 0 38px;
}
.references-page .references-hero h1 em,
.references-page .project-cta h2 em {
  font-family:var(--serif);
  font-weight:400;
}
@media(max-width:900px) {
  .references-page .references-hero h1,
  .references-page .project-cta h2 {
    width:min(760px,92%);
    font-size:clamp(50px,12vw,78px);
    line-height:.98;
    letter-spacing:-.045em;
  }
}
@media(max-width:560px) {
  .references-page .references-hero h1,
  .references-page .project-cta h2 {
    width:100%;
    font-size:47px;
    line-height:1.01;
    letter-spacing:-.035em;
    margin-bottom:30px;
  }
}
/* The closing invitation uses the hero's sans/italic pairing at full reading width. */
.references-page .project-cta .shell{display:block}
.references-page .project-cta h2{max-width:none}
.references-page .project-cta .button{margin-top:8px}
.references-motion-scene,
.references-motion-scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.references-motion-scene { z-index: 0; opacity: 0; }
.references-motion-scene.is-ready { opacity: 1; }
.references-motion-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(48,52,49,.84),rgba(48,52,49,.32));
}
.references-motion-toggle {
  position: absolute;
  inset-inline-end: max(5vw,32px);
  bottom: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(39,43,40,.78);
  color: #fff;
  font: 11px/1.4 Arial,Helvetica,sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
}
.references-motion-toggle[hidden] { display: none; }
.references-motion-toggle:hover { background: rgba(80,90,81,.9); }
.references-motion-toggle:focus-visible { outline: 2px solid #e3ec98; outline-offset: 4px; }
.references-motion-toggle [data-motion-icon] { width: 12px; font-size: 14px; text-align: center; }
@media(max-width:760px) {
  .references-motion-toggle { inset-inline-end: 24px; bottom: 18px; }
}
