@media (max-width: 980px) {
  .site-header {
    padding: 0 14px;
  }

  .wordmark {
    width: 124px;
  }

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

  .watermark {
    left: 10px;
    bottom: 20px;
    width: 58px;
  }

  .workflow-step {
    grid-template-columns: 54px 1fr;
    gap: 18px;
  }

  .share-options {
    grid-template-columns: repeat(2, minmax(0, 140px));
  }
}

@media (max-width: 640px) {
  :root {
    --ivory: var(--black-blue);
    --charcoal: var(--black-blue);
    --line: rgba(157, 163, 166, 0.72);
    --soft-line: rgba(157, 163, 166, 0.28);
    --header-height: 52px;
    --lookbook-frame-width: calc(100vw - 28px);
    --lookbook-frame-height: auto;
    --radius-large: 22px;
    --radius: 16px;
    --radius-small: 10px;
  }

  html,
  body {
    background: var(--white);
    color: var(--black-blue);
  }

  .page-shell,
  .drawer,
  .drawer-inner,
  .right-rail,
  .home-canvas,
  .studio-canvas,
  .content-box,
  .contact-box,
  .product-stage,
  .product-main,
  .subcategory-card,
  .rail-card,
  .share-modal {
    background-color: var(--white);
  }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 8px;
    padding: 0 14px;
    background: var(--black-blue);
    border-bottom: 1px solid rgba(157, 163, 166, 0.45);
  }

  .site-header .icon-button,
  .site-header #menuButton {
    color: var(--white);
  }

  .site-header .icon-button span,
  .site-header #menuButton span {
    background: var(--white);
  }

  .site-header .wordmark img {
    filter: brightness(0) invert(1);
  }

  .header-left {
    gap: 0;
    justify-self: start;
  }

  .wordmark {
    justify-self: start;
    width: 118px;
    height: 38px;
    margin-left: 6px;
    border-radius: 0;
  }

  .header-actions {
    gap: 12px;
    justify-self: end;
  }

  .icon-button {
    width: 32px;
    height: 38px;
    border-radius: 0;
  }

  .icon-button span {
    width: 24px;
    height: 1px;
    margin: 3.5px 0;
  }

  .icon-button svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.45;
  }

  .rail-button {
    gap: 8px;
  }

  .rail-button span {
    width: 1px;
    height: 26px;
    margin: 0;
  }

  .account-panel,
  .forgot-panel,
  .signup-panel {
    top: var(--header-height);
    width: 100vw;
    height: calc(100svh - var(--header-height));
    max-height: none;
    box-shadow: none;
  }

  .account-panel-top,
  .forgot-panel-top,
  .signup-panel-top {
    justify-content: flex-end;
    min-height: 72px;
    padding: 0 18px;
  }

  .account-close,
  .forgot-close,
  .signup-close {
    font-size: 14px;
  }

  .account-close span:first-child,
  .forgot-close span:first-child,
  .signup-close span:first-child {
    font-size: 32px;
  }

  .account-panel-tabs {
    gap: 16px;
  }

  .account-panel-tabs span {
    width: 24px;
    height: 24px;
  }

  .account-panel-tabs .is-active::after {
    bottom: -25px;
    width: 36px;
  }

  .account-tab-search::before {
    width: 12px;
    height: 12px;
    border-width: 1.6px;
  }

  .account-tab-search::after {
    left: 16px;
    top: 16px;
    width: 9px;
    height: 1.6px;
  }

  .account-tab-heart::before {
    font-size: 28px;
    line-height: 22px;
  }

  .account-tab-user::before {
    left: 8px;
    width: 8px;
    height: 8px;
    border-width: 1.6px;
  }

  .account-tab-user::after {
    left: 4px;
    top: 16px;
    width: 16px;
    height: 9px;
    border-width: 1.6px;
  }

  .account-tab-bag::before {
    left: 3px;
    top: 8px;
    width: 18px;
    height: 15px;
    border-width: 1.6px;
  }

  .account-tab-bag::after {
    left: 8px;
    top: 2px;
    width: 8px;
    height: 8px;
    border-width: 1.6px;
  }

  .account-panel-body,
  .forgot-panel-body,
  .signup-panel-body,
  .account-signup {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .account-panel-body,
  .forgot-panel-body,
  .signup-panel-body {
    padding: 34px 24px 48px;
  }

  .account-copy h2,
  .account-signup h2 {
    font-size: 17px;
  }

  .account-copy p,
  .account-signup p,
  .account-note {
    font-size: 13px;
  }

  .account-social,
  .account-submit,
  .account-signup button {
    min-height: 52px;
    font-size: 14px;
  }

  .account-social-row {
    gap: 10px;
  }

  .account-social {
    gap: 8px;
  }

  .account-signup {
    margin-top: 18px;
    padding-top: 30px;
  }

  .page-shell {
    padding: 34px 14px 70px;
  }

  body.route-home .page-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100svh - var(--header-height));
    height: calc(100svh - var(--header-height));
    padding: 14px;
    background: #e8e8ea;
    overflow: hidden;
  }

  body.route-gallery .page-shell {
    height: calc(100svh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    padding: 0;
    overflow: hidden;
  }

  .motion-image {
    transition: opacity 680ms ease-in-out, transform 680ms ease-in-out;
  }

  .drawer-inner {
    padding: 32px 16px 34px;
  }

  .drawer {
    top: var(--header-height);
    bottom: auto;
    width: 100vw;
    height: calc(100svh - var(--header-height));
    max-height: none;
    border-right: 0;
    border-radius: 0;
    background: var(--white);
    color: var(--black-blue);
    overflow: hidden auto;
  }

  .drawer-close {
    display: none;
  }

  .drawer-search {
    display: none;
    grid-template-columns: 39px 1fr;
    align-items: center;
    gap: 0;
    margin: 0 0 22px;
  }

  .drawer-search svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: var(--black-blue);
    stroke-width: 1.7;
  }

  .drawer-search span {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(157, 163, 166, 0.45);
    border-radius: var(--radius-small);
    color: rgba(25, 30, 40, 0.72);
    font-size: 17px;
    line-height: 1;
  }

  .drawer-nav,
  .drawer-static {
    padding-left: 0;
  }

  .category-toggle,
  .drawer-static button {
    min-height: 42px;
    font-size: 11px;
    line-height: 1;
    color: var(--black-blue);
  }

  .subcategory-card span {
    font-size: 10.5px;
    line-height: 1.12;
  }

  .category-toggle::before {
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-top-width: 1.5px;
    border-right-width: 1.5px;
    border-color: var(--black-blue);
  }

  .category,
  .drawer-static button {
    border-color: rgba(157, 163, 166, 0.28);
  }

  .category.open .category-panel {
    padding-bottom: 34px;
  }

  .subcategory-card,
  .drawer-action-card {
    background: #e8e8ea;
    box-shadow:
      0 10px 22px rgba(25, 30, 40, 0.1),
      0 1px 3px rgba(25, 30, 40, 0.12);
  }

  .subcategory-card.has-image img {
    align-self: center;
    justify-self: center;
    width: min(48%, 96px);
    height: auto;
    max-height: 38%;
    object-fit: contain;
  }

  .subcategory-card,
  .drawer-action-card,
  .rail-card {
    border-color: rgba(157, 163, 166, 0.38);
    color: var(--black-blue);
  }

  .drawer-static {
    margin-top: 10px;
  }

  .home-canvas,
  .studio-canvas,
  .content-box,
  .contact-box {
    width: calc(100vw - 28px);
    padding: 34px 22px;
  }

  body.route-home .home-canvas {
    height: auto;
    min-height: 0;
    max-height: calc(100svh - var(--header-height) - 28px);
    padding: 56px 22px;
    background: var(--white);
    box-shadow:
      0 16px 34px rgba(25, 30, 40, 0.12),
      0 2px 6px rgba(25, 30, 40, 0.1);
    overflow: visible;
  }

  .product-stage {
    width: calc(100vw - 28px);
    aspect-ratio: 4 / 5;
    height: auto;
    padding: 0;
  }

  body.route-gallery .product-stage,
  body.route-gallery .studio-canvas {
    width: 100vw;
    height: calc(100svh - var(--header-height));
    aspect-ratio: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--white);
    overflow: hidden;
  }

  body.route-gallery .product-main,
  body.route-gallery .service-main,
  body.route-gallery .product-main img,
  body.route-gallery .studio-rendering {
    border-radius: 0;
  }

  body.route-gallery .product-main,
  body.route-gallery .service-main {
    padding: 0;
  }

  body.route-gallery .product-main,
  body.route-gallery .studio-canvas {
    touch-action: pan-y;
  }

  body.route-gallery .service-main {
    padding: 38px 24px 76px;
  }

  body.route-gallery .service-main p {
    font-size: 20px;
  }

  body.route-gallery .service-kicker {
    font-size: 10px !important;
  }

  body.route-gallery .product-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  body.route-rendering-catalog .product-main img {
    object-fit: cover;
  }

  .gallery-arrow {
    background: var(--black-blue);
    color: var(--white);
    width: 30px;
    height: 30px;
  }

  .gallery-arrow.is-over-dark {
    background: var(--white);
    color: var(--black-blue);
  }

  .gallery-arrow span {
    border-width: 1.75px;
    width: 12px;
    height: 12px;
  }

  .gallery-arrow-previous span {
    left: 1.5px;
  }

  .gallery-arrow-next span {
    left: -1.5px;
  }

  .gallery-controls {
    bottom: 18px;
    grid-template-columns: 30px 30px;
    gap: min(40vw, 172px);
  }

  .studio-canvas {
    aspect-ratio: 4 / 5;
    height: auto;
    padding: 0;
  }

  .display-title {
    margin-bottom: 36px;
  }

  .intro-copy p {
    font-size: 12px;
    line-height: 1.45;
  }

  .service-item p {
    font-size: 20px;
  }

  .right-rail {
    top: var(--header-height);
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: calc(100svh - var(--header-height));
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateX(100%);
    background: var(--white);
    color: var(--black-blue);
  }

  .right-rail.open {
    transform: translateX(0) !important;
  }

  .rail-grid {
    gap: 14px 12px;
    padding: 22px 14px 40px;
  }

  .rail-card {
    background: #e8e8ea;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    box-shadow:
      0 10px 22px rgba(25, 30, 40, 0.1),
      0 1px 3px rgba(25, 30, 40, 0.12);
  }

  .rail-empty-card,
  .rail-empty-card:disabled {
    background: #e8e8ea;
  }

  .rail-card img {
    background: transparent;
  }

  body.route-product .right-rail .rail-card:not(.rail-text-card):not(.rail-card-caption) {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.route-product .right-rail .rail-card:not(.rail-text-card):not(.rail-card-caption) img {
    width: 72px;
    height: 56px;
    object-fit: contain;
    background: var(--white);
  }

  .rail-card-label {
    min-height: 20px;
    font-size: 10px;
  }

  #shareModal .share-options svg,
  #shareModal .share-options svg.brand-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
  }

  #shareModal .share-options {
    grid-template-columns: repeat(2, minmax(0, 104px));
    gap: 14px 18px;
    margin-top: 42px;
  }

  #shareModal .share-options button {
    width: 104px;
    height: 104px;
    min-height: 104px;
    display: grid;
    place-items: center;
    align-content: center;
    grid-template-rows: 34px 24px;
    gap: 8px;
    border: 1px solid rgba(157, 163, 166, 0.38);
    border-radius: 10px;
    background: #e8e8ea;
    color: var(--black-blue);
    box-shadow:
      0 10px 22px rgba(25, 30, 40, 0.1),
      0 1px 3px rgba(25, 30, 40, 0.12);
    font-size: 14px;
    line-height: 1;
  }

  .watermark {
    display: none;
  }
}
