@import url("base.css");

@font-face {
  font-family: "Graphik";
  src: url("../fonts/Graphik-Regular.woff") format("woff");
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-display: "swap";
}

@font-face {
  font-family: "Graphik";
  src: url("../fonts/Graphik-Medium.woff") format("woff");
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-display: "swap";
}

@font-face {
  font-family: "Encode Sans";
  src: url("../fonts/EncodeSansSemiCondensed-Bold.ttf");
  font-weight: 700;
  font-style: normal;
  font-display: "swap";
}

:root {
  --background: oklch(1 0 0);
  --foreground: oklch(24.5% 0.0282 257.55);
  --primary: oklch(37.755% 0.15594 274.677);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(60.982% 0.22805 26.055);
  --secondary-foreground: oklch(1 0 0);
  --popover: oklch(0.9911 0 0);
  --popover-foreground: oklch(0 0 0);
  --muted: oklch(0.9702 0 0);
  --muted-foreground: oklch(48.469% 0.00382 16.496);
  --accent: oklch(0.9392 0.0166 250.8453);
  --accent-foreground: oklch(0.6723 0.1606 244.9955);
  --warning: oklch(77.034% 0.16458 70.657);
  --warning-foreground: oklch(28.008% 0.05629 94.092);
  --destructive: oklch(0.629 0.1902 23.0704);
  --border: oklch(0.9317 0.0118 231.6594);
  --input: oklch(0.9401 0 0);
  --ring: oklch(52.802% 0.18004 276.854);

  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-4xl: 2rem;
  --radius-full: calc(infinity * 1px);

  --shadow-x: 0px;
  --shadow-y: 2px;
  --shadow-blur: 0px;
  --shadow-spread: 0px;
  --shadow-opacity: 0;
  --shadow-color: rgb(29 161 242 / 0.15);
  --shadow-2xs: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0);
  --shadow-xs: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0);
  --shadow-sm:
    0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0),
    0px 1px 2px -1px hsl(202.8169 89.1213% 53.1373% / 0);
  --shadow:
    0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0),
    0px 1px 2px -1px hsl(202.8169 89.1213% 53.1373% / 0);
  --shadow-md:
    0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0),
    0px 2px 4px -1px hsl(202.8169 89.1213% 53.1373% / 0);
  --shadow-lg:
    0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0),
    0px 4px 6px -1px hsl(202.8169 89.1213% 53.1373% / 0);
  --shadow-xl:
    0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0),
    0px 8px 10px -1px hsl(202.8169 89.1213% 53.1373% / 0);
  --shadow-2xl: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0);

  --selection: oklch(0.145 0 0);
  --selection-foreground: oklch(1 0 0);

  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22);
  --ease-out-quad: cubic-bezier(0.39, 0.575, 0.565, 1);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);

  --spacing: 0.25rem;

  --font-sans: "Graphik", sans-serif;

  --container: 76rem;
  --container-narrow: 64rem;
  --offset: clamp(1.125rem, 4vw, 2rem);
  --tooltip-width: 20rem;

  --marquee-elements-displayed: 2;
  --marquee-element-width: calc(100vw / var(--marquee-elements-displayed));
  --marquee-animation-duration: calc(var(--marquee-elements) * 5s);
  --marquee-gap: 2rem;
}

@media (width >= 40rem) {
  :root {
    --marquee-elements-displayed: 3;
    --marquee-gap: 2.5rem;
  }
}

@media (width >= 48rem) {
  :root {
    --marquee-elements-displayed: 4;
  }
}

@media (width >= 64rem) {
  :root {
    --marquee-elements-displayed: 5;
    --marquee-gap: 3rem;
  }
}

@media (min-width: 80rem) {
  :root {
    --marquee-elements-displayed: 6;
  }
}

body {
  transition: all 0.3s var(--ease-in-quart);
}

main {
  overflow-x: clip;
}

