/* Option A: plate titles sweep left to right behind a rust survey line.
   Home card titles and each plate heading. Does not touch the home hero title. */

.plates article h2 {
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.12;
}
@media (max-width: 420px) {
  .plates article h2 { font-size: clamp(1.7rem, 8.2vw, 2rem); }
}

.ptitle {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  vertical-align: bottom;
}
.ptitle .ptitle-sheet { display: block; }
.ptitle .ptitle-sheet {
  clip-path: inset(-8px 100% -8px 0);
}
.ptitle.is-on .ptitle-sheet {
  animation: ptitle-clip 1200ms cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}
@keyframes ptitle-clip {
  from { clip-path: inset(-8px 100% -8px 0); }
  to   { clip-path: inset(-8px 0 -8px 0); }
}
.ptitle .ptitle-lead {
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  /* 3px rust line plus a short trailing glow so the sweep is easier to follow. */
  background: linear-gradient(
    to right,
    #a33a1e 0 3px,
    rgba(163, 58, 30, 0.55) 3px,
    rgba(163, 58, 30, 0.22) 16px,
    rgba(163, 58, 30, 0) 32px,
    transparent 32px
  );
  filter: drop-shadow(0 0 3px rgba(163, 58, 30, 0.6));
}
.ptitle.is-on .ptitle-lead {
  animation: ptitle-lead 1200ms cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}
@keyframes ptitle-lead {
  0%   { transform: translateX(0); opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* Slightly bigger plate-page headings (v1 sizes, without shrinking any live desktop size). */
body.plate-geo .brand h1 { font-size: 1.55rem; }
@media (min-width: 900px) {
  body.plate-geo .brand h1 { font-size: 1.85rem; }
}
@media (max-width: 640px) {
  body.plate-geo .brand h1 { font-size: 1.28rem; }
}
body.plate-once .brand h1 { font-size: clamp(18px, 2.2vw, 24px); }
@media (max-width: 400px) {
  body.plate-once .brand h1 { font-size: 14px; letter-spacing: 0.1em; }
}
body.plate-grand header h1,
body.plate-grand .masthead h1 { font-size: 40px; }
@media (max-width: 860px) {
  body.plate-grand .masthead h1 { font-size: 26px; }
}
@media (max-width: 360px) {
  body.plate-grand .masthead h1 { font-size: 22px; }
}
body.plate-dtg .card h1 { font-size: clamp(2.85rem, 6vw, 5rem); }
@media (max-width: 700px) {
  body.plate-dtg .card h1 { font-size: clamp(2.45rem, 12vw, 3.2rem); }
}
body.plate-poster h1,
body.plate-poster .head h1 { font-size: clamp(38px, 4.8vw, 58px); }
body.plate-los h1,
body.plate-los .head h1 { font-size: clamp(38px, 4.8vw, 58px); }

html.is-still .ptitle .ptitle-sheet,
html.is-reduced .ptitle .ptitle-sheet,
html.is-still .ptitle.is-on .ptitle-sheet,
html.is-reduced .ptitle.is-on .ptitle-sheet {
  clip-path: inset(-8px 0 -8px 0);
  animation: none !important;
}
html.is-still .ptitle .ptitle-lead,
html.is-reduced .ptitle .ptitle-lead {
  opacity: 0 !important;
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .ptitle .ptitle-sheet,
  .ptitle.is-on .ptitle-sheet {
    clip-path: inset(-8px 0 -8px 0) !important;
    animation: none !important;
  }
  .ptitle .ptitle-lead { opacity: 0 !important; animation: none !important; }
}

/* Longer plate titles (Geospatial Playground, Down the Grand River) wrap at spaces, not mid-word. */
.plates article h2,
.plates article h2.ptitle,
body.plate-dtg .card h1,
body.plate-dtg .card h1.ptitle {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
