/* "Interaction design for accessibility" case study.
   Shared building blocks (title, cover, chapter bar, intros, cards, dark
   strips, caption styles, bottom bar) come from case-study.css. This
   file only adds what is new on this page. */

.ac-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-orange { color: var(--color-signal-text); }
.ac-muted  { color: var(--color-text-muted); }

/* Two photos under "Understanding a new user" */
.ac-pair .card img {
  aspect-ratio: 573 / 396;
  border-radius: 20px;
}

/* Full-width pictures */
.ac-figure { margin: 0; }

.ac-wide {
  margin: 0;
}

.ac-wide img,
.ac-wide-img {
  display: block;
  width: 100%;
  height: auto;
}

.ac-wide--rounded img,
.ac-wide-img--rounded {
  border-radius: 20px;
}

.ac-wide-img--contain {
  max-width: 920px;
  margin-inline: auto;
}

/* A caption that sits on its own under a picture: orange title, 16px text. */
.ac-caption {
  max-width: 380px;
  margin: 10px 0 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
  letter-spacing: -0.01em;
}

/* The research panel video on a warm background */
.ac-panel {
  background: #f9f4ed;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  margin-top: -30px;
}

.ac-panel__video {
  display: block;
  width: 100%;
  height: auto;
}

/* Browser screenshots on a warm tile */
.ac-shot {
  background: #f9f4ed;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 568 / 502;
  padding: 0 40px;
}

.ac-shots .card img {
  aspect-ratio: auto;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: none;
}

/* Product renders and videos on a rounded tile */
.ac-tile {
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  justify-content: center;
}

.ac-tile--warm { background: #f9f4ed; }

.ac-tile img,
.ac-tile video {
  display: block;
  width: 100%;
  max-width: 1063px;
  height: auto;
}

/* Renders with a transparent background sit centred on the warm tile. */
.ac-tile--warm img {
  max-width: 920px;
  padding-block: 20px;
}

/* Design principles: abstract illustrations on white */
.ac-principles .card img {
  aspect-ratio: 274 / 305;
  object-fit: contain;
  background: none;
}

/* Patent: dark tile with the caption beside it */
.ac-patent {
  display: grid;
  grid-template-columns: minmax(0, 756px) minmax(0, 380px);
  gap: 20px;
  align-items: end;
}

.ac-patent img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #2c2c2c;
}

.ac-patent .ac-caption { margin: 0; }

/* ---------- Emotional needs strip: white cards ---------- */

.ac-card {
  flex: none;
  width: 840px;
  min-height: 453px;
  padding: 27px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: #ffffff;
  color: var(--color-text);
  border-radius: 20px;
}

.ac-card--needs { width: 963px; }

.ac-card__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.ac-card__title .bp-badge { background: #6b5a2e; flex: none; }

.ac-card__text {
  margin: 7px 0 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
  letter-spacing: -0.01em;
}

.ac-card__diagram {
  display: block;
  width: 532px;
  height: auto;
  margin: 0 auto;
}

.ac-card__diagram--wide { width: 780px; }

/* Five emotional needs as small beige cards */
.ac-needs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 7px;
}

.ac-needs li {
  width: 175px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #e9e2d1;
  border-radius: 20px;
}

.ac-needs img {
  width: 152px;
  height: 206px;
  object-fit: cover;
  border-radius: 10px;
}

.ac-needs .small-title {
  min-height: 32px;
  text-align: center;
  color: var(--color-text);
}

/* User quotes in dark bubbles */
.ac-quotes {
  display: flex;
  gap: 5px;
}

.ac-quotes--end { justify-content: flex-end; }

.ac-quote {
  flex: 1;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  background: #1c1c1c;
  color: #ffffff;
  border-radius: 20px;
}

.ac-quote--wide { flex: 0 1 483px; }

.ac-quote p {
  margin: 0;
  align-self: stretch;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
}