.container {
  width: min(var(--container), 100%);
  padding-inline: var(--offset);
  margin-inline: auto;

  &.narrow {
    width: min(var(--container-narrow), 100%);
  }

  &.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.site-header {
  height: 4.125rem;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  z-index: 7;
  top: 0;
  @media (width >= 64rem) {
    height: 5.25rem;
  }
}

:is(.is-open, .scrolling) .site-header {
  transition: border-color 0.3s var(--ease-out-quad) 0.05s;
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  justify-content: space-between;
}

.site-logo {
  height: 4.125rem;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding-block: 0.75rem;

  @media (width >= 64rem) {
    height: 5.25rem;
  }

  .logo {
    width: auto;
    height: 100%;
    display: grid;
  }
}

.nav-wrap {
  display: flex;
  justify-content: space-between;

  @media (width >= 48rem) {
    margin-inline-start: auto;
  }

  .btn-wrap {
    display: flex;
    align-items: center;
    margin-inline-start: auto;
    overflow: hidden;

    @media (width >= 62rem) {
      gap: 0.75rem;
    }

    .button {
      &.icon {
        border-radius: 0rem;
        color: color-mix(in oklab, var(--foreground) 70%, transparent);
        &:has(.line) {
          padding-inline: 0.5rem;
        }
      }

      & > svg {
        width: 1.25rem;
        height: 1.25rem;
        color: currentColor;
      }

      &.js-search {
        margin-left: 0.5rem;
      }

      &.js-menu-toggle {
        margin-right: -0.5rem;
        visibility: visible;
        z-index: 100;

        @media (width >= 64rem) {
          display: none;
          visibility: hidden;
        }

        .line {
          height: 1.5px;
          flex-shrink: 0;
          display: block;
          background-color: var(--foreground);
          transform: translateY(-50%);
          position: absolute;
          right: 0.5rem;
          left: 0.5rem;
          top: 50%;

          &::before,
          &::after {
            content: "";
            width: 100%;
            height: 1.5px;
            display: block;
            background-color: var(--foreground);
            transition-timing-function: var(--ease-out-quad);
            position: absolute;
            left: 0;
          }

          &::before {
            top: -7px;
          }

          &::after {
            bottom: -7px;
          }
        }
      }

      &.js-menu-toggle--htx .line {
        transition: background-color 0s 0.3s;

        &::after,
        &::before {
          transition-duration: 0.5s, 0.5s;
          transition-delay: 0.3s, 0s;
        }

        &::before {
          transition-property: top, transform;
        }

        &::after {
          transition-property: bottom, transform;
        }
      }

      &.js-menu-toggle--htx.is-active {
        &::before {
          opacity: 1;
          visibility: visible;
        }

        .line {
          background: 0 0;

          &::before {
            top: 0;
            transform: rotate(45deg);
          }

          &::after {
            bottom: 0;
            transform: rotate(-45deg);
          }

          &::after,
          &::before {
            transition-delay: 0s, 0.3s;
          }
        }
      }
    }
  }
}

.site-nav {
  width: 100%;
  height: 100dvh;
  max-width: 28rem;
  display: flex;
  align-items: flex-start;
  background-color: var(--background);
  transition: transform 0.3s var(--ease-out-quad);
  transform: translateX(100%);
  position: fixed;
  z-index: 10;
  right: 0;
  top: 4.125rem;

  @media (width >= 48rem) {
    top: 0;
  }

  @media (width >= 64rem) {
    width: auto;
    height: auto;
    max-width: fit-content;
    background-color: transparent;
    align-items: stretch;
    transform: translateX(0);
    position: relative;
  }

  .css-navList {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;

    @media (width >= 48rem) {
      border-top: 1px solid var(--border);
    }
    @media (width >= 64rem) {
      align-items: center;
      flex-direction: row;
      border-top-width: 0;
      gap: 1.875rem;
    }
  }
}

.is-open .site-nav {
  padding-top: 1.25rem;
  transform: translateX(0);
  border-top: 1px solid var(--border);
  @media (width >= 48rem) {
    padding-top: 3.75rem;
  }
  @media (width >= 64rem) {
    padding-top: 0;
    transform: translateX(0);
    border-top-width: 0;
  }
}

.css-navItem {
  height: 100%;
  display: block;
  position: relative;
  border-bottom: 1px solid var(--border);

  @media (width >= 64rem) {
    height: auto;
    border-bottom-width: 0;
  }

  .css-navLink {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
    padding-inline: var(--offset);
    color: var(--muted-foreground);
    letter-spacing: var(--tracking-tight);
    font-weight: 500;
    font-size: 1.25rem;
    cursor: pointer;

    @media (width >= 64rem) {
      font-size: 1.125rem;
      letter-spacing: var(--tracking-tight);
      padding-block: 0.625rem;
      padding-inline: 0;
      transition: color 200ms var(--ease-out-quart);

      &:hover {
        color: var(--primary);
      }
    }

    & > svg {
      width: 1.5rem;
      height: 1.5rem;
      transition: transform 0.3s var(--ease-out-quart);
      color: currentColor;

      @media (width >= 64rem) {
        width: 1.125rem;
        height: 1.125rem;
        display: none;
      }
    }
  }

  &.active .css-navLink {
    color: var(--primary);
  }

  &.has-children.active .css-navLink > svg {
    transform: rotate(90deg);
  }
}

.css-subNav {
  width: 100%;
  height: 100dvh;
  max-width: 28rem;
  display: flex;
  background-color: var(--background);
  flex-direction: column;
  padding-top: 2.75rem;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-in-quart);
  position: fixed;
  z-index: 11;
  bottom: 0;
  right: 0;
  top: 0;

  @media (width >= 48rem) {
    padding-top: 4.75rem;
  }
  @media (width >= 64rem) {
    display: none;
  }

  .sub-navHeader {
    width: 100%;
    display: flex;
    border-bottom: 1px solid var(--border);

    @media (width >= 48rem) {
      border-top: 1px solid var(--border);
    }

    .close {
      display: inline-flex;
      align-items: center;
      align-self: flex-start;
      color: var(--muted-foreground);
      padding: 0.75rem var(--offset);
      font-size: 1rem;
      cursor: pointer;

      & > svg {
        width: 1rem;
        height: 1rem;
        flex-shrink: 0;
        display: inline-block;
        transform: rotate(180deg);
        margin-inline-end: 0.5rem;
        fill: currentColor;
      }
    }

    @media (width >= 64rem) {
      display: none;
    }
  }
}

.is-open .css-subNav.is-active {
  transform: translateX(0%);
}

.overlay {
  display: none;

  @media (width >= 48rem) {
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition:
      opacity 0.4s,
      visibility 0s 0.4s;
    background: var(--foreground);
    visibility: hidden;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
  }
  @media (width >= 64rem) {
    display: none;
  }
}

.is-open .overlay {
  opacity: 0.5;
  transition: opacity 0.4s;
  visibility: visible;
}

.breadcrumb-top {
  width: min(var(--container), 100%);
  padding-inline: var(--offset);
  padding-top: clamp(3rem, 8vw, 5rem);
  transform: translateX(-50%);
  position: absolute;
  z-index: 10;
  left: 50%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  overflow: hidden;

  li {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;

    & > * {
      font-weight: 500;
      font-size: 0.875rem;
      line-height: 1.5rem;
      letter-spacing: 0;
    }

    &:has(> a) {
      display: inline-flex;
      color: color-mix(in oklab, var(--primary-foreground) 70%, transparent);
    }

    .breadcrumb-separator {
      font-size: 1rem;
      color: color-mix(in oklab, var(--primary-foreground) 70%, transparent);
      padding-inline: 0.5rem;
    }

    [aria-current="page"] {
      color: var(--primary-foreground);
      display: -webkit-box;
      align-items: center;
      overflow: hidden;
      text-overflow: ellipsis;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 1;
      line-clamp: 1;
    }

    a {
      transition: color 0.3s var(--ease-out-quad);

      &:hover {
        color: var(--primary-foreground);
      }
    }
  }
}

