/* Tablet and mobile adjustments, reduced-motion overrides. Keep this after the section files. */

@media (width<=1100px) {
  .bom__row {
    grid-template-columns: 10em 1fr;
  }
  .bom__row > span:last-child {
    border-left: 0;
    grid-column: 2;
    padding-top: 0;
  }
  .bom__row--h > span:last-child {
    display: none;
  }
}
@media (width<=900px) {
  :root {
    --cell: 56px;
    --pad: 16px;
  }
  body {
    font-size: 16px;
  }
  .hdr__status {
    display: none;
  }
  .hero {
    padding-top: calc(var(--cell) + 28px);
    grid-template-rows: auto 1fr auto auto;
    grid-template-columns: 1fr;
    gap: 6px;
    padding-bottom: 80px;
  }
  .hero__tag--tl,
  .hero__tag--bl,
  .hero__tag--tr,
  .hero__tag--br {
    grid-column: 1;
    justify-self: start;
    padding: 0;
  }
  .hero__tag--tr {
    grid-row: 1;
    justify-self: end;
  }
  .hero__tag--bl {
    grid-row: 3;
  }
  .hero__tag--br {
    grid-row: 4;
  }
  .hero__title {
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 62svh;
    font-size: clamp(40px, 12.5vw, 64px);
  }
  .hero__l,
  .hero__r {
    padding: 0;
  }
  .hero__frame {
    width: 74vw;
  }
  .hero__read {
    display: none;
  }
  .ch-head {
    top: var(--cell);
    padding: 10px var(--pad);
  }
  .about,
  .contact,
  .proj__body {
    grid-template-columns: 1fr;
  }
  .titleblock [role="row"] {
    grid-template-columns: 8.5em 1fr;
  }
  .about__does li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .path {
    border-top: 0;
    border-left: 1px solid var(--rule-2);
    grid-template-columns: 1fr;
    margin-left: 6px;
  }
  .path:before {
    width: 2px;
    height: calc(var(--p, 0) * 100%);
    top: 0;
    left: -1px;
  }
  .path__item,
  .path__item + .path__item {
    border-right: 0;
    padding: 4px 0 30px 24px;
  }
  .path__item:before,
  .path__item + .path__item:before {
    top: 12px;
    left: -5px;
  }
  .bom__row {
    grid-template-columns: 1fr;
  }
  .bom__row > span:first-child {
    border-right: 0;
    padding-bottom: 4px;
  }
  .bom__row > span:nth-child(2),
  .bom__row > span:last-child {
    grid-column: 1;
    padding-block: 2px;
  }
  .bom__row > span:last-child {
    padding-bottom: 14px;
  }
  .bom__row--h {
    display: none;
  }
  .proj__viz {
    aspect-ratio: 4/3;
  }
  .ftr {
    flex-direction: column;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  :before,
  :after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .about__lede .w {
    opacity: 1;
  }
}
