@font-face {
  font-family: "Bricolage Grotesque";
  src: url("./assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --paper: #f8f8f4;
  --ink: #1d211f;
  --muted: #50564f;
  --blue: #244bd7;
  --line: #d7dad1;
  --display: "Bricolage Grotesque", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  color: var(--ink);
  background: var(--paper);
  font: 400 100%/1.5 "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body, p, h1, h2, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
::selection { background: #d8e2ff; color: #141e39; }

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

.skip-link {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  top: 0.5rem;
  padding: 0.65rem 1rem;
  color: white;
  background: var(--blue);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner, nav, .brand {
  display: flex;
  align-items: center;
}
.header-inner, .footer-inner { justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 5rem; }
.brand, .footer-brand {
  font: 800 2.55rem/1 var(--display);
  letter-spacing: -0.085em;
}
.brand { gap: 0.54rem; padding-block: 0.35rem; }

.brand-mark, .brand-mark::before, .brand-mark::after {
  border: 3px solid var(--blue);
  border-top: 0;
  border-radius: 0 0 50% 50% / 0 0 43% 43%;
}
.brand-mark { position: relative; width: 30px; height: 29px; transform: rotate(-8deg); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; top: 0; }
.brand-mark::before { inset-inline: 2px; bottom: 2px; }
.brand-mark::after { inset-inline: 7px; bottom: 7px; }

nav { gap: clamp(1rem, 2.6vw, 2.75rem); }
nav a, .footer-inner a {
  padding-block: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
nav a:hover, .footer-inner a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.8rem, 4vw, 4.8rem);
  padding-block: clamp(3.5rem, 6.6vw, 6.75rem);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.875rem;
  font-weight: 670;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow span { width: 1.75rem; height: 3px; background: var(--blue); }
h1, h2, dt { font-family: var(--display); }
h1 {
  margin-block: 1.5rem;
  font-size: clamp(3rem, 5.5vw, 5.05rem);
  font-weight: 710;
  line-height: 0.99;
  letter-spacing: -0.066em;
}
h1 span { display: block; }
.accent { color: var(--blue); }
.intro {
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.42vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
}

/* A cropped, striped U, with the smaller wordmark's open top and curved base. */
.letterpress {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  aspect-ratio: 1.17;
  background-color: var(--blue);
  background-image: radial-gradient(circle, #1735a5 0.6px, transparent 0.95px);
  background-size: 3px 3px;
}
.letterform {
  position: absolute;
  top: -22%;
  left: 8%;
  width: 83%;
  height: 107%;
  transform: rotate(-20deg);
  clip-path: polygon(0 0, 47% 0, 47% 37%, 100% 37%, 100% 100%, 0 100%);
}
.letterform i {
  --inset: calc(var(--track, 0) * 4.65cqw);
  position: absolute;
  inset: 0 var(--inset) var(--inset);
  border: 2.35cqw solid #edf1ff;
  border-top: 0;
  border-radius: 0 0 50% 50% / 0 0 calc(41.5cqw - var(--inset)) calc(41.5cqw - var(--inset));
}
.letterform i:nth-child(2) { --track: 1; }
.letterform i:nth-child(3) { --track: 2; }
.letterform i:nth-child(4) { --track: 3; }
.letterform i:nth-child(5) { --track: 4; }
.letterform i:nth-child(6) { --track: 5; }
.letterform i:nth-child(7) { --track: 6; }
.letterform i:nth-child(8) { --track: 7; }
.register {
  position: absolute;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(#d4dcff, #d4dcff) center / 100% 1px no-repeat,
    linear-gradient(#d4dcff, #d4dcff) center / 1px 100% no-repeat;
}
.top-left { top: 4%; left: 4%; }
.bottom-right { bottom: 4%; right: 4%; }

.services { border-top: 1px solid var(--line); }
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.55fr);
  gap: clamp(1.5rem, 3.4vw, 4rem);
  align-items: start;
}
.services .section-grid { padding-block: clamp(3.25rem, 5vw, 5rem); }
h2 {
  font-size: clamp(2.5rem, 3.7vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
  font-weight: 690;
}
.service {
  display: grid;
  grid-template-columns: minmax(9.5rem, 0.8fr) minmax(0, 1.55fr);
  align-items: center;
  gap: 1.3rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.service:first-child { border-top: 1px solid var(--line); }
.service dt { display: flex; align-items: center; gap: 1rem; font-size: 1.5rem; font-weight: 680; letter-spacing: -0.045em; }
.service dd { max-width: 44ch; color: var(--muted); line-height: 1.55; }
.service-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 2.4rem;
  height: 2.4rem;
  background: #e8ecfc;
  color: var(--blue);
  border-radius: 0.5rem;
}
.service-icon i { display: block; position: relative; font-style: normal; }
.web-icon, .app-icon { border: 1.8px solid currentColor; border-radius: 2px; }
.web-icon { width: 1.2rem; height: 0.92rem; }
.web-icon::before { content: ""; position: absolute; inset: 3px 0 auto; border-top: 1.5px solid; }
.app-icon { width: 0.75rem; height: 1.2rem; border-radius: 3px; }
.app-icon::after { content: ""; position: absolute; width: 4px; bottom: 2px; left: 50%; transform: translateX(-50%); border-top: 1.5px solid; }
.data-icon { width: 1.18rem; height: 1rem; background: linear-gradient(currentColor, currentColor) left bottom / 3px 44% no-repeat, linear-gradient(currentColor, currentColor) center bottom / 3px 72% no-repeat, linear-gradient(currentColor, currentColor) right bottom / 3px 100% no-repeat; }
.api-icon { font: 650 1.02rem/1 ui-monospace, Consolas, monospace; letter-spacing: -0.12em; }

.approach { color: var(--paper); background: var(--ink); }
.approach .section-grid { padding-block: clamp(3.75rem, 6.5vw, 6.5rem); }
.approach .eyebrow { padding-top: 0.4rem; }
.approach .eyebrow span { background: #aebeff; }
.approach h2 { font-size: clamp(2.8rem, 4.8vw, 5.1rem); }
.approach-copy p { margin-top: 1.25rem; font-size: 1.125rem; color: #d2d7ce; }
.footer-inner { min-height: 5.5rem; }
.footer-brand { font-size: 1.8rem; }

@media (max-width: 55rem) {
  .hero { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr); gap: 1.5rem; }
  h1 { font-size: clamp(2.55rem, 5.5vw, 3.15rem); }
  .section-grid { grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.55fr); }
  .service { grid-template-columns: 8.4rem minmax(0, 1fr); gap: 0.85rem; }
  .service dt { gap: 0.625rem; font-size: 1.3rem; }
}
@media (max-width: 43rem) {
  .header-inner { min-height: 4.3rem; }
  .brand { font-size: 2.1rem; gap: 0.38rem; }
  .brand-mark { width: 25px; height: 25px; }
  nav { gap: 1rem; }
  nav a { font-size: 0.875rem; }
  .hero, .section-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 2.9rem 2.25rem; gap: 2rem; }
  h1 { margin-block: 1rem 1.15rem; font-size: clamp(2.48rem, 8.65vw, 3.65rem); }
  .letterpress { aspect-ratio: 1.85; }
  .letterform {
    width: 62%;
    height: 155%;
    top: -60%;
    left: 21%;
    clip-path: polygon(0 0, 47% 0, 47% 56%, 100% 56%, 100% 100%, 0 100%);
  }
  .letterform i {
    --inset: calc(var(--track, 0) * 3.47cqw);
    border-width: 1.75cqw;
    border-bottom-left-radius: 50% calc(31cqw - var(--inset));
    border-bottom-right-radius: 50% calc(31cqw - var(--inset));
  }
  .section-grid { gap: 1.65rem; }
  .services .section-grid { padding-block: 2.6rem 3.1rem; }
  .service { padding-block: 1.1rem; }
  .approach .section-grid { padding-block: 3.25rem; }
}
@media (max-width: 30rem) {
  .service { grid-template-columns: 1fr; gap: 0.4rem; }
  .service dd { margin-left: 3.025rem; }
}
@media (max-width: 22rem) {
  :root { --gutter: 1rem; }
  .brand-mark { display: none; }
  nav { gap: 0.7rem; }
  h1 { font-size: 2rem; }
}