.slider-container {
  width: 100%;
  height: calc(100vh - 8rem);
  overflow: hidden;
  background-color: var(--foreground);
  position: relative;

  @media (width >= 25rem) {
    height: calc(100vh - 12rem);
  }

  @media (width >= 74rem) {
    height: calc(100vh - 5.25rem);
  }

  .slider {
    display: flex;
    height: 100%;
    position: relative;

    .slide {
      width: 100%;
      height: 100%;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition:
        opacity 0.75s var(--ease-out-quart),
        visibility 0s linear 0.75s;
      position: absolute;
      z-index: 0;
      top: 0;
      left: 0;

      &::after {
        content: "";
        background:
          linear-gradient(
            69deg,
            rgba(0, 0, 0, 0.76) 31.16%,
            rgba(0, 0, 0, 0) 90.51%
          ),
          linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.67) 0%,
            rgba(0, 0, 0, 0) 27.65%
          );
        position: absolute;
        z-index: 0;
        inset: 0;

        @media (width >= 48rem) {
          background:
            linear-gradient(
              86deg,
              rgba(0, 0, 0, 0.4) 31.08%,
              rgba(0, 0, 0, 0) 71.97%,
              rgba(22, 19, 19, 0) 103.02%
            ),
            linear-gradient(
              180deg,
              rgba(0, 0, 0, 0.67) 0%,
              rgba(0, 0, 0, 0) 27.65%
            );
        }
      }

      & > img {
        max-width: 100%;
        min-width: 100%;
        max-height: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center;
        position: absolute;
        z-index: -1;
        inset: 0;
      }

      .slide-content {
        height: auto;
        color: var(--primary-foreground);
        position: absolute;
        z-index: 1;
        bottom: 5.25rem;
        right: 0;
        left: 0;

        @media (width >= 34rem) {
          bottom: 6.5rem;
        }

        .slider-header-wrap,
        .slider-description-wrap,
        .slider-button-wrap {
          display: flex;
          align-items: flex-start;
        }

        .slider-header-wrap .max-w-lg {
          width: min(38rem, 100%);
          overflow: hidden;

          h1 {
            display: inline-block;
            font-weight: 500;
            font-size: clamp(2.25rem, 8vw, 3.25rem);
            line-height: 105%;
            letter-spacing: var(--tracking-tighter);
            transform: translate3d(5px, 150px, 0);
          }
        }

        .slider-description-wrap {
          justify-content: flex-start;

          .hero-description {
            width: min(42rem, 100%);
            display: flex;
            flex-flow: column;
            grid-column-gap: 1.5rem;
            grid-row-gap: 1.5rem;
            margin-top: 1.125rem;
            overflow: hidden;

            @media (width >= 62rem) {
              grid-column-gap: 4rem;
              grid-row-gap: 4rem;
            }

            p {
              font-weight: 400;
              font-size: 1.25rem;
              line-height: 130%;
              letter-spacing: var(--tracking-tight);
              transform: translateY(clamp(6rem, 5vw, 12rem));
            }
          }
        }

        .slider-button-wrap {
          gap: 1rem;
          flex-wrap: wrap;
          margin-top: 2.25rem;
          overflow: hidden;

          & > .button {
            color: var(--foreground);
            border-radius: var(--radius-3xl);
            background-color: var(--background);
            transform: translateY(clamp(6rem, 5vw, 12rem));

            &:not(*:disabled) {
              &:hover {
                @media (hover: hover) {
                  background-color: var(--background);
                }
              }
            }
          }
        }

        .slider-header-wrap .max-w-lg h1,
        .slider-description-wrap .hero-description p,
        .slider-button-wrap .button {
          will-change: transform;
          transform-origin: center center;
          transition: transform 0.75s 0.1s var(--ease-out-quart);
          backface-visibility: hidden;
        }
      }

      &.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        z-index: 1;
        transition: opacity 0.6s var(--ease-in-quart);

        .slide-content .slider-header-wrap .max-w-lg h1,
        .slide-content .slider-description-wrap .hero-description p,
        .slide-content .slider-button-wrap .button {
          transform: translate3d(0, 0, 0);
        }

        .slide-content .slider-header-wrap .max-w-lg h1 {
          transition-delay: 0.1s;
        }
        .slide-content .slider-description-wrap .hero-description p {
          transition-delay: 0.3s;
        }

        .slide-content .slider-button-wrap .button {
          transition-delay: 0.5s;
        }
      }
    }
  }

  .slider-indicators {
    width: 100%;
    display: block;
    position: absolute;
    z-index: 1;
    bottom: 3rem;
    right: auto;
    left: auto;

    @media (width >= 34rem) {
      bottom: 4rem;
    }

    .slider-indicator-container {
      width: 100%;
      max-width: 20rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(2rem, 100%), 1fr));
      gap: clamp(0.75rem, 3vw, 1.25rem);
    }

    .slider-indicator {
      cursor: pointer;
      position: relative;
      padding: 0.5rem 0;

      .indicator-title {
        display: none;
        color: color-mix(in oklab, var(--background) 60%, transparent);
        font-size: 1.125rem;
        font-weight: 500;
        font-family: var(--font-heading);
        letter-spacing: 0.07em;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      &.is-active .indicator-title {
        color: var(--popover-foreground);
      }
    }

    .slider-progress {
      width: 100%;
      height: 0.1875rem;
      overflow: hidden;
      border-radius: 0.375rem;
      background-color: color-mix(in oklab, var(--background) 60%, transparent);
      position: relative;

      .progress-bar {
        width: 100%;
        height: 100%;
        border-radius: 0.375rem;
        background: var(--background);
        animation: slide-progress 6s linear forwards;
        animation-play-state: paused;
        transform: translateX(-100%);
        will-change: transform;
        position: absolute;
        left: 0;
        top: 0;
      }

      &.active .progress-bar {
        animation-play-state: running;
      }

      &.paused .progress-bar {
        animation-play-state: paused;
      }
    }
  }
}

.page-banner {
  width: 100%;
  height: min(calc(100dvh - 10rem), calc(100dvh - 5rem));
  background-color: var(--muted);
  position: relative;

  & > .bg-image {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 0;
    left: 0;
    top: 0;

    &::after {
      content: "";
      background:
        linear-gradient(
          69deg,
          rgba(0, 0, 0, 0.76) 31.16%,
          rgba(0, 0, 0, 0) 90.51%
        ),
        linear-gradient(180deg, rgba(0, 0, 0, 0.67) 0%, rgba(0, 0, 0, 0) 27.65%);
      position: absolute;
      z-index: 0;
      inset: 0;

      @media (width >= 48rem) {
        background:
          linear-gradient(
            86deg,
            rgba(0, 0, 0, 0.4) 31.08%,
            rgba(0, 0, 0, 0) 71.97%,
            rgba(22, 19, 19, 0) 103.02%
          ),
          linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.67) 0%,
            rgba(0, 0, 0, 0) 27.65%
          );
      }
    }

    & > img {
      max-width: 100%;
      min-width: 100%;
      max-height: 100%;
      min-height: 100%;
      object-fit: cover;
      object-position: center;
      position: absolute;
      z-index: -1;
      inset: 0;
    }
  }

  .page-banner-content {
    height: auto;
    color: var(--primary-foreground);
    position: absolute;
    z-index: 1;
    bottom: 3rem;
    right: 0;
    left: 0;

    @media (width >= 62rem) {
      bottom: 14rem;
    }

    .page-banner-title {
      display: inline;
      font-size: clamp(0.875rem, 3vw, 1.125rem);
      line-height: 1;

      & + .page-banner-description {
        margin-block-start: 1rem;
      }
    }

    .page-banner-description {
      width: min(52rem, 100%);
      font-weight: 500;
      font-size: clamp(2.125rem, 5vw, 3rem);
      color: var(--primary-foreground);
      line-height: 110%;
      text-wrap: pretty;

      & > a {
        display: inline-block;
        color: var(--primary);
      }
    }

    .btn-wrap {
      position: absolute;
      bottom: -1.75rem;
      left: var(--offset);

      .button {
        &.primary {
          &:not(*:disabled) {
            &:hover {
              @media (hover: hover) {
                background-color: var(--primary);
              }

              & > svg {
                transform: translateY(0.375rem);
              }
            }
          }
        }

        & > svg {
          width: 1.5rem;
          height: 1.5rem;
          fill: currentColor;
          transition: transform 0.3s var(--ease-out-quad);
        }
      }
    }
  }
}

