@font-face {
  font-family: "Archivo Black";
  src: url("/fonts/archivo-black.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff") format("woff");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #e8ecef;
  --ice: #f6f8fa;
  --slate: #1b2733;
  --graphite: #4f5d6a;
  --mist: #c5cdd5;
  --cobalt: #1747d6;
  --cobalt-deep: #0f35a8;
  --sky: #5c8bff;
  --display: "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --text: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--pad); }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
.skip {
  position: absolute; left: var(--pad); top: -4rem;
  background: var(--slate); color: #fff; padding: .6rem 1rem; z-index: 10;
}
.skip:focus { top: .75rem; }

/* Header */
.top { padding-block: 1.25rem; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.mark {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: -.02em;
  text-decoration: none;
}
.top nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.top nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--graphite);
  padding-block: .25rem;
  border-bottom: 2px solid transparent;
}
.top nav a:hover { color: var(--slate); border-bottom-color: var(--cobalt); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 8vw, 7rem);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.lead {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--graphite);
}
.actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.btn {
  display: inline-block;
  background: var(--cobalt);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: .95rem 1.6rem;
  border-radius: 6px;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--cobalt-deep); }
.btn:focus-visible { outline-color: var(--slate); }
.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
  text-decoration-color: var(--cobalt);
}
.link:hover { color: var(--cobalt); }

/* Bit grid: the one memorable element */
.hero-art { justify-self: end; width: min(100%, 26rem); }
.bits { display: block; width: 100%; height: auto; }
.bits rect { fill: var(--mist); transition: fill .18s ease; }
.bits .d { fill: var(--cobalt); }
.bits .n { fill: var(--graphite); opacity: .55; }
.bits rect.hot { fill: var(--slate); opacity: 1; }
.bits .d.hot { fill: var(--sky); }

/* Sections */
.band {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
  position: relative;
}
.band::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad);
  right: var(--pad);
  height: 2px;
  background: var(--slate);
}
.band h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -.02em; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem 2rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--mist);
}
.rows li:first-child { border-top: 0; padding-top: 0; }
.rows h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -.01em; }
.rows p { color: var(--graphite); max-width: 38rem; }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.products article { border-left: 4px solid var(--cobalt); padding-left: 1.4rem; display: flex; flex-direction: column; gap: .75rem; }
.products h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -.01em; }
.products p { color: var(--graphite); }
.status {
  margin-top: auto;
  padding-top: .5rem;
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600;
  color: var(--slate) !important;
}
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--cobalt); }

/* Contact */
.contact { background: var(--cobalt); color: #fff; }
.contact-in { padding-block: clamp(3rem, 8vw, 6rem); display: grid; gap: 1.25rem; }
.contact h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.06; letter-spacing: -.025em; max-width: 18ch; }
.contact p { max-width: 36rem; color: #e3ebff; }
.contact .mail { margin-top: .75rem; }
.contact .mail a {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: .22em;
  overflow-wrap: anywhere;
}
.contact a:focus-visible { outline-color: #fff; }

/* Footer */
.foot { padding-block: 1.75rem; color: var(--graphite); font-size: .95rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--slate); text-decoration: underline; }

/* 404 */
.lost { padding-block: clamp(3rem, 10vw, 8rem); }
.lost h1 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.025em; line-height: 1.05; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; width: min(100%, 16rem); }
  .band { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 1fr; gap: .4rem; }
  .products { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .top nav { gap: 1rem; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bits rect, .btn { transition: none; }
}
