@media screen and (max-width: 1060px) {
  .hero,
  .about-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4.5rem;
  }

  h1 {
    max-width: 12ch;
  }

  .hero-visual {
    max-width: 720px;
  }

  .portrait-stage {
    min-height: 560px;
  }

  .section-kicker {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .section-kicker .eyebrow {
    margin-top: 0;
  }

  .about-image {
    min-height: 460px;
  }

  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 820px) {
  .site-header {
    width: min(calc(100% - 20px), var(--max-width));
    margin-top: 10px;
  }

  .nav-toggle {
    position: relative;
    z-index: 102;
    display: grid;
    place-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .nav-panel {
    position: fixed;
    inset: 76px 10px auto;
    z-index: 101;
    display: grid;
    gap: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(10, 13, 16, 0.96);
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-panel a {
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    font-size: 1rem;
  }

  .nav-panel a:last-child {
    border-bottom: 0;
  }

  .section-shell,
  .site-footer {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .signal-grid,
  .experience-row,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-content {
    padding: 1.2rem;
  }

  .principle {
    min-height: 250px;
  }

  .principle span {
    margin-bottom: 2.4rem;
  }
}

@media screen and (max-width: 560px) {
  body {
    background-size: 48px 48px, 48px 48px, auto, auto, auto;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 3rem;
  }

  h1 {
    font-size: clamp(3.35rem, 17vw, 5rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(2.45rem, 13vw, 4.15rem);
    line-height: 1.05;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .signal-grid div {
    min-height: 92px;
  }

  .portrait-stage {
    min-height: 430px;
  }

  .focus-board {
    grid-template-columns: 1fr;
  }

  .about,
  .work,
  .stack,
  .principles,
  .contact {
    padding: 4.2rem 0;
  }

  .about-image {
    min-height: 360px;
  }

  .experience-row div,
  .stack-column,
  .principle {
    min-height: auto;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .project-meta span {
    width: 100%;
  }

  .contact-rail {
    padding-bottom: 0.4rem;
  }

  .contact-rail a {
    flex-basis: auto;
    min-width: 108px;
  }

  .site-footer {
    display: grid;
  }
}
