/* ==================================================================
   Radiolayer — single page, v2

   Brand kept from radiolayer.com: the logo, black and white only,
   Inconsolata for running text, a heavy platform sans for headings,
   the black pill button. What changed is the structure: capabilities
   as a numbered grid instead of long bullet lists, and dark bands at
   the top and bottom so the page has a beginning and an end.
   ================================================================== */

/* Self-hosted, weight 400 only: no third-party request before first
   paint and no visitor IP handed to Google. */
@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inconsolata-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inconsolata-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0B0B0C;
  --paper: #FFFFFF;
  --text: #2E2E30;
  --muted: #5E5E60;
  --rule: #E3E3E0;
  --band: #F4F4F1;
  --dark-rule: #26262A;
  --dark-muted: #9C9CA0;
  --head-h: 140px;
  --mono: 'Inconsolata', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* The live site's headings resolve to the platform sans, not a webfont. */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
          Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* sticky header height, so anchored sections don't land underneath it */
  scroll-padding-top: var(--head-h);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
}

a { color: inherit; }

/* Hyphenated compounds kept whole: at column widths the browser otherwise
   breaks "Wi-" / "Fi" and starts a line with "-detection". */
.nw { white-space: nowrap; }

/* Longhands, never the padding shorthand: .wrap is combined with block
   classes of equal specificity (.Hero__inner, .Split, .Foot__inner), and a
   shorthand here would reset their vertical padding by source order. */
.wrap {
  margin: 0 auto;
  max-width: 1200px;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}


/* ---------- header ----------
   White on black, continuous with the hero, so the top of the page reads as
   one block — the same composition as the social card. No bottom rule: over
   the hero it would cut the block in two, and over the white sections the
   black bar needs no help to stand out. */
.Head {
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.Head__inner {
  align-items: center;
  display: flex;
  gap: 32px;
  min-height: var(--head-h);
}

/* The file is the mark trimmed to its edges, so this width is the logo's
   visible width: 208 px, twice the 104 px it showed at before. */
.Head__logo img {
  display: block;
  height: auto;
  width: 208px;
}

.Head__nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.Head__nav a {
  color: var(--dark-muted);
  font-size: 15px;
  text-decoration: none;
  transition: color .2s ease-in-out;
}

.Head__nav a:hover { color: var(--paper); }

.Btn {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 30px;
  color: var(--paper);
  display: inline-block;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1;
  padding: 13px 24px;
  text-decoration: none;
  transition: background-color .2s ease-in-out, color .2s ease-in-out;
  white-space: nowrap;
}

.Btn:hover { background: var(--paper); color: var(--ink); }

.Btn--light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.Btn--light:hover { background: transparent; color: var(--paper); }

/* Outline pill for dark grounds — the secondary choice in the cookie bar,
   same size as the primary so neither is the easier one to press. */
.Btn--ghost {
  background: transparent;
  border-color: #4A4A50;
  color: var(--paper);
  cursor: pointer;
}

.Btn--ghost:hover { background: transparent; border-color: var(--paper); color: var(--paper); }

button.Btn { cursor: pointer; }

.Btn:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}


/* ---------- hero ----------
   The board photograph sits to the right and fades into the black from the
   left, so the headline always has a flat ground under it. The waveform along
   the bottom is a linear chirp — CSS is one of the waveforms listed below. */
.Hero {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}

.Hero__photo {
  background-image: url('/images/hero-board-dark.jpg');
  background-image: image-set(
    url('/images/hero-board-dark.webp') type('image/webp'),
    url('/images/hero-board-dark.jpg') type('image/jpeg'));
  /* right-anchored, as on the social card: the photo is wider than its box,
     and the left edge is the side that disappears under the fade anyway */
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
  bottom: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 62%;
}

/* Three fades: from the left under the headline, up from the bottom under the
   waveform, and a short one down from the top so the photo meets the black
   header without a hard edge. */
.Hero__photo::after {
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(11, 11, 12, .55) 38%, rgba(11, 11, 12, 0) 72%),
    linear-gradient(0deg, var(--ink) 0%, rgba(11, 11, 12, 0) 34%),
    linear-gradient(180deg, var(--ink) 0%, rgba(11, 11, 12, 0) 14%);
  content: "";
  inset: 0;
  position: absolute;
}