.anchor-wrapper {
  display: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
  position: sticky;
  z-index: 11;
  top: 5.25rem;

  @media (width >= 62rem) {
    display: block;
  }

  .container {
    display: flex;
    align-items: center;
    gap: 1.875rem;

    & > .anchor {
      height: 4rem;
      display: inline-flex;
      align-items: center;
      flex-shrink: 0;
      font-size: 1.0625rem;
      color: var(--foreground);
      letter-spacing: var(--tracking-tight);
      background: linear-gradient(0deg, var(--primary), var(--primary)) right
        bottom / 0% 2px no-repeat;
      transition-property: color, background-size;
      transition-duration: 700ms, 300ms;
      transition-timing-function: var(--ease-out-quad);

      &:hover {
        @media (hover: hover) {
          color: var(--primary);
          text-decoration-line: none;
          background-size: 100% 2px;
          background-position-x: left;
        }
      }
    }
  }
}

section {
  width: 100%;
  padding-block: 3rem;

  @media (width >= 62rem) {
    padding-block: 5rem;
  }

  &.bg-primary {
    background-color: var(--primary);

    .page-header {
      position: relative;
      z-index: 1;

      .page-header-container {
        .section-title {
          color: color-mix(
            in oklab,
            var(--primary-foreground) 70%,
            transparent
          );
        }
      }

      .page-header-heading {
        color: var(--primary-foreground);
      }
      .page-header-description {
        color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);

        &:has(> p:only-child) > p {
          color: var(--primary-foreground) !important;
        }
      }
    }

    .page-content {
      max-width: 100%;
      flex-wrap: wrap;
      flex-direction: column;
      justify-content: center;
      border-top: 1px solid color-mix(in oklab, var(--border) 20%, transparent);
      margin-top: clamp(2rem, 8vw, 3rem);
      gap: 0;

      @media (width >= calc(48rem + 1px)) {
        gap: 2.5rem 1rem;
        flex-direction: row;
        border-top: none;
      }

      @media (width >= 77.5rem) {
        justify-content: flex-start;
      }

      & > .item {
        width: 100%;
        border-bottom: 1px solid
          color-mix(in oklab, var(--border) 20%, transparent);

        @media (width >= calc(48rem + 1px)) {
          width: calc(33.333333% - (2 * 1rem / 3));
          height: 6.5rem;
          border-bottom: none;
          overflow: hidden;
          position: relative;
        }

        & > a {
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: space-between;
          color: var(--foreground);
          padding: 1rem;

          @media (width >= calc(48rem + 1px)) {
            display: block;
            overflow: hidden;
            transition: all 200ms var(--ease-out-quad);
            position: absolute;
            inset: 0;
          }

          .item-title {
            flex-grow: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: var(--primary-foreground);
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;

            @media (width >= calc(48rem + 1px)) {
              width: calc(100% - 1rem);
              height: 5.5rem;
              color: var(--primary-foreground);
              backdrop-filter: blur(12px);
              background-color: color-mix(
                in oklab,
                var(--background) 30%,
                transparent
              );
              transition: all 200ms var(--ease-out-quad);
              padding-inline-start: 2rem;
              padding-inline-end: 1.5rem;
              position: absolute;
              z-index: 2;
              left: 0;
              top: 0;
            }

            & > svg {
              width: 1.25rem;
              height: 1.25rem;
              display: flex;
              flex-shrink: 0;
              color: color-mix(
                in oklab,
                var(--primary-foreground) 70%,
                transparent
              );

              @media (width >= calc(48rem + 1px)) {
                display: none;
              }
            }

            .item-title-inner {
              font-weight: 500;
              font-size: clamp(1.25rem, 3.875vw, 1.4375rem);
              line-height: 1.25;
              letter-spacing: var(--tracking-tight);
            }
          }

          & > img,
          & > .placeholder {
            width: calc(100% - 2rem);
            height: 4.5rem;
            display: none;
            position: absolute;
            z-index: 1;
            top: 2rem;
            right: 0;

            @media (width >= calc(48rem + 1px)) {
              display: flex;
            }
          }

          & > img {
            object-fit: cover;
            object-position: center;
            transition: all 200ms var(--ease-out-quad);
          }

          & > .placeholder {
            align-items: center;
            justify-content: center;
            background-color: var(--muted);
            color: var(--muted-foreground);

            & > svg {
              width: 1.25rem;
              height: 1.25rem;
            }
          }
        }

        &:hover {
          .item-title {
            background-color: var(--background);
            color: var(--primary);
          }
        }
      }
    }
  }

  &.bg-muted {
    background-color: var(--muted);
  }

  &.bg-background {
    height: 30rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;

    @media (width >= 48rem) {
      height: 28rem;
    }

    @media (width >= 64rem) {
      height: 36rem;
    }

    &::after {
      content: "";
      width: 100%;
      height: 100%;
      opacity: 0.6;
      background: linear-gradient(
        90deg,
        var(--foreground) 0,
        color-mix(in oklab, var(--foreground) 50%, transparent)
      );
      position: absolute;
      z-index: 0;
      left: 0;
      top: 0;
    }

    .page-header {
      position: relative;
      z-index: 1;

      .page-header-heading {
        max-width: 32rem;
        color: var(--primary-foreground);
      }
      .page-header-description {
        color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);

        &:has(> p:only-child) > p {
          color: var(--primary-foreground) !important;
        }
      }

      .page-header-description,
      .page-header-actions {
        margin-inline: unset;
      }
    }

    .page-content {
      .stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
        padding-block: 1.5rem;

        @media (width >= 48rem) {
          padding-block: 2.25rem;
        }

        :where(& > :not(:first-child)) {
          border-top: 1px solid
            color-mix(in oklab, var(--primary-foreground) 50%, transparent);
          padding-block-start: 1.25rem;

          @media (width >= 48rem) {
            border-top-width: 0;
            padding-block-start: 0;
            padding-inline-start: 1.5rem;
          }
        }

        :where(& > :not(:last-child)) {
          padding-block-end: 1.25rem;

          @media (width >= 48rem) {
            padding-block-end: 0;
            padding-inline-end: 1.5rem;
          }
        }

        .stat {
          display: flex;
          flex-direction: column;
          gap: 0.25rem;

          /* @media (width >= 48rem) {
            gap: 0.75rem;
            flex-direction: row;
            align-items: flex-end;
          } */

          .stat-value {
            font-weight: 600;
            font-size: 2rem;
            line-height: 1;
            color: var(--primary-foreground);

            & > span {
              font-size: 1.5rem;
              color: var(--secondary);
              vertical-align: top;
            }

            @media (width >= 48rem) {
              font-size: 2.5rem;

              & > span {
                font-size: 1.75rem;
              }
            }
          }

          .stat-label {
            /* font-weight: 500; */
            font-size: 0.875rem;
            line-height: 1.5;
            text-transform: uppercase;
            color: color-mix(
              in oklab,
              var(--primary-foreground) 70%,
              transparent
            );
          }
        }
      }
    }
  }

  &.intro {
    .page-header {
      .page-header-heading {
        width: min(48rem, 100%);
        font-size: clamp(1.875rem, 8vw, 2.5rem);

        & + .page-header-description {
          p:first-child {
            font-size: clamp(1.125rem, 3.5vw, 1.25rem);
          }
        }
      }
      .page-header-description {
        width: 100%;
        color: var(--foreground);
        text-wrap: pretty;

        p:first-child {
          font-size: clamp(1.25rem, 3vw, 1.5rem);
        }

        p:only-child {
          font-size: clamp(1.125rem, 3.5vw, 1.25rem);
        }
      }
    }
  }

  &.alt {
    & > .container {
      display: flex;
      flex-direction: column;
      gap: 3rem;

      .page-content {
        flex-direction: column;
      }
    }
  }

  &.section {
    &:has(*.feature-block-wrapper) {
      padding-block: 0;
    }

    .page-header {
      .page-header-heading {
        width: min(48rem, 100%);
        font-size: clamp(1.5rem, 8vw, 2.25rem);
      }

      .page-header-description {
        text-wrap: pretty;
      }
    }

    .feature-block-wrapper {
      position: relative;
      padding-block: 3rem;

      @media (width >= 62rem) {
        overflow: hidden;
        padding-block-start: 0;
        padding-block-end: 5rem;
      }

      &::before {
        content: "";
        width: 100%;
        height: 100%;
        background-color: var(--muted);
        position: absolute;
        z-index: 0;
        top: 0;

        @media (width >= 62rem) {
          top: 30%;
        }
      }

      .feature-block-wrap {
        width: 100%;
        padding-bottom: 45%;
        position: relative;
        z-index: 1;

        & > img {
          max-width: 100%;
          min-width: 100%;
          max-height: 100%;
          min-height: 100%;
          object-fit: cover;
          object-position: center;
          position: absolute;
          z-index: -1;
          inset: 0;
        }
      }

      .content-wrap {
        max-width: 100%;
        padding-block-start: 2rem;
        position: relative;
        z-index: 2;

        @media (width >= 62rem) {
          max-width: 48rem;
          padding: 4rem 6rem;
          background-color: var(--background);
          margin-block-start: -13.25rem;
          margin-inline-start: 5rem;
        }
      }
    }
  }
}

