@font-face {
  font-family: "Generic Classic";
  src: url("../fonts/GenericG20FRClassic.otf") format("opentype");
  font-weight: 400 950;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("../fonts/NeueMontreal-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("../fonts/NeueMontreal-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #194ba0;
  --electric: #8ef9f3;
  --white: #f0f0f0;
  --grey: #ebebeb;
  --deep-green: #001514;
  --gradient-mid: #0d3142;
  --ink: #194ba0;
  --filter-blue: brightness(0) saturate(100%) invert(25%) sepia(80%) saturate(1347%) hue-rotate(200deg) brightness(86%) contrast(94%);
  --gutter: clamp(56px, 9vw, 168px);
  --section-y: clamp(84px, 10vw, 132px);
  --logos-gap: clamp(42px, 5vw, 72px);
  --client-logo-height: clamp(34px, 5vw, 76px);
  --project-client-logo-height: var(--client-logo-height);
  --font: "Generic Classic", Arial, Helvetica, sans-serif;
  --font-text: "Neue Montreal", Arial, Helvetica, sans-serif;
  --size-small: clamp(15px, 1.1vw, 18px);
  --size-body: clamp(18px, 1.55vw, 24px);
  --size-lead: clamp(22px, 2.25vw, 34px);
  --size-title: clamp(46px, 6vw, 86px);
  --size-service: clamp(25px, 2.8vw, 40px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.25;
}

body.project-modal-open {
  overflow: hidden;
}

body.project-modal-open.has-smooth-scroll {
  overflow: hidden;
}

.smooth-page {
  min-height: 100vh;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:not(.brand):not(.address-link):not(.email-link):not(.social-icon) {
  position: relative;
  --link-line-color: var(--white);
  --link-wave-color: var(--electric);
}

a:not(.brand):not(.address-link):not(.email-link):not(.social-icon)::before,
a:not(.brand):not(.address-link):not(.email-link):not(.social-icon)::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: -9px;
  pointer-events: none;
}

a:not(.brand):not(.address-link):not(.email-link):not(.social-icon)::before {
  height: 2px;
  background-image: linear-gradient(90deg, var(--link-line-color) 0 8px, transparent 8px 14px);
  background-repeat: repeat-x;
  background-position: left center;
  background-size: 14px 2px;
}

a:not(.brand):not(.address-link):not(.email-link):not(.social-icon)::after {
  height: 7px;
  opacity: 0;
  background: var(--link-wave-color);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20width%3D%2228%22%20height%3D%228%22%20viewBox%3D%220%200%2028%208%22%20preserveAspectRatio%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%204%20C3.5%201%203.5%201%207%204%20S10.5%207%2014%204%20S17.5%201%2021%204%20S24.5%207%2028%204%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20width%3D%2228%22%20height%3D%228%22%20viewBox%3D%220%200%2028%208%22%20preserveAspectRatio%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%204%20C3.5%201%203.5%201%207%204%20S10.5%207%2014%204%20S17.5%201%2021%204%20S24.5%207%2028%204%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-position: left center;
  mask-position: left center;
  -webkit-mask-size: 28px 8px;
  mask-size: 28px 8px;
}

a:not(.brand):not(.address-link):not(.email-link):not(.social-icon):hover::before,
a:not(.brand):not(.address-link):not(.email-link):not(.social-icon):focus-visible::before {
  opacity: 0;
}

a:not(.brand):not(.address-link):not(.email-link):not(.social-icon):hover::after,
a:not(.brand):not(.address-link):not(.email-link):not(.social-icon):focus-visible::after {
  opacity: 1;
}

button {
  font: inherit;
}

.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y, 42px), 0);
  transition:
    opacity 920ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 920ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (pointer: fine) {
  body.has-smooth-scroll {
    overflow-y: scroll;
  }

  .smooth-page.is-smooth {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    will-change: transform;
  }

  body,
  a,
  button {
    cursor: none !important;
  }

  .custom-cursor {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    --cursor-color: var(--electric);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
  }

  .custom-cursor::before,
  .custom-cursor::after {
    position: absolute;
    content: "";
    inset: 0;
    transform-origin: center;
  }

  .custom-cursor::before {
    border: 3px solid var(--cursor-color);
    border-radius: 50%;
    transform: scale(1);
  }

  .custom-cursor::after {
    opacity: 0;
    background-image: url("../cursor-wave.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  .custom-cursor.is-visible {
    opacity: 1;
  }

  .custom-cursor.is-link {
    width: 44px;
    height: 44px;
  }

  .custom-cursor.is-link::before {
    opacity: 0;
  }

  .custom-cursor.is-link::after {
    opacity: 1;
    animation: cursor-wave-rotate 2.4s linear infinite;
  }

  @keyframes cursor-wave-rotate {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 2.6vw, 34px) var(--gutter);
  color: var(--white);
  border-bottom: 2px solid currentColor;
}

.brand {
  justify-self: center;
  width: clamp(118px, 13vw, 190px);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
}

.header-link {
  font-size: var(--size-small);
  line-height: 1;
  text-transform: lowercase;
}

.header-link-left {
  justify-self: start;
}

.header-link-right {
  justify-self: end;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: currentColor;
  transition: color 180ms ease;
}

.social-icon:hover,
.social-icon:focus-visible {
  color: var(--electric);
}

.social-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--blue);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
}

