/* Mobile header: compact logo and keep all navigation items on one line. */
@media (max-width: 700px) {
	.site-header__inner {
		width: calc(100% - 32px);
		min-height: 64px;
		padding-block: 6px;
		gap: 14px;
	}
	.brand {
		width: 62px;
		gap: 5px;
		flex: 0 0 62px;
	}
	.brand__name {
		font-size: .46rem;
	}
	.site-nav {
		flex: 1 1 auto;
		justify-content: flex-end;
		gap: 11px;
		font-size: .72rem;
		white-space: nowrap;
	}
	.site-nav__lang {
		display: inline-flex;
		align-items: center;
		gap: 3px;
		margin-left: 2px;
		font-size: .58rem;
		white-space: nowrap;
	}
}

/* Mobile content layout: preserve desktop hierarchy while scaling it for small screens. */
@media (max-width: 900px) {
  .hero {
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  .hero__image {
    display: block;
    width: 100%;
    height: auto;
  }
  .hero__caption {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 7px;
    z-index: 2;
    width: calc(100% - 56px);
    max-width: 240px;
    color: #fff;
    text-align: center;
    transform: translateX(-50%);
  }
  .hero__caption p {
    margin: 0;
  }
  .hero__caption p:first-child {
    margin-bottom: 4px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1rem, 4.2vw, 1.3rem);
    line-height: 1;
  }
  .hero__caption p:nth-child(2),
  .hero__caption p:nth-child(3) {
    font-size: .52rem;
    line-height: 1.25;
    letter-spacing: .02em;
  }

  .wrap,
  .works-wrap {
    width: calc(100% - 32px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .intro-statement {
    padding-top: 32px;
    padding-bottom: 44px;
  }
  .intro-statement p {
    max-width: none;
    margin: 0 auto;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(.74rem, 2.9vw, .95rem);
    line-height: 1.28;
    letter-spacing: -.01em;
    text-align: center;
    white-space: nowrap;
  }

  .selected-works__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
  }
  .selected-works__head p,
  .selected-works__head a {
    font-size: .72rem;
    white-space: nowrap;
  }
  .selected-works__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .selected-work,
  .selected-work__image,
  .selected-work__image img {
    min-width: 0;
    width: 100%;
  }
  .selected-work__image img {
    display: block;
    height: auto;
  }

  .contact {
    padding-top: 52px;
    padding-bottom: 52px;
  }
  .contact__content {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .contact__title {
    margin: 0 0 18px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 600;
  }
  .contact__content > p:not(.contact__title) {
    margin: 0 0 12px;
    line-height: 1.45;
  }
  .desktop-contact-break {
    display: none;
  }
  .contact__group {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.45;
  }
  .contact__group + .contact__group {
    margin-top: 20px;
  }
  .footer-instagram__icon,
  .instagram-link__icon {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
  }

  .works-page {
    overflow: hidden;
  }
  .works-intro {
    padding-top: 34px;
    padding-bottom: 26px;
  }
  .works-title {
    margin: 0 0 22px;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    line-height: 1;
  }
  .works-intro__text,
  .works-intro__contact {
    max-width: 32rem;
    margin-left: 0;
    margin-right: 0;
    font-size: .88rem;
    line-height: 1.45;
  }
  .works-intro__contact {
    margin-top: 14px;
  }
  .works-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    padding-top: 0;
    padding-bottom: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .works-filters::-webkit-scrollbar {
    display: none;
  }
  .works-filter {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: .7rem;
  }
  .works-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 10px;
    padding-bottom: 48px;
  }
  .work-card,
  .work-card__image,
  .work-card__image img {
    min-width: 0;
    width: 100%;
  }
  .work-card__image img {
    display: block;
    height: auto;
  }
  .work-card__meta {
    display: block;
    padding-top: 7px;
    line-height: 1.2;
  }
  .work-card__meta span:first-child {
    display: block;
    min-width: 0;
    font-size: .66rem;
  }
  .work-card__meta span:last-child {
    display: block;
    margin-top: 2px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: .56rem;
    color: var(--color-muted);
    white-space: nowrap;
  }

  .work-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 12px;
    width: calc(100% - 32px);
    margin: 36px auto 0;
    align-items: start;
  }
  .work-detail__gallery {
    display: contents;
  }
  .work-detail__gallery-image {
    grid-column: 1;
    width: 100%;
  }
  .work-detail__gallery-image:not(:first-child) {
    grid-column: 1 / -1;
  }
  .work-detail__info {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none;
    position: static;
    padding-top: 0;
    padding-bottom: 24px;
  }
  .work-detail__top {
    display: block;
    margin-bottom: 18px;
  }
  .work-detail__back {
    display: inline-block;
    margin-top: 8px;
  }
  .work-detail__title {
    font-size: 1.05rem;
    line-height: 1.1;
  }
  .work-detail__status {
    display: block;
    margin-top: 3px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: .56rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-muted);
  }
  .work-detail__row {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    padding: 8px 0;
    font-size: .62rem;
    line-height: 1.3;
  }
  .work-detail__row span:first-child {
    color: #777;
  }
  .work-detail__enquire {
    margin-top: 20px;
    font-size: .66rem;
  }
}