.wrapper {
  position: relative;
}

.section-title {
  max-width: 26rem;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  letter-spacing: var(--tracking-widest);
  text-wrap: balance;
  color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
  text-transform: uppercase;

  &:where(:not(:last-child)) {
    margin-bottom: 0.875rem;
  }
}

.page-header {
  border-color: color-mix(in oklab, var(--border) 50%, transparent);

  .container-wrapper {
    width: 100%;
    margin-inline: auto;

    @media (width >= 1600px) {
      &:is(.layout-fixed *) {
        max-width: 98rem;
      }
    }

    & > div {
      display: flex;
      flex-direction: column;
    }
  }

  .page-header-container {
    width: 100%;
    container-type: inline-size;
    container-name: page-header-container;
    display: grid;
    grid-auto-rows: min-content;
    align-items: flex-start;
    gap: 0.25rem;

    &:has(*.page-header-actions) {
      grid-template-rows: auto auto;
      @media (width >= 48rem) {
        grid-template-columns: 1fr auto;
      }
    }
    &:has(*.page-header-description) {
      grid-template-rows: auto auto;
    }
  }

  .page-header-heading {
    width: min(48rem, 100%);
    font-weight: 500;
    font-size: clamp(2rem, 8vw, 2.875rem);
    line-height: 105%;
    color: var(--foreground);
    letter-spacing: var(--tracking-tighter);

    & + .page-header-description {
      margin-top: 1.75rem;
    }
  }

  .page-header-description {
    width: min(48rem, 100%);
    color: var(--muted-foreground);
    text-wrap: balance;

    &:where(:not(:last-child)) {
      margin-bottom: 2.25rem;

      @media (width >= 40rem) {
        margin-bottom: 3rem;
      }
    }

    :where(& > :not(:last-child)) {
      margin-block-end: 1.25rem;

      @media (width >= 40rem) {
        margin-block-end: 1.5rem;
      }
    }

    & > p {
      font-weight: 400;
      font-size: clamp(1.125rem, 3.5vw, 1.25rem);
      line-height: 1.375;

      & > a {
        display: inline-block;
        color: var(--primary);
        text-underline-offset: 4px;

        &:hover {
          @media (hover: hover) {
            color: color-mix(in oklab, var(--primary) 70%, transparent);
            text-decoration: underline;
          }
        }
      }
    }

    & > :is(ul, ol) {
      padding-inline-start: 1.25rem;

      li {
        margin-left: 0.5rem;
        list-style: disc;
        font-size: clamp(1.125rem, 3.5vw, 1.25rem);
        line-height: 1.375;
        color: var(--foreground);

        &:not(:last-child) {
          margin-block-end: 1rem;
        }
      }

      & + p {
        margin-block-start: 1.25rem;
      }
    }
  }

  .page-header-actions {
    display: flex;
    align-items: center;
    width: min(48rem, 100%);
    gap: 0.5rem;

    :is(& *) {
      &.button {
        font-weight: 500;
        letter-spacing: var(--tracking-tighter);
        box-shadow: var(--shadow-md);
        border-radius: var(--radius-full);

        &.outline {
          background-color: transparent;
          border-color: color-mix(
            in oklab,
            var(--muted-foreground) 50%,
            transparent
          );

          &:not(*:disabled) {
            &:hover {
              @media (hover: hover) {
                border-color: var(--primary);
                background-color: var(--primary);
                color: var(--primary-foreground);
              }
            }
          }
        }
      }
    }
  }
}

.page-content {
  display: flex;
  gap: 1rem;
}

.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 4rem;

  & > .marquee-list {
    width: 100%;
    height: 3rem;
    display: flex;
    gap: var(--marquee-gap);
    animation: marquee var(--marquee-animation-duration) linear infinite;
    will-change: transform;

    @media (width >= 48rem) {
      height: 4rem;
    }

    @media (width >= 64rem) {
      height: 5rem;
    }

    & > .marquee-item {
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;

      & > img {
        width: auto;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
        transition: all 200ms var(--ease-out-quad);
      }
    }
  }
}