.hero::after {
  position: absolute;
  content: "";
  inset: 0;
  background: rgba(25, 75, 160, 0.1);
  pointer-events: none;
}

.hero-content {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 116px var(--gutter) 56px;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: var(--size-title);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 10.5ch;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vw, 52px);
  width: 30px;
  height: 48px;
  border: 2px solid var(--white);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue::before {
  position: absolute;
  content: "";
  left: 50%;
  top: 10px;
  width: 5px;
  height: 9px;
  border-radius: 999px;
  background: var(--white);
  transform: translateX(-50%);
  animation: scroll-cue 1.5s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%,
  100% {
    opacity: 0.35;
    transform: translate(-50%, 0);
  }

  45% {
    opacity: 1;
    transform: translate(-50%, 16px);
  }
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(36px, 8vw, 128px);
  padding: var(--section-y) var(--gutter);
  background: var(--white);
  color: var(--blue);
}

.manifesto h2,
.waves-heading h2 {
  margin: 0;
  font-size: var(--size-title);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.manifesto-copy {
  max-width: 760px;
}

.manifesto-copy p {
  margin: 0 0 1.15em;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--size-lead);
  line-height: 1.18;
}

.manifesto-lines {
  grid-column: 1 / -1;
  padding-top: clamp(28px, 5vw, 72px);
  border-top: 2px solid currentColor;
}

.manifesto-lines p {
  margin: 0;
  font-size: var(--size-title);
  line-height: 0.92;
  text-transform: uppercase;
}

.waves {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(36px, 7vw, 116px);
  align-items: start;
  margin-top: clamp(58px, 7vw, 100px);
  padding: var(--section-y) var(--gutter);
  background: linear-gradient(180deg, var(--blue) 0%, var(--gradient-mid) 100%);
  color: var(--white);
}

body:not(.portfolio-page) .waves {
  padding-bottom: clamp(18px, 2.4vw, 34px);
}

.waves::before {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: 100%;
  height: clamp(82px, 9vw, 132px);
  background-color: transparent;
  background-image: url("../section-wave.svg");
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: 1180px 100%;
}

.waves-heading {
  position: static;
}

.waves-heading h2 {
  text-transform: uppercase;
}

.text-link {
  display: inline-block;
  margin-top: 26px;
  font-size: var(--size-lead);
  line-height: 1.1;
  text-transform: lowercase;
}

.waves .text-link:hover,
.waves .text-link:focus-visible {
  color: var(--white);
}

.accordion {
  border-top: 2px solid currentColor;
  min-height: calc((92px * 4) + 138px);
}

.wave-item {
  border-bottom: 2px solid currentColor;
}

.wave-item button {
  width: 100%;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: none;
  text-align: left;
}

.wave-item button span:first-child {
  font-size: var(--size-service);
  font-weight: 400;
  line-height: 0.9;
  text-transform: lowercase;
}

.indicator {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}

.indicator::before,
.indicator::after {
  position: absolute;
  content: "";
  inset: 50% auto auto 50%;
  width: 28px;
  height: 3px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.indicator::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity 160ms ease;
}

.indicator::before,
.indicator::after {
  background: var(--electric);
}

