@font-face { font-family: Gilroy; src: url(fonts/Gilroy-Light.ttf); font-weight: 300; font-display: swap; }
@font-face { font-family: Gilroy; src: url(fonts/Gilroy-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Gilroy; src: url(fonts/Gilroy-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: Gilroy; src: url(fonts/Gilroy-Bold.ttf); font-weight: 700; font-display: swap; }

:root {
  --purple: #281944;
  --orange: #f36637;
  --lilac: #c7a3fd;
  --grey: #585856;
  --line: #534769;
  --pad: 24px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font: 16px/24px Gilroy, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--purple); background: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid #597eff; outline-offset: 2px; }

header, section, footer { padding-inline: var(--pad); }
.dark { background: var(--purple); color: #fff; }

/* type */
h1, h2 { font-weight: 300; }
h1 { font-size: 40px; line-height: 48px; }
h2 { font-size: 32px; line-height: 40px; }
h3 { font-size: 24px; line-height: 32px; font-weight: 600; }
h1 b, h2 b { display: block; font-weight: 700; letter-spacing: -0.02em; }
h1 b { font-size: 56px; line-height: 56px; }
h2 b { font-size: 40px; line-height: 44px; }
.eyebrow { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
.small { font-size: 12px; line-height: 18px; font-weight: 300; letter-spacing: 0.06em; color: #bbb; }

/* buttons */
.buttons { display: flex; flex-direction: column; gap: 12px; }
.button { box-sizing: content-box; display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 32px; border-radius: 9999px; font-weight: 600; text-decoration: none; }
.primary { background: var(--orange); color: var(--purple); font-weight: 700; }
.outline { border: 1px solid #6d6d6b; }
.dark .outline { border-color: #fff; }
.arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* header */
header { position: relative; display: flex; align-items: center; justify-content: space-between; height: 64px; border-bottom: 1px solid var(--line); }
.logo { display: block; height: 26px; fill: #fff; }
.menu { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -8px; padding: 0; border: 1px solid #fff; border-radius: 9999px; background: none; cursor: pointer; }
.menu svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 1; flex-direction: column; padding: 8px var(--pad) 24px; background: var(--purple); border-bottom: 1px solid var(--line); }
.menu[aria-expanded="true"] + nav { display: flex; }
header nav a { line-height: 48px; text-decoration: none; }
header nav .button { height: 44px; margin-top: 8px; line-height: inherit; }

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 28px; padding-block: 64px; }
.hero > p:not([class]) { font-size: 18px; line-height: 28px; color: #e3e3e3; }
.dark .eyebrow { color: var(--lilac); }
.crab { position: absolute; z-index: -1; top: 50%; left: var(--pad); width: calc(100% - 2 * var(--pad)); transform: translateY(-50%); fill: #fff; opacity: 0.08; }

/* services */
.services { padding-block: 64px; background: #eee; }
.services h2 { margin-top: 12px; font-weight: 700; }
.cards { display: grid; gap: 16px; margin: 32px -8px 0; }
article { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 32px 24px; border-radius: 32px; background: #fff; }
article p { color: var(--grey); }
.icon { display: none; }
.watermark { position: absolute; z-index: -1; top: 12px; left: 12px; width: calc(100% - 24px); height: calc(100% - 24px); fill: var(--purple); opacity: 0.06; }
.watermark .hole { fill: #fff; }

/* about and contact */
.split { display: flex; flex-direction: column; gap: 32px; padding-block: 64px; }
.split > div { display: flex; flex-direction: column; gap: 12px; }
.split > div + div { gap: 20px; }
figure { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
figure img { width: 72px; height: 72px; border-radius: 9999px; object-fit: cover; }
figcaption { display: flex; flex-direction: column; gap: 4px; }
.dark figcaption .eyebrow { color: inherit; }
#contact, #contact > div { gap: 24px; }
#contact > div + div > p { color: var(--grey); }
dl { display: grid; gap: 16px; padding-top: 24px; border-top: 1px solid #ccc; }
dt { margin-bottom: 4px; }
dd { font-size: 18px; line-height: 28px; }

/* footer */
footer { display: grid; gap: 28px; padding-block: 40px; background: #1f1f1f; color: #fff; }
footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
footer nav a { line-height: 44px; text-decoration: none; }
footer .small { display: grid; gap: 4px; }

@media (min-width: 1024px) {
  :root { --pad: max(clamp(48px, 8.333%, 120px), 50% - 600px); }

  h1 { font-size: 64px; line-height: 72px; }
  h2 { font-size: 48px; line-height: 56px; }
  h1 b { font-size: 96px; line-height: 96px; }
  h2 b { font-size: 64px; line-height: 64px; }

  .buttons { flex-direction: row; align-items: center; gap: 16px; }

  header { height: 88px; }
  .logo { height: 32px; }
  .menu { display: none; }
  header nav, .menu[aria-expanded="true"] + nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 40px; padding: 0; border: 0; }
  header nav a { line-height: 24px; }
  header nav .button { margin: 0; padding: 0 24px; }

  .hero { align-items: flex-start; gap: 32px; padding-block: 112px 120px; }
  .hero > * { max-width: 620px; }
  .hero > p:not([class]) { max-width: 540px; }
  /* spans from the top of the eyebrow's capitals, 4px into its line box, to the bottom of the buttons */
  .crab { top: 116px; right: var(--pad); left: auto; width: auto; height: calc(100% - 236px); max-width: none; transform: none; opacity: 0.1; }

  .services { padding-block: 120px; }
  .services h2 { margin-top: 16px; letter-spacing: -0.01em; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 56px 0 0; }
  article { gap: 24px; padding: 40px; }
  .icon { display: block; width: 64px; height: 64px; padding: 17px; border-radius: 9999px; background: var(--purple); fill: none; stroke: var(--lilac); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .watermark { display: none; }

  .split { flex-direction: row; gap: 96px; padding-block: 120px; }
  .split > div:first-child { flex: none; width: 400px; gap: 16px; }
  .split > div + div { flex: 1; gap: 24px; padding-top: 36px; }
  .split > div + div > p { max-width: 680px; font-size: 18px; line-height: 28px; }
  figure { gap: 20px; margin-top: 16px; }
  figure img { width: 88px; height: 88px; }
  #contact { gap: 96px; }
  #contact > div:first-child { gap: 16px; }
  #contact > div + div { gap: 40px; }
  #contact > div + div > p { max-width: 600px; }
  dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 32px; }

  footer { grid-template-columns: 1fr auto; gap: 16px 32px; padding-block: 48px; }
  footer .logo { height: 28px; }
  footer nav { grid-row: span 2; display: flex; align-items: flex-start; gap: 32px; }
  footer nav a { font-size: 14px; line-height: 20px; }
  footer .small { display: block; }
  footer .small span:first-child::after { content: " ·"; }
  footer .small span:last-child { display: block; margin-top: 4px; }
}
