/* Intersectional Data. The four brand colours are sampled from the logo. */
:root {
  --navy: #030f42;
  --teal: #027e84;
  --coral: #fd6041;
  --amber: #fdb726;
  --muted: #4a5174;
  --line: #e3e6ef;
  --tint: #f1f7f7;
  --radius: 1.75rem;
  --radius-sm: 1.25rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font: 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img,
svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 76rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .6rem 1rem;
  border-radius: .5rem;
  background: var(--navy);
  color: #fff;
}
.skip:focus { top: 1rem; }

/* Shared pieces */
.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.accent { color: var(--teal); }
.center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--teal); }
.btn--amber { background: var(--amber); color: var(--navy); }
.btn--amber:hover { background: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
  padding-bottom: .15rem;
}
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.75rem;
}

.brand img { width: auto; height: 3.75rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  font-size: .95rem;
  font-weight: 600;
}
.site-nav a:not(.btn) {
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.site-nav a:not(.btn):hover { border-color: var(--teal); color: var(--teal); }

.menu-btn {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 53.99rem) {
  .brand img { height: 2.75rem; }
  .header-row { flex-wrap: wrap; row-gap: 0; min-height: 4.5rem; }
  /* Without JavaScript the links simply wrap under the logo. */
  .site-nav { flex-wrap: wrap; padding-bottom: .75rem; }

  .js .menu-btn { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 1.25rem 2rem rgba(3, 15, 66, .08);
  }
  .js .site-nav.is-open a:not(.btn) {
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .js .site-nav.is-open .btn { justify-content: center; margin-top: 1.25rem; }
}

/* Hero */
.hero {
  display: grid;
  gap: 1.25rem;
  padding-block: clamp(.75rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2rem);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 1rem + 4.6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.015em;
}
.hero h1 span { display: block; }

.lede {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.75rem;
}

.hero-copy { padding-block: 1rem .75rem; }

.hero-art {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  aspect-ratio: 16 / 10;
}
.hero-art svg { width: 100%; height: 100%; }

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: 12rem;
  overflow: hidden;
  padding: 1.5rem 1.5rem 5.25rem;
  border-radius: var(--radius);
  text-decoration: none;
}
.feature--teal { background: var(--teal); color: #fff; }
.feature--amber { background: var(--amber); color: var(--navy); }
.feature .eyebrow { color: inherit; }
.feature__title {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.15;
}

/* Decorative rings in the corner of each feature card */
.feature::before,
.feature::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.25rem solid rgba(255, 255, 255, .16);
}
.feature::before { width: 13rem; height: 13rem; left: -4.5rem; bottom: -6rem; }
.feature::after { width: 9rem; height: 9rem; left: 4.5rem; bottom: -5.5rem; }
.feature--amber::before,
.feature--amber::after { border-color: rgba(3, 15, 66, .1); }

.circle-arrow {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  transition: transform .2s ease;
}
.feature--amber .circle-arrow { background: var(--navy); color: #fff; }
.feature:hover .circle-arrow { transform: translateX(4px); }

@media (min-width: 40rem) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy,
  .hero-art { grid-column: 1 / -1; }
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr);
    grid-template-areas:
      "art  f1"
      "copy f2";
  }
  .hero-art { grid-area: art; aspect-ratio: auto; min-height: 26rem; }
  .feature--teal { grid-area: f1; }
  .feature--amber { grid-area: f2; }

  /* The headline sits in a white notch cut into the bottom-left of the artwork. */
  .hero-copy {
    grid-area: copy;
    position: relative;
    z-index: 1;
    width: fit-content;
    max-width: 94%;
    margin: -5rem 0 0 -2px;
    padding: 1.75rem 2.75rem 0 2px;
    border-top-right-radius: var(--radius);
    background: #fff;
  }
  .hero-copy::before,
  .hero-copy::after {
    content: "";
    position: absolute;
    width: var(--radius);
    /* 1px taller and wider than the curve, so no seam shows where the pieces meet */
    height: calc(var(--radius) + 1px);
    background: radial-gradient(circle at 100% 0, transparent calc(var(--radius) - .5px), #fff var(--radius));
  }
  .hero-copy::before { left: 2px; top: calc(-1 * var(--radius)); }
  /* 5rem overlap minus the 1.25rem grid gap is where the artwork ends. */
  .hero-copy::after { left: calc(100% - 1px); width: calc(var(--radius) + 1px); top: calc(3.75rem - var(--radius)); }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--flush { padding-top: 0; }

.section-head .display { margin-top: .5rem; }
.section-intro {
  max-width: 42rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
}

/* What we do */
.cards {
  display: grid;
  gap: 2.5rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 34rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card__tile {
  overflow: hidden;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
}
.card__tile svg { width: 100%; height: 100%; }
.card .eyebrow { margin-bottom: .5rem; font-size: .6875rem; }
.card h3 { margin-bottom: .5rem; font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.card p:last-child { color: var(--muted); font-size: 1rem; }

/* Why it matters */
.band {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: var(--tint);
}
.band .display,
#approach .display { max-width: 18ch; margin: .75rem auto 0; }

.steps {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps li {
  padding: 1.75rem;
  border-radius: var(--radius-sm);
  background: #fff;
}
.step-no {
  display: block;
  margin-bottom: .75rem;
  color: var(--coral);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}
.steps h3 { margin-bottom: .5rem; font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.steps p { color: var(--muted); font-size: 1rem; }

/* How we work */
.tiles {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 36rem) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .tiles { grid-template-columns: repeat(4, 1fr); } }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: 15rem;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
}
.tile::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: rgba(3, 15, 66, .14);
}
.tile h3,
.tile p { position: relative; z-index: 1; }
.tile h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.tile p { font-size: 1rem; }
.tile--navy { background: var(--navy); color: #fff; }
.tile--navy::after { background: rgba(255, 255, 255, .1); }
.tile--teal { background: var(--teal); color: #fff; }
.tile--coral { background: var(--coral); }
.tile--amber { background: var(--amber); }

/* Contact */
.contact { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); } }

.contact__art {
  display: grid;
  place-items: center;
  min-height: 16rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--tint);
}
.contact__art img { width: min(100%, 18rem); height: auto; }

.contact__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}
.contact__body .eyebrow { color: var(--amber); }
.contact__body p:not(.eyebrow) { max-width: 34rem; color: rgba(255, 255, 255, .82); }
.contact__body .btn { margin-top: .5rem; }
.contact__body .contact__email { font-size: .95rem; }

/* Footer */
.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.footer-brand img { width: auto; height: 3.5rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  font-size: .95rem;
  font-weight: 600;
}
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--teal); text-decoration: underline; }
.copyright { width: 100%; color: var(--muted); font-size: .875rem; }

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