/* Atlas case study — additions on top of hearbat.css */

.case__cover--atlas {
  background-image: url("images/atlas-hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.case__quotes {
  list-style: none;
  padding: 0;
  margin: 6px 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.case__quotes li {
  flex: 1 1 0;
  min-width: 200px;
  font-size: 18px;
  line-height: 1.5;
  color: #333333;
  font-style: italic;
}
.case__quotes li::before {
  content: "“";
  font-style: normal;
  color: var(--ink-mute);
}
.case__quotes li::after {
  content: "”";
  font-style: normal;
  color: var(--ink-mute);
}

/* Final-screens phone trio */
.screens__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 720px) {
  .screens__row { grid-template-columns: 1fr; }
}
.screens__phone {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #d9d9d9;
  border-radius: 12px;
}

/* Solution-row placeholder phones (drop-in for <img>) */
.opp__screens .opp__phone {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 9 / 19;
  background: #d9d9d9;
  border-radius: 14px;
  display: block;
}

@media (max-width: 600px) {
  .opp__screens .opp__phone {
    flex: 0 1 calc(50% - 8px);
    max-width: none;
  }
}

/* User research, opportunities & reflection boxes + challenge callout: white fill, gray stroke */
#research .opp,
#opportunities .opp,
.reflect__card,
.callout {
  background: #fff;
  border: 1px solid var(--line, #d1d1d1);
}

/* Breathing room between the research boxes and the synthesis text below */
#research .opps + .case__body {
  margin-top: 32px;
}

/* Reflection card body text in gray */
.reflect__card p:last-child {
  color: var(--ink-mute);
}

/* ---------- Solution 2x2 grid (Atlas) ---------- */

.opps--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  row-gap: 36px;
  margin-top: 28px;
  align-items: start;
}

.opp--cell {
  background: transparent;
  border: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.opp--cell h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -.005em;
  color: var(--ink);
}
.opp--cell .opp__num {
  font-weight: 700;
  color: var(--ink);
  margin-right: 2px;
}
.opp--cell .opp__copy p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mute);
  margin: 0;
}

.opp--with-media {
  gap: 18px;
}
.opp__media {
  width: 100%;
  aspect-ratio: 4 / 1;
  background: #d9d9d9;
  border-radius: 10px;
}
.opp__media:has(img) {
  aspect-ratio: auto;
  background: transparent;
}
.opp__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* ---------- Atlas animated UI mockups ---------- */

.atlas-ui {
  aspect-ratio: auto;
  min-height: 150px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  background-color: #ebebeb;
  background-image:
    radial-gradient(120px 90px at 78% 30%, rgba(150,185,120,.28), transparent 70%),
    repeating-linear-gradient(0deg,  rgba(0,0,0,.05) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 48px);
}

.atlas-chip {
  flex: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #1b1b1b;
  background: #fff;
  border: 1.5px solid #1b1b1b;
  border-radius: 999px;
  padding: 7px 15px;
  line-height: 1;
  white-space: nowrap;
}

/* Search bar (section 03) */
.atlas-searchbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #1b1b1b;
  border-radius: 999px;
  padding: 5px 5px 5px 20px;
}
.atlas-searchbar__text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #1b1b1b;
}
.atlas-searchbar__btn {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #141414;
  color: #fff;
  display: grid;
  place-items: center;
}
.atlas-searchbar__btn svg { width: 17px; height: 17px; }

/* Horizontally scrolling pill marquee */
.atlas-marquee {
  overflow: hidden;
}
.atlas-marquee__track {
  display: flex;
  width: max-content;
  animation: atlas-scroll 15s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.atlas-marquee__track .atlas-chip { margin-right: 10px; }

/* Section 04 keeps the same pills but holds them still */
.atlas-ui--static .atlas-marquee__track { animation: none; }

/* Flick-and-pause: quick swipe, then hold to "read", repeat — loops seamlessly at -50% */
@keyframes atlas-scroll {
  0%,  8%   { transform: translateX(0); }
  14%, 28%  { transform: translateX(-10%); }
  34%, 48%  { transform: translateX(-20%); }
  54%, 68%  { transform: translateX(-30%); }
  74%, 88%  { transform: translateX(-40%); }
  94%, 100% { transform: translateX(-50%); }
}

/* Animated Lost & Found toggle (section 04) */
.atlas-toggle {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #1b1b1b;
  border-radius: 999px;
  padding: 6px 12px 6px 18px;
}
.atlas-toggle__label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #1b1b1b;
}
.atlas-switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #cdcdcd;
  animation: atlas-track 3.6s ease-in-out infinite;
}
.atlas-switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.28);
  animation: atlas-knob 3.6s cubic-bezier(0.34, 1.45, 0.64, 1) infinite;
}
/* off → bounce on → hold → bounce off → hold, looping */
@keyframes atlas-knob {
  0%, 12%   { left: 2px; }
  38%, 58%  { left: 20px; }
  84%, 100% { left: 2px; }
}
@keyframes atlas-track {
  0%, 12%   { background: #cdcdcd; }
  38%, 58%  { background: #141414; }
  84%, 100% { background: #cdcdcd; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-marquee__track,
  .atlas-switch,
  .atlas-switch__knob { animation: none; }
  .atlas-switch { background: #141414; }
  .atlas-switch__knob { left: 20px; }
}

@media (max-width: 760px) {
  .opps--grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
}

/* Carousel placeholder phone */
.carousel__phone {
  width: 100%;
  aspect-ratio: 9 / 19;
  background: #d9d9d9;
  border-radius: 16px;
}

/* Prototype walkthrough video — cropped phone-only, autoplay loop, no chrome */
.proto-video {
  margin: 18px auto 6px;
  max-width: 300px;
  text-align: center;
}
.proto-video__el {
  width: 100%;
  display: block;
  aspect-ratio: 540 / 1100;
  object-fit: cover;
  border-radius: 50px;
}
.proto-video__cap {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-mute);
}
