.riotters .industry-grid article { border-top: 0; }
.riotters #about { padding-bottom: 0; }
.riotters .bio > div { padding-bottom: clamp(30px,5vw,76px); }
.riotters .bio figure img { object-position: center bottom; display: block; height: auto; }
@media(max-width:760px) {
  .riotters #about .bio { gap:1.75rem; }
  .riotters #about .bio > div { grid-row:1; padding:0; }
  .riotters #about .bio figure { margin:0; }
  .riotters #about .bio figure img { width:min(100%,428px); height:auto; }
}

/* The original V4 service layout and image sizes. */
#services { background:white; color:#000; overflow:clip; display:flex; flex-direction:column; align-items:center; font:14px/20px 'Open Sans',sans-serif; }
#services .feature-wrap { width:min(90vw,1680px); perspective:1000px; display:flex; align-items:center; justify-content:space-around; margin:8vh auto 3vh; }
#services .feature-wrap.reverse { flex-direction:row-reverse; }
#services .feature-content { flex:none; max-width:450px; padding-inline:min(4vw,74px); }
#services .feature-content h2 { color:#000; margin:20px 0; font:700 38px/48px 'Open Sans',sans-serif; letter-spacing:normal; text-wrap:wrap; }
#services .feature-content p { color:#1b1b1b; font:400 16px/30px 'Open Sans',sans-serif; margin:0 0 10px; }
#services .title { color:#a8a8a8; font-size:12px; letter-spacing:2px; text-transform:uppercase; display:inline-block; padding:10px 0 5px; }
#services .feature-image { width:min(50vw,932px); margin-inline:auto; display:flex; align-items:center; justify-content:center; }
#services .image-2 { width:100%; max-width:270px; height:auto; }
#services .blackhorse { width:60%; max-width:250px; height:auto; }
#services .image-2.whitehorse { width:40%; max-width:180px; }
@media(max-width:991px) {
  #services .feature-wrap { margin-block:5vh; }
  #services .feature-content { width:50vw; }
  #services .blackhorse { min-width:50%; }
}
@media(max-width:479px) {
  #services .feature-wrap, #services .feature-wrap.reverse { flex-direction:column; }
  #services .feature-content { width:auto; }
  #services .feature-image { width:100%; max-width:100%; margin-block:30px; }
}

#references .quote-controls { gap:.4rem; align-items:center; }
#references .quote-controls button, .publication-nav button { border:0; background:transparent; padding:0; color:inherit; min-width:44px; min-height:44px; font:400 26px/1 Arial,sans-serif; }
#references .quote-controls button:hover, .publication-nav button:hover { opacity:.6; }
.quote-count,.publication-count { font:500 .83rem/1 monospace; font-variant-numeric:tabular-nums; }
#references .reference-marks img { filter:brightness(0); width:clamp(108px,10.5vw,154px); height:46px; }
#references .reference-marks img[alt="BMW Group"], #references .reference-marks img[alt="SIP"] { width:clamp(75px,7vw,108px); height:43px; }
#references .reference-marks img[alt="Crypto Oxygen"] { width:clamp(128px,12vw,165px); }

