/* Layout: charcoal bands carry the brand (70%), white and mist bands carry the reading, red is reserved for nodes, buttons and the shop band (30%). */
:root {
  --carbon: #2E2B2B;
  --carbon-deep: #232020;
  --carbon-line: rgba(255, 255, 255, 0.12);
  --paper: #FFFFFF;
  --mist: #F4F2F1;
  --rule: #E4E0DE;
  --rule-strong: #CBC4C2;
  --ink: #2E2B2B;
  --ink-soft: #6E6766;
  --on-dark: #FFFFFF;
  --on-dark-soft: #B8B1AF;
  --red: #B21E27;
  --red-deep: #931820;
  --font-sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--carbon);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
section[id] { scroll-margin-top: var(--header-h); }

/* Bands */
.band { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--mist { background: var(--mist); color: var(--ink); }
.band--dark, .band--deep, .band--red {
  color: var(--on-dark);
  --label-color: var(--on-dark);
  --label-line: rgba(255, 255, 255, 0.3);
}
.band--dark { background: var(--carbon); }
.band--deep { background: var(--carbon-deep); }
.band--red { background: var(--red); --label-dot: #FFFFFF; --label-line: rgba(255, 255, 255, 0.5); }
.band--dark :focus-visible, .band--deep :focus-visible, .band--red :focus-visible, .site-header :focus-visible { outline-color: #FFFFFF; }

/* The red node at the end of a hairline, taken from the manual's chapter pages */
.label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--label-color, var(--red));
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}
.label::before {
  content: "";
  flex: none;
  width: 48px;
  height: 10px;
  background:
    radial-gradient(circle at calc(100% - 5px) 50%, var(--label-dot, var(--red)) 0 4px, transparent 4.5px),
    linear-gradient(var(--label-line, var(--rule-strong)), var(--label-line, var(--rule-strong))) 0 50% / calc(100% - 8px) 1px no-repeat;
}

/* The logo's square, used as the full stop on headlines */
.sq {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.07em;
  background: var(--red);
}
.band--red .sq { background: #FFFFFF; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 1.5rem 4rem;
}
.section-title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.section-lead {
  margin: 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}
.band--dark .section-lead, .band--deep .section-lead { color: var(--on-dark-soft); }

.spec {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 1rem/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--red { background: var(--red); color: #FFFFFF; }
.btn--red:hover { background: var(--red-deep); }
.btn--outline { border-color: rgba(255, 255, 255, 0.4); color: #FFFFFF; }
.btn--outline:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }
.btn--white { background: #FFFFFF; color: var(--red); }
.btn--white:hover { background: var(--mist); }
.btn--small { min-height: 40px; padding: 0 1.1rem; font-size: 0.9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--red);
}
.text-link:hover { text-decoration-thickness: 2px; }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--carbon);
  color: var(--on-dark);
  border-bottom: 1px solid var(--carbon-line);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}
.brand { flex: none; display: block; }
.brand img { height: 36px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--on-dark-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover { color: #FFFFFF; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #FFFFFF;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s, background-color 0.2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--carbon);
  color: var(--on-dark);
}
.hero__lattice {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 22%, rgba(0, 0, 0, 0.4) 48%, #000 78%);
  mask-image: linear-gradient(90deg, transparent 22%, rgba(0, 0, 0, 0.4) 48%, #000 78%);
}
.hero__inner { position: relative; padding-block: clamp(4.5rem, 11vw, 8.5rem) 0; }
.hero__title {
  margin: 0;
  max-width: 11.5em;
  font-weight: 300;
  font-size: clamp(2.6rem, 5.6vw, 4.75rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}
.hero__title strong { font-weight: 600; }
.hero__lead {
  margin: 1.75rem 0 2.5rem;
  max-width: 36rem;
  color: var(--on-dark-soft);
  font-size: 1.1875rem;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(3.5rem, 8vw, 6rem) 0 0;
  border-top: 1px solid var(--carbon-line);
}
.fact {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.25rem;
  padding: 1.5rem 1.5rem 2rem 0;
}
.fact + .fact { padding-left: 1.5rem; border-left: 1px solid var(--carbon-line); }
.fact dd {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 300;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.fact dt { color: var(--on-dark-soft); font-size: 0.9375rem; }

/* Solutions */
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.service {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--paper);
}
.service img { width: 64px; height: 64px; margin: -0.25rem 0 0.5rem -0.25rem; }
.service h3 { margin: 0; font-size: 1.1875rem; font-weight: 600; line-height: 1.25; }
.service p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.service .spec { margin-top: auto; padding-top: 0.75rem; }


/* Sectors */
.sectors { margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--carbon-line); }
.sector {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 1rem 3rem;
  padding-block: 2rem;
  border-top: 1px solid var(--carbon-line);
}
.sector h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.125rem);
  font-weight: 300;
  line-height: 1.1;
}
.sector p { margin: 0; color: var(--on-dark-soft); }
.sector__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.875rem; }
.sector .spec { color: var(--on-dark); }