.ac-quote cite {
  font-family: var(--font-label);
  font-style: normal;
  font-size: 9px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 900px) {
  .ac-patent { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ac-shot { padding: 0 16px; }
}

/* ===================== Round 2 fixes ===================== */

/* No hover fade on the two "Understanding a new user" photos. */
#context .ac-pair .card { opacity: 1 !important; }

/* Scope photo: the sentence is real text, so it stays sharp. Sizes are
   in container units so it keeps its place as the photo scales. */
.ac-scope {
  position: relative;
  margin: 0;
  container-type: inline-size;
  border-radius: 20px;
  overflow: hidden;
}

.ac-scope img {
  display: block;
  width: 100%;
  height: auto;
}

.ac-scope__text {
  position: absolute;
  left: calc(40 / 1156 * 100cqw);
  top: calc(298 / 1156 * 100cqw);
  width: calc(320 / 1156 * 100cqw);
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: max(13px, calc(20 / 1156 * 100cqw));
  line-height: 1.15;
  color: #000000;
}

@media (max-width: 640px) {
  .ac-scope__text { position: static; width: auto; padding: 14px 16px; font-size: 16px; background: #dcebf3; }
}

/* Repository and diaries: same frame height, so captions line up. */
.ac-shots .card { justify-content: flex-start; }

.ac-shot {
  height: auto;
  aspect-ratio: 568 / 502;
  padding: 24px 40px 0;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 20px;
}

.ac-shot img {
  max-height: 100%;
  width: auto !important;
  max-width: 100%;
}

/* Physical needs: a soft spotlight follows the cursor; the rest of the
   map fades and blurs a little. No hard edges, since the groups work
   more like a spectrum than clear clusters. */
.ac-spot {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.ac-spot__veil {
  position: absolute;
  inset: 0;
  background: rgba(252, 248, 241, 0.72);
  -webkit-backdrop-filter: blur(2.5px);
          backdrop-filter: blur(2.5px);
  -webkit-mask-image: radial-gradient(circle 320px at var(--x, 50%) var(--y, 50%), transparent 0, transparent 55%, #000 100%);
          mask-image: radial-gradient(circle 320px at var(--x, 50%) var(--y, 50%), transparent 0, transparent 55%, #000 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.ac-spot.is-active .ac-spot__veil { opacity: 1; }

/* Emotional needs quotes: white text on the dark bubbles. */
.ac-quote p,
.ac-quote cite { color: #ffffff; }

/* ---------- Design principles: little motion pieces ----------
   Each stage is drawn with plain shapes. The resting state is the final
   frame from Figma; hovering plays the animation that leads to it. */
.ac-motion {
  position: relative;
  width: 100%;
  aspect-ratio: 274 / 305;
  overflow: hidden;
}

.ac-motion i,
.ac-motion span { position: absolute; display: block; }

.ac-motion .m-red {
  border-radius: 50%;
  background: #ff3800;
  z-index: 2;
}

/* Adapts to you */
.ac-motion--adapts .m-shape {
  left: 21.2%; top: 23.9%; width: 57.7%; aspect-ratio: 1;
  background: radial-gradient(circle, #ffffff 30%, #79c3d8 72%);
  border-radius: 50% 50% 0 50%;
}
.ac-motion--adapts .m-red { left: 32.8%; top: 34.6%; width: 34.3%; aspect-ratio: 1; }

  .is-playing .ac-motion--adapts .m-shape { animation: m-adapt 1.3s cubic-bezier(.3,.7,.2,1) both; }
@keyframes m-adapt {
  0%   { border-radius: 0; transform: scale(.4); opacity: 0; }
  25%  { border-radius: 0; transform: scale(1);  opacity: 1; }
  45%  { border-radius: 0; }
  65%  { border-radius: 50% 0 0 0; }
  80%  { border-radius: 50% 50% 0 0; }
  100% { border-radius: 50% 50% 0 50%; }
}

/* Made for all */
.ac-motion--all .m-red  { left: 38.1%; top: 40.5%; width: 23.7%; aspect-ratio: 1; }
.ac-motion--all .m-side { top: 40.5%; width: 23.7%; aspect-ratio: 1; border-radius: 50%; }
.ac-motion--all .m-side--l { left: 11.9%; background: linear-gradient(90deg, rgba(255,56,0,0) 0%, #ff3800 95%); }
.ac-motion--all .m-side--r { left: 64.4%; background: linear-gradient(270deg, rgba(255,56,0,0) 0%, #ff3800 95%); }
.ac-motion--all .m-side::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #ff3800; opacity: 0;
}
.is-playing .ac-motion--all .m-side--l { animation: m-out-l 2s cubic-bezier(.3,.7,.2,1) both; }
.is-playing .ac-motion--all .m-side--r { animation: m-out-r 2s cubic-bezier(.3,.7,.2,1) both; }
.is-playing .ac-motion--all .m-side::after { animation: m-fade-edge 2s ease both; }
@keyframes m-out-l { 0%, 20% { left: 38.1%; } 70%, 100% { left: 11.9%; } }
@keyframes m-out-r { 0%, 20% { left: 38.1%; } 70%, 100% { left: 64.4%; } }
@keyframes m-fade-edge { 0%, 65% { opacity: 1; } 100% { opacity: 0; } }

/* Fosters variety: the red circle "juggles" the three abilities */
.ac-motion--variety .m-red { left: 27.9%; top: 36.2%; width: 27.4%; aspect-ratio: 1; }
.ac-motion--variety .m-ball { width: 18.2%; aspect-ratio: 1; border-radius: 50%; z-index: 3; }
.m-ball--blue   { left: 46%;   top: 21%;   background: linear-gradient(45deg, #79c3d8 25%, #ffffff 100%); }
.m-ball--yellow { left: 57.7%; top: 40.3%; background: linear-gradient(90deg, #ffd500 30%, #ffffff 100%); }
.m-ball--green  { left: 46%;   top: 59.3%; background: linear-gradient(135deg, #3d5c36 35%, #ffffff 100%); }

/* Juggling: the top and right balls circle around each other in one
   smooth loop (two half-turns with a pause), like two balls passed from
   hand to hand. The bottom ball stays put. Frames are sampled from an
   eased curve so the motion has no corners. */
.is-playing .m-ball--blue   { animation: m-j-blue   2.6s linear both; }
.is-playing .m-ball--yellow { animation: m-j-yellow 2.6s linear both; }
@keyframes m-j-blue {
  0% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  2% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  4% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  6% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  8% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  10% { left: 46.01%; top: 20.99%; transform: scale(1.000); }
  12% { left: 46.11%; top: 20.94%; transform: scale(1.001); }
  14% { left: 46.38%; top: 20.80%; transform: scale(1.005); }
  16% { left: 46.94%; top: 20.61%; transform: scale(1.011); }
  18% { left: 47.96%; top: 20.48%; transform: scale(1.022); }
  20% { left: 49.66%; top: 20.75%; transform: scale(1.037); }
  22% { left: 52.19%; top: 22.01%; transform: scale(1.054); }
  24% { left: 55.47%; top: 25.05%; transform: scale(1.068); }
  26% { left: 58.49%; top: 30.04%; transform: scale(1.068); }
  28% { left: 59.67%; top: 34.35%; transform: scale(1.054); }
  30% { left: 59.61%; top: 37.18%; transform: scale(1.037); }
  32% { left: 59.07%; top: 38.80%; transform: scale(1.022); }
  34% { left: 58.49%; top: 39.65%; transform: scale(1.011); }
  36% { left: 58.05%; top: 40.06%; transform: scale(1.005); }
  38% { left: 57.81%; top: 40.23%; transform: scale(1.001); }
  40% { left: 57.71%; top: 40.29%; transform: scale(1.000); }
  42% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  44% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  46% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  48% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  50% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  52% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  54% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  56% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  58% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  60% { left: 57.69%; top: 40.31%; transform: scale(1.000); }
  62% { left: 57.59%; top: 40.36%; transform: scale(0.999); }
  64% { left: 57.32%; top: 40.50%; transform: scale(0.995); }
  66% { left: 56.76%; top: 40.69%; transform: scale(0.989); }
  68% { left: 55.74%; top: 40.82%; transform: scale(0.978); }
  70% { left: 54.04%; top: 40.55%; transform: scale(0.963); }
  72% { left: 51.51%; top: 39.29%; transform: scale(0.946); }
  74% { left: 48.23%; top: 36.25%; transform: scale(0.932); }
  76% { left: 45.21%; top: 31.26%; transform: scale(0.932); }
  78% { left: 44.03%; top: 26.95%; transform: scale(0.946); }
  80% { left: 44.09%; top: 24.12%; transform: scale(0.963); }
  82% { left: 44.63%; top: 22.50%; transform: scale(0.978); }
  84% { left: 45.21%; top: 21.65%; transform: scale(0.989); }
  86% { left: 45.65%; top: 21.24%; transform: scale(0.995); }
  88% { left: 45.89%; top: 21.07%; transform: scale(0.999); }
  90% { left: 45.99%; top: 21.01%; transform: scale(1.000); }
  92% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  94% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  96% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  98% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  100% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
}
@keyframes m-j-yellow {
  0% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  2% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  4% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  6% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  8% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  10% { left: 57.69%; top: 40.31%; transform: scale(1.000); }
  12% { left: 57.59%; top: 40.36%; transform: scale(0.999); }
  14% { left: 57.32%; top: 40.50%; transform: scale(0.995); }
  16% { left: 56.76%; top: 40.69%; transform: scale(0.989); }
  18% { left: 55.74%; top: 40.82%; transform: scale(0.978); }
  20% { left: 54.04%; top: 40.55%; transform: scale(0.963); }
  22% { left: 51.51%; top: 39.29%; transform: scale(0.946); }
  24% { left: 48.23%; top: 36.25%; transform: scale(0.932); }
  26% { left: 45.21%; top: 31.26%; transform: scale(0.932); }
  28% { left: 44.03%; top: 26.95%; transform: scale(0.946); }
  30% { left: 44.09%; top: 24.12%; transform: scale(0.963); }
  32% { left: 44.63%; top: 22.50%; transform: scale(0.978); }
  34% { left: 45.21%; top: 21.65%; transform: scale(0.989); }
  36% { left: 45.65%; top: 21.24%; transform: scale(0.995); }
  38% { left: 45.89%; top: 21.07%; transform: scale(0.999); }
  40% { left: 45.99%; top: 21.01%; transform: scale(1.000); }
  42% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  44% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  46% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  48% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  50% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  52% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  54% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  56% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  58% { left: 46.00%; top: 21.00%; transform: scale(1.000); }
  60% { left: 46.01%; top: 20.99%; transform: scale(1.000); }
  62% { left: 46.11%; top: 20.94%; transform: scale(1.001); }
  64% { left: 46.38%; top: 20.80%; transform: scale(1.005); }
  66% { left: 46.94%; top: 20.61%; transform: scale(1.011); }
  68% { left: 47.96%; top: 20.48%; transform: scale(1.022); }
  70% { left: 49.66%; top: 20.75%; transform: scale(1.037); }
  72% { left: 52.19%; top: 22.01%; transform: scale(1.054); }
  74% { left: 55.47%; top: 25.05%; transform: scale(1.068); }
  76% { left: 58.49%; top: 30.04%; transform: scale(1.068); }
  78% { left: 59.67%; top: 34.35%; transform: scale(1.054); }
  80% { left: 59.61%; top: 37.18%; transform: scale(1.037); }
  82% { left: 59.07%; top: 38.80%; transform: scale(1.022); }
  84% { left: 58.49%; top: 39.65%; transform: scale(1.011); }
  86% { left: 58.05%; top: 40.06%; transform: scale(1.005); }
  88% { left: 57.81%; top: 40.23%; transform: scale(1.001); }
  90% { left: 57.71%; top: 40.29%; transform: scale(1.000); }
  92% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  94% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  96% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  98% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
  100% { left: 57.70%; top: 40.30%; transform: scale(1.000); }
}

/* the red circle stays still: only the balls move */
.ac-motion--variety .m-orbit { inset: 0; z-index: 3; }

/* Enables independence: three people, then focus on the one in the middle */
.ac-motion--independence .m-person { inset: 0; transform-origin: 50% 45%; }
.ac-motion--independence .m-head { left: 32.5%; top: 22.6%; width: 35%; aspect-ratio: 1; border-radius: 50%; background: #ff3800; }
.ac-motion--independence .m-body {
  left: 27%; top: 57.7%; width: 46%; aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(#79c3d8, rgba(255,255,255,0) 90%);
}
.m-person--l, .m-person--r { opacity: 0; }

.is-playing .m-person--c { animation: m-focus 2.2s cubic-bezier(.3,.7,.2,1) both; }
.is-playing .m-person--l { animation: m-side-l 2.2s cubic-bezier(.3,.7,.2,1) both; }
.is-playing .m-person--r { animation: m-side-r 2.2s cubic-bezier(.3,.7,.2,1) both; }
@keyframes m-focus  { 0%, 40% { transform: scale(.45); } 100% { transform: scale(1); } }
@keyframes m-side-l { 0% { transform: translateX(-30%) scale(.45); opacity: 0; } 15%, 40% { transform: translateX(-30%) scale(.45); opacity: 1; } 100% { transform: translateX(-45%) scale(.45); opacity: 0; } }
@keyframes m-side-r { 0% { transform: translateX(30%) scale(.45); opacity: 0; } 15%, 40% { transform: translateX(30%) scale(.45); opacity: 1; } 100% { transform: translateX(45%) scale(.45); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .is-playing .ac-motion * { animation: none !important; }
  .ac-spot__veil { display: none; }
}

/* Each principle fades out briefly before its animation, so it never
   jumps (js/accessibility.js adds .is-fading for 180ms). */
.ac-motion { transition: opacity 0.18s ease; }
.is-fading .ac-motion { opacity: 0; }

/* ---------- Scroll reveals (js/accessibility.js) ---------- */

/* Attitudes cards: blobs pop in one after the other */
.ac-att .att-blob { transform-box: fill-box; transform-origin: center; }
.ac-att.will-reveal .att-blob { transform: scale(0); opacity: 0; }
.ac-att.will-reveal .att-axes,
.ac-att.will-reveal .att-lines { opacity: 0; }
.ac-att.will-reveal .att-card { opacity: 0; transform: translateY(18px); }
.ac-att.is-revealed .att-blob {
  transform: none; opacity: 1;
  transition: transform .6s cubic-bezier(.34,1.56,.64,1) calc(var(--d) * .18s + .1s), opacity .3s ease calc(var(--d) * .18s + .1s);
}
.ac-att.is-revealed .att-axes { opacity: 1; transition: opacity .5s ease .9s; }
.ac-att.is-revealed .att-lines { opacity: 1; transition: opacity .5s ease .8s; }
.ac-att.is-revealed .att-card { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--d) * .15s + 1s); }
.att-pill { font-family: var(--font-label); font-size: 6.5px; letter-spacing: .02em; text-anchor: middle; fill: #000; }
.att-axis { font-family: var(--font-heading); font-weight: 500; font-size: 13px; fill: #000; }

/* First products: rise into view out of a soft blur */
.ac-rise.will-reveal img { opacity: 0; filter: blur(12px); transform: translateY(30px) scale(.94); }
.ac-rise.is-revealed img {
  opacity: 1; filter: none; transform: none;
  transition: opacity .7s ease, filter .9s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}

/* Hardware features: labels burst out of the device, lines follow */
/* The render includes its drop shadow, which reaches 48px past the device
   on the left: shift it so the device itself sits centred. */
.ac-hw { position: relative; width: 84.2%; max-width: 973px; margin: 20px auto 0; translate: -2.5% 0; }
.ac-hw img { display: block; width: 100%; height: auto; padding: 0 !important; max-width: none !important; }
.ac-hw__labels { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ac-hw__labels text { font-family: var(--font-heading); font-weight: 500; font-size: 11.5px; fill: #000; stroke: none; }
.ac-hw .hw-label { transform-box: view-box; }
.ac-hw.will-reveal .hw-label { transform: scale(0); opacity: 0; }
.ac-hw.is-revealed .hw-label {
  transform: none; opacity: 1;
  transition: transform .9s cubic-bezier(.16,1,.3,1) calc(var(--d) * 70ms + 250ms), opacity .4s ease calc(var(--d) * 70ms + 250ms);
}
.ac-hw.will-reveal img { transform: scale(.96); }
.ac-hw.is-revealed img { transform: none; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }

@media (prefers-reduced-motion: reduce) {
  .will-reveal *, .is-revealed * { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Emotional needs and quotes: pop in one after the other */
.ac-pop > * { transform-origin: center; }
.ac-pop.will-reveal > * { transform: scale(.6); opacity: 0; }
.ac-pop.is-revealed > * {
  transform: none; opacity: 1;
  transition: transform .6s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.ac-pop.is-revealed > :nth-child(1) { transition-delay: .1s; }
.ac-pop.is-revealed > :nth-child(2) { transition-delay: .28s; }
.ac-pop.is-revealed > :nth-child(3) { transition-delay: .46s; }
.ac-pop.is-revealed > :nth-child(4) { transition-delay: .64s; }
.ac-pop.is-revealed > :nth-child(5) { transition-delay: .82s; }

/* Repository and diaries: both browser windows at the same size,
   centred in their frames. */
.ac-shot { padding: 0; align-items: center; justify-content: center; }
.ac-shots .ac-shot img {
  height: 82%; width: auto !important; max-width: 90%;
  aspect-ratio: auto; object-fit: contain;
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 12px 32px rgba(60, 40, 10, .14);
}

/* Inline text link (Adaptive Pebble) */
.ac-inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-signal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.ac-inline-link:hover { color: var(--color-signal-text); }

/* Software flows video: the tile takes the video's own background colour, so no band shows at the sides */
.ac-tile--flows { background: #faf7ef; }
