/* 04 — Ocean Blast */
.ocean-project {
  display: flow-root;
  width: min(100%, 1440px);
  margin-inline: auto;
  container-type: inline-size;
  scroll-margin-top: 68px;
  background: #000;
}

.ocean-surface {
  --ocean-unit: calc(100cqw / 1440);
  --ocean-blue: #1a68b2;
  overflow: hidden;
  border-radius: calc(100 * var(--ocean-unit));
  background: #b1e8ff;
  color: #000;
  padding-bottom: calc(153 * var(--ocean-unit));
  margin-bottom: calc(177 * var(--ocean-unit));
}

.ocean-cover {
  position: relative;
}

.ocean-cover-title,
.ocean-heading,
.ocean-gallery figure {
  margin: 0;
}

.ocean-cover-title img,
.ocean-screen img {
  width: 100%;
  height: auto;
}

.ocean-cover-labels {
  position: absolute;
  inset: calc(51 * var(--ocean-unit)) calc(120 * var(--ocean-unit)) auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-size: max(9px, calc(16 * var(--ocean-unit)));
  text-transform: uppercase;
}

.ocean-cover-labels > span {
  display: flex;
  align-items: center;
  gap: max(3px, calc(6 * var(--ocean-unit)));
}

.ocean-cover-labels > span > span {
  margin-inline-start: calc(12 * var(--ocean-unit));
}

.ocean-cover-labels img {
  width: max(6px, calc(14 * var(--ocean-unit)));
  height: auto;
}

.ocean-cover-labels > span:last-child img {
  width: max(18px, calc(42.5 * var(--ocean-unit)));
}

.ocean-heading {
  position: relative;
  width: min(100% - 32px, max(188px, calc(511 * var(--ocean-unit))));
  aspect-ratio: 511 / 118;
  margin-inline: auto;
  container-type: inline-size;
}

.ocean-heading span {
  position: absolute;
  inset: 19.03% 13.31% auto 13.7%;
  height: 72.88%;
  display: flex;
  align-items: center;
  padding-inline-start: 25.64cqw;
  border-radius: 99px;
  background: linear-gradient(#2d98f6, #0950ad);
  box-shadow: 0 .78cqw 1.08cqw rgba(2, 18, 41, .25),
    inset 0 -.39cqw .74cqw rgba(0, 0, 0, .25),
    inset 0 .59cqw .37cqw rgba(255, 255, 255, .82);
  color: #fff;
  font: 600 9.39cqw/1 "PingFang HK", "PingFang SC", sans-serif;
  white-space: nowrap;
}

.ocean-heading img {
  position: absolute;
  inset: 4.47% auto auto 17.77%;
  width: 19.97%;
  height: auto;
  transform: rotate(-6.28deg);
}

.ocean-heading::before,
.ocean-heading::after {
  position: absolute;
  top: 26.66%;
  width: 10.3%;
  height: 52.03%;
  background: url("./assets/ocean-blast/heading-splash-left.webp") center / contain no-repeat;
  content: "";
}

.ocean-heading::before {
  left: 0;
  transform: scaleX(-1);
}

.ocean-heading::after {
  right: 0;
  background-image: url("./assets/ocean-blast/heading-splash-right.webp");
}

.ocean-primary {
  position: relative;
  margin-top: calc(-91 * var(--ocean-unit));
}

.ocean-features {
  width: calc(1175 * var(--ocean-unit));
  margin: calc(121 * var(--ocean-unit)) auto 0;
}

.ocean-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "screen copy";
  column-gap: calc(95 * var(--ocean-unit));
}

.ocean-feature:nth-child(even) {
  grid-template-areas: "copy screen";
}

/* The two columns are staggered by the spacing of the desktop artboard. */
.ocean-feature--lobby { --copy-offset: 139; }
.ocean-feature--map { --copy-offset: 465; --row-overlap: 385; }
.ocean-feature--inventory { --copy-offset: 334; --row-overlap: 160; }
.ocean-feature--shop { --copy-offset: 361; --row-overlap: 190; }
.ocean-feature--friends { --copy-offset: 242; --row-overlap: 161; }

.ocean-feature + .ocean-feature {
  margin-top: calc(-1 * var(--row-overlap) * var(--ocean-unit));
}

.ocean-screen {
  --ocean-frame-width: max(2px, calc(12 * var(--ocean-unit)));
  grid-area: screen;
  align-self: start;
  overflow: hidden;
  border-radius: calc(70 * var(--ocean-unit));
  box-shadow: 0 0 0 var(--ocean-frame-width) #fff;
}

.ocean-feature-copy {
  grid-area: copy;
  align-self: start;
  position: relative;
  margin-top: calc(var(--copy-offset) * var(--ocean-unit));
  padding: calc(83 * var(--ocean-unit)) calc(45 * var(--ocean-unit)) 0 calc(24 * var(--ocean-unit));
}