.block-row {
  width: 100%;
  display: block;

  .block-row-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 8vw, 4rem);

    .page-header {
      .page-header-description {
        width: min(50rem, 100%);
        text-wrap: pretty;
        margin-inline: unset;

        :where(:only-child) {
          letter-spacing: var(--tracking-tight);
          font-size: clamp(1.5rem, 3vw, 2rem);
          color: var(--foreground);
          line-height: 110%;
        }
      }
    }

    .scroll-container {
      overflow: hidden;
      margin-inline: calc(var(--offset) * -1);

      .scroll-snap {
        width: 100%;
        display: flex;
        padding-inline: var(--offset);
        padding-bottom: 0.5rem;
        scroll-padding-left: var(--offset);
        scroll-padding-right: var(--offset);
        scroll-snap-type: x mandatory;
        scroll-snap-stop: always;
        scroll-behavior: smooth;
        overflow-x: auto;
        gap: 1.25rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
        &::-webkit-scrollbar {
          display: none;
        }

        .scroll-item {
          min-width: 16rem;
          width: calc(33.333333% - 1rem);
          /* min-width: 24rem; */
          transform: translate(0, 0);
          transition: all 200ms var(--ease-out-quad);
          scroll-snap-align: start;
          cursor: pointer;

          .scroll-item-inner {
            overflow: hidden;
            background-color: var(--muted);
            color: var(--primary-foreground);
            border-radius: var(--radius-3xl);
            position: relative;

            &::before {
              height: 0px;
              content: "";
              display: block;
              padding-bottom: 100%;
            }

            .scroll-item-img {
              position: absolute;
              z-index: 0;
              inset: 0;

              &::after {
                content: "";
                background-color: rgb(0 0 0/0.55);
                position: absolute;
                z-index: 1;
                inset: 0;
              }

              & > img,
              & > .placeholder {
                width: 100%;
                height: 100%;
                position: relative;
              }

              & > img {
                object-fit: cover;
                object-position: center;
                transition: all 200ms var(--ease-out-quad);
              }

              & > .placeholder {
                display: grid;
                place-items: center;
                color: var(--muted-foreground);

                & > svg {
                  width: 1.25rem;
                  height: 1.25rem;
                }
              }
            }

            & > .scroll-item-content {
              display: flex;
              flex-direction: column;
              justify-content: flex-end;
              padding: 1.5rem;
              position: absolute;
              z-index: 2;
              inset: 0;

              .inner-content {
                display: flex;
                flex-direction: column;
                gap: 1.5rem;

                .item-title {
                  color: color-mix(
                    in oklab,
                    var(--background) 80%,
                    transparent
                  );
                  font-size: 1rem;
                  line-height: 1;
                }

                p {
                  font-size: clamp(1.25rem, 3vw, 1.5rem);
                  letter-spacing: var(--tracking-tight);
                  line-height: 110%;
                }
              }
              .scroll-item-action {
                margin-top: auto;

                & > div {
                  height: 3rem;
                  display: inline-flex;
                  align-items: center;
                  padding-inline: 1rem;
                  backdrop-filter: blur(12px);
                  color: var(--primary-foreground);
                  border-radius: var(--radius-full);
                  background-color: color-mix(
                    in oklab,
                    var(--background) 20%,
                    transparent
                  );
                  transition: all 200ms var(--ease-out-quad);
                  font-size: 1rem;
                  font-weight: 500;
                }
              }
            }
          }

          &:hover .scroll-item-img > img {
            transform: scale(1.08);
          }

          &:hover
            .scroll-item-inner
            .scroll-item-content
            .scroll-item-action
            > div {
            color: var(--foreground);
            background-color: var(--background);
          }
        }
      }
    }
  }
}

.grid-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;

  @media (width >= 48rem) {
    gap: 3rem;
  }

  @media (width >= 62rem) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }

  .grid-row-image {
    & > div {
      width: 100%;
      display: block;
      padding-block-end: 58.6%;
      overflow: hidden;
      position: relative;

      & > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        inset: 0;
      }
    }

    @media (width >= 62rem) {
      order: 2;
    }
  }

  .grid-row-content {
    @media (width >= 62rem) {
      order: 1;
    }
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1.5rem;
}

.col-2 {
  width: 100%;
  @media (width >= 48rem) {
    column-count: 2;
    column-gap: 4rem;
  }

  & > h2 {
    font-weight: 500;
    font-size: clamp(1.5rem, 8vw, 2.25rem);
    line-height: 105%;
    color: var(--foreground);
    letter-spacing: var(--tracking-tighter);
  }

  :where(& > :not(:last-child)) {
    margin-block-end: 1.25rem;

    @media (width >= 40rem) {
      margin-block-end: 1.5rem;
    }
  }

  & > p {
    font-weight: 400;
    font-size: clamp(1.125rem, 3.5vw, 1.25rem);
    color: color-mix(in oklab, var(--foreground) 70%, transparent);
    line-height: 1.375;

    & > a {
      display: inline-block;
      color: var(--primary);
      text-underline-offset: 4px;

      &:hover {
        @media (hover: hover) {
          color: color-mix(in oklab, var(--primary) 70%, transparent);
          text-decoration: underline;
        }
      }
    }
  }

  & > :is(ul, ol) {
    padding-inline-start: 1.25rem;

    li {
      margin-left: 0.5rem;
      list-style: disc;
      font-size: clamp(1.125rem, 3.5vw, 1.25rem);
      line-height: 1.375;
      color: color-mix(in oklab, var(--foreground) 70%, transparent);

      &:not(:last-child) {
        margin-block-end: 1rem;
      }
    }

    & + p {
      margin-block-start: 1.25rem;
    }
  }
}