.wave-item.is-open .indicator::after {
  opacity: 0;
}

.wave-item p {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--size-lead);
  line-height: 1.18;
  transition: max-height 220ms ease, padding-bottom 220ms ease;
}

.wave-item.is-open p {
  max-height: 138px;
  padding-bottom: 24px;
}

.clients {
  position: relative;
  overflow: hidden;
  padding: var(--logos-gap) 0 clamp(62px, 8vw, 110px);
  background: linear-gradient(180deg, var(--gradient-mid) 0%, var(--deep-green) 100%);
  color: var(--white);
}

.clients::after {
  position: absolute;
  content: "";
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 2px;
  background: currentColor;
}

.clients-track {
  --clients-distance: 50%;
  --clients-duration: 54s;
  width: max-content;
  display: flex;
  animation: clients-marquee var(--clients-duration) linear infinite;
  will-change: transform;
}

.clients-row {
  display: flex;
  align-items: center;
  gap: clamp(58px, 8vw, 132px);
  padding-right: clamp(58px, 8vw, 132px);
}

.clients img {
  width: auto;
  height: var(--client-logo-height);
  max-width: 190px;
  object-fit: contain;
}

@keyframes clients-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(var(--clients-distance) * -1), 0, 0);
  }
}

.site-footer {
  position: relative;
  margin-top: -1px;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(30px, 6vw, 86px);
  min-height: 100svh;
  align-content: center;
  padding: var(--section-y) var(--gutter);
  background: var(--deep-green);
  color: var(--white);
}

.portfolio-page .site-footer {
  background: var(--deep-green);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.footer-mark {
  width: min(44vw, 340px);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  max-width: 420px;
  font-size: var(--size-small);
  text-transform: lowercase;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 5vw, 86px);
  align-content: start;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: var(--size-lead);
  font-weight: 400;
  line-height: 0.9;
  text-transform: lowercase;
}

.footer-grid a,
.footer-grid p {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--size-body);
  line-height: 1.28;
}

.address-link,
.email-link {
  text-decoration: none;
}

.copyright {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(24px, 4vw, 48px);
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: clamp(13px, 1.1vw, 16px);
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-size: var(--size-small);
  line-height: 1;
  text-transform: lowercase;
}

.portfolio-work h1,
.meeting-cta h2 {
  margin: 0;
  font-size: var(--size-title);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portfolio-work {
  padding: clamp(150px, 16vw, 210px) var(--gutter) var(--section-y);
  background: var(--white);
  color: var(--blue);
}

.portfolio-page .site-header {
  color: var(--blue);
}

.portfolio-page .site-header a:not(.brand) {
  --link-line-color: var(--blue);
  --link-wave-color: var(--electric);
}

.portfolio-page .brand img {
  filter: var(--filter-blue);
}

.work-topline {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(36px, 7vw, 116px);
  align-items: end;
  padding-bottom: clamp(8px, 1.5vw, 18px);
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 12px;
}

.filter-button {
  min-height: 34px;
  padding: 7px 14px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: var(--size-small);
  line-height: 1;
  text-transform: lowercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  background: var(--electric);
  color: var(--blue);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-top: clamp(10px, 2vw, 24px);
}

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

.project-card.is-hidden {
  display: none;
}

.project-card a {
  position: relative;
  display: block;
}

.project-card a::before,
.project-card a::after {
  display: none;
}

.project-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--blue);
  border-radius: 0;
  color: var(--white);
  transform: translateZ(0);
  will-change: border-radius;
}

.project-media video,
.project-media img {
  display: block;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: center;
}

.project-media.has-cover-media::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(140px, 36%, 280px);
  z-index: 1;
  background: linear-gradient(180deg, rgba(25, 75, 160, 0) 0%, rgba(25, 75, 160, 0.82) 100%);
  pointer-events: none;
}

.project-visual {
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(142, 249, 243, 0.9), rgba(25, 75, 160, 0.2)),
    var(--blue);
}

.project-card-light .project-visual,
.project-card-tone-light {
  background: var(--white);
  color: var(--blue);
}

.project-card-light .project-meta,
.project-card-tone-light .project-meta {
  color: var(--blue);
}

