@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --color-ink: #08112b;
  --color-accent: #0857fb;
  --color-muted: #657085;
  --color-rule: #d5dce9;
  --color-paper: #fff;
  --gutter: clamp(1.5rem, 5vw, 6rem);
  font-family: "Inter", Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body,
p,
h1,
h2 {
  margin: 0;
}

::selection {
  color: var(--color-paper);
  background: var(--color-accent);
}

.landing {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: min(100%, 120rem);
  min-height: 100svh;
  margin-inline: auto;
  padding: 1.5rem var(--gutter) 1.5rem;
}

.brand {
  align-self: flex-start;
  width: 15rem;
  max-width: 100%;
}

.brand__logo {
  display: block;
  width: 15rem;
  max-width: 100%;
  height: auto;
  margin-left: -.63rem;
}

.brand__tagline {
  max-width: calc(15rem * 262 / 286);
  margin-top: .3rem;
  color: var(--color-muted);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero {
  padding-top: 3rem;
}

.hero__eyebrow {
  margin-bottom: 1.25rem;
  color: var(--color-muted);
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2.125rem, 5.65vw + .5rem, 4.75rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.04em;
  overflow-wrap: break-word;
}

.hero__title > span {
  display: block;
}

.hero__accent {
  color: var(--color-accent);
}

.hero__description {
  max-width: 37rem;
  margin-top: 1.375rem;
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -.025em;
}

.desktop-break {
  display: none;
}

.hero__visual {
  display: none;
}

.services {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(8rem, 50%)), 1fr));
  gap: 1.75rem 0;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.service {
  position: relative;
  min-width: 0;
  padding-right: .875rem;
}

.service:nth-child(even) {
  padding-left: 1.25rem;
  padding-right: 0;
}

.service:nth-child(even)::before {
  position: absolute;
  top: .375rem;
  bottom: .25rem;
  left: 0;
  width: 1px;
  background: var(--color-rule);
  content: "";
}

.service__icon {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: .8125rem;
}

.service__title {
  font-size: .9375rem;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.service__description {
  margin-top: .375rem;
  color: var(--color-muted);
  font-size: .8125rem;
  line-height: 1.45;
  letter-spacing: -.02em;
}

.scene {
  position: relative;
  flex-shrink: 0;
  height: clamp(15rem, 72vw, 30rem);
  margin: 1rem calc(-1 * var(--gutter)) 0;
  pointer-events: none;
}

.scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.scene picture {
  display: contents;
}

.scene::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff 0%, #fff0 24%, #fff0 76%, #fff 100%);
  content: "";
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--color-muted);
  font-size: .625rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.footer__tagline {
  flex-basis: 100%;
  max-width: 28em;
}

.footer__rule {
  flex: 1;
  height: 1px;
  background: var(--color-rule);
}

.footer__domain {
  flex-shrink: 0;
  font-size: .75rem;
  letter-spacing: .25em;
}

@media (min-width: 40rem) {
  .brand {
    width: 17.875rem;
  }

  .brand__logo {
    width: 17.875rem;
    margin-left: -.75rem;
  }

  .brand__tagline {
    max-width: 16.375rem;
    font-size: .8125rem;
  }

  .hero__eyebrow {
    font-size: .875rem;
  }

  .hero__description {
    font-size: 1.375rem;
  }

  .services {
    max-width: 43rem;
    margin-top: 2.75rem;
  }

  .service__icon {
    width: 3rem;
    height: 3rem;
  }

  .service__title {
    font-size: 1.0625rem;
  }

  .service__description {
    font-size: .9375rem;
  }

  .footer {
    font-size: .75rem;
  }
}

