@font-face {
  font-family: "Source Serif";
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-serif-4.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans";
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3.woff2") format("woff2");
}

/* Calm base of white, soft grey and the logo navy; orange is only a small accent */
:root {
  --heading: "Source Serif", Georgia, serif;
  --body: "Source Sans", system-ui, sans-serif;
  --ink: #16293a;
  --amber: #f5a623;
  --mist: #f2f5f7;
  --stone: #e3e9ed;
  --muted: #4b5f70;
  --link: #16293a;
  --header-height: 5.5rem;
  --radius: 1.75rem;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}
body {
  margin: 0;
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
}
img,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.375rem);
}
h3 {
  font-size: 1.375rem;
}
a {
  color: var(--link);
}
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
.text p + p {
  margin-top: 1em;
}
.container {
  width: min(100% - 2.5rem, 78rem);
  margin-inline: auto;
}
.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section--tint {
  background: var(--mist);
}
.skip-link {
  position: absolute;
  z-index: 60;
  left: 1rem;
  top: -4rem;
  padding: 0.75rem 1rem;
  background: #fff;
}
.skip-link:focus {
  top: 1rem;
}
.button {
  --back: var(--ink);
  --front: #fff;
  display: inline-block;
  padding: 0.95rem 1.7rem;
  border: 2px solid var(--back);
  border-radius: 99px;
  background: var(--back);
  color: var(--front);
  font: 600 1.0625rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}
.button:hover {
  transform: translateY(-3px);
}
.button:active {
  transform: none;
}
.button--ghost {
  background: transparent;
  color: var(--back);
}
.button[disabled] {
  opacity: 0.4;
  transform: none;
  cursor: default;
}

/* Photos that grow out of a dot */
[data-grow] img {
  transition: clip-path 1.2s var(--ease);
}
.js [data-grow]:not(.is-grown) img {
  clip-path: circle(14%);
}
[data-grow].is-grown img {
  clip-path: circle(75%);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: #fff;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.site-header__logo img {
  width: auto;
  height: 4rem;
}
.menu {
  display: flex;
  gap: 2.25rem;
}
.menu a {
  position: relative;
  padding-block: 0.5rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.menu a::after {
  content: "";
  position: absolute;
  bottom: -0.2rem;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: -0.25rem;
  border-radius: 50%;
  background: var(--amber);
  scale: 0;
  transition: scale 0.25s var(--ease);
}
.menu a:hover::after,
.menu a:focus-visible::after {
  scale: 1;
}
.menu-button {
  display: none;
}

/* Hero */
.hero,
.hero__slide {
  --field: var(--ink);
  --on-field: #fff;
  --dot: #2c4357;
}
[data-tone="1"],
[data-tone="3"] {
  --field: var(--mist);
  --on-field: var(--ink);
  --dot: #d3dde4;
}
.hero {
  position: relative;
  overflow: hidden;
}
.hero__slide {
  display: flex;
  height: auto;
  min-height: max(34rem, min(100svh - var(--header-height), 46rem));
  overflow: hidden;
  background: var(--field);
  color: var(--on-field);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding-block: 2.5rem 6rem;
}
.hero__title {
  font-size: clamp(2rem, 1.5rem + 1.9vw, 3.125rem);
  line-height: 1.12;
}
.hero__text {
  max-width: 35rem;
  margin-block: 1.5rem 2rem;
  font-size: 1.125rem;
  line-height: 1.55;
}
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero .button {
  --back: var(--on-field);
  --front: var(--field);
}
.hero__photo {
  position: relative;
  width: min(42vw, 66svh, 34rem);
  aspect-ratio: 1;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.hero__dots {
  position: absolute;
  inset: 0;
  overflow: visible;
  animation: sway 16s ease-in-out infinite alternate;
}
.hero__dots circle {
  fill: var(--dot);
  transform-box: fill-box;
  transform-origin: center;
}
.hero__dots circle:nth-child(7) {
  fill: var(--amber);
}
.swiper-slide-active .hero__dots circle {
  animation: pop 0.7s calc(0.35s + var(--n) * 70ms) var(--ease) backwards;
}
.hero__controls {
  position: absolute;
  z-index: 5;
  inset: auto 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--on-field);
}
.hero .hero__pagination,
.services .services__pagination {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: auto;
}
.hero__pagination button,
.services__pagination button {
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0.32rem, transparent 0.36rem);
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
}
.hero__pagination .swiper-pagination-bullet-active,
.services__pagination .swiper-pagination-bullet-active {
  background: radial-gradient(circle, currentColor 0.6rem, transparent 0.64rem);
  opacity: 1;
}
.hero__pause {
  padding: 0.4rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: 600 1rem/1 var(--body);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

/* The active slide lies on top and opens as a dot above the one that leaves */
.hero .swiper-initialized .hero__slide {
  z-index: 0;
  visibility: hidden;
  opacity: 1 !important;
}
.hero .swiper-initialized .is-leaving {
  z-index: 1;
  visibility: visible;
}
.hero .swiper-initialized .swiper-slide-active {
  z-index: 2;
  visibility: visible;
}
.has-moved .swiper-slide-active {
  animation: open 1.1s var(--ease);
}
@keyframes open {
  from {
    clip-path: circle(0 at 78% 45%);
  }
  to {
    clip-path: circle(125% at 78% 45%);
  }
}
@keyframes pop {
  from {
    transform: scale(0);
  }
}
@keyframes sway {
  from {
    rotate: -5deg;
  }
  to {
    rotate: 9deg;
  }
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.about__text {
  margin-top: 2rem;
}
.about__text p:first-child {
  margin-bottom: 1.5rem;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.4;
}
.about__brands {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mist);
}
.about__brands img {
  width: 68%;
  mix-blend-mode: multiply;
}

/* Values: full-width panels that stack while scrolling */
.values h2 {
  padding-bottom: 2.5rem;
}
.value {
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--mist);
}
.value + .value {
  margin-top: calc(var(--radius) * -1);
}
.value:nth-of-type(3n + 2) {
  background: var(--stone);
}
.value:nth-of-type(3n) {
  background: var(--ink);
  color: #fff;
}
.value__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1.5rem 4rem;
  align-items: center;
  min-height: 20rem;
  padding-block: 3rem calc(3rem + var(--radius));
}
.value h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
}
.value__title {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.dot-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: #fff;
}
@media (min-height: 44rem) and (min-width: 60rem) {
  .value {
    position: sticky;
    top: var(--header-height);
  }
}

