/* ============================================================
   LANDING PAGE
============================================================ */


/* ============================================================
   HERO
============================================================ */

.hero {
  position: relative;
  display: flex;
  min-height: 46rem;
  padding: 7.5rem 0 5.5rem;
  align-items: stretch;
  overflow: hidden;
  background-image:
    url("/assets/images/landing/hero.webp");
  background-position: 58% center;
  background-repeat: no-repeat;
  background-size: cover;
  
}

/*
  On mobile, the gradient is concentrated over the water at
  the bottom rather than behind the heading.
*/

.hero-shade {
  position: absolute;
  inset: 0;

  background:
    /* White gradient behind the eyebrow and main heading */
    linear-gradient(
      180deg,
      rgba(242, 247, 247, 0.96) 0%,
      rgba(242, 247, 247, 0.82) 13%,
      rgba(242, 247, 247, 0.48) 25%,
      rgba(242, 247, 247, 0.14) 36%,
      rgba(242, 247, 247, 0) 44%
    ),

    /* Whitish-blue gradient behind the copy and buttons */
    linear-gradient(
      180deg,
      rgba(231, 241, 243, 0) 22%,
      rgba(231, 241, 243, 0.16) 34%,
      rgba(231, 241, 243, 0.48) 47%,
      rgba(231, 241, 243, 0.78) 60%,
      rgba(231, 241, 243, 0.94) 76%,
      rgba(231, 241, 243, 0.99) 100%
    );
}



.hero-inner {
  position: relative;
  z-index: 1;

  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.hero .eyebrow {
  margin-bottom: 0.75rem;

  color: var(--color-primary-dark);

  text-shadow:
    0 0.0625rem 0.2rem rgba(255, 255, 255, 0.8),
    0 0 1rem rgba(255, 255, 255, 0.7);
}

.hero h1 {
  max-width: 40rem;
  margin-bottom: 0;

  color: var(--color-charcoal);

  font-family: var(--font-heading);
  font-size: clamp(3.75rem, 16vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.78;

  text-shadow:
    0 0.0625rem 0.2rem rgba(255, 255, 255, 0.65),
    0 0 1.25rem rgba(255, 255, 255, 0.55);
}

.hero h1 span {
  display: block;
  margin-top: 1.1rem;

  color: var(--color-primary);

  font-family: var(--font-script);
  font-size: 1.05em;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.75;
}

.hero-copy {
  max-width: 28rem;
  margin: auto auto 1.25rem;

  color: var(--color-black);

  font-size: 0.875rem;
  font-weight: 500;
}
.hero-actions {
  display: flex;
  width: min(100%, 19rem);
  margin-inline: auto;
  flex-direction: column;
  gap: 0.75rem;
}
.hero-actions .button {
  width: 100%;
}
.hero-actions .button-outline {
  background-color: rgba(238, 245, 246, 0.48);
  backdrop-filter: blur(0.15rem);
}

/* Hero: tablet */
@media (min-width: 48rem) {
  .hero {
    min-height: 46rem;
    padding: 9rem 0 5.5rem;
    align-items: center;

    background-position: 72% center;
  }
  .hero-shade {
    background:
      linear-gradient(
        90deg,
        rgba(218, 229, 231, 0.96) 0%,
        rgba(218, 229, 231, 0.9) 34%,
        rgba(218, 229, 231, 0.72) 55%,
        rgba(218, 229, 231, 0.42) 72%,
        rgba(218, 229, 231, 0.14) 90%,
        rgba(218, 229, 231, 0) 100%
      );
  }
  .hero-inner {
    display: block;
    flex: initial;
    text-align: left;
  }
  .hero .eyebrow {
    margin-bottom: 0.8rem;
    text-shadow: none;
  }
  .hero h1 {
    max-width: 31rem;
    font-size: 5rem;
    text-shadow: none;
  }
  .hero h1 span {
    margin-top: 1.75rem;
    font-size: 5.5rem;
  }
  .hero-copy {
    max-width: 29rem;
    margin: 2.5rem 0 1.35rem;
    font-size: 0.9375rem;
    font-weight: 400;
  }
  .hero-actions {
    width: auto;
    max-width: none;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
  }
  .hero-actions .button {
    width: auto;
  }
  .hero-actions .button-outline {
    background-color: rgba(238, 245, 246, 0.36);
    backdrop-filter: blur(0.125rem);
  }
}

/* Hero: desktop */
@media (min-width: 64rem) {
  .hero {
    min-height: 51rem;
    padding-top: 10rem;
    background-position: center 58%;
  }
  .hero-inner {
    padding-left: 2rem;
  }
  .hero h1 {
    font-size: 6.5rem;
  }
  .hero h1 span {
    font-size: 7rem;
  }
  .hero .button-outline:hover {
    color: var(--color-primary);
  }
}

/* ============================================================
   TRUST STRIP
============================================================ */

.trust-strip {
  position: relative;
  z-index: 2;
  padding: 1.75rem 0 2.5rem;
  background-color: var(--color-background);
}

.trust-grid {
  display: grid;
  gap: 1.5rem;
}

.trust-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.875rem;
  align-items: start;
}

.trust-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;

  color: var(--color-navy);
}

