:root {
  --grid-columns: 12;
  --grid-gap: clamp(1rem, 2vw, 2rem);
  --grid-max-width: 90rem;
  --page-gutter: clamp(1.25rem, 4vw, 4rem);

  --font-display: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #f7f3ec;
  color: #153042;
  font-family: var(--font-body);
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  gap: 0 var(--grid-gap);
  width: min(calc(100% - (2 * var(--page-gutter))), var(--grid-max-width));
  margin-inline: auto;
}

.hero {
  display: flex;
  min-height: clamp(22rem, 30vw, 32rem);
  background:
    linear-gradient(180deg, rgba(8, 45, 73, 0.22), rgba(8, 45, 73, 0.78)),
    url(/kraken-hero.jpg) left top / cover no-repeat;
  color: #ffffff;
}

.hero__grid {
  align-items: center;
}

.hero__content {
  grid-column: 3 / 11;
  padding-block: clamp(3rem, 5vw, 5rem);
}

.hero__eyebrow {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 7.25rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.hero__supporting {
  margin: 0.75rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1.45;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 2rem;
  padding: 0;
  border: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

.hero__cta-icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  text-decoration-thickness: 0.12em;
}

.hero__cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.about {
  position: relative;
  padding-block: 0;
  background: #f7f3ec;
}

.about__grid {
  align-items: stretch;
  min-height: clamp(30rem, 42vw, 42rem);
}

.about__media {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40vw;
  max-width: 42rem;
}

.about__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__content {
  grid-column: 7 / 12;
  align-self: center;
  padding-block: clamp(4rem, 7vw, 7rem);
}

.about__title {
  margin: 0 0 3rem;
  color: #0b2a3d;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.about__title::after {
  display: block;
  width: 100%;
  height: 0.25rem;
  margin-top: 1.25rem;
  border-radius: 999px;
  background: #2380c5;
  content: "";
}

.about p {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.65;
}

.about p + p {
  margin-top: 2rem;
}


.work {
  padding-block: clamp(3.5rem, 6vw, 6rem);
  overflow: hidden;
  background: #0b2a3d;
}

.work-carousel {
  position: relative;
  width: min(calc(100% - (2 * var(--page-gutter))), 72rem);
  margin-inline: auto;
}

.work-carousel__viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (2 * clamp(1rem, 2vw, 1.5rem))) / 3);
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

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

.work-carousel__item {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 0.2rem;
  scroll-snap-align: start;
}

.work-carousel__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.work-carousel__item:hover img,
.work-carousel__item:focus-visible img {
  transform: scale(1.02);
  filter: brightness(1.04);
}

.work-carousel__item:focus-visible {
  outline: 3px solid #2380c5;
  outline-offset: 3px;
}

.work__control {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #0b2a3d;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.18);
  font: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}

.work__control--previous {
  left: -1.4rem;
}

.work__control--next {
  right: -1.4rem;
}

.work__control:hover,
.work__control:focus-visible {
  background: #f7f3ec;
}

.work__control:focus-visible {
  outline: 3px solid #2380c5;
  outline-offset: 3px;
}

.work-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.work-carousel__dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 160ms ease, background 160ms ease;
}

.work-carousel__dot[aria-current="true"] {
  width: 1.8rem;
  background: #ffffff;
}

.work-carousel__dot:focus-visible {
  outline: 3px solid #2380c5;
  outline-offset: 3px;
}

.faq {
  padding-block: clamp(4rem, 7vw, 7rem);
  background: #f7f3ec;
}

.faq__content {
  grid-column: 3 / 11;
}

.faq__title {
  margin: 0 0 2.5rem;
  color: #0b2a3d;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.faq__list {
  border-top: 1px solid rgba(11, 42, 61, 0.22);
}

.faq__item {
  border-bottom: 1px solid rgba(11, 42, 61, 0.22);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  color: #0b2a3d;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  flex: 0 0 auto;
  color: #2380c5;
  content: "+";
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item summary:focus-visible {
  outline: 3px solid rgba(35, 128, 197, 0.35);
  outline-offset: 4px;
}

.faq__answer {
  max-width: 52rem;
  padding: 0 0 1.5rem;
}

.faq__answer p {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.65;
}

.faq__answer p + p {
  margin-top: 1rem;
}

.faq__answer a {
  color: #0b5f98;
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.site-footer {
  padding-block: 2rem;
  background: #0b2a3d;
  color: #ffffff;
}

.site-footer__content {
  grid-column: 3 / 11;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
  font-weight: 600;
  text-underline-offset: 0.18em;
}

@media (max-width: 900px) {
  .hero__content,
  .faq__content,
  .site-footer__content {
    grid-column: 2 / 12;
  }

  .about__media {
    width: 42vw;
  }

  .about__content {
    grid-column: 7 / -1;
  }

  .work-carousel__viewport {
    grid-auto-columns: calc((100% - 1.25rem) / 2);
  }
}

@media (max-width: 640px) {
  :root {
    --grid-gap: 1rem;
    --page-gutter: 1.25rem;
  }

  .hero {
    min-height: 22rem;
    background-position: left top;
  }

  .hero__content,
  .about__media,
  .about__content,
  .faq__content,
  .site-footer__content {
    grid-column: 1 / -1;
  }

  .about__grid {
    min-height: 0;
  }

  .about__media {
    position: static;
    width: auto;
    max-width: none;
    margin-bottom: 2rem;
  }

  .about__image {
    aspect-ratio: 4 / 5;
    height: auto;
  }

  .hero__content {
    padding-block: 3rem;
  }

  .hero__title {
    font-size: clamp(3.25rem, 15vw, 4.75rem);
  }

  .about {
    padding-block: 4rem;
  }

  .about__content {
    padding-block: 0;
  }

  .about__title {
    margin-bottom: 2rem;
  }

  .work {
    padding-block: 3rem;
  }

  .work-carousel {
    width: calc(100% - (2 * var(--page-gutter)));
  }

  .work-carousel__viewport {
    grid-auto-columns: 82%;
  }

  .work__control {
    display: none;
  }

  .work-carousel__dots {
    margin-top: 1.25rem;
  }

  .faq {
    padding-block: 4rem;
  }

  .faq__title {
    margin-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-carousel__viewport {
    scroll-behavior: auto;
  }

  .work-carousel__item img,
  .work-carousel__dot {
    transition: none;
  }

  .work-carousel__item:hover img,
  .work-carousel__item:focus-visible img {
    transform: none;
  }
}