/* Services */
.services {
  position: relative;
  overflow: hidden;
}
.services__swiper {
  margin-top: 3rem;
  overflow: visible;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: auto;
  padding: 2.25rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}
.service > * {
  position: relative;
}
.service::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  background: var(--stone);
  transition: scale 0.8s var(--ease);
}
.service h3 {
  margin-block: 3rem 1rem;
}
.service p {
  margin-bottom: 2rem;
}
.service .button {
  margin-top: auto;
}
@media (hover: hover) {
  .service:hover::before {
    scale: 12;
  }
}
.services__pagination {
  justify-content: center;
  margin-top: 1.5rem;
}
.services__pagination.swiper-pagination-lock {
  display: none;
}

/* Process */
.process {
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.process .button {
  --back: #fff;
  --front: var(--ink);
}
.process__stages {
  --progress: 0;
  --swiper-pagination-bullet-horizontal-gap: 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-block: 3rem;
}
.process__stages::before,
.process__stages::after {
  content: "";
  position: absolute;
  top: calc(50% - 2px);
  left: 0;
  width: 100%;
  height: 4px;
  background: #3a4f62;
}
.process__stages::after {
  background: var(--amber);
  transform: scaleX(var(--progress));
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.process__stages button {
  position: relative;
  z-index: 1;
  width: 4rem;
  height: 4rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #3a4f62;
  color: #fff;
  font: 600 1.25rem/1 var(--body);
  opacity: 1;
  cursor: pointer;
  transition: scale 0.4s var(--ease), background-color 0.4s;
}
.process__stages .swiper-pagination-bullet-active {
  background: var(--amber);
  color: var(--ink);
  scale: 1.3;
}
.stage {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.stage__image {
  width: 100%;
  border-radius: var(--radius);
}
.stage h3 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem);
}
.process__buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* Team */
.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  margin-top: 3.5rem;
}
.member__photo {
  position: relative;
  max-width: 22rem;
  margin-bottom: 2rem;
}
.member__photo::before {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -2%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--stone);
}
.member__photo img {
  position: relative;
  width: 100%;
  border-radius: 50%;
}
.member h3 {
  font-size: 1.625rem;
}
.member__role {
  margin-block: 0.4rem 1.25rem;
  color: var(--muted);
  font-weight: 600;
}
.member .text {
  margin-bottom: 1.25rem;
}