@media (min-width: 64rem) {
  .landing {
    min-height: max(45rem, 100svh);
    padding-block: clamp(1.5rem, 2.5vh, 2.5rem) 1.75rem;
  }

  .hero {
    width: 53%;
    padding-top: clamp(3.5rem, 8vh, 7rem);
    padding-bottom: 3rem;
  }

  .hero__eyebrow {
    margin-bottom: 1.75rem;
    letter-spacing: .24em;
  }

  .hero__title {
    font-size: clamp(2.75rem, 4.08vw, 4.9rem);
  }

  .hero__description {
    margin-top: 1.5rem;
    font-size: clamp(1.25rem, 1.58vw, 1.8125rem);
    line-height: 1.3;
  }

  .desktop-break {
    display: initial;
  }

  .services {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(8rem, 25%)), 1fr));
    width: 100%;
    max-width: 50rem;
    margin-top: clamp(2.75rem, 5.5vh, 4rem);
  }

  .service,
  .service:nth-child(even) {
    padding: 0 clamp(.625rem, 1.8vw, 2rem);
  }

  .service:first-child {
    padding-left: 0;
  }

  .service:last-child {
    padding-right: 0;
  }

  .service:not(:first-child)::before {
    position: absolute;
    top: .375rem;
    bottom: 1.75rem;
    left: 0;
    width: 1px;
    background: var(--color-rule);
    content: "";
  }

  .service__title {
    font-size: clamp(.8125rem, 1.05vw, 1.1875rem);
  }

  .service__description {
    font-size: clamp(.75rem, .89vw, 1rem);
  }

  .scene {
    position: absolute;
    z-index: -1;
    inset: 0;
    height: auto;
    margin: 0;
  }

  .scene img {
    object-position: 66% center;
  }

  .scene::after {
    background:
      linear-gradient(90deg, #fff 0%, #fffffff2 26%, #ffffffb3 40%, #fff0 61%),
      linear-gradient(0deg, #ffffffe6, #fff0 17%);
  }

  .footer {
    flex-wrap: nowrap;
    gap: 1.75rem;
    padding-top: 0;
    font-size: clamp(.625rem, .8vw, .875rem);
    letter-spacing: .23em;
  }

  .footer__tagline {
    flex: 0 1 auto;
    max-width: none;
  }

  .footer__domain {
    font-size: inherit;
  }
}

@media (min-width: 64rem) and (max-width: 79.99rem) {
  .hero {
    width: 59%;
  }

  .scene::after {
    background:
      linear-gradient(90deg, #fff 0%, #fffffff2 30%, #ffffffd9 46%, #fff0 77%),
      linear-gradient(0deg, #ffffffe6, #fff0 17%);
  }
}

/* The portrait scene is one continuous background; desktop geometry stays intact. */
@media (width < 64rem) {
  .hero {
    padding-top: 2.25rem;
  }

  .hero__visual {
    display: block;
    height: clamp(13rem, 58vw, 25rem);
  }

  .hero__title {
    font-size: clamp(1.75rem, 7.8vw + .25rem, 3.875rem);
  }

  .hero__description {
    position: relative;
    isolation: isolate;
    max-width: 25em;
    color: #46546a;
  }

  .hero__description::before {
    position: absolute;
    z-index: -1;
    inset: -1rem -.875rem;
    background: linear-gradient(90deg, #ffffffa6, #fffffff2 65%);
    filter: blur(.625rem);
    content: "";
    pointer-events: none;
  }

  .services {
    position: relative;
    z-index: 0;
    margin-top: 2rem;
  }

  .services::before {
    position: absolute;
    z-index: -1;
    inset: -2rem calc(-1 * var(--gutter)) -1.5rem;
    background: linear-gradient(180deg, #fff0, #fffffff5 2rem, #fff 55%);
    content: "";
    pointer-events: none;
  }

  .scene {
    position: absolute;
    z-index: -1;
    inset: 0;
    height: auto;
    margin: 0;
  }

  .scene img {
    object-position: center top;
  }

  .scene::after {
    background:
      linear-gradient(90deg, #ffffff4d, #fff0 75%),
      linear-gradient(180deg, #fff0 53%, #ffffffc7 62%, #fff 76%);
  }

  .footer {
    margin-top: 2rem;
  }
}

@container (width < 16rem) {
  .service:nth-child(even) {
    padding-left: 0;
  }

  .service:nth-child(even)::before {
    display: none;
  }
}

@media (forced-colors: active) {
  .scene {
    visibility: hidden;
  }

  .hero__accent {
    color: CanvasText;
  }
}