.ocean-feature:nth-child(even) .ocean-feature-copy {
  padding-inline: calc(60 * var(--ocean-unit)) 0;
  text-align: right;
}

.ocean-feature--shop:nth-child(even) .ocean-feature-copy {
  padding-inline-start: calc(177 * var(--ocean-unit));
}

.ocean-feature-number {
  position: absolute;
  inset: 0 auto auto calc(24 * var(--ocean-unit));
  color: #98d7f3;
  font-size: calc(130 * var(--ocean-unit));
  font-weight: 900;
  line-height: 1.38;
}

.ocean-feature:nth-child(even) .ocean-feature-number {
  inset-inline: auto 0;
}

.ocean-feature h4 {
  position: relative;
  margin: 0 0 calc(19 * var(--ocean-unit));
  color: var(--ocean-blue);
  font-size: max(20px, calc(48 * var(--ocean-unit)));
  font-weight: 900;
  line-height: 1.4;
}

.ocean-feature p,
.ocean-items-panel p {
  position: relative;
  margin: 0;
  font-size: max(13px, calc(20 * var(--ocean-unit)));
  line-height: 1.4;
}

.ocean-navigation-icons {
  grid-area: copy;
  align-self: end;
  width: calc(499 * var(--ocean-unit));
  height: auto;
  margin-inline-start: calc(11 * var(--ocean-unit));
}

.ocean-secondary {
  margin-top: calc(245 * var(--ocean-unit));
}

.ocean-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(40 * var(--ocean-unit));
  width: calc(1181 * var(--ocean-unit));
  margin: calc(79 * var(--ocean-unit)) auto 0;
}

.ocean-gallery .ocean-screen {
  --ocean-frame-width: max(2px, calc(8 * var(--ocean-unit)));
  border-radius: calc(40 * var(--ocean-unit));
}

.ocean-gallery figcaption {
  margin-top: calc(28 * var(--ocean-unit));
  color: var(--ocean-blue);
  text-align: center;
  font-size: max(12px, calc(36 * var(--ocean-unit)));
  line-height: 1.4;
}

.ocean-items {
  margin-top: calc(179 * var(--ocean-unit));
}

.ocean-items-panel {
  width: calc(1200 * var(--ocean-unit));
  margin: calc(75 * var(--ocean-unit)) auto 0;
  padding: calc(72 * var(--ocean-unit)) calc(58 * var(--ocean-unit)) calc(47 * var(--ocean-unit)) calc(76 * var(--ocean-unit));
  border-radius: calc(80 * var(--ocean-unit));
  background: white;
}

.ocean-items-panel p {
  min-height: calc(75 * var(--ocean-unit));
  margin-bottom: calc(41 * var(--ocean-unit));
  font-size: max(12px, calc(18 * var(--ocean-unit)));
}

.ocean-item-art {
  position: relative;
}

.ocean-items-wordmark {
  position: absolute;
  top: calc(56 * var(--ocean-unit));
  left: calc(-30.17 * var(--ocean-unit));
  width: calc(1104.17 * var(--ocean-unit));
  height: auto;
}

.ocean-item-icons {
  position: relative;
  width: calc(1053 * var(--ocean-unit));
  height: auto;
}

@media (max-width: 700px) {
  .ocean-primary {
    margin-top: -12px;
  }

  .ocean-features {
    width: min(100% - 48px, 400px);
    margin-top: 32px;
  }

  .ocean-feature,
  .ocean-feature:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "screen" "icons";
    row-gap: 18px;
  }

  .ocean-feature + .ocean-feature {
    margin-top: 44px;
  }

  .ocean-feature .ocean-feature-copy,
  .ocean-feature:nth-child(even) .ocean-feature-copy,
  .ocean-feature--shop:nth-child(even) .ocean-feature-copy {
    margin-top: 0;
    padding: 18px 0 0;
    text-align: left;
  }

  .ocean-feature .ocean-feature-number,
  .ocean-feature:nth-child(even) .ocean-feature-number {
    inset-inline: 0 auto;
    font-size: 48px;
    line-height: 1;
  }

  .ocean-feature h4 {
    margin-bottom: 8px;
    font-size: 26px;
  }

  .ocean-feature p,
  .ocean-items-panel p {
    font-size: 14px;
    line-height: 1.55;
  }

  .ocean-screen {
    --ocean-frame-width: 5px;
    border-radius: 28px;
  }

  .ocean-navigation-icons {
    grid-area: icons;
    width: 75%;
    margin: 6px auto 0;
  }

  .ocean-secondary,
  .ocean-items {
    margin-top: 54px;
  }

  .ocean-gallery,
  .ocean-items-panel {
    width: calc(100% - 36px);
    margin-top: 24px;
  }

  .ocean-items-panel {
    padding: 18px;
  }

  .ocean-items-wordmark {
    inset-inline: 0;
    width: 100%;
  }

  .ocean-item-icons {
    width: 100%;
  }
}
