@media (max-width: 1120px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .hero-spread,
  .current-project-panel,
  .resume-layout {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    width: min(360px, 86vw);
    margin: 0 auto;
  }

  .current-project-media,
  .project-card.featured .project-image-box {
    min-height: 300px;
    border-right: 0;
    border-bottom: 4px solid var(--border);
  }

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

  .project-card:hover,
  .project-card:focus-within {
    transform: translateY(-2px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-socials {
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .nav-container {
    grid-template-columns: auto auto;
  }

  .brand {
    min-width: 0;
  }

  .nav-actions {
    justify-self: end;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 4px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--panel-ink);
    box-shadow: 8px 8px 0 var(--heavy-shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    color: var(--panel-ink);
  }

  .main-nav a:hover,
  .main-nav a:focus-visible,
  .main-nav a[aria-current="page"] {
    border-color: var(--border);
    background: var(--panel-ink);
    color: var(--panel);
  }

  .hero-spread {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-spread::before {
    inset: 42% -48% 4% 12%;
  }

  .journey-map {
    gap: 24px;
  }

  .journey-map::before {
    left: 27px;
    transform: none;
  }

  .journey-node,
  .journey-node:nth-child(odd),
  .journey-node:nth-child(even) {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .journey-node:nth-child(odd) .journey-card,
  .journey-node:nth-child(even) .journey-card {
    grid-column: 2;
  }

  .journey-marker {
    grid-column: 1;
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }

  .scroll-shuriken {
    right: 10px;
    width: 34px;
    height: 34px;
    opacity: 0.52;
  }

  .scroll-shuriken::after {
    inset: 12px;
    border-width: 3px;
  }
}

@media (max-width: 767px) {
  .scroll-ornament,
  .hero-speed-lines,
  .sound-effect-whoosh,
  .sound-effect-zap,
  .sound-effect-hero,
  .philosophy-sfx,
  .contact-sfx,
  .panel-stamp,
  .quote-annotation,
  .quote-bleed,
  .contact-ending-mark,
  .contact-signature,
  .contact-ink-splash {
    display: none !important;
  }

  .portrait-board--ornate::before,
  .portrait-board--ornate::after {
    display: none;
  }

  .portrait-nameplate {
    display: none;
  }

  .philosophy-band {
    clip-path: none;
  }

  .quote-panel.shape-rect,
  .quote-panel.shape-wide,
  .quote-panel.shape-tall,
  .quote-panel.shape-diagonal {
    clip-path: none;
  }

  .ink-divider {
    width: min(var(--container), calc(100% - 24px));
    padding: 8px 0 4px;
  }

  .ink-divider svg {
    height: 34px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .theme-toggle {
    width: 114px;
    min-height: 38px;
    font-size: 0.65rem;
  }

  .hero-copy h1,
  .page-title {
    font-size: clamp(3.3rem, 18vw, 5.3rem);
  }

  .hero-title {
    font-size: 1.05rem;
  }

  .hero-actions,
  .contact-links,
  .project-control-row {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-submit {
    width: 100%;
  }

  .button,
  .project-more,
  .contact-links a,
  .inline-link {
    width: 100%;
  }

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

  .project-card.featured {
    display: flex;
  }

  .project-card {
    min-height: 520px;
  }

  .project-popup-window {
    grid-template-columns: 1fr;
    width: min(96vw, 760px);
    height: min(82vh, 820px);
  }

  .project-popup-media {
    min-height: 240px;
  }

  .project-cover {
    padding: 18px;
  }

  .quote-panel {
    min-height: 360px;
  }

  .quote-text {
    font-size: clamp(1.15rem, 6vw, 1.7rem);
  }

  .philosophy-band {
    min-height: 58vh;
  }

  .philosophy-inner h2 {
    font-size: clamp(2.8rem, 16vw, 5rem);
  }

  .detail-list div,
  .detail-list.compact div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .resume-content {
    padding: 20px;
  }
}

@media (max-width: 460px) {
  .nav-container {
    gap: 10px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .nav-actions {
    gap: 6px;
  }

  .theme-toggle {
    width: 98px;
  }

  .story-panel,
  .journey-card,
  .resume-dossier,
  .project-card-body,
  .current-project-body,
  .quote-panel {
    padding: 18px;
  }

  .sound-effect-hero,
  .contact-sfx,
  .philosophy-sfx {
    display: none;
  }
}
