.menu-toggle {
  display: none;
}

.brand svg {
  position: relative;
  z-index: 100;
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 1050px) {
  html {
    overflow-x: clip;
    --mobile-control-font-size: 18px;
  }

  .brand {
    top: calc(24px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    width: 84.5325px;
    height: 46.24px;
    margin-inline: auto;
    transform: none;
  }

  .brand img {
    width: 100%;
    height: 100%;
  }

  .language-switch {
    top: calc(30.2px + env(safe-area-inset-top, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    height: 44px;
    align-items: center;
    gap: 4px;
    font-size: var(--mobile-control-font-size);
    line-height: 25px;
  }

  .language-switch button,
  .language-switch a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }

  .home {
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(136px + env(safe-area-inset-top, 0px)) 16px 40px;
  }

  .home-content {
    position: static;
    width: 100%;
    align-items: center;
    gap: 40px;
  }

  .home-content nav,
  .home .project-list,
  .home .about-list {
    width: 100%;
  }

  .home .project-list,
  .home .about-list {
    align-items: center;
    gap: 14px;
  }

  .home .project-list li {
    width: 100%;
  }

  .home .project-link,
  .home .about-link {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 48px;
    padding: 5px 0;
    justify-content: center;
    font-size: clamp(26px, 7.2vw, 38px);
    font-weight: 400;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
  }

  .home .signature {
    width: 100%;
    min-width: 0;
    height: auto;
    margin-top: 12px;
    padding: 0;
    justify-content: center;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
  }

  .portfolio-page {
    min-height: 100vh;
    padding: calc(136px + env(safe-area-inset-top, 0px)) 20px 136px;
  }

  .portfolio-grid,
  .case-row {
    display: block;
    padding-top: 0;
  }

  .case-row {
    margin-bottom: 48px;
  }

  .case-row:last-child {
    margin-bottom: 0;
  }

  .case-media {
    margin: 0 0 20px;
  }

  .case-image,
  .case-video {
    margin: 0;
  }

  .case-description {
    display: block;
    height: auto;
    font-size: 14.2px;
    line-height: 22.5px;
    overflow-wrap: anywhere;
  }

  .case-description h2 {
    font-size: 15.3px;
    line-height: 22.5px;
  }

  .case-description .description-content {
    max-height: none;
    overflow: visible;
  }

  .case-description .description-toggle {
    display: none;
  }

  .visual-column {
    display: block;
  }

  .visual-column > div {
    margin-bottom: 48px;
  }

  .visual-column > div:last-child {
    margin-bottom: 0;
  }

  .visual-column .case-mobile-description {
    display: block;
    margin: 20px 0 0;
  }

  .description-column {
    display: none;
  }

  .sidebar:not(.is-open) {
    display: none;
  }

  .sidebar.is-open {
    position: fixed;
    inset: 0;
    z-index: 96;
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: calc(136px + env(safe-area-inset-top, 0px)) 20px calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--background);
    text-align: center;
  }

  .sidebar .project-list,
  .sidebar .about-list {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .sidebar .project-list li {
    width: 100%;
  }

  .sidebar .project-link,
  .sidebar .about-link {
    width: 100%;
    min-height: 44px;
    padding: 6px 0;
    font-size: clamp(20px, calc(6.2vw - 4px), 24px);
    line-height: 1.3;
    white-space: normal;
    text-align: center;
  }

  .sidebar [aria-current="page"] {
    font-style: italic;
    font-weight: 650;
  }

  .sidebar .about-list {
    margin-top: 28px;
  }

  .sidebar .signature {
    margin-top: 12px;
    padding: 0;
    font-size: 18px;
    line-height: 25px;
    text-align: center;
  }

  .menu-toggle {
    position: fixed;
    top: calc(30.2px + env(safe-area-inset-top, 0px));
    left: max(16px, env(safe-area-inset-left, 0px));
    z-index: 101;
    display: flex;
    min-width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: var(--mobile-control-font-size);
    font-weight: 400;
    line-height: 25px;
    cursor: pointer;
  }

  .menu-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }

  html.is-menu-open,
  html.is-menu-open body {
    overflow: hidden;
  }

  html.is-menu-open #fish-layer {
    z-index: 97;
  }

}