/* Contact */
.contact-section {
  background: var(--mist);
}
.contact-section a {
  color: inherit;
}
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  margin-top: 3rem;
}
.contact__card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: #fff;
}
.contact__photo img {
  border-radius: var(--radius);
}
.contact__details {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1.5rem;
  margin: 2rem 0 0;
}
.contact__details dt {
  font-weight: 700;
}
.contact__details dd {
  margin: 0;
}
.form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.form input,
.form textarea {
  display: block;
  width: 100%;
  margin-bottom: 1.1rem;
  padding: 0.85rem 1.1rem;
  border: 2px solid #8496a5;
  border-radius: 0.9rem;
  background: #fff;
  color: inherit;
  font: inherit;
}
.form input:focus,
.form textarea:focus {
  border-color: var(--ink);
}
.form [aria-invalid] {
  margin-bottom: 0.35rem;
  border-color: #b3261e;
}
.form__error {
  margin-bottom: 1.1rem;
  color: #b3261e;
}
.form__trap {
  position: absolute;
  left: -100vw;
}
.form__note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.notice {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.9rem;
  background: #e2f2e6;
  color: #17492a;
}
.notice--error {
  background: #fbe6e4;
  color: #8c1d18;
}
.map {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 25rem;
  padding: 1.25rem;
  background: var(--stone);
  text-align: center;
}
.map:has(iframe) {
  padding: 0;
}
.map iframe {
  width: 100%;
  height: 25rem;
}

/* Footer */
.site-footer {
  padding-block: 5rem 2rem;
  background: var(--ink);
  color: #fff;
}
.site-footer a {
  color: inherit;
}
.site-footer h2 {
  margin-bottom: 1rem;
  font-size: 1.1875rem;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li + li {
  margin-top: 0.4rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.site-footer__info p + p {
  margin-top: 1em;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 4rem;
  font-size: 0.9375rem;
}
.site-footer__legal button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Text pages */
.page {
  min-height: 60vh;
  padding-block: clamp(4rem, 9vw, 8rem);
  background: var(--mist);
}
.page h1 {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
}
.page .text {
  max-width: 60ch;
  margin-block: 1.5rem 2.5rem;
  }

@media (max-width: 60rem) {
  :root {
    --header-height: 4.75rem;
  }
  .site-header__logo img {
    height: 3.4rem;
  }
  .menu-button {
    position: relative;
    z-index: 2;
    display: block;
    min-width: 5.5rem;
    padding: 0.75rem 1.2rem;
    border: 0;
    border-radius: 99px;
    background: var(--ink);
    color: #fff;
    font: 700 1rem/1.2 var(--body);
  }
  .menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding: 5rem 1.5rem 2rem;
    background: var(--ink);
    clip-path: circle(0 at calc(100% - 4rem) 2.4rem);
    visibility: hidden;
    transition: clip-path 0.6s var(--ease), visibility 0.6s;
  }
  .menu.is-open {
    clip-path: circle(150% at calc(100% - 4rem) 2.4rem);
    visibility: visible;
  }
  .has-menu .menu-button {
    background: #fff;
    color: var(--ink);
  }
  .menu a {
    color: #fff;
    font: 600 1.75rem/1.4 var(--heading);
  }
  .menu a::after {
    display: none;
  }
  .has-menu {
    overflow: hidden;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-content: start;
    padding-block: 0 5.5rem;
  }
  .hero__photo {
    order: -1;
    justify-self: end;
    width: min(88vw, 30rem);
    margin: -36vw -14vw 0 0;
  }
  .hero__controls {
    bottom: 1.5rem;
  }
  .about,
  .stage,
  .team,
  .contact,
  .value__inner,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
  .value__inner {
    min-height: 0;
    padding-block: 3rem calc(3rem + var(--radius));
  }
  .stage {
    align-items: start;
  }
  .process__stages button {
    width: 3.25rem;
    height: 3.25rem;
  }
  .process__buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 34rem) {
  .contact__details {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
