/* Odyssey case study — Amplio page spacing, Figma "Odyssey" content */

/* Sticky flow cards stick to the viewport. overflow-x: hidden on body and
   .case-page would trap them in a non-scrolling box. */
body:has(.odyssey-page),
.odyssey-page {
  overflow: visible;
}

.odyssey-page .case-banner {
  height: auto;
  overflow: visible;
  padding: 28px 0 0;
}

.odyssey-banner-shot {
  position: relative;
  width: calc(100% - 160px);
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.odyssey-banner-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.odyssey-page .case-banner + .case-column {
  position: relative;
  z-index: 1;
  margin-top: -24px;
}

.odyssey-page .case-column {
  max-width: none;
  padding-left: 160px;
  padding-right: 160px;
  padding-bottom: 0;
}

.odyssey-page .case-card {
  max-width: none;
}

.odyssey-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}

.odyssey-lead {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.odyssey-page .odyssey-lead > .case-card-head {
  margin-bottom: 12px;
}

.odyssey-lead > h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.odyssey-page .case-label img {
  width: 8.59085px;
  height: 8.59085px;
}

.odyssey-shot {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.odyssey-shot img {
  position: absolute;
  max-width: none;
}

.odyssey-cover img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.odyssey-competitors {
  aspect-ratio: 1024 / 586;
  border-radius: 16px;
}

.odyssey-affinity {
  aspect-ratio: 1024 / 507;
  border-radius: 16px;
}

.odyssey-affinity img {
  width: 100%;
  height: 107.58%;
  left: 0;
  top: -7.05%;
}

.odyssey-arch {
  aspect-ratio: 1024 / 450;
  border-radius: 12px;
}

.odyssey-arch img {
  width: 100.02%;
  height: 112.22%;
  left: -0.01%;
  top: -1.71%;
}

.odyssey-sketch-a {
  aspect-ratio: 1000 / 459.82;
  border-radius: 12px;
}

.odyssey-sketch-b {
  aspect-ratio: 1000 / 507.54;
  border-radius: 12px;
}

.odyssey-before {
  aspect-ratio: 1000 / 521.44;
}

.odyssey-after {
  aspect-ratio: 1000 / 565.49;
}

.odyssey-landing {
  aspect-ratio: 1024 / 789;
}

.odyssey-landing img {
  width: 104.7%;
  height: 103.38%;
  left: -2.35%;
  top: -1.62%;
}

.odyssey-proto,
.odyssey-flow-frame {
  width: 100%;
  border: 3px solid #f3f3f3;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.odyssey-proto video,
.odyssey-flow-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.odyssey-proto {
  width: 88%;
  margin-right: auto;
  margin-left: auto;
}

.odyssey-split {
  display: flex;
  gap: 12px;
  width: 100%;
  height: 320px;
}

.odyssey-split-left,
.odyssey-split-right {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.odyssey-split-left {
  width: 500px;
  flex-shrink: 0;
}

.odyssey-split-right {
  flex: 1;
  min-width: 0;
}

.odyssey-split img {
  position: absolute;
  max-width: none;
}

.odyssey-split-left img {
  width: 111.3%;
  height: 213.46%;
  left: -5.64%;
  top: -6.69%;
}

.odyssey-split-right img {
  width: 111.3%;
  height: 214.87%;
  left: -5.7%;
  top: -107.48%;
}

.odyssey-insights {
  display: flex;
  gap: 18px;
  width: 100%;
  padding: 8px 0;
}

.odyssey-insight {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 28px;
  border: 4px solid #fff;
  border-radius: 20px;
  background: #35619b;
  color: #fff;
  text-align: center;
}

.odyssey-insight-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.odyssey-insight-title span {
  font-weight: 800;
  font-size: 32px;
  line-height: normal;
}

.odyssey-insight h3,
.odyssey-take h3 {
  margin: 0;
  font-weight: 800;
  font-size: 18px;
  line-height: normal;
}

.odyssey-insight h3 {
  color: #fff;
}

.odyssey-insight p,
.odyssey-take p {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
}

.odyssey-insight p {
  color: #fff;
}

.odyssey-flows {
  width: 100%;
  overflow: visible;
  padding: 32px 0 24px;
}

.odyssey-flows-track {
  display: flex;
  flex-direction: column;
  width: auto;
  padding: 0 160px;
  /* scroll distance each video stays pinned (centred) before the next slides over */
  gap: 32vh;
  container-type: inline-size;
}

.odyssey-page .odyssey-flow-card {
  position: sticky;
  top: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.odyssey-flow-card h2 {
  margin-top: 0;
}

.odyssey-flow-card .odyssey-flow-frame {
  width: min(92%, calc((100vh - 160px) * 2878 / 1838));
  max-height: calc(100vh - 160px);
  aspect-ratio: 2878 / 1838;
  margin: 8px auto;
}

.odyssey-flow-card .odyssey-flow-wide {
  width: min(92%, calc((100vh - 160px) * 2878 / 1598));
  aspect-ratio: 2878 / 1598;
}

/* Shorter recordings keep their own frame. The extra section height is
   split above and below the video so it sits in the middle of the card. */
.odyssey-flow-card:has(.odyssey-flow-wide) {
  padding-bottom: calc(20px + 0.46 * (100cqi - 96px) * 240 / 2878);
}

.odyssey-flow-card:has(.odyssey-flow-wide) .odyssey-flow-frame {
  margin-top: calc(16px + 0.46 * (100cqi - 96px) * 240 / 2878);
}

.odyssey-flow-card .odyssey-flow-frame video {
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  max-width: none;
  margin-top: -4px;
  object-fit: fill;
  background: #fff;
}

.odyssey-flow-card:nth-child(1) {
  z-index: 1;
}

.odyssey-flow-card:nth-child(2) {
  z-index: 2;
}

.odyssey-flow-card:nth-child(3) {
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .odyssey-flows-track {
    gap: 24px;
  }

  .odyssey-page .odyssey-flow-card {
    position: static;
  }
}

.odyssey-page .odyssey-close {
  margin-top: 32px;
  padding-bottom: 80px;
}

.odyssey-takes {
  display: flex;
  gap: 24px;
  width: 100%;
  padding: 8px 0;
}

.odyssey-take {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 28px;
  border-radius: 20px;
  background: #effaff;
  text-align: center;
}

.odyssey-take-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.odyssey-take img {
  width: 24.4738px;
  height: 24.4738px;
}

.odyssey-take h3,
.odyssey-take p {
  color: #35619b;
}

.odyssey-page .footer {
  margin-top: 0;
  padding: 24px 0 64px;
  background: #f3f3f3;
}

@media (max-width: 1439px) {
  .odyssey-page .case-banner {
    height: auto;
    padding-top: 24px;
  }

  .odyssey-banner-shot {
    width: calc(100% - 160px);
  }

  .odyssey-flows-track {
    padding-left: 160px;
    padding-right: 160px;
  }
}

@media (max-width: 800px) {
  .odyssey-page .case-banner {
    height: auto;
    padding-top: 20px;
  }

  .odyssey-banner-shot {
    width: calc(100% - 32px);
  }

  .odyssey-page .case-column {
    padding-left: 16px;
    padding-right: 16px;
  }

  .odyssey-page .case-banner + .case-column {
    margin-top: -20px;
  }

  .odyssey-insights,
  .odyssey-takes,
  .odyssey-split {
    flex-direction: column;
  }

  .odyssey-split {
    height: auto;
  }

  .odyssey-split-left,
  .odyssey-split-right {
    width: 100%;
    height: auto;
    aspect-ratio: 500 / 320;
  }

  .odyssey-flows-track {
    padding-left: 16px;
    padding-right: 16px;
  }

  .odyssey-page .odyssey-flow-card {
    width: 100%;
  }
}

/* Phones: banner sits below the Back button instead of under it */
@media (max-width: 800px) {
  .odyssey-page .case-banner {
    padding-top: 64px;
  }

  .odyssey-page .case-banner + .case-column {
    margin-top: -12px;
  }
}
