/* Under the hood: the build story as a printed service manual, with an
   engraved plate of the car and a troubleshooting chart.
   Loaded after landing.css and paper.css. */
/* Hero: copy on the left, the engraved plate bleeding off the right edge. */
.hood-hero {
  overflow: hidden;
}
.hood-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 40px;
  align-items: center;
  padding-block: 64px 72px;
}
.hood-hero-copy {
  container-type: inline-size;
  position: relative;
  z-index: 1;
}
.hood-hero h1 {
  font-family: var(--serif);
  font-size: min(84px, 15.2cqi);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 22px;
}
.hood-hero h1 span {
  font-style: italic;
  color: var(--ink-3);
}
.hood-lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 470px;
  margin-top: 26px;
}
.hood-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  font-family: var(--display);
  font-stretch: 125%;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.hood-byline::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink);
}
.hood-plate {
  margin: 0 calc((min(1200px, 100vw - 80px) - 100vw) / 2) 0 0;
  color: var(--ink);
}
.hood-plate figcaption {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-3);
  margin: 10px 0 0 6%;
}

/* Specifications: the window sticker, printed on lighter stock. */
.hood-section {
  padding-block: 88px;
  border-top: 1px solid var(--line);
}
.spec-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 70px;
  align-items: center;
}
.spec-copy > p:last-child {
  margin-top: 22px;
}
.sticker {
  background: var(--paper-light);
  color: var(--ink);
  border: 3px double var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  box-shadow: 0 18px 40px -26px #1c315066;
}
.sticker-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 16px 20px 14px;
  background: var(--ink);
  color: var(--paper-light);
}
.sticker-head strong,
.sticker-label,
.sticker-figure span {
  font-family: var(--display);
  font-stretch: 125%;
  text-transform: uppercase;
}
.sticker-head strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sticker-head span {
  display: block;
  font-size: 10px;
  color: #b9c3d3;
  margin-top: 5px;
}
.sticker-head .mono {
  font-size: 11px;
  color: var(--paper-light);
  white-space: nowrap;
}
.sticker-specs {
  margin: 0;
  padding: 6px 20px;
}
.sticker-specs > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.sticker-specs > div:last-child {
  border-bottom: 0;
}
.sticker-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  padding-top: 2px;
}
.sticker-specs dd {
  margin: 0;
  line-height: 1.55;
  font-weight: 600;
}
.sticker-specs dd small {
  display: block;
  font-weight: 500;
  color: var(--ink-2);
  font-size: 11px;
}
.sticker-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 2px solid var(--ink);
  margin: 0 20px;
}
.sticker-figure {
  position: relative;
  padding: 14px 0 12px;
  text-align: center;
}
.sticker-figure + .sticker-figure {
  border-left: 1px solid var(--line);
}
.sticker-figure strong {
  display: block;
  font-family: var(--display);
  font-stretch: 125%;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.sticker-figure span {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  margin-top: 4px;
}
.sticker-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px 16px;
  font-size: 10px;
  color: var(--ink-2);
}

/* Request path: a real sequence, so it is numbered and drawn as a route. */
.pipeline {
  position: relative;
}
.pipeline ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}
.pipeline::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 20px;
  right: calc((100% - 88px) / 5 - 20px);
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink-3) 0 14px,
    transparent 14px 24px
  );
}
.pipeline-signal {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-green);
  box-shadow: 0 0 0 4px #2c6e5126;
  opacity: 0;
  pointer-events: none;
}
.pipeline li {
  position: relative;
}
.pipeline-stop {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  margin-bottom: 20px;
}
.pipeline li:last-child .pipeline-stop {
  background: var(--ink);
  color: var(--paper-light);
}
.pipeline h3 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.pipeline p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-top: 10px;
}
.pipeline code {
  display: inline-block;
  margin-top: 12px;
  font-size: 10.5px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.pipeline-aside {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 60px;
}
.pipeline-aside article {
  border-top: 3px double var(--ink);
  padding-top: 18px;
}
.pipeline-aside h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-stretch: 125%;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pipeline-aside h3 svg {
  width: 16px;
  height: 16px;
}
.pipeline-aside p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-top: 12px;
}

