.phase-three {
  --phase-three-teal: #087e82;
  --phase-three-border: #d9edef;
  --phase-three-shadow: 0 16px 38px #073b6313, 0 3px 10px #073b6308;
}

.phase-three > section {
  scroll-margin-top: 18px;
}

.videos-section {
  position: relative;
  padding: clamp(50px, 6.5vw, 96px) 0 clamp(48px, 6.5vw, 90px);
  background:
    radial-gradient(ellipse at 94% 0%, #ddf5f390, transparent 45%),
    linear-gradient(180deg, #f9fdfd, #fff 62%);
}

.phase-three-heading {
  margin: 0 auto clamp(26px, 4vw, 44px);
  text-align: center;
}

.phase-three-kicker {
  margin: 0 0 12px;
  color: var(--phase-three-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.phase-three-heading h2 {
  position: relative;
  display: inline-block;
  max-width: 24ch;
  margin: 0;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.08;
  text-wrap: balance;
}

.phase-three-heading h2::after {
  position: absolute;
  right: 3px;
  bottom: -8px;
  width: clamp(70px, 26%, 146px);
  height: 5px;
  border-radius: 65% 38% 46% 28%;
  background: var(--turquoise);
  content: "";
  transform: rotate(-4deg);
}

.phase-three-heading h2 + p {
  max-width: 58ch;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.65vw, 19px);
  line-height: 1.55;
  text-wrap: balance;
}

.video-gallery,
.testimonial-gallery {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.video-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1080px;
}

.video-card {
  min-width: 0;
}

.video-tile {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 9 / 16;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
  border: 1px solid #073b6311;
  border-radius: clamp(17px, 2.1vw, 26px);
  background: var(--pale);
  color: var(--navy);
  box-shadow: var(--phase-three-shadow);
  text-align: start;
}

button.video-tile,
a.video-tile {
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s;
}

.video-tile:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: -5px;
}

.video-cover,
.video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

img.video-cover,
.video-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 12px 84px;
  background:
    repeating-radial-gradient(circle at 52% 40%, transparent 0 34px, #fff6 35px 36px, transparent 37px 58px),
    radial-gradient(ellipse at 93% 2%, #fff9, transparent 54%),
    linear-gradient(148deg, var(--video-surface, #edf9f7), var(--video-accent, #b4e3de));
}

.video-card:nth-child(2) {
  --video-surface: #eaf4fb;
  --video-accent: #b8dce9;
}

.video-card:nth-child(3) {
  --video-surface: #f1faf7;
  --video-accent: #b0e2d9;
}

.video-card:nth-child(4) {
  --video-surface: #eaf5f9;
  --video-accent: #b8e6e8;
}

.video-placeholder > svg {
  width: clamp(60px, 6.6vw, 90px);
  height: clamp(60px, 6.6vw, 90px);
  padding: clamp(15px, 1.7vw, 23px);
  border: 1px solid #fff;
  border-radius: 24px;
  background: #ffffffd9;
  color: #08727b;
  box-shadow: 0 10px 24px #073b6313;
}

.video-placeholder > span {
  padding: 7px 10px;
  border-radius: 20px;
  background: #ffffffe0;
  color: #16576a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.video-placeholder--available {
  justify-content: flex-start;
  align-items: flex-start;
  padding: 15px;
}

.video-label {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 89px;
  align-content: center;
  gap: 5px;
  padding: 14px 17px;
  border-top: 1px solid #9ce2df60;
  background: linear-gradient(110deg, #0a5870, var(--navy));
  color: var(--white);
}

.video-label strong {
  font-size: clamp(15px, 1.45vw, 19px);
  letter-spacing: -.018em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.video-label small {
  color: #d5f6f3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.video-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(45px, 5vw, 64px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #ffffffef;
  color: var(--navy);
  box-shadow: 0 6px 24px #073b6333;
  transform: translate(-50%, -50%);
  transition: background .2s, box-shadow .2s;
}

.video-play::before {
  margin-inline-start: 3px;
  border-block: 8px solid transparent;
  border-inline-start: 13px solid currentColor;
  content: "";
}

.social-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3.4vw, 38px);
}

.phase-social-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid #cfe5e9;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 5px 12px #073b630c;
  font-size: 14px;
  font-weight: 800;
  transition: border-color .2s, transform .22s var(--ease), box-shadow .22s;
}

.phase-social-link img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.phase-social-link .icon {
  width: 17px;
  height: 17px;
  color: var(--phase-three-teal);
}

.testimonials-section {
  position: relative;
  padding: clamp(48px, 6.4vw, 84px) 0 clamp(40px, 5.5vw, 72px);
  background:
    radial-gradient(ellipse at -7% 110%, #a1e8e64d 0 19%, transparent 19.3%),
    radial-gradient(ellipse at 106% 112%, #a1e8e652 0 20%, transparent 20.3%),
    radial-gradient(ellipse at 3% 3%, #ddf5f3, transparent 55%),
    linear-gradient(146deg, #f2fcfb, #e4f7f7 82%);
}

.testimonials-section::before {
  position: absolute;
  inset: -16px 0 auto;
  height: 28px;
  border-radius: 48% 62% 0 0 / 100% 70% 0 0;
  background: #e9f8f8;
  content: "";
  pointer-events: none;
}

.testimonials-section .phase-three-kicker {
  display: table;
  margin-inline: auto;
  padding: 6px 16px;
  border: 1px solid #7bcacc;
  border-radius: 99px;
  background: #ffffff8c;
  color: var(--navy);
}

.testimonials-section .phase-three-heading h2:has(.testimonial-heading-accent)::after {
  display: none;
}

.testimonial-heading-accent {
  position: relative;
  display: inline-block;
}

.testimonial-heading-accent::after {
  position: absolute;
  inset: auto 0 -.13em 5%;
  height: .09em;
  border-radius: 75% 53% 30% 35%;
  background: var(--turquoise);
  content: "";
  transform: rotate(-3deg);
}

.testimonial-heading-spark {
  position: absolute;
  inset: -.26em -.95em auto auto;
  width: .83em;
  height: auto;
  color: var(--phase-three-teal);
  pointer-events: none;
}

.testimonial-gallery {
  --testimonial-gap: clamp(14px, 1.7vw, 24px);
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--testimonial-gap);
  max-width: 1240px;
}

.testimonial-gallery:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}

.testimonial-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 11px;
  padding: clamp(17px, 1.8vw, 25px);
  border: 1px solid var(--phase-three-border);
  border-radius: clamp(18px, 2.2vw, 27px);
  background: var(--white);
  box-shadow: var(--phase-three-shadow);
  transition: opacity .42s var(--ease), transform .45s var(--ease), box-shadow .22s;
}

.testimonial-quote-mark {
  display: grid;
  width: 41px;
  height: 29px;
  flex: none;
  place-items: center;
  padding-top: 5px;
  border-radius: 99px;
  background: #00827e;
  color: var(--white);
  font: 700 33px/.85 Georgia, serif;
}

.testimonial-quote-mark svg {
  width: 20px;
  height: 20px;
}

.testimonial-card blockquote,
.testimonial-card blockquote p {
  margin: 0;
  color: var(--navy);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.52;
  overflow-wrap: anywhere;
}

.testimonial-highlight {
  padding: 0 .14em;
  border-radius: .2em;
  background: #c9f4f0;
  color: var(--navy);
  font-weight: 800;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-color .38s var(--ease);
}

.testimonial-card.phase3-pending .testimonial-highlight {
  background-color: transparent;
}

.testimonial-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 7px;
}

.testimonial-identity > div {
  min-width: 0;
  padding-inline-start: 10px;
  border-inline-start: 1px solid #c8e1e5;
  overflow-wrap: anywhere;
}

.testimonial-identity strong {
  display: block;
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 800;
  line-height: 1.16;
}

.testimonial-name-note {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.25;
}

.testimonial-identity img,
.testimonial-avatar {
  display: grid;
  width: 41px;
  height: 41px;
  flex: 0 0 41px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #edf9f9, #d8eeee);
  color: var(--navy);
  object-fit: cover;
}

.testimonial-avatar .icon {
  width: 22px;
  height: 22px;
}

.testimonial-controls,
.testimonial-dots {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-controls {
  gap: clamp(8px, 2vw, 16px);
  margin: 10px auto 0;
}

.testimonial-dots {
  min-width: 0;
  flex-wrap: wrap;
}

.testimonial-controls[hidden] {
  display: none;
}

.testimonial-arrow,
.testimonial-dot {
  display: grid;
  flex: none;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
}

.testimonial-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid #d6eced;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 5px 12px #073b6310;
  transition: background-color .2s, opacity .2s;
}

.testimonial-arrow .icon {
  width: 18px;
  height: 18px;
}

.testimonial-arrow[data-testimonial-prev] .icon {
  transform: rotate(180deg);
}

.testimonial-arrow:disabled {
  opacity: .42;
  cursor: default;
}

.testimonial-dot {
  width: 33px;
  height: 44px;
  background: transparent;
}

.testimonial-dot::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a6c6cc;
  content: "";
  transition: background-color .22s, transform .22s;
}

.testimonial-dot[aria-current="true"]::before {
  background: var(--phase-three-teal);
  transform: scale(1.18);
}

.testimonial-controls button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

@media (hover: hover) {
  .testimonial-card:not(.phase3-pending):hover {
    box-shadow: 0 17px 33px #073b631d, 0 3px 10px #073b630c;
    transform: translateY(-3px);
    transition-delay: 0s;
  }

  .testimonial-arrow:not(:disabled):hover {
    background: #e7f8f7;
  }

  .testimonial-dot:hover::before {
    background: var(--phase-three-teal);
  }
}

@media (max-width: 1024px) {
  .testimonial-gallery {
    --testimonial-gap: 14px;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - var(--testimonial-gap)) / 2);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 5px 4px 16px;
    scroll-padding-inline: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #85cacc transparent;
  }
}

@media (min-width: 681px) and (max-width: 1024px) {
  .testimonial-card:nth-child(odd) {
    scroll-snap-align: start;
  }

  .testimonial-card:last-child:nth-child(odd) {
    scroll-snap-align: end;
  }
}

@media (max-width: 680px) {
  .testimonial-gallery {
    grid-auto-columns: 100%;
  }

  .testimonial-card {
    scroll-snap-align: start;
  }

  .testimonial-heading-spark {
    inset: -.42em -.44em auto auto;
    width: .66em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-card.phase3-pending .testimonial-highlight {
    background-color: #c9f4f0;
  }

  .testimonial-card:not(.phase3-pending):hover,
  .testimonial-dot[aria-current="true"]::before {
    transform: none;
  }

  .testimonial-highlight,
  .testimonial-arrow,
  .testimonial-dot::before {
    transition: none;
  }
}

.advisory-process {
  padding: 0 0 clamp(44px, 6vw, 78px);
  background: linear-gradient(180deg, #e9f9f8, #fff);
}

.process-panel {
  --process-number-size: clamp(34px, 3vw, 42px);
  --process-card-padding-block: 12px;
  --process-number-center: calc(var(--process-card-padding-block) + var(--process-number-size) * .46 + 1px);
  --process-track-width: 3px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(22px, 2.7vw, 36px) clamp(18px, 3.35vw, 46px);
  border-radius: clamp(24px, 3.3vw, 43px);
  background:
    radial-gradient(ellipse at 0% 0%, #008f9770, transparent 62%),
    linear-gradient(118deg, #075a6e, var(--navy) 75%, #073a56);
  color: var(--white);
  box-shadow: 0 16px 38px #073b631e, 0 3px 10px #073b6310;
}

.process-panel::before,
.process-panel::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.process-panel::before {
  inset: -10% auto auto -8%;
  width: clamp(160px, 25%, 300px);
  height: clamp(130px, 30%, 205px);
  border-radius: 0 0 82% 40%;
  background: linear-gradient(110deg, #19c4c79c, #1cc7c63d);
  transform: rotate(-26deg);
}

.process-panel::after {
  inset: auto -12% -20% auto;
  width: clamp(180px, 32%, 410px);
  height: clamp(125px, 39%, 250px);
  border-radius: 90% 0 0;
  background: linear-gradient(125deg, #13b5b523, #19c3cc71);
  box-shadow: -28px -22px 0 #19c3cc24;
  transform: rotate(-13deg);
}

.process-heading {
  margin-bottom: clamp(20px, 2.45vw, 33px);
  text-align: center;
}

.process-heading h2 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 9px;
  font-size: clamp(29px, 3.3vw, 50px);
  font-weight: 800;
  letter-spacing: -.047em;
  line-height: 1.08;
  text-wrap: balance;
}

.process-emphasis {
  position: relative;
  display: inline-block;
}

.process-emphasis::after {
  position: absolute;
  inset: auto -2% -.13em 0;
  height: .1em;
  border-radius: 74% 53% 27% 36%;
  background: #4aeeea;
  content: "";
  transform: rotate(-2deg) scaleX(1);
  transform-origin: left center;
  transition: transform .45s var(--ease);
}

.process-spark {
  position: absolute;
  inset: 0 -.97em auto auto;
  width: .83em;
  height: auto;
  color: #4aeeea;
  pointer-events: none;
}

.process-heading p {
  max-width: 58ch;
  margin: 0 auto;
  color: #effafa;
  font-size: clamp(16px, 1.75vw, 24px);
  line-height: 1.45;
  text-wrap: balance;
}

.process-timeline {
  position: relative;
}

.process-track {
  position: absolute;
  inset-block-start: var(--process-track-cross, var(--process-number-center));
  inset-inline-start: var(--process-track-start, 4%);
  width: var(--process-track-length, 76%);
  height: var(--process-track-width);
  border-radius: 99px;
  background: #6fe8e464;
  pointer-events: none;
  transform: translateY(-50%);
}

.process-track::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #4af2ed;
  content: "";
  transform: scaleX(1);
  transform-origin: left center;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.32fr) minmax(0, 1fr);
  gap: clamp(12px, 1.55vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  padding: var(--process-card-padding-block) clamp(13px, 1.45vw, 18px);
  border: 1px solid #e5f3f2;
  border-radius: clamp(17px, 2.2vw, 28px);
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 5px 14px #02243f1a;
}

.process-step--featured {
  border-color: var(--turquoise);
  background: linear-gradient(148deg, #f2ffff, #ddf5f3);
}

.process-number {
  align-self: flex-start;
  color: #007477;
  font-size: var(--process-number-size);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  transition: color .25s var(--ease);
}

.process-step h3 {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.038em;
  text-align: start;
  text-wrap: pretty;
}

.process-step > p {
  margin: 0;
  font-size: clamp(14px, 1.18vw, 16px);
  line-height: 1.4;
}

.process-step .process-promise {
  margin-top: auto;
  padding: 7px 9px;
  border-radius: 10px;
  background: #b5f2ef;
  color: var(--navy);
  font-size: clamp(13px, 1.05vw, 14px);
  font-weight: 800;
  line-height: 1.25;
}

.process-cta {
  margin-top: clamp(18px, 2.35vw, 29px);
  text-align: center;
}

.process-button {
  width: fit-content;
  max-width: 100%;
  min-height: 55px;
  padding: 11px clamp(13px, 3vw, 36px);
  border-color: #9aeae1;
  box-shadow: inset 0 1px 4px #aff9f178, 0 7px 18px #032b484a;
  font-size: clamp(15px, 1.7vw, 22px);
  text-wrap: balance;
}

.process-button .whatsapp-icon {
  width: clamp(25px, 2.6vw, 34px);
  height: clamp(25px, 2.6vw, 34px);
}

.process-button:focus-visible {
  outline-color: var(--white);
}

.process-reassurance {
  margin: 10px auto 0;
  color: #f2fdfc;
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.45;
  text-wrap: balance;
}

.process-cta [data-whatsapp-unavailable] {
  margin: 6px auto 0;
  color: #d3f2f0;
  font-size: 12px;
}

.process-motion :is(.process-heading, .process-cta) {
  transition: opacity .28s var(--ease), transform .3s var(--ease);
}

.process-motion:not(.is-heading-active) .process-heading,
.process-motion:not(.is-cta-active) .process-cta:not(:focus-within) {
  opacity: 0;
  transform: translateY(8px);
}

.process-motion:not(.is-heading-active) .process-emphasis::after {
  transform: rotate(-2deg) scaleX(0);
}

.process-motion .process-track::after {
  transform: scaleX(var(--process-progress, 0));
}

.process-motion .process-step {
  transition: opacity .28s var(--ease);
}

.process-motion .process-step:not(.is-active) {
  opacity: 0;
}

.process-motion .process-step.is-active .process-number {
  color: #00897f;
}

@media (min-width: 901px) and (max-height: 850px) {
  .process-panel {
    padding-block: clamp(22px, 3.2vh, 29px);
  }

  .process-heading {
    margin-bottom: clamp(18px, 3vh, 24px);
  }

  .process-cta {
    margin-top: clamp(17px, 2.8vh, 23px);
  }
}

@media (max-width: 900px) {
  .process-panel {
    --process-track-width: 2px;
    --process-rail: 7px;
    --process-gutter: 19px;
    max-width: 640px;
  }

  .process-heading h2 {
    max-width: min(100%, 16em);
  }

  .process-spark {
    inset: -.36em -.43em auto auto;
    width: .72em;
  }

  .process-track {
    inset-block-start: var(--process-track-start, var(--process-number-center));
    inset-inline-start: var(--process-rail);
    width: var(--process-track-width);
    height: var(--process-track-length, calc(100% - 100px));
    transform: translateX(-50%);
  }

  .process-track::after {
    transform: scaleY(1);
    transform-origin: center top;
  }

  .process-motion .process-track::after {
    transform: scaleY(var(--process-progress, 0));
  }

  .process-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-inline-start: var(--process-gutter);
  }

  .process-step {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
    gap: 7px 10px;
  }

  .process-step h3 {
    align-self: center;
  }

  .process-step > p {
    grid-column: 1 / -1;
  }

  .process-step .process-promise {
    margin-top: 3px;
  }
}

@media (max-width: 370px) {
  .process-button {
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-motion :is(.process-heading, .process-step, .process-cta) {
    opacity: 1 !important;
    transform: none !important;
  }

  .process-motion .process-track::after {
    transform: none;
  }

  .process-motion:not(.is-heading-active) .process-emphasis::after {
    transform: rotate(-2deg);
  }
}

.phase-three .phase3-pending {
  opacity: 0;
  transform: translateY(14px);
}

.phase-three .phase3-pending:focus-within {
  opacity: 1;
  transform: none;
}

.phase-three .video-card {
  transition: opacity .42s var(--ease), transform .45s var(--ease);
}

.phase-three .video-card:nth-child(2),
.phase-three .testimonial-card:nth-child(2) {
  transition-delay: 55ms;
}

.phase-three .video-card:nth-child(3),
.phase-three .testimonial-card:nth-child(3) {
  transition-delay: 110ms;
}

.phase-three .video-card:nth-child(4) {
  transition-delay: 165ms;
}

html:has(.video-dialog[open]) {
  overflow: hidden;
  scrollbar-gutter: stable;
}

.video-dialog {
  --video-dialog-media-width: clamp(216px, calc(56.25vh - 193px), 428px);
  --video-dialog-media-width: clamp(216px, calc(56.25dvh - 193px), 428px);
  --video-dialog-space: clamp(22px, 3.6vw, 42px);
  --video-dialog-edge: max(18px, env(safe-area-inset-top), env(safe-area-inset-bottom));
  position: fixed;
  inset: 0;
  width: min(calc(100% - 38px), calc(var(--video-dialog-media-width) + 426px));
  max-width: none;
  max-height: calc(100vh - 2 * var(--video-dialog-edge));
  max-height: calc(100dvh - 2 * var(--video-dialog-edge));
  margin: auto;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #f5ffff;
  border-radius: clamp(22px, 3.5vw, 38px);
  background:
    radial-gradient(ellipse at 100% 0%, #a8ece9 0%, #ddf5f3a0 22%, transparent 48%),
    linear-gradient(155deg, #f4fafc, var(--white) 56%, #f5fcfc);
  color: var(--navy);
  box-shadow: 0 26px 88px #00253866, 0 3px 14px #00253826;
}

.video-dialog[open] {
  animation: phase-three-dialog-in .25s var(--ease) both;
}

.video-dialog::backdrop {
  background: #052c43b8;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: phase-three-backdrop-in .23s ease-out both;
}

.video-dialog.is-closing {
  animation: phase-three-dialog-out .18s ease-in both;
}

.video-dialog.is-closing::backdrop {
  animation: phase-three-backdrop-in .18s ease-in reverse both;
}

.video-dialog::before,
.video-dialog::after {
  position: absolute;
  z-index: -1;
  inset: auto -8% -20% auto;
  width: 64%;
  height: 33%;
  border-radius: 80% 0 0;
  background: #ddf5f3a3;
  content: "";
  pointer-events: none;
  transform: rotate(-14deg);
}

.video-dialog::after {
  inset: auto -21% -25% auto;
  background: #13b5b532;
  transform: rotate(-23deg);
}

.video-dialog-inner {
  max-height: calc(100vh - 2 * var(--video-dialog-edge) - 2px);
  max-height: calc(100dvh - 2 * var(--video-dialog-edge) - 2px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--video-dialog-space);
  scrollbar-width: thin;
  scrollbar-color: #9ccdd2 transparent;
}

.video-dialog-header {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-block-end: clamp(19px, 2.7vw, 28px);
  padding-inline-end: 48px;
}

.video-dialog-kicker {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 12px 4px 5px;
  border-radius: 100px;
  background: #e0f4f5;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .095em;
  line-height: 1.25;
  text-transform: uppercase;
}

.video-dialog-kicker > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(150deg, #008580, #00546d);
  color: var(--white);
}

.video-dialog-kicker .icon {
  width: 100%;
  height: 100%;
}

.video-dialog-title {
  max-width: 24ch;
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.048em;
  text-wrap: balance;
}

.video-dialog-highlight {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.video-dialog-highlight::after {
  position: absolute;
  inset: auto 0 -.12em auto;
  width: min(100%, 3.25em);
  height: .12em;
  border-radius: 74% 48% 31% 30%;
  background: var(--turquoise);
  content: "";
  transform: rotate(-4deg);
  transform-origin: left center;
}

.video-dialog[open] .video-dialog-highlight::after {
  animation: phase-three-dialog-underline .43s .13s var(--ease) both;
}

.video-dialog-description {
  max-width: 52ch;
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.5;
}

.video-dialog-close {
  position: absolute;
  z-index: 2;
  inset: clamp(12px, 2.7vw, 27px) clamp(12px, 2.7vw, 27px) auto auto;
  display: grid;
  width: clamp(44px, 5vw, 52px);
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: #f5fcfc;
  color: var(--navy);
  box-shadow: 0 4px 15px #073b6317;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, transform .2s var(--ease);
}

.video-dialog-close .icon {
  width: 20px;
  height: 20px;
}

.video-dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--video-dialog-media-width)) minmax(0, 1fr);
  align-items: start;
  gap: clamp(17px, 3vw, 29px);
}

.video-dialog-media {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
}

.video-dialog .video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid #073b6317;
  border-radius: clamp(16px, 2.5vw, 25px);
  background: #0b2a42;
  box-shadow: 0 11px 32px #073b6321;
}

.video-dialog .video-player > :is(iframe, video, img) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  object-fit: contain;
}

.video-dialog .video-player:empty,
.video-dialog [hidden] {
  display: none;
}

.video-dialog-note,
.video-dialog-whatsapp-status {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.video-dialog-note {
  text-align: center;
}

.video-dialog-details {
  display: grid;
  gap: clamp(14px, 2.2vw, 21px);
  min-width: 0;
}

.video-dialog-author {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 3px 2px clamp(13px, 2.2vw, 19px);
  border-bottom: 1px solid #d7e9eb;
}

.video-dialog-author img {
  width: clamp(46px, 6.4vw, 67px);
  height: auto;
  aspect-ratio: 1;
  flex: none;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: linear-gradient(135deg, #e6f2f4, #bbdddd);
  box-shadow: 0 4px 12px #073b631b;
  object-fit: cover;
  object-position: center 22%;
}

.video-dialog-author strong,
.video-dialog-author small {
  display: block;
}

.video-dialog-author strong {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.15;
}

.video-dialog-author small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 14px;
}

.video-dialog-summary {
  padding: clamp(14px, 2.3vw, 21px);
  border: 1px solid #dceff0;
  border-radius: clamp(17px, 2vw, 22px);
  background: linear-gradient(132deg, #edf8f9, #ddf5f3);
}

.video-dialog-summary h3 {
  margin: 0 0 10px;
  font-size: clamp(16px, 1.9vw, 21px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.video-dialog-summary ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-dialog-summary li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.4;
}

.video-dialog-summary .icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: #008481;
  color: var(--white);
}

.video-dialog-actions {
  display: grid;
  gap: 10px;
}

.video-dialog-original,
.video-dialog-whatsapp {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}

.video-dialog-original {
  background: linear-gradient(125deg, #007d7b, #006479);
  color: var(--white);
  box-shadow: 0 6px 16px #007b811e;
}

.video-dialog-original img,
.video-dialog-original .icon,
.video-dialog-whatsapp .icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.video-dialog-original img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--white);
  object-fit: contain;
}

.video-dialog-whatsapp {
  border-color: #b8dcdf;
  background: #f5fcfc;
  color: var(--navy);
  box-shadow: none;
}

.video-dialog-whatsapp .icon {
  color: #007c7d;
}

.video-dialog-whatsapp[aria-disabled="true"] {
  border-color: #d6e6e8;
  color: var(--ink-soft);
  cursor: default;
}

.video-dialog-whatsapp-status {
  font-size: 12px;
  text-align: center;
}

.video-dialog :is(button, a):focus-visible {
  outline-offset: 3px;
}

@keyframes phase-three-dialog-in {
  from { opacity: 0; transform: translateY(9px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@keyframes phase-three-dialog-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(6px) scale(.985); }
}

@keyframes phase-three-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes phase-three-dialog-underline {
  from { transform: rotate(-4deg) scaleX(0); }
  to { transform: rotate(-4deg) scaleX(1); }
}

@media (min-width: 681px) and (max-height: 880px) {
  .video-dialog {
    --video-dialog-media-width: clamp(196px, calc(56.25vh - 156px), 310px);
    --video-dialog-media-width: clamp(196px, calc(56.25dvh - 156px), 310px);
    --video-dialog-space: 23px;
    --video-dialog-edge: max(12px, env(safe-area-inset-top), env(safe-area-inset-bottom));
  }

  .video-dialog-header {
    gap: 8px;
    margin-block-end: 17px;
  }

  .video-dialog-kicker {
    min-height: 29px;
    padding-block: 3px;
  }

  .video-dialog-kicker > span {
    width: 23px;
    height: 23px;
    padding: 5px;
  }

  .video-dialog-title {
    max-width: 28ch;
    font-size: clamp(26px, 3.4vw, 35px);
  }

  .video-dialog-description {
    margin-top: 1px;
    font-size: 15px;
    line-height: 1.4;
  }

  .video-dialog-grid {
    gap: 20px;
  }

  .video-dialog-details {
    gap: 12px;
  }

  .video-dialog-author {
    padding-block: 2px 11px;
  }

  .video-dialog-author img {
    width: 48px;
  }

  .video-dialog-summary {
    padding: 13px;
  }

  .video-dialog-summary ul {
    gap: 7px;
  }

  .video-dialog-summary li {
    font-size: 14px;
  }

  .video-dialog-actions {
    gap: 7px;
  }

  .video-dialog-original,
  .video-dialog-whatsapp {
    min-height: 44px;
    padding-block: 8px;
    font-size: 14px;
  }
}

@media (max-width: 680px) {
  .video-dialog {
    --video-dialog-space: clamp(15px, 4.5vw, 23px);
    --video-dialog-edge: max(10px, env(safe-area-inset-top), env(safe-area-inset-bottom));
    width: min(460px, calc(100% - 20px));
  }

  .video-dialog-header {
    gap: 9px;
  }

  .video-dialog-kicker {
    min-height: 33px;
    font-size: 10px;
  }

  .video-dialog-kicker > span {
    width: 24px;
    height: 24px;
    padding: 5px;
  }

  .video-dialog-title {
    font-size: clamp(25px, 7.2vw, 35px);
  }

  .video-dialog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-dialog .video-player {
    width: min(100%, 314px, max(174px, 37vh));
    width: min(100%, 314px, max(174px, 37dvh));
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-dialog,
  .video-dialog::backdrop,
  .video-dialog-highlight::after {
    animation: none !important;
  }

  .video-dialog :is(button, a) {
    transition: none;
  }
}

@media (hover: hover) {
  button.video-tile:hover,
  a.video-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 19px 38px #073b6324;
  }

  .video-tile:hover img.video-cover,
  .video-tile:hover .video-cover > img {
    transform: scale(1.04);
  }

  .video-tile:hover .video-play {
    background: var(--white);
    box-shadow: 0 8px 26px #073b6344;
  }

  .phase-social-link:hover {
    transform: translateY(-2px);
    border-color: #82d3d5;
    box-shadow: 0 8px 18px #073b631a;
  }

  .video-dialog-close:hover {
    background: #d8f3f1;
  }

  .video-dialog-original:hover,
  .video-dialog-whatsapp[href]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 19px #00687f25;
  }

  .video-dialog-whatsapp[href]:hover {
    background: #e4f6f5;
  }
}

@media (max-width: 1000px) {
  .video-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 650px;
  }
}

@media (max-width: 700px) {
  .phase-three > section {
    scroll-margin-top: 12px;
  }

  .phase-three-heading h2 {
    font-size: clamp(29px, 7.8vw, 42px);
  }

  .phase-three-heading h2 + p {
    margin-top: 19px;
  }

  .video-gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(80%, 290px);
    gap: 14px;
    overflow-x: auto;
    margin-inline: -4px;
    padding: 6px 4px 16px;
    scroll-padding-inline: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #85cacc transparent;
  }

  .video-card {
    scroll-snap-align: start;
  }

  .video-gallery:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
  }

  .video-label {
    min-height: 76px;
  }

  .phase-social-link {
    flex: 1 0 100%;
    max-width: 290px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phase-three .phase3-pending {
    opacity: 1;
    transform: none;
  }

  .phase-three .video-tile:hover,
  .phase-three .video-tile:hover img,
  .phase-three .phase-social-link:hover {
    transform: none;
  }
}