#publications { padding:0; background:#f5f4ed; }
.publication-stage { padding:var(--space) var(--pad); }
.publication-stage h2 { margin-bottom:1.4rem; }
.publication-slides .talk { margin-block:2rem; }
.publication-nav { align-items:center; justify-content:center; gap:1rem; }
.publication-nav:not([hidden]) { display:flex; }
.publication-nav button:disabled { opacity:.25; cursor:default; }
.publication-stage .talk-img img { object-fit:contain; width:100%; height:100%; }
#publications.deck .publication-stage { display:grid; grid-template-rows:auto 1fr auto; gap:1.25rem; align-content:center; padding:clamp(24px,5vh,64px) var(--pad); }
#publications.pinned .publication-stage { position:sticky; top:0; height:100svh; }
.deck .publication-stage h2 { font-size:clamp(1.7rem,4.3vw,4.7rem); margin:0; }
.deck .publication-slides { position:relative; min-height:300px; }
.deck .talk { position:absolute; inset:0; margin:0; display:grid; align-items:center; grid-template-columns:minmax(100px,.46fr) minmax(0,1.65fr) minmax(0,1fr); gap:clamp(14px,2.3vw,50px); pointer-events:none; }
.deck .talk > div:last-child { display:contents; }
.deck .talk .talk-img { grid-column:2; grid-row:1; position:relative; aspect-ratio:16/9; max-height:55svh; background:white; transform:translateY(var(--lift)) scale(var(--zoom)); opacity:var(--alpha); overflow:visible; transform-origin:center; }
.deck .talk-img img { transform:perspective(850px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition:transform .18s ease-out; background:#fff; }
.deck .talk .kicker { grid-column:1; grid-row:1; text-wrap:balance; }
.deck .pub-caption { grid-column:3; grid-row:1; }
.deck .pub-caption h3 { font-size:clamp(1.35rem,2.45vw,3.3rem); line-height:1.04; }
.deck .pub-caption p { margin-top:1rem; line-height:1.42; font-size:clamp(.9rem,1.15vw,1.16rem); }
.deck .talk.active { pointer-events:auto; }
.deck .talk:not(.active) :is(.pub-caption,.kicker) { visibility:hidden; }
.deck .talk[hidden] { display:none; }
@media(max-width:760px), (max-height:550px), (prefers-reduced-motion:reduce) {
  #publications.deck .publication-stage { grid-template-rows:auto auto auto; }
  .deck .publication-slides { display:grid; min-height:0; }
  .deck .talk { position:relative; grid-area:1 / 1; display:flex; flex-direction:column; align-items:stretch; gap:.8rem; }
  .deck .talk:not(.active) { display:none; }
  .deck .talk .talk-img { width:100%; max-height:48svh; opacity:1; transform:none; }
  .deck .talk .kicker { margin:0; }
  .deck .talk .pub-caption p { margin-top:.4rem; }
}
.pinned .publication-stage h2 { width:fit-content; transform-origin:top left; transform:scale(calc(1.35 - var(--entrance,1)*.35)); }
.pinned .publication-slides { opacity:var(--entrance,1); }
.publication-stage .talk-img a { display:block; width:100%; height:100%; }
@media(max-width:991px) { #services .feature-content h2 { font-size:34px; line-height:44px; } }
@media(max-width:767px) { #services .feature-content h2 { font-size:28px; line-height:38px; } }

.publication-place { display:block; margin-top:.45rem; font:600 clamp(1.05rem,1.7vw,2rem)/1.05 Arial,sans-serif; letter-spacing:-.04em; }
@media(max-width:760px), (max-height:550px), (prefers-reduced-motion:reduce) {
  .publication-place { display:inline; margin:0 0 0 .7em; font:inherit; }
}

#services .plant-study { width:min(100%,640px); aspect-ratio:1.42; position:relative; display:grid; place-items:center; }
#services .plant-study > img { position:absolute; max-height:100%; object-fit:contain; }
#services .plant-study.ready { overflow:hidden; }
.plant-study.ready > img { display:none; }
.plant-study canvas { position:absolute; inset:0; width:100%; height:100%; }

#services .service-turn { position:relative; width:min(100%,270px); aspect-ratio:433/576; }
#services .service-turn img, #services .service-turn canvas { display:block; width:100%; height:100%; }
#services .service-turn canvas { position:absolute; inset:0; visibility:hidden; }
#services .service-turn.rendered canvas { visibility:visible; }
#services .service-turn.rendered img { opacity:0; }

#services .pencil-turn { aspect-ratio:372/670; }
#services .pencil-turn canvas { filter:drop-shadow(7px 6px 5px rgb(0 0 0 / 14%)); }
