@import url("https://fonts.googleapis.com/css2?family=Sora:wght@700;800&display=swap");

:root {
  --ds-display-font: "Sora", "Inter", ui-sans-serif, system-ui, sans-serif;
  --ds-panel-radius: 18px;
  --ds-map-radius: 22px;
}

:where(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  h1 *,
  h2 *,
  h3 *,
  h4 *,
  h5 *,
  h6 *,
  .uppercase,
  header [aria-label="DockSide"] span,
  footer [aria-label="DockSide"] span
) {
  font-family: var(--ds-display-font);
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

:where(h1, h2, h3, h4, h5, h6) {
  line-height: 1.08 !important;
}

#hero-heading {
  position: relative;
}

#hero-heading::after {
  content: "";
  display: block;
  width: min(9rem, 34vw);
  height: 3px;
  margin-top: 1.1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #2dd4bf, rgb(255 255 255 / 0.68), transparent);
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left;
}

#hero-heading.dockside-title-ready::after {
  animation: docksideTitleRule 900ms ease-out 1550ms both;
}

.dockside-title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.38em);
  text-shadow: 0 0 0 rgb(110 231 215 / 0);
}

#hero-heading.dockside-title-ready .dockside-title-word {
  animation: docksideTitleWord 960ms cubic-bezier(0.2, 0.72, 0.18, 1) both;
  animation-delay: calc(var(--word-index) * 135ms);
}

.dockside-deferred-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

video[data-dockside-optimized-video="true"] {
  will-change: auto;
}

section[aria-labelledby="hero-heading"] video {
  background:
    linear-gradient(90deg, rgb(4 11 20 / 0.78), rgb(4 11 20 / 0.16)),
    url("/assets/video/dockside-yacht-hero-poster.jpg") center / cover no-repeat,
    #071426;
}

section[aria-labelledby="hero-heading"] video[data-dockside-video-loading="true"] {
  background-color: #071426;
}

@keyframes docksideTitleWord {
  0% {
    opacity: 0;
    transform: translateY(0.38em);
    filter: blur(8px);
  }

  70% {
    text-shadow: 0 0 20px rgb(110 231 215 / 0.28);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    text-shadow: 0 0 0 rgb(110 231 215 / 0);
  }
}

@keyframes docksideTitleRule {
  0% {
    opacity: 0;
    transform: scaleX(0.2);
  }

  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

:where(
  .surface-panel,
  article.border,
  form,
  fieldset,
  ol.border-t,
  div.border,
  p.border,
  label.border
) {
  border-radius: var(--ds-panel-radius) !important;
}

:where(article.border, div.border, p.border, ol.border-t) {
  overflow: hidden;
}

:where(input, textarea, select) {
  border-radius: 14px !important;
}

:where(button, a.inline-flex, label.cursor-pointer) {
  border-radius: 999px !important;
}

[aria-label="Map of the Charleston Harbor launch region"] {
  border-radius: var(--ds-map-radius) !important;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.2),
    0 24px 70px rgb(0 0 0 / 0.26);
}

.grid.grid-cols-3.grid-rows-3:has(img[src*="tile.openstreetmap.org"]) {
  filter: brightness(0.92) contrast(1.22) saturate(0.95) !important;
  opacity: 0.9 !important;
}

.grid.grid-cols-3.grid-rows-3:has(img[src*="tile.openstreetmap.org"]) + .absolute.inset-0 {
  background: rgb(7 20 38 / 0.18) !important;
}

.grid.grid-cols-3.grid-rows-3:has(img[src*="tile.openstreetmap.org"]) + .absolute.inset-0 + .absolute.inset-0 {
  opacity: 0.16 !important;
}

[aria-label="Map of the Charleston Harbor launch region"] .route-draw {
  filter: drop-shadow(0 0 10px rgb(45 212 191 / 0.8));
  stroke: rgb(110 231 215 / 0.98) !important;
  stroke-width: 3 !important;
}

[aria-label="Map of the Charleston Harbor launch region"] span.rounded-full {
  height: 0.95rem !important;
  width: 0.95rem !important;
}

[aria-label="Map of the Charleston Harbor launch region"] .bottom-3.left-3 {
  background: rgb(6 17 31 / 0.78) !important;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 999px !important;
  color: #ffffff !important;
}

@media (max-width: 640px) {
  :root {
    --ds-panel-radius: 16px;
    --ds-map-radius: 18px;
  }
}

.dockside-ops-chart {
  margin-top: 2rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 0%, rgb(45 212 191 / 0.18), transparent 34%),
    linear-gradient(135deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.055));
  box-shadow: 0 24px 72px rgb(0 0 0 / 0.22);
  color: #ffffff;
  overflow: hidden;
}