.accordion {
  display: grid;
  border-top: 1px solid
    color-mix(in oklab, var(--muted-foreground) 50%, transparent);
  border-bottom: 1px solid
    color-mix(in oklab, var(--muted-foreground) 50%, transparent);

  :where(& > :not(:first-child)) {
    border-top: 1px solid
      color-mix(in oklab, var(--muted-foreground) 50%, transparent);
  }

  .accordion-item {
    overflow: clip;
    background-color: transparent;
    transition: border-color 200ms var(--ease-out-quad);
    margin-bottom: -1rem;

    .accordion-trigger {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      inline-size: 100%;
      padding-block: 1rem;
      border: 0;
      background: transparent;
      cursor: pointer;
      text-align: left;
      font: inherit;
      font-weight: 500;
      font-size: clamp(1.25rem, 3vw, 1.375rem);
      line-height: 110%;
      letter-spacing: var(--tracking-tighter);
      color: var(--foreground);
      transition: all 200ms var(--ease-out-quad);

      &:focus-visible {
        outline: none;
      }

      &:not(*:disabled) {
        &:hover {
          @media (hover: hover) {
            color: var(--primary);
          }
        }
      }
    }

    .accordion-icon {
      flex-shrink: 0;
      inline-size: 0.8125rem;
      block-size: 0.8125rem;
      /* margin-block-start: 0.5rem; */
      position: relative;

      @media (width >= 64rem) {
        margin-block-start: 0;
      }

      &::before,
      &::after {
        content: "";
        border-radius: var(--radius-full);
        background: color-mix(
          in oklab,
          var(--muted-foreground) 70%,
          transparent
        );
        transform: translate(-50%, -50%);
        transition: transform 200ms var(--ease-out-quad);
        position: absolute;
        inset-block-start: 50%;
        inset-inline-start: 50%;
      }

      &::before {
        inline-size: 100%;
        block-size: 2px;
      }

      &::after {
        inline-size: 2px;
        block-size: 100%;
      }
    }

    .accordion-content {
      display: grid;
      grid-template-rows: 0fr;
      visibility: hidden;
      opacity: 0;
      transition: all 200ms var(--ease-out-quad);

      &:not([hidden]) {
        grid-template-rows: 1fr;
        visibility: visible;
        opacity: 1;
      }

      .accordion-content-inner {
        overflow: hidden;
        padding-block-end: 1rem;
        color: var(--foreground);

        & > p {
          font-size: 1rem;
          line-height: 1.5;

          &:not(:last-child) {
            margin-block-end: 1.25rem;
          }
        }

        & > :is(ul, ol) {
          padding-inline-start: 1.25rem;

          & > p + :is(ul, ol) {
            margin-block-start: 1rem;
          }

          li:not(:last-child) {
            margin-block-end: 0.5rem;
          }
        }

        & > :is(h2, h3, h4, h5, h6) {
          font-weight: 500;
          line-height: 1.25;
          letter-spacing: var(--tracking-tight);
          color: var(--foreground);

          &:not(:last-child) {
            margin-block-end: 0.75rem;
          }

          & + p {
            margin-block-start: 0.75rem;
          }

          & + :is(ul, ol) {
            margin-block-start: 0.75rem;
          }

          & + :is(h2, h3, h4, h5, h6) {
            margin-block-start: 0.75rem;
          }
        }

        & > .button-wrap {
          margin-block-start: 1.25rem;

          & > .button {
            border-radius: var(--radius-full);
          }
        }
      }
    }

    &.is-active {
      margin-bottom: 0rem;

      .accordion-icon::after {
        transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
      }

      .accordion-trigger {
        color: var(--primary);
      }
    }
  }
}

.list-row {
  display: flex;
  flex-direction: column;

  .list-item {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
    column-gap: 1.5rem;
    padding-inline: 1rem;
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: padding 300ms var(--ease-out-quad);
    position: relative;
    z-index: -1;

    @media (width >= 36rem) {
      grid-template-columns: 3.5rem 1fr;
    }

    @media (width >= 55rem) {
      grid-template-columns: 3.25rem 1fr 13rem 10rem 7rem;
    }

    &:first-child {
      border-top: 1px solid var(--border);
    }

    &:nth-child(even) {
      background-color: color-mix(in oklab, var(--muted) 30%, transparent);
    }

    .list-item-wrap {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;

      .list-item-title {
        font-weight: 500;
        font-size: 1.25rem;
        line-height: calc(1.75 / 1.25);
      }

      .list-item-description {
        font-size: 0.875rem;
        line-height: calc(1.25 / 0.875);
        color: var(--muted-foreground);
        text-wrap: pretty;

        @media (width >= 55rem) {
          text-wrap: balance;
        }
      }
    }

    .list-item-text {
      font-size: 0.875rem;
      line-height: calc(1.25 / 0.875);
      color: var(--secondary-foreground);
      text-transform: capitalize;

      @media (width >= 36rem) {
        grid-column: 2;
      }

      @media (width >= 55rem) {
        grid-column: auto;
      }

      &.sm {
        font-size: 0.75rem;
        line-height: calc(1 / 0.75);
        color: var(--secondary-foreground);
        text-transform: uppercase;
      }
    }

    .list-item-number {
      font-weight: 500;
      font-size: 1rem;
      line-height: 1;
      color: color-mix(in oklab, var(--secondary) 100%, transparent);
    }
  }
}

.card_item {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-2xl);
  /* border: 1.5px solid var(--border); */
  background-color: var(--muted);
  overflow: hidden;
  transition: all 300ms var(--ease-out-quad);
  position: relative;

  .card_item_image {
    width: 100%;
    flex-shrink: 0;
    padding-bottom: 58.6%;
    position: relative;

    & > img,
    & > .placeholder {
      width: 100%;
      height: 100%;
      position: absolute;
      inset: 0;
    }

    & > .placeholder {
      display: grid;
      place-items: center;
      background-color: color-mix(in oklab, var(--muted) 50%, transparent);

      & > svg {
        width: 2rem;
        height: 2rem;
        color: var(--muted-foreground);
      }
    }

    & > img {
      object-fit: cover;
      transition: opacity 300ms var(--ease-out-quad);
    }
  }

  .card_item_content {
    display: flex;
    flex-direction: column;
    padding: 1rem;

    .card_item_title {
      font-weight: 500;
      font-size: clamp(1.25rem, 3vw, 1.375rem);
      color: var(--foreground);

      & > span {
        line-height: 1.375;
        background: linear-gradient(0deg, var(--primary), var(--primary)) right
          bottom / 0% 2px no-repeat;
        transition-property: color, background-size;
        transition-duration: 700ms, 300ms;
        transition-timing-function: var(--ease-out-quad);
      }

      & + .card_item_description {
        margin-block-start: 0.75rem;
      }
    }

    .card_item_description {
      font-size: 1rem;
      line-height: 1.5;
      color: var(--muted-foreground);
      overflow: hidden;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      line-clamp: 2;
    }
  }

  &:hover {
    @media (hover: hover) {
      background-color: var(--background);

      .card_item_title {
        color: var(--primary);
        & > span {
          text-decoration-line: none;
          background-size: 100% 2px;
          background-position-x: left;
        }
      }
    }
  }
}