/* Engineering notes as a service manual's troubleshooting chart. */
.chart {
  width: 100%;
  border-collapse: collapse;
}
.chart thead th {
  font-family: var(--display);
  font-stretch: 125%;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-2);
  padding: 0 24px 12px 0;
  border-bottom: 3px double var(--ink);
}
.chart tbody tr {
  border-bottom: 1px solid var(--line);
}
.chart tbody th,
.chart td {
  vertical-align: top;
  text-align: left;
  padding: 24px 24px 24px 0;
}
.chart tbody th {
  width: 22%;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.chart td {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.chart td:nth-child(2) {
  width: 25%;
}
.chart td:nth-child(3) {
  width: 35%;
}
.chart-code {
  padding-right: 0 !important;
}
.chart-code code {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 10.5px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 7px;
  margin-bottom: 6px;
  background: var(--paper-light);
}

/* This website, and the roadmap, as spec lists. */
.site-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
}
.site-specs > div {
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
}
.site-specs dt {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}
.site-specs dd {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.hood-closing {
  padding-block: 96px 104px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.hood-closing p {
  font-size: 17px;
  color: var(--ink-2);
  margin-top: 18px;
}
.hood-closing .hero-actions {
  justify-content: center;
}

@media (prefers-reduced-motion: no-preference) {
  .pipeline.is-live .pipeline-signal {
    animation: signal-run 2600ms linear 200ms both;
  }
  .pipeline.is-live .pipeline-stop {
    animation: stop-lit 500ms var(--ease-out) both;
  }
  /* The pulse reaches a stop every 650ms; each stop peaks as it arrives. */
  .pipeline.is-live li:nth-child(2) .pipeline-stop {
    animation-delay: 650ms;
  }
  .pipeline.is-live li:nth-child(3) .pipeline-stop {
    animation-delay: 1300ms;
  }
  .pipeline.is-live li:nth-child(4) .pipeline-stop {
    animation-delay: 1950ms;
  }
  .pipeline.is-live li:nth-child(5) .pipeline-stop {
    animation-delay: 2600ms;
  }
}
@keyframes signal-run {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  8%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(var(--run));
  }
}
@keyframes stop-lit {
  0% {
    box-shadow: 0 0 0 0 #2c6e5100;
  }
  40% {
    border-color: var(--ink-green);
    box-shadow: 0 0 0 6px #2c6e5126;
  }
  100% {
    box-shadow: 0 0 0 0 #2c6e5100;
  }
}

@media (min-width: 1500px) {
  .hood-plate {
    margin-right: calc((min(1280px, 100vw - 120px) - 100vw) / 2);
  }
}
@media (max-width: 1100px) {
  .hood-plate {
    margin-right: -24px;
  }
  .pipeline ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }
  .pipeline::before,
  .pipeline-signal {
    display: none;
  }
  .spec-section {
    gap: 40px;
  }
}
@media (max-width: 900px) {
  .hood-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 44px 52px;
  }
  .hood-plate {
    margin-inline: -24px;
  }
  .hood-plate figcaption {
    margin-inline: 24px;
  }
  .spec-section {
    grid-template-columns: 1fr;
  }
  .sticker {
    max-width: 480px;
  }
  .pipeline-aside {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .site-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .hood-plate {
    margin-inline: -18px;
  }
  .hood-plate figcaption {
    margin-inline: 18px;
  }
  .hood-lede {
    font-size: 17px;
  }
  .hood-section {
    padding-block: 56px;
  }
  .pipeline ol {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .pipeline li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 28px;
  }
  .pipeline li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 19.5px;
    top: 40px;
    bottom: 0;
    width: 1px;
    background: repeating-linear-gradient(
      var(--ink-3) 0 10px,
      transparent 10px 18px
    );
  }
  .pipeline-stop {
    margin-bottom: 0;
  }
  .site-specs {
    grid-template-columns: 1fr;
  }
  .sticker-specs > div {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .sticker-figure strong {
    font-size: 26px;
  }
}
@media (max-width: 900px) {
  /* The chart becomes one labeled entry per problem. */
  .chart thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .chart,
  .chart tbody,
  .chart tr,
  .chart tbody th,
  .chart td {
    display: block;
    width: auto !important;
  }
  .chart tbody tr {
    padding: 22px 0 18px;
  }
  .chart tbody tr:first-child {
    border-top: 3px double var(--ink);
  }
  .chart tbody th,
  .chart td {
    padding: 0;
  }
  .chart td {
    margin-top: 14px;
  }
  .chart td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--display);
    font-stretch: 125%;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 5px;
  }
  .chart-code code {
    display: inline-block;
    margin: 0 6px 0 0;
  }
}