.dockside-ops-chart__head,
.dockside-ops-chart__body,
.dockside-ops-chart__detail {
  padding: 1.1rem;
}

.dockside-ops-chart__head {
  display: grid;
  gap: 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.dockside-ops-chart__eyebrow,
.dockside-ops-chart__metric-label,
.dockside-ops-chart__bar-name,
.dockside-ops-chart__summary-label,
.dockside-ops-chart__detail-label {
  font-family: var(--ds-display-font);
  font-weight: 800;
  text-transform: uppercase;
}

.dockside-ops-chart__eyebrow {
  color: #6ee7d7;
  font-size: 0.72rem;
}

.dockside-ops-chart__title {
  margin-top: 0.2rem;
  font-family: var(--ds-display-font);
  font-size: clamp(1.35rem, 2.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.dockside-ops-chart__copy {
  margin-top: 0.45rem;
  max-width: 44rem;
  color: #c8d1dc;
  font-size: 0.93rem;
  line-height: 1.55;
}

.dockside-ops-chart__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.dockside-ops-chart__metric {
  min-height: 2.6rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  background: rgb(6 17 31 / 0.32);
  color: #d8e1ec;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.dockside-ops-chart__metric:hover,
.dockside-ops-chart__metric:focus-visible {
  border-color: rgb(110 231 215 / 0.65);
  color: #ffffff;
  transform: translateY(-1px);
}

.dockside-ops-chart__metric[aria-pressed="true"] {
  border-color: rgb(110 231 215 / 0.88);
  background: rgb(45 212 191 / 0.18);
  color: #ffffff;
}

.dockside-ops-chart__metric-label {
  font-size: 0.72rem;
}

.dockside-ops-chart__metric-value {
  margin-left: 0.35rem;
  color: #6ee7d7;
  font-weight: 800;
}

.dockside-ops-chart__body {
  display: grid;
  gap: 1rem;
}

.dockside-ops-chart__bars {
  display: grid;
  gap: 0.85rem;
}

.dockside-ops-chart__bar {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 18px;
  padding: 0.85rem;
  background: rgb(6 17 31 / 0.34);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.dockside-ops-chart__bar:hover,
.dockside-ops-chart__bar:focus-visible,
.dockside-ops-chart__bar[aria-pressed="true"] {
  border-color: rgb(110 231 215 / 0.6);
  background: rgb(255 255 255 / 0.11);
  transform: translateY(-1px);
}

.dockside-ops-chart__bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dockside-ops-chart__bar-name {
  font-size: 0.83rem;
}

.dockside-ops-chart__bar-value {
  color: #ffffff;
  font-family: var(--ds-display-font);
  font-size: 0.9rem;
  font-weight: 800;
}

.dockside-ops-chart__track {
  height: 0.7rem;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  overflow: hidden;
}

.dockside-ops-chart__fill {
  display: block;
  width: var(--bar-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf, #b9853a);
  box-shadow: 0 0 18px rgb(45 212 191 / 0.36);
  transition: width 380ms ease;
}

.dockside-ops-chart__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.dockside-ops-chart__summary-card {
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 18px;
  padding: 0.85rem;
  background: rgb(6 17 31 / 0.3);
}

.dockside-ops-chart__summary-label,
.dockside-ops-chart__detail-label {
  color: #a8b4c4;
  font-size: 0.68rem;
}

.dockside-ops-chart__summary-value {
  margin-top: 0.25rem;
  color: #ffffff;
  font-family: var(--ds-display-font);
  font-size: 1.05rem;
  font-weight: 800;
}

.dockside-ops-chart__detail {
  border-top: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(6 17 31 / 0.2);
}

.dockside-ops-chart__detail-grid {
  display: grid;
  gap: 0.75rem;
}

.dockside-ops-chart__detail-value {
  margin-top: 0.2rem;
  color: #ffffff;
  font-weight: 700;
}

.dockside-ops-chart__hint {
  margin-top: 0.85rem;
  color: #a8b4c4;
  font-size: 0.78rem;
}

.dockside-job-active {
  border-color: rgb(110 231 215 / 0.72) !important;
  background: rgb(45 212 191 / 0.14) !important;
  box-shadow: 0 0 0 1px rgb(110 231 215 / 0.16), 0 18px 44px rgb(0 0 0 / 0.2);
}

[data-dockside-marker-active="true"] span.rounded-full {
  box-shadow: 0 0 0 9px rgb(45 212 191 / 0.14), 0 0 28px rgb(45 212 191 / 0.82);
  transform: scale(1.18);
}

@media (min-width: 768px) {
  .dockside-ops-chart__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .dockside-ops-chart__body {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  }

  .dockside-ops-chart__detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dockside-ops-chart__summary {
    grid-template-columns: 1fr;
  }
}