/* Stable mobile header alignment across every page. */
@media (max-width: 900px) {
  .site-header {
    position: relative !important;
    z-index: 1000 !important;
    background: #fff !important;
  }
  .site-header__inner {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: calc(100% - 28px) !important;
    min-height: 72px !important;
    height: 72px !important;
    margin: 0 auto !important;
    padding-block: 0 !important;
    overflow: visible !important;
  }
  .brand {
    position: relative !important;
    z-index: 1001 !important;
    display: flex !important;
    flex: 0 0 72px !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: 72px !important;
    max-width: 72px !important;
    height: 60px !important;
    overflow: visible !important;
  }
  .brand__logo {
    display: block !important;
    width: 72px !important;
    max-width: 72px !important;
    height: auto !important;
    object-fit: contain !important;
  }
  .brand__name {
    display: flex !important;
    align-items: center !important;
    width: 72px !important;
    max-width: 72px !important;
    font-size: .34rem !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
  }
  .brand__initial {
    flex: 0 0 auto !important;
    margin-right: 8px !important;
  }
  .brand__surname {
    display: flex !important;
    flex: 1 1 auto !important;
    justify-content: space-between !important;
    min-width: 0 !important;
  }
  .site-nav {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    z-index: 1002 !important;
    width: max-content !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    font-size: .56rem !important;
    margin: 0 !important;
  }
  .site-nav__lang {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    margin-left: 1px !important;
    font-size: .52rem !important;
    white-space: nowrap !important;
  }
  .about-studio__text p {
    margin: 0 !important;
    line-height: 1.55 !important;
  }
  .about-studio__text p + p {
    margin-top: 20px !important;
  }
}