.trust-icon svg {
  width: 2.5rem;
  height: 2.5rem;

  overflow: visible;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-item h2 {
  margin: 0.125rem 0 0.3rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.3;
  text-transform: uppercase;
}

.trust-item p {
  margin-bottom: 0;
  color: var(--color-gray);
  font-size: 0.7rem;
  line-height: 1.6;
}


/* Trust strip: tablet */

@media (min-width: 48rem) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
    row-gap: 2rem;
  }
}


/* Trust strip: desktop */

@media (min-width: 64rem) {
  .trust-strip {
    padding: 1.75rem 0 2.75rem;
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .trust-item {
    padding-inline: 1.5rem;
  }

  .trust-item:first-child {
    padding-left: 0;
  }

  .trust-item:last-child {
    padding-right: 0;
  }

  .trust-item + .trust-item {
    border-left: 0.0625rem solid var(--color-border);
  }
}


/* ============================================================
   CHARTERS PREVIEW
============================================================ */

.charters {
  background:
    radial-gradient(
      circle at 38% 25%,
      rgba(255, 255, 255, 0.92),
      transparent 38%
    ),
    var(--color-background-alt);
}

.charter-grid {
  display: grid;
  gap: 1.5rem;
}

.charter-card {
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

.charter-card:hover {
  box-shadow: 0 1.5rem 3rem rgba(31, 52, 57, 0.18);
  transform: translateY(-0.25rem);
}

.charter-card > img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

.charter-card-content {
  padding: 1.5rem;
}

.charter-card h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.1;
}

.charter-card p {
  min-height: 4.75rem;
  margin-bottom: 1.25rem;
  color: var(--color-gray);
  font-size: 0.8125rem;
}

.text-link {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-link span {
  transition: transform var(--transition);
}

.text-link:hover span {
  transform: translateX(0.25rem);
}


/* Charters preview: tablet */

@media (min-width: 48rem) {
  .charter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .charter-card > img {
    height: 12rem;
  }

  .charter-card-content {
    padding: 1.25rem;
  }

  .charter-card h3 {
    font-size: 1.5rem;
  }

  .charter-card p {
    font-size: 0.72rem;
  }
}


/* Charters preview: desktop */

@media (min-width: 64rem) {
  .charter-grid {
    gap: 1.75rem;
  }

  .charter-card > img {
    height: 15rem;
  }

  .charter-card-content {
    padding: 1.75rem;
  }

  .charter-card h3 {
    font-size: 1.875rem;
  }

  .charter-card p {
    font-size: 0.8125rem;
  }
}


/* ============================================================
   ABOUT PREVIEW
============================================================ */

.about {
  position: relative;
  overflow: hidden;
  background-color: var(--color-background);
}

.about-background-anchor {
  position: absolute;
  right: -5rem;
  bottom: 3rem;
  z-index: 0;
  width: 21rem;
  height: auto;
  opacity: 0.035;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

.about-grid {
  position: relative;
  z-index: 1;
}

.about-grid {
  position: relative;
  z-index: 1;

  display: grid;
  gap: 4rem;
  align-items: center;
}

.about-grid {
  position: relative;
  z-index: 1;

  display: grid;
  gap: 4rem;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo > img {
  width: 100%;
  height: 25rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.seal {
  position: absolute;
  bottom: -2.25rem;
  left: -0.5rem;
  display: flex;
  width: 8.5rem;
  height: 8.5rem;
  padding: 1rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0.375rem double rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: var(--shadow-card);
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

.seal-icon {
  margin: 0.2rem 0;
  font-size: 1.5rem;
  line-height: 1;
}

.about-copy h2 {
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 11vw, 3.75rem);
  line-height: 0.9;
}

.about-copy h2 span {
  display: block;
  margin-top: 0.75rem;
  color: var(--color-primary);
  font-family: var(--font-script);
  font-size: 1.1em;
  font-weight: 400;
  line-height: 0.75;
}

.about-copy > p:not(.eyebrow) {
  margin-bottom: 0.5rem;
  color: var(--color-gray);
  font-size: 0.875rem;
}

.about-copy .button {
  margin-top: 1.25rem;
}


/* About preview: tablet */

@media (min-width: 48rem) {
  .about-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }

  .about-photo > img {
    height: 25rem;
  }

  /* About preview: tablet */
  .about-background-anchor {
    right: -2rem;
    bottom: -2rem;

    width: 27rem;
  }


  .seal {
    left: -1.25rem;
  }

  .about-copy h2 {
    font-size: 3.25rem;
  }
}


/* About preview: desktop */

@media (min-width: 64rem) {
  .about-grid {
    max-width: 76rem;
    gap: 6rem;
  }

  .about-photo > img {
    height: 28rem;
  }

  .about-background-anchor {
    right: -6%;
    bottom: 2rem;

    width: 29rem;
  }
  .seal {
    left: -2rem;
  }

  .about-copy h2 {
    font-size: 3.75rem;
  }

  .about-copy > p:not(.eyebrow) {
    font-size: 0.9375rem;
  }
}


/* ============================================================
   REVIEWS PREVIEW
============================================================ */

.reviews {
  background:
    linear-gradient(
      rgba(55, 80, 77, 0.88),
      rgba(55, 80, 77, 0.88)
    ),
    url("/assets/images/landing/landing-banner-4.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--color-white);
}

.section-heading-light .eyebrow {
  color: #e0ecd9;
}

.section-heading-light h2 {
  color: var(--color-white);
}

.section-heading-light .heading-rule {
  background-color: #dce8d6;
}

.review-grid {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.review-card {
  margin: 0;
  padding: 1.5rem;
  border-radius: 0.375rem;
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
  color: var(--color-charcoal);
}

.review-quote {
  display: block;
  height: 1.75rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
}

.review-card p {
  margin: 0.25rem 0 1rem;
  font-size: 0.8125rem;
}

.review-card cite {
  color: var(--color-primary);
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.reviews-action {
  margin-top: 1.75rem;
  text-align: center;
}

.reviews .button-ghost {
  border-color: rgba(255, 255, 255, 0.8);
  background-color: transparent;
  color: var(--color-white);
}

.reviews .button-ghost:hover {
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.12);
}


/* Reviews preview: tablet */

@media (min-width: 48rem) {
  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .review-card {
    padding: 1.5rem;
  }

  .review-card p {
    min-height: 7rem;
    font-size: 0.75rem;
  }
}


/* Reviews preview: desktop */

@media (min-width: 64rem) {
  .review-grid {
    max-width: 78rem;
    margin-inline: auto;
    gap: 1.5rem;
  }

  .review-card {
    padding: 2rem;
  }

  .review-card p {
    min-height: 6.5rem;
    font-size: 0.8125rem;
  }
}


/* ============================================================
   GALLERY PREVIEW
============================================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  background-color: var(--color-white);
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border: 0.0625rem solid var(--color-white);
}

.gallery-item:last-child {
  grid-column: 1 / -1;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  background-color: rgba(31, 52, 57, 0);
  content: "";
  transition: background-color var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  transition:
    filter 0.4s ease,
    transform 0.5s ease;
}

.gallery-item:hover::after {
  background-color: rgba(31, 52, 57, 0.12);
}

.gallery-item:hover img {
  filter: saturate(1.1);
  transform: scale(1.04);
}


/* Gallery preview: tablet */

@media (min-width: 48rem) {
  .gallery {
    grid-template-columns: repeat(5, 1fr);
  }

  .gallery-item:last-child {
    grid-column: auto;
  }

  .gallery-item img {
    height: 11rem;
  }
}


/* Gallery preview: desktop */

@media (min-width: 64rem) {
  .gallery-item img {
    height: 14rem;
  }
}

/* ============================================================
   BOOKING CTA
============================================================ */

/* Mobile - 0rem+ */

.booking-cta {
  position: relative;
  overflow: hidden;
  padding: 3rem 0;

  background:
    linear-gradient(
      rgba(225, 239, 238, 0.86),
      rgba(225, 239, 238, 0.86)
    );
  background-position: center 70%;
  background-repeat: no-repeat;
  background-size: cover;
}

.booking-inner {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;

  text-align: center;
}

.booking-copy {
  max-width: 34rem;
}

.booking-copy h2 {
  margin: 0;

  color: var(--color-charcoal);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 10vw, 3.25rem);
  line-height: 1;
}

.booking-copy p {
  margin: 0.5rem 0 0;

  color: var(--color-charcoal);
  font-size: 0.8125rem;
}

.booking-action {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.booking-button {
  width: min(100%, 19rem);
  gap: 0.5rem;
}

.button-fish-icon {
  width: 1.65rem;
  height: 1.1rem;
  flex: 0 0 auto;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Booking CTA: tablet */

@media (min-width: 48rem) {
  .booking-cta {
    padding: 3.75rem 0;
  }

  .booking-inner {
    max-width: 48rem;
    gap: 1.25rem;
    justify-content: center;
  }

  .booking-copy h2 {
    font-size: 3.25rem;
  }

  .booking-copy p {
    font-size: 0.875rem;
  }

  .booking-button {
    width: auto;
  }
}


/* Booking CTA: desktop */

@media (min-width: 64rem) {
  .booking-cta {
    padding: 3.5rem 0;
  }

  .booking-inner {
    max-width: none;
    flex-direction: row;
    justify-content: space-between;
    gap: 3rem;

    text-align: left;
  }

  .booking-copy {
    flex: 1;
  }

  .booking-action {
    width: auto;
    min-width: 22rem;
    flex: 0 0 auto;
  }

  .booking-copy h2 {
    font-size: 3.25rem;
  }

  .booking-copy p {
    font-size: 0.875rem;
  }
}


/* ============================================================
   BOOKING CTA ANIMATION
============================================================ */

/* Animation stage */

.charter-animation {
  width: min(100%, 21rem);
  height: 8.5rem;
  margin-bottom: -0.5rem;

  pointer-events: none;
}

.charter-animation svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/*
 * This group carries the entire scene horizontally.
 * It starts outside the left side of the CTA.
 */

.charter-voyage {
  transform: translateX(-45rem);
  transform-box: view-box;
  transform-origin: center;
}


/* ============================================================
   BOAT
============================================================ */

.charter-boat {
  transform-box: fill-box;
  transform-origin: center;
}

.charter-boat-hull {
  fill: var(--color-navy);
  stroke: var(--color-navy);
  stroke-width: 2;
}

.charter-boat-trim,
.charter-boat-roof,
.charter-boat-support,
.charter-boat-top,
.charter-boat-antenna,
.charter-boat-rail {
  fill: none;
  stroke: var(--color-navy);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.charter-boat-cabin {
  fill: rgba(255, 255, 255, 0.9);
  stroke: var(--color-navy);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.charter-boat-window {
  fill: rgba(89, 139, 148, 0.5);
  stroke: var(--color-navy);
  stroke-width: 1.5;
}

.charter-boat circle {
  fill: var(--color-primary);
}


/* ============================================================
   WAKE
============================================================ */

.charter-wake {
  fill: none;
  stroke: rgba(31, 52, 57, 0.4);
  stroke-width: 2;
  stroke-linecap: round;

  opacity: 0;
}

.charter-wake path {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
}


/* ============================================================
   ANCHOR
============================================================ */

.charter-anchor-line {
  fill: none;
  stroke: var(--color-navy);
  stroke-width: 2;
  stroke-dasharray: 56;
  stroke-dashoffset: 56;

  /*
   * Moves the line from the center of the boat to the bow.
   */
  transform: translateX(3rem);
}

.charter-anchor {
  fill: none;
  stroke: var(--color-navy);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;

  opacity: 0;

  /*
   * The horizontal translation puts the anchor beneath
   * the bow instead of beneath the center of the hull.
   */
  transform: translate(3rem, -2rem);
  transform-box: fill-box;
  transform-origin: center top;
}


/* ============================================================
   FISHING LINES
============================================================ */

.charter-fishing-line {
  fill: none;
  stroke: rgba(31, 52, 57, 0.75);
  stroke-width: 1.5;
  stroke-linecap: round;

  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}


/* ============================================================
   FISH
============================================================ */

.charter-caught-fish {
  fill: var(--color-primary);
  stroke: var(--color-primary-dark);
  stroke-width: 1.5;
  stroke-linejoin: round;

  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.charter-caught-fish-left {
  transform: translateY(1.25rem) rotate(-8deg);
}

.charter-caught-fish-right {
  transform: translateY(1.25rem) rotate(8deg);
}


/* ============================================================
   ANIMATION SEQUENCE
============================================================ */

/* Sail in, wait, and sail out */

.charter-animation.is-playing .charter-voyage {
  animation:
    charter-sail-in 3.2s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    charter-sail-out 2.5s cubic-bezier(0.45, 0, 0.75, 0.35) 9.8s forwards;
}

/* Continue gently bobbing while stopped */

.charter-animation.is-playing .charter-boat {
  animation: charter-boat-settle 1.6s ease-in-out 3.2s 4;
}

/* Wake while arriving and leaving */

.charter-animation.is-playing .charter-wake {
  animation:
    charter-wake-appear 3.4s ease-out forwards,
    charter-exit-wake 2.5s ease-out 9.8s forwards;
}

.charter-animation.is-playing .charter-wake path {
  animation: charter-draw-wake 2.8s ease-out forwards;
}

/* Drop and retrieve the anchor */

.charter-animation.is-playing .charter-anchor-line {
  animation:
    charter-draw-anchor 0.9s ease-out 3.3s forwards,
    charter-retract-anchor-line 0.75s ease-in 8.75s forwards;
}

.charter-animation.is-playing .charter-anchor {
  animation:
    charter-drop-anchor 0.9s
      cubic-bezier(0.2, 0.8, 0.3, 1.15) 3.7s forwards,
    charter-lift-anchor 0.75s ease-in 8.75s forwards;
}

/* Cast and retrieve the lines */

.charter-animation.is-playing .charter-fishing-line-left {
  animation:
    charter-cast-line 0.85s ease-out 4.9s forwards,
    charter-reel-line 1.5s linear 7.15s forwards;
}

.charter-animation.is-playing .charter-fishing-line-right {
  animation:
    charter-cast-line 0.85s ease-out 5.15s forwards,
    charter-reel-line 1.5s linear 7.3s forwards;
}

/* Catch and retrieve the fish */

.charter-animation.is-playing .charter-caught-fish-left {
  animation:
    charter-catch-left 1.1s ease-out 5.8s forwards,
    charter-reel-fish-left 1.5s linear 7.15s forwards;
}

.charter-animation.is-playing .charter-caught-fish-right {
  animation:
    charter-catch-right 1.1s ease-out 6.15s forwards,
    charter-reel-fish-right 1.5s linear 7.3s forwards;
}

/* collapse the animation space */
.charter-animation.is-playing {
  animation:
    charter-hide-stage 0s linear 12.3s forwards,
    charter-collapse-stage 0.7s ease-in-out 12.3s forwards;
}
/* Pulse the button when the sequence finishes */
.charter-animation.is-playing + .booking-button {
  animation: charter-button-pulse 0.8s ease-out 12.8s;
}


/* ============================================================
   ANIMATION: TABLET
============================================================ */

@media (min-width: 48rem) {
  .charter-animation {
    width: 23rem;
    height: 9rem;
  }
}


/* ============================================================
   ANIMATION: DESKTOP
============================================================ */

@media (min-width: 64rem) {
  .charter-animation {
    width: 24rem;
    height: 9.5rem;
    margin-bottom: -0.75rem;
  }
}


/* ============================================================
   KEYFRAMES
============================================================ */

/*
 * Smooth deceleration with no overshoot.
 * The previous backward slide came from intermediate keyframes
 * that moved from +1rem to -0.3rem before reaching zero.
 */

@keyframes charter-sail-in {
  from {
    transform: translateX(-45rem);
  }

  to {
    transform: translateX(0);
  }
}


/* Subtle vertical boat movement while stationary */

@keyframes charter-boat-settle {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  35% {
    transform: translateY(-0.2rem) rotate(-0.75deg);
  }

  70% {
    transform: translateY(0.15rem) rotate(0.75deg);
  }
}


/* Arrival wake */

@keyframes charter-wake-appear {
  0% {
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  80% {
    opacity: 0.65;
  }

  100% {
    opacity: 0.2;
  }
}

@keyframes charter-draw-wake {
  from {
    stroke-dashoffset: 180;
  }

  to {
    stroke-dashoffset: 0;
  }
}


/* Anchor drop */

@keyframes charter-draw-anchor {
  from {
    stroke-dashoffset: 56;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes charter-drop-anchor {
  0% {
    opacity: 0;
    transform: translate(3rem, -2rem) scale(0.8);
  }

  25% {
    opacity: 1;
  }

  80% {
    transform: translate(3rem, 0.2rem) scale(1);
  }

  100% {
    opacity: 1;
    transform: translate(3rem, 0) scale(1);
  }
}


/* Cast fishing lines */

@keyframes charter-cast-line {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}


/* Fish appear on the lines */

@keyframes charter-catch-left {
  0% {
    opacity: 0;
    transform: translateY(1.25rem) rotate(-8deg) scale(0.7);
  }

  35% {
    opacity: 1;
  }

  65% {
    transform: translateY(-0.4rem) rotate(10deg) scale(1.08);
  }

  82% {
    transform: translateY(0.15rem) rotate(-8deg) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

@keyframes charter-catch-right {
  0% {
    opacity: 0;
    transform: translateY(1.25rem) rotate(8deg) scale(0.7);
  }

  35% {
    opacity: 1;
  }

  65% {
    transform: translateY(-0.4rem) rotate(-10deg) scale(1.08);
  }

  82% {
    transform: translateY(0.15rem) rotate(8deg) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}


/* Line disappears from the fish toward the boat */

@keyframes charter-reel-line {
  0% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  95% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 1;
    opacity: 0;
  }
}

@keyframes charter-reel-fish-left {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
  }

  25% {
    transform: translate(1.18rem, -2.27rem) rotate(-8deg);
  }

  50% {
    transform: translate(2.53rem, -4.08rem) rotate(6deg);
  }

  75% {
    transform: translate(4.05rem, -5.43rem) rotate(-4deg);
  }

  90% {
    opacity: 1;
    transform: translate(5.1rem, -6rem) rotate(2deg);
  }

  100% {
    opacity: 0;
    transform: translate(5.75rem, -6.31rem) rotate(0);
  }
}

@keyframes charter-reel-fish-right {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
  }

  25% {
    transform: translate(-1.17rem, -2.2rem) rotate(8deg);
  }

  50% {
    transform: translate(-2.55rem, -3.97rem) rotate(-6deg);
  }

  75% {
    transform: translate(-4.14rem, -5.32rem) rotate(4deg);
  }

  90% {
    opacity: 1;
    transform: translate(-5.25rem, -5.9rem) rotate(-2deg);
  }

  100% {
    opacity: 0;
    transform: translate(-5.94rem, -6.25rem) rotate(0);
  }
}


/* Retrieve anchor line */

@keyframes charter-retract-anchor-line {
  from {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  to {
    stroke-dashoffset: -56;
    opacity: 0;
  }
}


/* Lift anchor from the bow */

@keyframes charter-lift-anchor {
  0% {
    opacity: 1;
    transform: translate(3rem, 0) scale(1);
  }

  75% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(3rem, -2.75rem) scale(0.7);
  }
}


/* Sail away */

@keyframes charter-sail-out {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(48rem);
  }
}


/* Departure wake */

@keyframes charter-exit-wake {
  0% {
    opacity: 0.2;
  }

  30% {
    opacity: 0.75;
  }

  100% {
    opacity: 0;
  }
}


/* Booking-button prompt */
@keyframes charter-button-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(49, 95, 23, 0),
      0 0.75rem 1.75rem rgba(31, 52, 57, 0.16);

    transform: scale(1);
  }

  45% {
    box-shadow:
      0 0 0 0.45rem rgba(49, 95, 23, 0.14),
      0 0.9rem 2rem rgba(31, 52, 57, 0.2);

    transform: scale(1.035);
  }
}

/* collapse the animation area for button */
@keyframes charter-hide-stage {
  to {
    visibility: hidden;
  }
}

@keyframes charter-collapse-stage {
  to {
    height: 0;
    margin-bottom: 0;
  }
}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {
  .charter-voyage {
    transform: translateX(0);
  }

  .charter-wake,
  .charter-anchor-line,
  .charter-anchor,
  .charter-fishing-line,
  .charter-caught-fish {
    display: none;
  }

  .charter-animation.is-playing .charter-voyage,
  .charter-animation.is-playing .charter-boat,
  .charter-animation.is-playing + .booking-button {
    animation: none;
  }

  .charter-animation {
    display: none;
  }

  .charter-animation.is-playing + .booking-button {
    animation: none;
  }
}