.project-card-deep .project-visual,
.project-card-tone-deep {
  background: linear-gradient(135deg, var(--blue), var(--deep-green));
}

.project-card-tone-electric {
  background: var(--electric);
  color: var(--blue);
}

.project-card-tone-electric .project-meta {
  color: var(--blue);
}

.project-card-tone-grey {
  background: var(--grey);
  color: var(--blue);
}

.project-card-tone-grey .project-meta {
  color: var(--blue);
}

.project-visual span {
  max-width: 9ch;
  font-size: clamp(42px, 8vw, 118px);
  line-height: 0.86;
  text-align: center;
  text-transform: uppercase;
}

.project-meta {
  position: absolute;
  left: clamp(18px, 2.6vw, 36px);
  right: clamp(18px, 2.6vw, 36px);
  bottom: clamp(18px, 2.6vw, 34px);
  z-index: 2;
  display: grid;
  gap: clamp(18px, 2vw, 30px);
  padding-top: 0;
  color: var(--white);
}

.project-client-logo-frame,
.project-modal-client-logo-frame {
  width: clamp(82px, 11vw, 150px);
  height: var(--project-client-logo-height);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}

.project-media .project-client-logo,
.project-modal-client-logo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left center;
}

.project-media .project-client-logo {
  filter: brightness(0) invert(1);
}

.project-awards {
  position: absolute;
  z-index: 3;
  right: clamp(14px, 2.2vw, 28px);
  bottom: clamp(14px, 2.2vw, 28px);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: calc(100% - 56px);
}

.project-awards figure,
.project-modal-awards-list figure {
  margin: 0;
}

.project-awards img {
  width: clamp(42px, 5vw, 72px);
  height: clamp(42px, 5vw, 72px);
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 21, 20, 0.12));
}

.project-awards figcaption {
  display: none;
}

.project-meta p {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--size-small);
  line-height: 1.1;
  text-transform: lowercase;
}

.project-meta h3 {
  position: relative;
  width: fit-content;
  margin: 0;
  font-size: var(--size-lead);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.project-meta h3::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: -9px;
  height: 7px;
  opacity: 0;
  background: var(--electric);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20width%3D%2228%22%20height%3D%228%22%20viewBox%3D%220%200%2028%208%22%20preserveAspectRatio%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%204%20C3.5%201%203.5%201%207%204%20S10.5%207%2014%204%20S17.5%201%2021%204%20S24.5%207%2028%204%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20width%3D%2228%22%20height%3D%228%22%20viewBox%3D%220%200%2028%208%22%20preserveAspectRatio%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%204%20C3.5%201%203.5%201%207%204%20S10.5%207%2014%204%20S17.5%201%2021%204%20S24.5%207%2028%204%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 28px 8px;
  mask-size: 28px 8px;
}

.project-card a:hover .project-meta h3::after,
.project-card a:focus-visible .project-meta h3::after {
  opacity: 1;
}

.meeting-cta {
  position: relative;
  display: grid;
  gap: clamp(22px, 4vw, 48px);
  margin-top: clamp(58px, 7vw, 100px);
  padding: var(--section-y) var(--gutter);
  background: linear-gradient(180deg, var(--blue) 0%, var(--gradient-mid) 100%);
  color: var(--white);
}

.portfolio-page .meeting-cta {
  margin-bottom: -1px;
  padding-bottom: calc(var(--logos-gap) + 138px);
}

.portfolio-page .clients {
  margin-top: -1px;
  background: linear-gradient(180deg, var(--gradient-mid) 0%, var(--deep-green) 100%);
}

.meeting-cta::before {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: 100%;
  height: clamp(82px, 9vw, 132px);
  background-color: transparent;
  background-image: url("../section-wave.svg");
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: 1180px 100%;
}

.meeting-cta .text-link {
  width: fit-content;
  margin-top: 0;
  --link-line-color: var(--white);
  --link-wave-color: var(--electric);
}

.project-modal {
  --modal-top-gap: clamp(34px, 5.5vh, 62px);
  --modal-shell-pad: clamp(28px, 4vw, 62px);
  position: fixed;
  z-index: 900;
  inset: 0;
  display: grid;
  align-items: end;
  padding: var(--modal-top-gap) 0 0;
  border: 0;
  background: rgba(0, 21, 20, 0);
  color: var(--blue);
  pointer-events: none;
}