.article__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;

  @media (width >= 62rem) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4rem;
  }

  .article__address {
    color: var(--foreground);

    :where(& > :not(:last-child)) {
      margin-block-end: 1.125rem;
    }

    @media (width >= 62rem) {
      grid-column: span 2 / span 2;
      border-right: 1px solid var(--border);
      padding-inline-end: 4rem;
    }

    @media (width >= 40rem) {
      :where(& > :not(:last-child)) {
        margin-block-end: 1.25rem;
      }
    }

    & > p {
      font-weight: 500;
      font-size: 1.125rem;
      line-height: calc(1.75 / 1.125);
      color: var(--foreground);

      @media (width >= 40rem) {
        font-size: 1.25rem;
        line-height: calc(1.75 / 1.25);
      }

      & > a {
        display: inline-block;
        color: var(--primary);
        padding-bottom: 0.25rem;
        background: linear-gradient(var(--primary), var(--primary)) right
          bottom / 0% 1px no-repeat;
        transition-property: color, background-size;
        transition-duration: 0.7s, 0.3s;
        transition-timing-function: var(--ease-out-quart);

        &:hover {
          @media (hover: hover) {
            color: color-mix(in oklab, var(--primary) 70%, transparent);
            text-decoration-line: none;
            background-size: 100% 1px;
            background-position-x: left;
          }
        }
      }
    }

    & > .columns {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      row-gap: 1rem;
      column-gap: 1.25rem;
      margin-top: 1rem;

      @media (width>=48rem) {
      }

      & > div {
        & > .column-title {
          font-weight: 500;
          font-size: 1.25rem;
          line-height: calc(1.75 / 1.25);
          color: var(--muted-foreground);
          margin-bottom: 0.5rem;
        }
        & > p {
          font-weight: 400;
          font-size: 1rem;
          line-height: 1.5;

          @media (width>=calc(48rem + 1px)) {
            font-size: 1rem;
            line-height: 1.5;
          }

          &:not(:last-child) {
            margin-bottom: 0.75rem;
          }

          & > a {
            display: inline-block;
            padding-bottom: 0.25rem;
            background: linear-gradient(var(--primary), var(--primary)) right
              bottom / 0% 1px no-repeat;
            transition-property: color, background-size;
            transition-duration: 0.7s, 0.3s;
            transition-timing-function: var(--ease-out-quart);

            &:hover {
              @media (hover: hover) {
                color: color-mix(in oklab, var(--primary) 70%, transparent);
                text-decoration-line: none;
                background-size: 100% 1px;
                background-position-x: left;
              }
            }
          }
          &:not(:last-child) {
            margin-bottom: 0.25rem;
          }
        }

        .social-links {
          display: flex;
          flex-wrap: wrap;
          padding-top: 1rem;
          gap: 0.75rem;

          .button {
            border-radius: var(--radius-full);
          }
        }
      }
    }
  }
  .article__form {
    @media (width >= 62rem) {
      grid-column: span 3 / span 3;
    }
  }
  .article__hero {
    padding-block-end: 48%;
    position: relative;

    & > iframe {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border: none;
      outline: none;
      position: absolute;
      inset: 0;
    }

    @media (width >= 62rem) {
      grid-column: span 5 / span 5;
    }
  }
}

.tabs-container {
  width: 100%;

  .tab-list {
    width: fit-content;
    display: flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: var(--radius-md);
    background-color: var(--muted);
    -ms-overflow-style: none;
    scrollbar-width: none;

    &::-webkit-scrollbar {
      display: none;
    }

    .tab {
      border: none;
      outline: none;
      flex-shrink: 0;
      background-color: transparent;
      font-weight: 600;
      font-size: 0.875rem;
      line-height: 1;
      padding-block: 0.625rem;
      padding-inline: 1rem;
      border-radius: var(--radius-sm);
      color: var(--muted-foreground);
      transition-property: color, background-color;
      transition-timing-function: var(--ease-out-quad);
      transition-duration: 200ms;
      white-space: nowrap;
      cursor: pointer;
      position: relative;

      &:hover {
        color: currentColor;
      }

      &.is-active,
      &[aria-selected="true"] {
        background-color: var(--background);
        color: var(--foreground);
        &::after {
          display: block;
        }
      }

      &:focus-visible {
        outline: none;
      }
    }
  }

  .tabs-panels {
    display: flex;
    overflow: hidden;
    padding-top: 1.125rem;

    .tab-panel {
      opacity: 1;
      width: 100%;
      min-height: 5rem;
      display: none;
      flex: 1 0 auto;
      animation: tabFadeIn 0.3s var(--ease-out-quad);

      &:not([aria-hidden="true"]) {
        display: block;
      }

      & > p {
        color: color-mix(in oklab, var(--primary-foreground) 70%, transparent);
      }
    }
  }
}

.message-stack {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  gap: 0.5rem;

  & > .message {
    font-weight: 400;
    font-size: 1.125rem;
    line-height: calc(1.5 / 1.125);

    &.success {
      color: var(--accent-foreground);
    }
    &.error {
      color: var(--destructive);
    }
    &.warning {
      color: var(--warning);
    }
  }
}

.site-footer {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background-color: var(--foreground);

  & > .container {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;

    @media (width >= 64rem) {
      align-items: center;
      flex-direction: row;
      gap: 3rem;
    }

    & > .footer-start {
      width: min(16rem, 100%);
      color: var(--primary-foreground);
      font-size: clamp(1.25rem, 3vw, 1.5rem);
      font-weight: 700;
      flex-shrink: 0;
    }

    & > .footer-nav-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 0.875rem;

      @media (width >= 64rem) {
        flex: 1;
        justify-content: center;
        margin-inline-start: auto;
      }

      & > li {
        display: inline-block;
        flex-shrink: 0;

        & > .footer-link {
          display: inline-block;
          color: color-mix(
            in oklab,
            var(--primary-foreground) 80%,
            transparent
          );
          font-weight: 400;
          font-size: 1.125rem;

          @media (width >= 64rem) {
            transition: color 300ms var(--ease-out-quart);
          }

          &:hover {
            color: var(--primary-foreground);
          }
        }
      }
    }

    & > .footer-end {
      width: min(18rem, 100%);
      display: flex;
      flex-wrap: wrap;
      flex-direction: column;
      gap: 1rem;

      @media (width >= 48rem) {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
      }

      .footer-end-inner {
        font-size: 0.8125rem;
        color: color-mix(in oklab, var(--primary-foreground) 60%, transparent);
      }

      & > .social-links {
        display: flex;
        gap: 0.125rem;

        & > .button {
          &.ghost {
            color: color-mix(
              in oklab,
              var(--primary-foreground) 60%,
              transparent
            );
            &:not(*:disabled) {
              &:hover {
                @media (hover: hover) {
                  background-color: transparent;
                  color: var(--primary-foreground);
                }
              }
            }
          }
        }
      }
    }
  }
}

/* 11. Empty state
    ---------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding-block: 3rem;

  & > .empty-state-title {
    font-weight: 500;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 110%;
    letter-spacing: var(--tracking-tight);
  }
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slide-progress {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(
      calc(-1 * var(--marquee-element-width) * var(--marquee-elements))
    );
  }
}