.Hero__inner {
  padding-bottom: 190px;
  padding-top: 110px;
  position: relative;
  z-index: 1;
}

.Hero__title {
  font-family: var(--sans);
  font-size: 68px;
  font-weight: 900;
  letter-spacing: -1.6px;
  line-height: 1.02;
  margin: 0;
  /* Two lines rather than one long one across the photo. "Hardware-Accelerated"
     measures ~720 px at this size, so the cap has to clear that or the word
     splits at its hyphen. */
  max-width: 760px;
}

.Hero__sub {
  /* a step up from --dark-muted: still secondary to the headline, but it
     carries the positioning line so it shouldn't recede as far */
  color: #C8C8CC;
  font-size: 24px;
  line-height: 1.45;
  margin: 22px 0 0;
  max-width: 44ch;
}

.Hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 44px;
}

.Hero__more {
  color: var(--dark-muted);
  font-size: 16px;
  text-decoration: none;
  transition: color .2s ease-in-out;
}

.Hero__more:hover { color: var(--paper); }

.Hero__wave {
  bottom: 34px;
  display: block;
  height: 96px;
  left: 0;
  opacity: .42;
  pointer-events: none;
  position: absolute;
  width: 100%;
}


/* ---------- shared section furniture ---------- */
.Block { padding: 110px 0 120px; }

.Block--band { background: var(--band); }