.project-modal[hidden] {
  display: none;
}

.project-modal.is-visible {
  pointer-events: auto;
}

.project-modal-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: calc(100svh - var(--modal-top-gap));
  padding: var(--modal-shell-pad);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: clamp(34px, 5vw, 72px) clamp(34px, 5vw, 72px) 0 0;
  background: var(--white);
  transform: translate3d(0, 100%, 0);
  will-change: transform;
  scrollbar-width: none;
}

.project-modal-shell::-webkit-scrollbar {
  display: none;
}

.project-modal a::before,
.project-modal a::after {
  display: none !important;
}

.project-modal-close {
  position: fixed;
  z-index: 3;
  top: clamp(20px, 2.4vw, 38px);
  right: clamp(20px, 2.4vw, 38px);
  width: 56px;
  height: 56px;
  padding: 0;
  box-sizing: border-box;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  color: transparent;
  font: inherit;
  overflow: hidden;
}

.project-modal-close::before,
.project-modal-close::after {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  width: 24px;
  height: 3px;
  background: var(--white);
}

.project-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.project-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.project-modal-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(34px, 5vw, 82px);
  align-items: start;
  min-height: 100%;
  height: auto;
  overflow: visible;
}

.project-modal-copy {
  position: sticky;
  top: 0;
  min-width: 0;
  min-height: 0;
  max-height: calc(100svh - var(--modal-top-gap) - var(--modal-shell-pad) - var(--modal-shell-pad));
  display: grid;
  align-content: start;
  gap: clamp(18px, 2.6vw, 34px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  padding-bottom: 0;
  scrollbar-width: none;
}

.project-modal-copy::-webkit-scrollbar {
  display: none;
}

.project-modal-kicker {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--size-small);
  line-height: 1.1;
  text-transform: lowercase;
}

.project-modal-client-logo {
  filter: var(--filter-blue);
}

.project-modal h2 {
  margin: 0;
  font-size: var(--size-title);
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: normal;
}

.project-modal-description {
  display: grid;
  gap: 0.9em;
  margin: 0;
  padding-top: 26px;
  border-top: 2px solid currentColor;
}

.project-modal-description p {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--size-body);
  line-height: 1.25;
}

.project-modal-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 2.8vw, 42px);
}

.project-modal-text-grid[hidden] {
  display: none;
}

.project-modal-description:empty {
  display: none;
}

.project-modal-text-block {
  display: grid;
  gap: 0.9em;
}

.project-modal-text-block p {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--size-body);
  line-height: 1.25;
}

.project-modal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 3.6vw, 54px);
  margin: 0;
}

.project-modal-facts div {
  display: grid;
  align-content: start;
  gap: 22px;
}

.project-modal-facts div[hidden] {
  display: none;
}

.project-modal-facts dt,
.project-modal-facts dd {
  margin: 0;
}

.project-modal-facts dt {
  display: flex;
  align-items: flex-start;
  font-size: var(--size-small);
  line-height: 1;
  text-transform: lowercase;
}

.project-modal-facts div:not(:has(.project-service-tag)) dt {
  min-height: 34px;
  padding-top: 9px;
}

.project-modal-facts dt:has(.project-service-tag) {
  flex-wrap: wrap;
  gap: 8px;
}

.project-service-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 7px 14px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  line-height: 1;
}

.project-modal-facts dd {
  font-family: var(--font-text);
  font-size: var(--size-body);
  line-height: 1.2;
}

.project-modal-awards[hidden] {
  display: none;
}

.project-modal-awards-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  padding-top: 4px;
}

