@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; }
.support-icon {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.support-icon::before, .support-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.6rem;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.support-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.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; }
}

.button {
  display: inline-block;
  width: fit-content;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--blue);
  border-radius: 0.45rem;
  background: var(--blue);
  color: white;
  font-weight: 650;
  line-height: 1.4;
}
.button:hover, nav .button:hover { background: #183ab7; border-color: #183ab7; color: white; text-decoration: none; }
nav a[aria-current="page"]:not(.button) { color: var(--blue); text-decoration: underline; text-underline-offset: 0.25em; }
.header-inner { flex-wrap: wrap; padding-block: 0.65rem; }
.header-inner nav { flex-wrap: wrap; max-width: 100%; }

.service-link, .text-link, .light-link {
  text-decoration: underline;
  text-decoration-thickness: 0.065em;
  text-underline-offset: 0.2em;
}
.service-link { text-decoration-color: #a9b9ef; }
.service-link:hover, .text-link { color: var(--blue); }
.text-link:hover { color: #142d8d; }
.light-link { display: inline-block; margin-top: 1.15rem; color: #d1dbff; }
.light-link:focus-visible { outline-color: white; }
.footer-company { display: flex; align-items: center; gap: 1.4rem; }
.company-details { font-size: 0.875rem; line-height: 1.6; color: var(--muted); }
.footer-inner { padding-block: 1.25rem; }
.footer-inner > a { flex-shrink: 0; }

.page-hero, .contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3.3rem, 6vw, 6rem);
}
.page-hero h1, .contact-hero h1 { max-width: 15ch; font-size: clamp(2.65rem, 5.3vw, 5rem); }
.page-hero .intro, .contact-hero .intro { max-width: 52ch; }
.breadcrumb { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.breadcrumb a { text-decoration: underline; text-underline-offset: 0.2em; }
.breadcrumb span { margin-inline: 0.45rem; color: #767b73; }
.brief, .email-panel {
  padding: clamp(1.5rem, 3.2vw, 3.25rem);
  background: #e9edfc;
  border-top: 3px solid var(--blue);
}
.brief-heading { display: flex; align-items: center; gap: 0.65rem; }
.brief-heading .service-icon { background: var(--blue); color: white; }
.brief h2, .email-panel h2 {
  margin-block: 1.15rem 0.75rem;
  font-size: clamp(1.7rem, 2.5vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.brief p:last-child, .email-panel p { line-height: 1.6; }
.reading-section { border-top: 1px solid var(--line); }
.reading-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.55fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 5rem);
  padding-block: clamp(3rem, 5vw, 5rem);
}
.reading-grid > h2 { max-width: 12ch; }
.chapters { max-width: 47rem; }
.chapter + .chapter { margin-top: 1.65rem; padding-top: 1.65rem; border-top: 1px solid var(--line); }
.chapter h3 { margin: 0 0 0.5rem; font: 660 clamp(1.35rem, 2vw, 1.9rem)/1.16 var(--display); letter-spacing: -0.04em; }
.chapter p { color: var(--muted); max-width: 66ch; line-height: 1.65; }
.chapter p + p { margin-top: 0.8rem; }
.chapter .text-link { display: inline-block; margin-top: 0.75rem; }
.next-step { background: var(--ink); color: var(--paper); }
.next-step .frame {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-block: clamp(2.75rem, 4.3vw, 4.5rem);
}
.next-step h2 { max-width: 21ch; font-size: clamp(2rem, 3.6vw, 3.65rem); }
.next-step .button { background: #e8edff; border-color: #e8edff; color: #182c80; }
.next-step .button:hover { background: white; }
.next-step .button:focus-visible { outline-color: white; }
.email-address { color: var(--blue); font-weight: 650; font-size: clamp(1.12rem, 2.1vw, 1.75rem); overflow-wrap: anywhere; }
.email-panel .button { margin-top: 1.2rem; }
.email-panel .mail-help { margin-top: 0.9rem; font-size: 0.9375rem; color: var(--muted); }

.work-hero { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4.5vw, 5rem); }
.work-hero .text-link { display: inline-block; margin-top: 1.25rem; font-weight: 650; }
.work-hero h1 .accent { display: inline; }
.work-figure { margin: 0; width: 100%; min-width: 0; max-width: 100%; }
.work-figure img { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--line); }
.work-figure figcaption { margin-top: 0.65rem; color: var(--muted); font-size: 0.875rem; }
.work-intro { padding-block: clamp(2.4rem, 4vw, 4.5rem); }
.work-intro h1 { margin: 0; }
.work-intro h1 span { display: inline; }
.project-band { border-top: 1px solid var(--line); }
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 5rem);
  padding-block: clamp(2.5rem, 4.8vw, 5rem);
}
.project-copy h2 { margin-block: 1rem; }
.project-link { display: inline-block; margin-top: 1.25rem; font-weight: 650; }
.platform-overview { padding: clamp(1.4rem, 3.4vw, 3.25rem); background: #e9edfc; border-top: 3px solid var(--blue); }
.platform-overview h3 { margin: 0 0 0.9rem; font: 675 clamp(1.35rem, 2.2vw, 2.1rem)/1.15 var(--display); letter-spacing: -0.04em; }
.platform-overview dl > div { display: grid; grid-template-columns: minmax(4.5rem, 0.6fr) minmax(0, 1.4fr); gap: 0.8rem; border-top: 1px solid #c4cde6; padding-block: 0.75rem; }
.platform-overview dt { font-weight: 660; }
.scope-list { margin: 0; padding-inline-start: 1.2rem; line-height: 1.7; }

@media (max-width: 50rem) {
  .page-hero, .contact-hero, .reading-grid, .project-row { grid-template-columns: minmax(0, 1fr); }
  .reading-grid > h2 { max-width: none; }
  .brief, .email-panel { max-width: 45rem; }
  .page-hero h1, .contact-hero h1 { max-width: 18ch; }
}
@media (max-width: 43rem) {
  .header-inner { column-gap: 0.55rem; row-gap: 0.25rem; }
  nav { gap: clamp(0.55rem, 2.5vw, 1rem); }
  nav .button { padding: 0.57rem 0.75rem; }
  .footer-company { flex-direction: column; align-items: start; gap: 0.25rem; }
}
@media (max-width: 26rem) {
  .header-inner .brand { font-size: 1.75rem; }
  .header-inner nav { gap: 0.5rem; }
  .header-inner nav .button { padding-inline: 0.6rem; }
}
@media (max-width: 31rem) {
  .header-inner nav { width: 100%; justify-content: space-between; }
}