.Label {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .16em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.H2 {
  font-family: var(--sans);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.8px;
  line-height: 1.1;
  margin: 0 0 52px;
}


/* ---------- capabilities ----------
   A ruled grid rather than cards: the outer border comes from the grid, the
   inner ones from each cell, so the lines meet cleanly like a spec sheet.
   Seven capabilities leave one cell, and the contact prompt fills it. */
.Caps {
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.Cap {
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px 26px 32px;
}

.Cap__num {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .08em;
  margin-bottom: 44px;
}

.Cap__title {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.3px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.Cap__text {
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.Cap--cta {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  justify-content: space-between;
  text-decoration: none;
  transition: background-color .2s ease-in-out;
}

.Cap--cta .Cap__title {
  font-size: 26px;
  margin-top: 4px;
}

.Cap__more {
  color: var(--dark-muted);
  font-size: 16px;
  transition: color .2s ease-in-out;
}

.Cap--cta:hover { background: #1C1C1F; }
.Cap--cta:hover .Cap__more { color: var(--paper); }


/* ---------- deliverables ----------
   Behind it, the DSS-14 70 m antenna at Goldstone (NASA/JPL, public domain),
   greyscale, slightly blurred and washed into the band colour. The wash, blur
   and fades are baked into the file: the section's text sits on a known
   ground, and a live CSS blur over a full-width band is costly to paint. */
#deliverables {
  background-color: var(--band);
  background-image: url('/images/deliver-dish.jpg');
  background-image: image-set(
    url('/images/deliver-dish.webp') type('image/webp'),
    url('/images/deliver-dish.jpg') type('image/jpeg'));
  background-position: left center;
  background-repeat: no-repeat;
  background-size: cover;
}

.Split {
  align-items: start;
  display: grid;
  gap: 60px;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

/* The heading follows the list down, so its column never sits empty. */
.Split__head {
  position: sticky;
  top: 120px;
}

.Split__head .H2 { margin-bottom: 0; }

.List {
  list-style: none;
  margin: 0;
  padding: 0;
}

.List li {
  border-top: 1px solid #DADAD6;
  color: var(--text);
  padding: 20px 0 20px 40px;
  position: relative;
}

.List li:last-child { border-bottom: 1px solid #DADAD6; }

/* A filled square rather than a bullet — it echoes the squared-off logo. */
.List li::before {
  background: var(--ink);
  content: "";
  height: 8px;
  left: 6px;
  position: absolute;
  top: 31px;
  width: 8px;
}


/* ---------- tools ----------
   Same ruled grid as the capabilities, so the page has one visual system.
   Three across. Marks are greyscale so a dozen brand palettes don't compete
   with a black-and-white page — and read as tools used, not partners.

   Six tracks, each card spanning two: an incomplete last row then stretches
   across the full width instead of leaving ruled empty cells, whatever the
   count. */
.Tools {
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.Tool {
  align-items: center;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
  grid-column: span 2;
  justify-content: center;
  min-height: 160px;
  padding: 28px 20px 24px;
  text-align: center;
}

.Tool:last-child:nth-child(3n+1) { grid-column: span 6; }
.Tool:nth-last-child(2):nth-child(3n+1),
.Tool:last-child:nth-child(3n+2) { grid-column: span 3; }

.Tool img {
  display: block;
  filter: grayscale(1);
  height: var(--h, 40px);
  max-width: 80%;
  object-fit: contain;
  opacity: .88;
  width: auto;
}

.Tool__cap {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .03em;
}

/* Two marks in one card (AMD beside Xilinx), split by a hairline the way a
   co-brand lockup is. The percentage max-width is dropped inside the pair:
   it would resolve against a shrink-to-fit flex box. */
.Tool__pair {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: center;
}

.Tool__pair img { max-width: none; }

.Tool__sep {
  align-self: stretch;
  background: var(--rule);
  width: 1px;
}


/* ---------- contact ---------- */
.Contact {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0 110px;
}

.Contact__title {
  font-family: var(--sans);
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -1.4px;
  line-height: 1.02;
  margin: 0 0 30px;
}

.Contact__title span { text-transform: uppercase; }

.Contact__text {
  color: var(--dark-muted);
  font-size: 19px;
  margin: 0 0 52px;
  max-width: 46ch;
}

.Contact__label {
  color: var(--dark-muted);
  font-size: 14px;
  letter-spacing: .16em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.Contact__mail {
  font-family: var(--sans);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 0;
}

.Contact__mail a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color .2s ease-in-out;
}

.Contact__mail a:hover { text-decoration-color: var(--dark-muted); }


/* ---------- footer ---------- */
.Foot {
  background: var(--ink);
  border-top: 1px solid var(--dark-rule);
  color: var(--dark-muted);
  font-size: 14px;
}

.Foot__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 30px;
  padding-top: 26px;
}

/* trimmed file: 73 px here is the same visible size as before */
.Foot__inner img {
  display: block;
  height: auto;
  opacity: .7;
  width: 73px;
}

.Foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-left: auto;
  margin-right: 18px;
}

.Foot__links a {
  color: var(--dark-muted);
  text-decoration: none;
  transition: color .2s ease-in-out;
}

.Foot__links a:hover { color: var(--paper); }


/* ---------- cookie consent ----------
   A black bar across the bottom, in the header's colours, so it reads as
   part of the site rather than a third-party overlay. Only shown when an
   analytics ID is configured in site.js. The author display below would
   outrank the [hidden] attribute, so hidden gets its own rule. */
.Consent[hidden] { display: none; }

.Consent {
  background: var(--ink);
  border-top: 1px solid var(--dark-rule);
  bottom: 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
  color: var(--paper);
  left: 0;
  position: fixed;
  right: 0;
  z-index: 60;
}

.Consent__Body {
  align-items: center;
  display: flex;
  gap: 20px 36px;
  padding-bottom: 20px;
  padding-top: 20px;
}

/* position only, never opacity: an opacity animation holds at 0 in a tab
   the browser isn't painting */
.Consent.-in .Consent__Body { animation: consentIn .26s ease-out; }

@keyframes consentIn {
  from { transform: translateY(14px); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .Consent.-in .Consent__Body { animation: none; }
}

.Consent__Text {
  color: var(--dark-muted);
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.Consent__Text a { color: var(--paper); }

.Consent__Actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}


/* ---------- privacy page ---------- */
.Legal { padding: 90px 0 110px; }

.Legal__title {
  font-family: var(--sans);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.05;
  margin: 0 0 14px;
}

.Legal__date {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .06em;
  margin: 0 0 44px;
}

.Legal__body { max-width: 72ch; }

.Legal__body p {
  color: var(--text);
  font-size: 17px;
  margin: 0 0 18px;
}

.Legal__body .Legal__lead {
  color: var(--ink);
  font-size: 19px;
  margin-bottom: 40px;
}

.Legal__body h2 {
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.3px;
  margin: 44px 0 16px;
  padding-top: 30px;
}

.Legal__body a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}


/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .Hero__photo { width: 100%; }
  .Hero__photo::after {
    background:
      linear-gradient(90deg, rgba(11, 11, 12, .92) 0%, rgba(11, 11, 12, .6) 70%, rgba(11, 11, 12, .45) 100%),
      linear-gradient(0deg, var(--ink) 0%, rgba(11, 11, 12, 0) 40%),
      linear-gradient(180deg, var(--ink) 0%, rgba(11, 11, 12, 0) 14%);
  }
  .Hero__title { font-size: 54px; max-width: 620px; }
  .Hero__sub { font-size: 22px; }
  .Hero__inner { padding-bottom: 170px; padding-top: 90px; }

  .Caps { grid-template-columns: repeat(2, 1fr); }
  .Cap { min-height: 0; }
  .Cap__num { margin-bottom: 28px; }

  .Split { gap: 36px; grid-template-columns: minmax(0, 1fr); }
  .Split__head { position: static; }

  .Tool { min-height: 140px; }
  /* three across leaves ~210 px per card: the pair shrinks to fit side by side */
  .Tool__pair { gap: 12px; }
  .Tool__pair img { height: calc(var(--h, 40px) * .82); }

  .Contact__title { font-size: 56px; }
  .Contact__mail { font-size: 32px; }
  .Block { padding: 84px 0 92px; }
}

@media (max-width: 760px) {
  .Head__nav { display: none; }
  .Head__inner { justify-content: space-between; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  /* phones keep the original logo size */
  :root { --head-h: 68px; }
  .Head__logo img { width: 88px; }
  .Btn { font-size: 14px; padding: 11px 18px; }

  .Hero__title { font-size: 36px; letter-spacing: -.8px; max-width: none; }
  .Hero__sub { font-size: 19px; margin-top: 16px; }
  .Hero__inner { padding-bottom: 150px; padding-top: 84px; }
  .Hero__wave { bottom: 26px; height: 72px; }

  .H2 { font-size: 30px; margin-bottom: 34px; }
  .Block { padding: 68px 0 76px; }

  .Caps { grid-template-columns: minmax(0, 1fr); }
  .Cap { padding: 24px 20px 28px; }
  .Cap__num { margin-bottom: 18px; }
  .Cap--cta { gap: 28px; }

  .List li { padding: 16px 0 16px 32px; }
  .List li::before { left: 4px; top: 27px; }

  /* two across; the odd ninth mark takes the full row instead of leaving a
     ruled empty cell beside it */
  .Tools { grid-template-columns: repeat(2, 1fr); }
  .Tool { gap: 12px; min-height: 118px; padding: 20px 12px 18px; }
  .Tool img { height: calc(var(--h, 40px) * .8); }
  /* undo the desktop spans (same specificity, later in the file), then let an
     odd last card take the whole row */
  .Tool,
  .Tool:last-child:nth-child(n),
  .Tool:nth-last-child(2):nth-child(n) { grid-column: auto; }
  .Tool:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* half-width cards are too narrow for a wide pair side by side: stack it.
     The square HDL icons are narrow enough to stay in a row. */
  .Tool__pair { flex-direction: column; gap: 8px; }
  .Tool__pair img { height: calc(var(--h, 40px) * .8); }
  .Tool__sep { display: none; }
  .Tool__pair.-inline { flex-direction: row; gap: 12px; }
  .Tool__pair.-inline .Tool__sep { display: block; }
  .Tool__cap { font-size: 13px; }

  .Contact { padding: 84px 0 80px; }
  .Contact__title { font-size: 40px; }
  .Contact__text { font-size: 17px; margin-bottom: 38px; }
  .Contact__mail { font-size: 24px; overflow-wrap: anywhere; }

  .Foot__inner { align-items: flex-start; flex-direction: column; }
  .Foot__links { margin: 0; }

  /* stacked, with the two choices as equal halves */
  .Consent__Body { align-items: stretch; flex-direction: column; gap: 14px; padding-bottom: 16px; padding-top: 16px; }
  .Consent__Text { font-size: 14px; }
  .Consent__Actions .Btn { flex: 1 1 0; text-align: center; }

  .Legal { padding: 56px 0 72px; }
  .Legal__title { font-size: 36px; }
  .Legal__date { margin-bottom: 30px; }
  .Legal__body p { font-size: 16px; }
  .Legal__body .Legal__lead { font-size: 17px; margin-bottom: 28px; }
  .Legal__body h2 { font-size: 21px; margin-top: 34px; padding-top: 24px; }
}