/* Partner and client logos */
.logos { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(3rem, 6vw, 4.5rem); }
.logos > .wrap { min-width: 0; width: 100%; }
.label--lg { font-size: 1.125rem; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}
.marquee__track.is-looping { animation: marquee var(--marquee-duration, 60s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { flex: none; padding-inline: clamp(1.25rem, 3vw, 2.25rem); }
.marquee__track img { opacity: 0.85; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; flex-wrap: wrap; row-gap: 1.75rem; }
  .marquee__track.is-looping { animation: none; }
  .marquee__track [aria-hidden="true"] { display: none; }
}

/* Shop */
.shop {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3rem 5rem;
  align-items: start;
}
.shop p.shop__lead { margin: 1.5rem 0 2.25rem; max-width: 34rem; font-size: 1.125rem; color: rgba(255, 255, 255, 0.85); }
.shop__aside h3 {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.625rem; margin: 0; padding: 0; list-style: none; }
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chips a:hover { background: #FFFFFF; color: var(--red); border-color: #FFFFFF; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem 5rem;
}
.contact .section-title { font-size: clamp(2.4rem, 5vw, 4rem); }
.contact__lead { margin: 1.5rem 0 2.25rem; max-width: 30rem; color: var(--on-dark-soft); font-size: 1.125rem; }
.contact__list { margin: 0; border-top: 1px solid var(--carbon-line); }
.contact__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--carbon-line);
}
.contact__row dt { color: var(--on-dark-soft); font-size: 0.9375rem; padding-top: 0.2rem; }
.contact__row dd { margin: 0; font-size: 1.25rem; line-height: 1.4; overflow-wrap: anywhere; }
.contact__row dd a { text-decoration: none; }
.contact__row dd a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.contact__row dd .text-link { font-size: 1.125rem; text-decoration: underline; }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--carbon-deep); color: var(--on-dark-soft); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem 4rem;
  padding-block: 3.5rem;
  border-top: 1px solid var(--carbon-line);
}
.site-footer .brand img { height: 32px; }
.site-footer__tagline { margin: 1rem 0 0; max-width: 22rem; font-size: 0.9375rem; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 2rem 4rem; }
.footer-cols h2 { margin: 0 0 0.75rem; color: var(--on-dark); font-size: 0.9375rem; font-weight: 600; }
.footer-cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.footer-cols a { font-size: 0.9375rem; text-decoration: none; }
.footer-cols a:hover { color: #FFFFFF; }
.site-footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-block: 0 2rem;
  font-size: 0.875rem;
}
.site-footer__legal p { margin: 0; }
.corner-mark { flex: none; width: 160px; height: 92px; margin-bottom: -2rem; }

/* Responsive */
@media (max-width: 1040px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .sector__meta { grid-column: 2; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.5rem max(20px, env(safe-area-inset-right, 0px)) 1.25rem max(20px, env(safe-area-inset-left, 0px));
    background: var(--carbon);
    border-bottom: 1px solid var(--carbon-line);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: 0.875rem 0; border-bottom: 1px solid var(--carbon-line); font-size: 1.0625rem; }
  .section-head, .shop, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero__lattice {
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.6) 70%, #000);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.6) 70%, #000);
  }
}
@media (max-width: 640px) {
  .site-header__inner { gap: 1rem; }
  .brand img { height: 32px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service { padding: 1.75rem 1.25rem; }
  .sector { grid-template-columns: minmax(0, 1fr); padding-block: 1.75rem; }
  .sector__meta { grid-column: auto; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact, .fact + .fact { padding: 1.1rem 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--carbon-line); }
  .contact__row { grid-template-columns: minmax(0, 1fr); }
  .site-footer__legal { flex-direction: column; align-items: flex-start; }
  .corner-mark { align-self: flex-end; }
}

/* Legal pages */
.page-head {
  background: var(--carbon);
  color: var(--on-dark);
  --label-color: var(--on-dark);
  --label-line: rgba(255, 255, 255, 0.3);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem);
}
.page-head h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.page-head__meta { margin: 1.25rem 0 0; max-width: 40rem; color: var(--on-dark-soft); }

.legal {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 4rem;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem);
}
.toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.toc h2 { margin: 0 0 0.75rem; color: var(--ink-soft); font-size: 0.875rem; font-weight: 600; }
.toc ol { display: grid; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--rule); }
.toc a {
  display: block;
  margin-left: -1px;
  padding: 0.3rem 0 0.3rem 1rem;
  border-left: 1px solid transparent;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.35;
  text-decoration: none;
}
.toc a:hover { color: var(--ink); border-left-color: var(--red); }

.legal-body { min-width: 0; max-width: 44rem; }
.legal-body > section + section { margin-top: 2.75rem; }
.legal-body section[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.legal-body h2 { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
.legal-body h2 span { margin-right: 0.35em; color: var(--red); font-variant-numeric: tabular-nums; }
.legal-body h3 { margin: 1.75rem 0 0.5rem; font-size: 1.125rem; font-weight: 600; }
.legal-body p { margin: 0 0 1rem; line-height: 1.7; }
.legal-body ul { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.legal-body li { position: relative; padding-left: 1.25rem; line-height: 1.7; }
.legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  background: var(--red);
}
.legal-body a { text-decoration-color: var(--red); text-underline-offset: 0.2em; }
.legal-body .legal-intro { margin-bottom: 2.75rem; font-size: 1.1875rem; }


@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
}
