@font-face {
  font-family: Besley;
  src: url("./assets/fonts/besley-600-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url("./assets/fonts/outfit-var-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --brand-blue: #2b5064;
  --navy: #03111f;
  --muted: #3c5667;
  --surface: #f3f7f9;
  --surface-hover: #e7f0f4;
  --surface-active: #dceaf1;
  --blue-hover: #224456;
  --rule: #c8d8e1;
  --serif: Besley, Georgia, serif;
  --sans: Outfit, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(25px, 6.1vw, 102px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body, h1, p, figure { margin: 0; }
body {
  background: var(--paper);
  color: var(--navy);
  font: 400 1rem/1.5 var(--sans);
  min-width: 0;
}

::selection { background: var(--surface-active); color: var(--navy); }
a { color: inherit; text-decoration: none; }
img, .icon { display: block; }
:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 4px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page {
  width: min(100%, 1760px);
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  grid-template-rows: minmax(100svh, max-content);
  isolation: isolate;
}

.content {
  padding-block: clamp(36px, 6.2svh, 72px) clamp(28px, 5.5svh, 64px);
  width: min(100% - 2 * var(--gutter), 478px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro {
  display: grid;
  justify-items: center;
  padding-bottom: clamp(28px, 4.5svh, 46px);
}

.brand img { width: clamp(56px, 7vw, 76px); height: auto; }

.links, .link-list {
  display: grid;
  gap: 9px;
}

.contact, .link-list a {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background-color 210ms var(--ease), border-color 210ms var(--ease);
}

.contact {
  min-height: 71px;
  background: var(--brand-blue);
  color: var(--paper);
}

.contact__icon { width: 25px; height: 25px; }
.contact__copy { display: grid; gap: 1px; line-height: 1.25; }
.contact__copy strong { font-size: 1.14rem; font-weight: 650; }
.contact__copy > span { font-size: .875rem; }
.link-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.link-list a {
  min-height: 54px;
  background: var(--surface);
  border-color: var(--rule);
  font-size: 1.03rem;
  font-weight: 500;
}
.link-list .row-icon { width: 25px; height: 22px; color: var(--brand-blue); }

.footer {
  padding: clamp(22px, 4vw, 36px) var(--gutter) max(27px, env(safe-area-inset-bottom));
}
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.socials a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  background: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  border-radius: 50%;
  transition: background-color 210ms var(--ease), border-color 210ms var(--ease);
}
.socials img { width: var(--glyph-size, 22px); height: var(--glyph-size, 22px); }
.socials a[aria-label="TikTok"] { --glyph-size: 24px; }
.socials a[aria-label="YouTube"] { --glyph-size: 20px; }
.socials a[aria-label="LinkedIn"] { --glyph-size: 17px; }

.film {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  min-height: 100%;
  overflow: hidden;
  pointer-events: none;
  background: var(--navy);
}

.film__poster, .film__poster img, .film__video, .film__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.film__poster img, .film__video { object-fit: cover; object-position: 61% center; }
.film__video { visibility: hidden; }
.film__video.is-visible { visibility: visible; }
.film__shade {
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgb(3 17 31 / 90%));
}

.film::after {
  content: "";
  position: absolute;
  inset: 22px;
  pointer-events: none;
  border: 1px solid rgb(255 255 255 / 42%);
}

.film__caption {
  position: absolute;
  z-index: 1;
  bottom: 46px;
  left: 47px;
  display: grid;
  gap: 1px;
  color: var(--paper);
}

.film__project { font: 600 clamp(1.25rem, 2.2vw, 2rem)/1.3 var(--serif); }
.film__note { font-size: .875rem; }

.feedback {
  grid-column: 1 / -1;
  min-width: 0;
  padding: clamp(27px, 3.5vw, 44px) var(--gutter) 0;
}

.feedback:not(:has(.feedback__track > li)) { display: none; }

.feedback__carousel {
  --review-width: min(72%, 328px);
  --review-step: calc(100% + 8px);
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.feedback__carousel.is-carousel { touch-action: pan-y pinch-zoom; }

.feedback__track {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.is-carousel .feedback__track {
  grid-template-columns: var(--review-width);
  justify-content: center;
  overflow: clip;
}

.feedback__track:focus-visible { outline-offset: -2px; }

.feedback__control {
  position: absolute;
  z-index: 3;
  inset-block: 0;
  display: grid;
  place-items: center;
  width: calc((100% - var(--review-width)) / 2);
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--brand-blue);
  background: transparent;
  cursor: pointer;
}

.feedback__control--previous { left: 0; }
.feedback__control--next { right: 0; }

.feedback__control:focus-visible {
  outline-offset: -3px;
  background: rgb(231 240 244 / 47%);
}

.feedback__control:focus-visible::after {
  content: "";
  width: 12px;
  height: 12px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.feedback__control--previous:focus-visible::after { transform: rotate(-135deg); }

.review {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 11px;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.is-carousel .review {
  --review-scale: .88;
  grid-area: 1 / 1;
  opacity: .86;
  transform: translateX(calc(var(--review-slot, 0) * var(--review-step))) scale(var(--review-scale));
  transition: opacity 220ms var(--ease), transform 260ms var(--ease),
    border-color 220ms var(--ease), background-color 220ms var(--ease);
}

.is-carousel .review.is-wrapping { transition: none; }
.is-carousel .review.is-offstage { opacity: 0; pointer-events: none; }

.is-carousel .review[aria-current="true"] {
  --review-scale: 1;
  z-index: 1;
  opacity: 1;
  background: var(--paper);
  border-color: var(--brand-blue);
}

.review__header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
}

.review__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  color: var(--paper);
  font-weight: 600;
}

.review__avatar--blue { background: var(--brand-blue); }
.review__avatar--navy { background: var(--navy); }
.review__author { font-weight: 600; line-height: 1.25; }

.review__stars {
  display: block;
  width: 85px;
  height: 16px;
  fill: var(--brand-blue);
}

.review__quote {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (hover: hover) {
  .contact:hover { background: var(--blue-hover); }
  .link-list a:hover {
    border-color: var(--brand-blue);
    background: var(--surface-hover);
  }
  .socials a:hover { border-color: var(--blue-hover); background: var(--blue-hover); }
}

.contact:active, .socials a:active { background: var(--navy); }
.link-list a:active { background: var(--surface-active); }

@media (min-width: 781px) and (max-width: 1120px) {
  :root { --gutter: 32px; }
  .page { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); }
}

@media (max-width: 780px) {
  .page {
    --intro-height: clamp(340px, 49svh, 440px);
    display: block;
    position: relative;
    min-height: 0;
  }
  .content {
    width: min(100% - 2 * var(--gutter), 490px);
    position: relative;
    z-index: 1;
    padding: 0;
  }
  .feedback:has(.is-carousel) { padding-inline: 0; }
  .feedback__carousel {
    --review-step: calc(100% - 8px);
    max-width: 560px;
  }
  .intro {
    min-height: var(--intro-height);
    padding-top: max(25px, env(safe-area-inset-top));
    align-items: end;
  }
  .contact { min-height: 65px; }
  .film {
    position: absolute;
    inset: 0 0 auto;
    height: calc(var(--intro-height) + 66px);
    min-height: 0;
  }
  .film__shade {
    background: linear-gradient(
      180deg,
      transparent calc(var(--intro-height) - 164px),
      rgb(255 255 255 / 88%) calc(var(--intro-height) - 104px),
      var(--paper) calc(var(--intro-height) - 18px)
    );
  }
  .film::after { display: none; }
  .film__caption { display: none; }
}

@media (max-width: 360px) {
  :root { --gutter: 20px; }
  .feedback__carousel { --review-width: 70%; --review-step: calc(100% - 10px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .film__video { display: none; }
}
