/* The brand is discovered on the page, then accompanies the rest of the visit. */
.scroll-brand {
  position: fixed;
  z-index: 16;
  top: 0;
  left: 0;
  display: block;
  width: var(--brand-width, 300px);
  transform-origin: 0 0;
  transform: translate3d(var(--brand-x, 0px), var(--brand-y, 0px), 0) scale(var(--brand-scale, 1));
  opacity: var(--brand-opacity, 0);
  will-change: transform, opacity;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.scroll-brand img { display: block; width: 100%; height: auto; }
.scroll-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -7px -9px;
  background: #fffffff0;
  border-radius: 10px;
  box-shadow: 0 3px 17px #10263e0d;
  opacity: 0;
}
.scroll-brand.is-docked {
  will-change: auto;
}
.scroll-brand.is-docked::before { opacity: 1; }
.scroll-brand:focus-visible { outline-offset: 12px; }
.opening-composition { transform: translateY(-1svh); }

/* Keep the photograph itself opaque: only the empty reading side is softened. */
.proof::before,
.proof-clario::before {
  background:
    linear-gradient(180deg, #fff 0, #ffffff00 135px, #ffffff00 calc(100% - 155px), #fff 100%),
    linear-gradient(var(--reading-angle), #fffffffc 0, #fffffffa 35%, #fffffff2 40%, #ffffffbd 45%, #ffffff00 53%);
}
.motion-ready .proof.is-in-view .proof-photo:not(.proof-photo--depth) { opacity: 1; }
.proof-photo,
.proof-photo__background,
.proof-photo__subject { filter: none; }

/* An open dictionary page, with the original definition given room to breathe. */
.complexitude { background: #fff; padding: 130px var(--gut) 125px; }
.complexitude-inner { max-width: 1160px; }
.complexitude .eyebrow { margin-bottom: 30px; }
.complexitude-entry { border-bottom: 1px solid var(--line); padding-bottom: 32px; }
.complexitude h2 {
  font-size: clamp(54px, 7.1vw, 102px);
  line-height: 1.09;
  letter-spacing: -.055em;
  overflow-wrap: normal;
}
.complexitude-grammar { font-size: 13px; color: var(--muted); margin-top: 14px; }
.word-roots { margin-top: 23px; font-size: 15px; gap: 15px; }
.complexitude-definition {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding: 44px 0 46px;
}
.complexitude-lead {
  font: 700 clamp(23px, 2.35vw, 31px)/1.36 var(--title);
  letter-spacing: -.025em;
  max-width: 650px;
}
.complexitude blockquote {
  margin: 24px 0 0;
  font: 400 clamp(17px, 1.6vw, 21px)/1.8 var(--body);
  letter-spacing: 0;
  color: var(--muted);
  max-width: 630px;
}
.complexitude-drawing { margin: 0; transform: rotate(-2deg); }
.complexitude-drawing svg { width: 100%; height: auto; display: block; overflow: visible; }
.complexitude-drawing path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.complexitude-tangle { stroke: var(--ardoise); stroke-width: 1.7; opacity: .66; }
.complexitude-cross { stroke: var(--ardoise); stroke-width: 1; opacity: .4; }
.complexitude-release { stroke: var(--ardoise); stroke-width: 1.4; }
.complexitude-simple { stroke: var(--marine); stroke-width: 3; }
.complexitude-point { fill: var(--sauge); }
.complexitude-underline { stroke: var(--sauge); stroke-width: 1.6; }
.complexitude-drawing figcaption { font: italic 19px/1.5 Georgia, serif; text-align: right; color: var(--ardoise); }
.complexitude-human { border-top: 1px solid var(--line); padding-top: 35px; }
.complexitude-thought { font-size: clamp(23px, 2.8vw, 36px); color: var(--marine); }
.complexitude-answer { font-size: 16px; margin-top: 13px; }
.return { background: linear-gradient(180deg, #fff, var(--brume) 210px, #fff 100%); }

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .complexitude-simple,
  .motion-ready .complexitude-underline { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s ease; }
  .motion-ready .complexitude-inner.is-visible .complexitude-simple,
  .motion-ready .complexitude-inner.is-visible .complexitude-underline { stroke-dashoffset: 0; }
  .motion-ready .complexitude-underline { transition-delay: .4s; }
}

@media (max-width: 900px) {
  .complexitude-definition { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; }
  .complexitude-drawing figcaption { font-size: 16px; }
}
@media (max-width: 680px) {
  #dmsv { --photo-focus-mobile: 75% 50%; }
  .proof-clario { --photo-focus-mobile: 85% 50%; }
  .opening-discovery .atelier-photo {
    top: auto;
    bottom: 90px;
    transform: none;
  }
  .opening-composition { transform: none; }
  .proof::before,
  .proof-clario::before {
    background:
      linear-gradient(180deg, #ffffff00 0, #ffffff00 calc(var(--photo-space-mobile) - 105px), #fffffff7 var(--photo-space-mobile), #fffffffc calc(var(--photo-space-mobile) + 130px)),
      linear-gradient(180deg, #fff 0, #ffffff00 75px);
  }
  .complexitude { padding: 100px var(--gut) 90px; }
  .complexitude h2 { font-size: clamp(34px, 8.55vw, 58px); letter-spacing: -.06em; }
  .complexitude-entry { padding-bottom: 27px; }
  .complexitude .eyebrow { font-size: 12px; margin-bottom: 25px; }
  .complexitude-grammar { font-size: 12px; }
  .word-roots { gap: 8px; font-size: 13px; margin-top: 20px; }
  .complexitude-definition { display: block; padding: 33px 0 35px; }
  .complexitude-lead { font-size: 23px; }
  .complexitude-lead br { display: none; }
  .complexitude blockquote { font-size: 17px; line-height: 1.8; margin-top: 22px; }
  .complexitude-drawing { width: 240px; margin: 5px 0 0 auto; }
  .complexitude-drawing figcaption { font-size: 17px; }
  .complexitude-human { padding-top: 27px; }
  .complexitude-thought { font-size: 25px; line-height: 1.4; }
  .complexitude-answer { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-brand { will-change: auto; }
  .complexitude-drawing { transform: none; }
}
@media print {
  .scroll-brand, .version-link { display: none !important; }
}