/* Desktop layout restoration. Mobile rules above remain untouched. */
@media (min-width: 901px) {
  body {
    font-family: "Instrument Sans", Arial, sans-serif;
    color: #111;
    background: #fff;
  }

  .wrap,
  .works-wrap {
    width: calc(100% - 96px);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }

  .site-header {
    position: relative;
    z-index: 100;
    background: #fff;
  }
  .site-header__inner {
    width: calc(100% - 96px);
    max-width: 1440px;
    min-height: 104px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    display: flex;
    flex-direction: column;
    width: 112px;
    flex: 0 0 112px;
    gap: 4px;
    overflow: visible;
  }
  .brand__logo {
    display: block;
    width: 112px;
    max-width: 112px;
    height: auto;
  }
  .brand__name {
    display: flex;
    align-items: center;
    width: 112px;
    font-size: .52rem;
    line-height: 1;
    letter-spacing: 0;
  }
  .brand__initial {
    flex: 0 0 auto;
    margin-right: 11px;
  }
  .brand__surname {
    display: flex;
    flex: 1 1 auto;
    justify-content: space-between;
    min-width: 0;
  }
  .site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    font-size: .78rem;
    white-space: nowrap;
  }
  .site-nav__lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    font-size: .7rem;
  }

  .hero {
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  .hero__image {
    display: block;
    width: 100%;
    height: auto;
  }
  .hero__caption {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 120px);
    color: #fff;
    text-align: center;
  }
  .hero__caption p {
    margin: 0;
  }
  .hero__caption p:first-child {
    margin-bottom: 10px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.8rem, 2.35vw, 2.55rem);
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
  }
  .hero__caption p:nth-child(2),
  .hero__caption p:nth-child(3) {
    font-size: .78rem;
    line-height: 1.45;
  }

  .intro-statement {
    padding-top: 78px;
    padding-bottom: 92px;
  }
  .intro-statement p {
    margin: 0 auto;
    max-width: 980px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.75rem, 2.15vw, 2.45rem);
    line-height: 1.18;
    text-align: center;
    letter-spacing: -.015em;
  }

  .selected-works {
    padding-bottom: 110px;
  }
  .selected-works__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: .8rem;
  }
  .selected-works__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .selected-work,
  .selected-work__image,
  .selected-work__image img {
    width: 100%;
    min-width: 0;
  }
  .selected-work__image img {
    display: block;
    height: auto;
  }

  .contact {
    padding-top: 92px;
    padding-bottom: 110px;
  }
  .contact__content {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .contact__title {
    margin: 0 0 28px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 600;
  }
  .contact__content > p:not(.contact__title) {
    margin: 0 0 14px;
    line-height: 1.55;
    font-size: .9rem;
  }
  .contact__group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
    font-family: inherit;
    font-size: .9rem;
    line-height: 1.55;
  }
  .contact__group + .contact__group {
    margin-top: 24px;
  }

  .site-footer__inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .75rem;
  }
  .site-footer__links {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .footer-instagram,
  .instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }
  .footer-instagram__icon,
  .instagram-link__icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
  }

  .works-intro {
    padding-top: 72px;
    padding-bottom: 52px;
  }
  .works-title {
    margin: 0 0 34px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 3.2rem;
    line-height: 1;
    font-weight: 500;
  }
  .works-intro__text,
  .works-intro__contact {
    max-width: 650px;
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
  }
  .works-intro__contact {
    margin-top: 14px;
  }
  .works-filters {
    display: flex;
    align-items: center;
    gap: 26px;
    padding-bottom: 30px;
  }
  .works-filter {
    font-size: .76rem;
    cursor: pointer;
  }
  .works-filter.is-active {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .works-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 18px;
    padding-bottom: 120px;
  }
  .work-card,
  .work-card__image,
  .work-card__image img {
    width: 100%;
    min-width: 0;
  }
  .work-card__image img {
    display: block;
    height: auto;
  }
  .work-card__meta {
    display: block;
    padding-top: 10px;
    font-size: .76rem;
    line-height: 1.3;
  }
  .work-card__meta span:first-child {
    display: block;
  }
  .work-card__meta span:last-child {
    display: block;
    margin-top: 2px;
    color: #777;
    font-family: inherit;
    font-size: .68rem;
    white-space: nowrap;
  }

  .about-studio {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 64px;
    align-items: start;
    padding-top: 72px;
    padding-bottom: 120px;
  }
  .about-studio__images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .about-studio__image,
  .about-studio__image img {
    width: 100%;
    min-width: 0;
  }
  .about-studio__image img {
    display: block;
    height: auto;
  }
  .about-studio__text {
    max-width: 620px;
    font-size: .9rem;
    line-height: 1.6;
  }
  .about-studio__text p {
    margin: 0;
  }
  .about-studio__text p + p {
    margin-top: 24px;
  }

  .work-detail {
    padding-top: 64px;
    padding-bottom: 120px;
  }
  .work-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
    gap: 36px;
    align-items: start;
  }
  .work-detail__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .work-detail__gallery-image,
  .work-detail__gallery-image img {
    width: 100%;
    min-width: 0;
  }
  .work-detail__gallery-image img {
    display: block;
    height: auto;
  }
  .work-detail__gallery-image:first-child {
    grid-column: 1 / -1;
  }
  .work-detail__info {
    position: sticky;
    top: 130px;
    padding-top: 2px;
  }
  .work-detail__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 42px;
  }
  .work-detail__title {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.7rem;
    line-height: 1.05;
    font-weight: 600;
  }
  .work-detail__status {
    display: block;
    margin-top: 5px;
    font-family: "Instrument Sans", Arial, sans-serif;
    font-size: .68rem;
    line-height: 1.2;
    font-weight: 400;
    color: #777;
  }
  .work-detail__back {
    flex: 0 0 auto;
    font-size: .72rem;
    color: #777;
  }
  .work-detail__row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 22px;
    padding: 10px 0;
    border-top: 1px solid #e6e6e6;
    font-size: .82rem;
    line-height: 1.4;
  }
  .work-detail__row span:first-child {
    color: #777;
  }
  .work-detail__enquire {
    display: inline-block;
    margin-top: 34px;
    font-size: .82rem;
    border-bottom: 1px solid currentColor;
  }

  /* Refined desktop gallery layout. */
  .selected-works {
    width: 52vw;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }
  .selected-work__image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
  }
  .selected-work__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .works-content-layout {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(0, 52vw) minmax(120px, 1fr);
    column-gap: 32px;
    align-items: start;
    width: 100%;
  }
  .works-filters {
    grid-column: 1;
    justify-self: end;
    align-self: start;
    position: sticky;
    top: 132px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 130px;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .works-filter {
    text-align: left;
    white-space: nowrap;
  }
  .works-grid {
    grid-column: 2;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .work-card__image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
  }
  .work-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .about-studio {
    grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
    gap: 56px;
    width: 58vw;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
  }
  .about-studio__image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
  }
  .about-studio__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Mobile hamburger navigation. Desktop navigation remains unchanged. */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    position: fixed !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 2002 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
  }
  .mobile-menu-toggle span {
    display: block !important;
    width: 20px !important;
    height: 1.5px !important;
    margin: 0 auto !important;
    background: #111 !important;
    transition: transform .2s ease, opacity .2s ease !important;
  }
  body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg) !important;
  }
  body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0 !important;
  }
  body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg) !important;
  }
  .site-nav {
    position: fixed !important;
    top: 58px !important;
    right: 14px !important;
    left: auto !important;
    transform: none !important;
    z-index: 2001 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 170px !important;
    padding: 18px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.08) !important;
    font-size: .78rem !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .18s ease, visibility .18s ease !important;
  }
  body.mobile-menu-open .site-nav {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .site-nav > a {
    display: block !important;
    width: 100% !important;
    white-space: nowrap !important;
  }
  .site-nav__lang {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 4px 0 0 !important;
    font-size: .72rem !important;
    white-space: nowrap !important;
  }
}

.about-studio__contact-link {
  margin-top: 32px !important;
}
.about-studio__contact-link a {
  display: inline-block;
  border-bottom: 1px solid currentColor;
}

/* Desktop canvas guard: keep the site full-width while preserving the existing inner layout. */
@media (min-width: 901px) {
  html,
  body {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body {
    color: #111 !important;
    background: #fff !important;
    overflow-x: hidden;
  }
  .site-header,
  main,
  .site-footer {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  a {
    color: inherit !important;
  }
}

/* Restore approved desktop hero proportions and caption sizing only. */
@media (min-width: 901px) {
  .hero {
    width: calc(100% - 96px) !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero__image {
    width: 100% !important;
    height: auto !important;
  }
  .hero__caption {
    left: 50% !important;
    bottom: 32px !important;
    transform: translateX(-50%) !important;
    width: max-content !important;
    max-width: calc(100% - 120px) !important;
    text-align: center !important;
    color: #fff !important;
  }
  .hero__caption p:first-child {
    margin-bottom: 10px !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(1.8rem, 2.35vw, 2.55rem) !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
  }
  .hero__caption p:nth-child(2),
  .hero__caption p:nth-child(3) {
    font-size: .78rem !important;
    line-height: 1.45 !important;
  }
}
