/* Shared mobile corrections for the standalone landing pages. */
html,
body {
  min-width: 0 !important;
  max-width: 100%;
  overflow-x: hidden;
  cursor: default;
}

body a,
body button,
body [role="button"],
body input[type="submit"],
body input[type="button"] {
  cursor: pointer;
}

img,
svg,
video {
  max-width: 100%;
}

.landing-panel-backdrop {
  background: linear-gradient(135deg, #e3f2ed 0%, #eaf4f0 56%, #f7eee6 100%);
}

@media (prefers-color-scheme: dark) {
  .landing-panel-backdrop {
    background: linear-gradient(135deg, #142723 0%, #182723 56%, #25221f 100%);
  }
}

.landing-footer {
  border-top: 1px solid rgb(15 118 110 / 16%);
  background: #f7fbfa;
  color: #475c57;
}

.landing-footer nav a:first-child {
  color: #147d74;
}

.landing-footer nav a:last-child {
  color: #160326;
}

.landing-footer nav a:first-child:hover {
  color: #0f6c64;
}

.landing-footer nav a:last-child:hover {
  color: #35105b;
}

@media (prefers-color-scheme: dark) {
  .landing-footer {
    border-top-color: rgb(94 234 212 / 22%);
    background: #101817;
    color: #a6b9b4;
  }

  .landing-footer nav a:first-child {
    color: #5eead4;
  }

  .landing-footer nav a:last-child {
    color: #c4a4ff;
  }

  .landing-footer nav a:first-child:hover {
    color: #99f6e4;
  }

  .landing-footer nav a:last-child:hover {
    color: #c4b5fd;
  }
}

.landing-cta-links a[data-bot-link] {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  opacity: 1;
  visibility: visible;
}

/* Keep primary actions on both light and dark sections aligned with the brand CTA colors. */
body a[data-bot-link]:not([data-bot-link="max"]) {
  border-color: transparent !important;
  background-color: #147d74 !important;
  color: #fff !important;
  box-shadow: 0 12px 32px rgb(20 125 116 / 24%);
}

body a[data-bot-link="max"] {
  border-color: rgb(255 255 255 / 20%) !important;
  background-color: #160326 !important;
  color: #fff !important;
  box-shadow: 0 12px 32px rgb(22 3 38 / 24%);
}

body a[data-bot-link]:not([data-bot-link="max"]):hover {
  background-color: #0f6c64 !important;
}

body a[data-bot-link="max"]:hover {
  background-color: #27103e !important;
}

.landing-interactive-card {
  position: relative;
  isolation: isolate;
  cursor: default;
  transition: translate 220ms cubic-bezier(0.2, 0.7, 0.2, 1), scale 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.landing-pointer-glow,
.landing-interactive-card {
  position: relative;
  isolation: isolate;
}

.landing-pointer-glow::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgb(255 255 255 / 72%) 0%, rgb(94 234 212 / 22%) 38%, transparent 78%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

@media (prefers-color-scheme: dark) {
  .landing-pointer-glow::before {
    background: radial-gradient(280px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgb(94 234 212 / 18%) 0%, rgb(20 125 116 / 12%) 38%, transparent 78%);
  }
}

.landing-pointer-glow.is-pointer-active::before {
  opacity: 1;
}

.landing-pointer-glow > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .landing-interactive-card:hover {
    translate: 0 -3px;
    border-color: rgb(15 118 110 / 40%);
    box-shadow: 0 14px 30px rgb(19 32 29 / 13%);
  }

  .landing-interactive-card:active {
    translate: 0 0;
    scale: 0.99;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-interactive-card,
  .landing-pointer-glow::before {
    transition: none;
  }
}

.work-carousel {
  position: relative;
  min-width: 0;
  padding: 30px 18px;
  border: 1px solid rgb(19 32 29 / 18%);
  border-radius: 18px;
  background: linear-gradient(145deg, #1b2b27 0%, #111b19 58%, #0c1312 100%);
  box-shadow: 0 20px 48px rgb(19 32 29 / 22%);
}

.work-carousel::before,
.work-carousel::after {
  position: absolute;
  right: 18px;
  left: 18px;
  height: 12px;
  background-image: radial-gradient(ellipse 5px 4px at center, #d4e2de 0 78%, transparent 84%);
  background-position: left center;
  background-size: 24px 12px;
  content: "";
  pointer-events: none;
}

.work-carousel::before {
  top: 8px;
}

.work-carousel::after {
  bottom: 8px;
}

.work-carousel__track:focus-visible {
  outline: 3px solid #5eead4;
  outline-offset: 3px;
}

.work-carousel__track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 2px 2px 0.75rem;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.work-carousel__track::-webkit-scrollbar {
  display: none;
}

.work-carousel__slide {
  position: relative;
  isolation: isolate;
  display: block;
  flex: 0 0 auto;
  width: clamp(234px, 23.7vw, 282px);
  height: clamp(390px, 39.5vw, 470px);
  min-width: 0;
  aspect-ratio: 3 / 5;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 14px;
  background: #101817;
  color: #13201d;
  cursor: pointer;
  scroll-snap-align: start;
}

.work-carousel__slide:focus-visible {
  outline: 3px solid #5eead4;
  outline-offset: 3px;
}

.work-carousel__image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-carousel__slide:focus-visible .work-carousel__image,
.work-carousel__slide.is-active .work-carousel__image {
  transform: scale(1.035);
}

.work-carousel__model {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 12px;
  background: rgb(17 27 25 / 72%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.work-carousel__caption {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 68px 18px 18px;
  background: linear-gradient(180deg, transparent 0%, rgb(12 20 18 / 76%) 42%, rgb(12 20 18 / 94%) 100%);
  color: #fff;
}

.work-carousel__caption h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
}

.work-carousel__caption p {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: rgb(255 255 255 / 86%);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 260ms ease, margin 260ms ease, opacity 200ms ease, transform 260ms ease;
}

.work-carousel__slide:focus-visible .work-carousel__caption p,
.work-carousel__slide.is-active .work-carousel__caption p {
  max-height: 9rem;
  margin-top: 0.55rem;
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .work-carousel__slide:hover .work-carousel__image {
    transform: scale(1.035);
  }

  .work-carousel__slide:hover .work-carousel__caption p {
    max-height: 9rem;
    margin-top: 0.55rem;
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .work-carousel__slide {
    height: clamp(390px, 39.5vw, 470px);
    width: auto;
  }
}

@media (max-width: 639px) {
  .work-carousel__slide {
    width: clamp(234px, 64.8vw, 300px);
    height: clamp(390px, 108vw, 500px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-carousel__image,
  .work-carousel__caption p {
    transition: none;
  }
}

@media (max-width: 639px) {
  body {
    overflow-wrap: anywhere;
  }

  main,
  section,
  header,
  footer,
  main > div,
  section > div {
    min-width: 0;
    max-width: 100%;
  }

  header .mx-auto,
  main .mx-auto {
    width: calc(100% - 2rem) !important;
  }

  h1 {
    max-width: 100% !important;
    font-size: clamp(2rem, 10.5vw, 3.35rem) !important;
    line-height: 1.02 !important;
  }

  p {
    max-width: 100%;
  }

  [class*="rotate-[-2deg]"] {
    transform: none !important;
  }

  a[data-bot-link][class*="h-12"] {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    padding-inline: 1rem !important;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 359px) {
  header .mx-auto,
  main .mx-auto {
    width: calc(100% - 1.5rem) !important;
  }

  a[data-bot-link][class*="h-12"] {
    padding-inline: 0.75rem !important;
    font-size: 0.9375rem !important;
  }
}