.project-modal-awards-list figure {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.project-modal-awards-list img {
  width: auto;
  max-width: clamp(110px, 14vw, 190px);
  height: clamp(32px, 4vw, 58px);
  object-fit: contain;
  filter: var(--filter-blue);
}

.project-modal-awards-list figcaption {
  display: grid;
  gap: 4px;
  font-family: var(--font-text);
  font-size: var(--size-small);
  line-height: 1.1;
}

.project-modal-awards-list figcaption a,
.project-modal-awards-list figcaption span {
  width: fit-content;
}

.project-modal-awards-list figcaption small {
  display: block;
  font-size: 0.86em;
  line-height: 1.18;
  opacity: 0.82;
}

.project-modal-gallery {
  position: relative;
  gap: clamp(18px, 2.4vw, 32px);
  min-height: 0;
  overflow: visible;
  padding-bottom: 0;
}

.project-modal-media {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 0;
  aspect-ratio: var(--media-ratio, 1);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50px;
  background: var(--blue);
  color: var(--white);
  will-change: border-radius;
}

.project-modal-media.is-clickable {
  cursor: none;
}

.project-modal-media.is-featured-media {
  --media-ratio: 2;
}

.project-modal-media.is-featured-media,
.project-modal-media.is-wide-media {
  grid-column: auto;
}

.project-modal-media video,
.project-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.project-modal-media:first-child video {
  padding: 0;
}

.project-modal-media span {
  max-width: 9ch;
  padding: 24px;
  font-size: clamp(38px, 7vw, 118px);
  line-height: 0.86;
  text-align: center;
  text-transform: uppercase;
}

.project-modal-media-light {
  background: var(--white);
  color: var(--blue);
}

.project-modal-media-electric {
  background: var(--electric);
  color: var(--blue);
}

.project-modal-media-deep {
  background: linear-gradient(135deg, var(--blue), var(--deep-green));
}

.media-lightbox {
  position: fixed;
  z-index: 980;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 3.5vw, 54px);
  background: rgba(0, 21, 20, 0.78);
  color: var(--white);
}

.media-lightbox[hidden] {
  display: none;
}

.media-lightbox-frame {
  width: min(90vw, calc(90svh * var(--media-ratio, 2)));
  max-height: min(90svh, 960px);
  aspect-ratio: var(--media-ratio, 2);
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.media-lightbox-frame.is-featured-media {
  --media-ratio: 2;
}

.media-lightbox-frame img,
.media-lightbox-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  background: transparent;
}

.project-modal-media img,
.media-lightbox-frame img {
  object-position: 50% 50% !important;
}

.media-lightbox-arrow {
  position: fixed;
  z-index: 2;
  top: 50%;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: transparent;
  overflow: hidden;
  transform: translateY(-50%);
}

.media-lightbox-arrow::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-top: 3px solid var(--blue);
  border-left: 3px solid var(--blue);
}

.media-lightbox-prev {
  left: clamp(20px, 2.4vw, 38px);
}

.media-lightbox-next {
  right: clamp(20px, 2.4vw, 38px);
}

.media-lightbox-prev::before {
  transform: translate(-35%, -50%) rotate(-45deg);
}

.media-lightbox-next::before {
  transform: translate(-65%, -50%) rotate(135deg);
}

.media-lightbox-arrow:disabled {
  opacity: 0.34;
}

@media (max-width: 860px) {
  :root {
    --gutter: clamp(36px, 8vw, 66px);
    --section-y: clamp(66px, 12vw, 96px);
    --size-title: clamp(38px, 10vw, 68px);
    --size-service: clamp(24px, 7vw, 38px);
  }

  .site-header {
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
  }

  .brand {
    width: 108px;
  }

  .header-link {
    font-size: 14px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-socials {
    gap: 8px;
  }

  .social-icon {
    width: 22px;
    height: 22px;
  }

  .manifesto,
  .waves,
  .work-topline,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .work-filters {
    justify-content: flex-start;
  }

  .project-modal {
    padding-top: 34px;
  }

  .project-modal-shell {
    height: 100%;
    overflow: auto;
  }

  .project-modal-layout,
  .project-modal-gallery,
  .project-modal-facts {
    grid-template-columns: 1fr;
  }

  .project-modal-copy {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;
  }

  .project-modal-gallery {
    max-height: none;
    overflow: visible;
    padding-bottom: 0;
  }

  .waves-heading {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 34px;
    --section-y: 68px;
    --size-small: 12px;
    --size-body: 18px;
    --size-lead: 22px;
    --size-title: 40px;
    --size-service: 24px;
  }

  .site-header {
    padding-top: 18px;
  }

  .brand {
    width: 88px;
  }

  .header-link {
    font-size: 12px;
  }

  .header-socials {
    display: none;
  }

  .hero h1 {
    max-width: 9ch;
  }

  .wave-item button {
    min-height: 78px;
  }
}
