@media (max-width: 980px) {
  :root {
    --container: min(calc(100vw - 32px), 100vw - 32px);
    --container-wide: min(calc(100vw - 32px), 100vw - 32px);
    --section-gap: 96px;
    --header-height: 74px;
    --header-height-scrolled: 62px;
    --radius-soft: 22px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    font-size: 14px;
    letter-spacing: var(--type-nav-letter-spacing);
    text-transform: uppercase;
    font-weight: var(--type-nav-weight);
  }

  .site-header {
    height: var(--header-height);
  }

  .site-header__inner {
    width: 100%;
    margin: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header__inner {
    justify-content: flex-end;
  }

  .menu-toggle {
    display: none;
  }

  .brand {
    margin-left: auto;
    align-items: flex-end;
    text-align: right;
    position: relative;
    z-index: 91;
  }

  body.page-home .brand__title {
    color: #fff;
  }

  body.page-home .brand__subtitle {
    color: rgba(255, 255, 255, 0.78) !important;
  }

  body.page-home.is-on-light-section .brand__title {
    color: #3f3f41;
  }

  body.page-home.is-on-light-section .brand__subtitle {
    color: rgba(92, 92, 96, 0.82) !important;
  }

  .home-screen__panel {
    min-height: 100svh;
    justify-content: center;
    padding: var(--header-height) 0 0;
  }

  .home-screen--intro .home-screen__panel {
    position: relative;
    height: 100svh;
    min-height: 100svh;
    padding: 0;
    background: #111 url('../images/home-hero-mobile.webp') center center / cover no-repeat;
  }

  .home-screen--intro .home-screen__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.16) 0%,
      rgba(0, 0, 0, 0.08) 26%,
      rgba(0, 0, 0, 0.22) 62%,
      rgba(0, 0, 0, 0.52) 100%
    );
    pointer-events: none;
  }

  .home-intro {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    height: 100svh;
    padding: 0 0 92px;
    align-items: end;
  }

  .home-screen__panel--projects {
    padding-top: calc(var(--header-height) + 4px);
  }

  .home-intro__grid,
  .grid-2,
  .about-layout,
  .project-list-card,
  .publication-card,
  .press-item,
  .admin-grid,
  .project-stack__card {
    grid-template-columns: 1fr;
  }

  .home-intro__text {
    max-width: 320px;
    align-self: end;
  }

  .home-intro__grid {
    align-items: end;
    gap: 8px;
  }

  .home-intro__side {
    display: block;
    width: 100%;
  }

  .home-intro__visual {
    display: none !important;
  }

  .home-intro__aside {
    display: none;
  }

  body.page-home .hero-kicker,
  body.page-home .hero-title,
  body.page-home [data-home-intro-text] {
    color: #fff;
  }


  body.page-home .home-intro__text {
    margin-bottom: 0px;
  }

  body.page-home .hero-kicker {
    max-width: 320px;
  }

  body.page-home .hero-kicker {
    opacity: 0.98;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
  }

  body.page-home .hero-title {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
  }

  body.page-home [data-home-intro-text] {
    color: rgba(255, 255, 255, 0.9);
  }
  

.mobile-menu__inner {
  justify-content: flex-start;
  align-items: flex-end;
  padding: 64px 28px 20px;
}

.mobile-menu__nav {
  width: 100%;
  justify-items: end;
  gap: 6px;
}

.mobile-menu__nav a {
  text-align: right;
  font-weight: 400;
}

  .mobile-menu__close {
    top: 26px;
    right: 20px;
  }

  .home-scroll-projects__intro {
    display: grid;
    gap: 16px;
    margin-bottom: 8px;
  }

  .project-stack {
    min-height: 100svh;
  }

  .project-stack__sticky {
    top: 0;
    height: 100svh;
    overflow: visible;
    align-items: flex-start;
    padding-top: 0;
    box-sizing: border-box;
  }

  .project-stack__sticky > [data-project-stack-cards] {
    position: relative;
    width: 100%;
    height: calc(100svh - var(--header-height) - 44px);
    overflow: hidden;
  }

  .project-stack__card {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    gap: 14px;
    height: 100%;
    padding: 14px 14px 16px;
    border-radius: 22px;
  }

  .project-stack__content {
    justify-content: flex-start;
    align-self: stretch;
    min-height: 0;
    gap: 12px;
    padding-right: 0;
  }

  .project-stack__content > .stack-24 {
    flex: 1 1 auto;
    min-height: 0;
  }

  .project-stack__content > .stack-24 > * + * {
    margin-top: 14px;
  }

  .project-stack__content .stack-16 > * + * {
    margin-top: 10px;
  }

  .project-stack__visual {
    height: 34svh;
    min-height: 0;
  }

  .project-stack__meta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 18px;
    align-items: start;
  }

  .project-stack__meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .project-stack__meta-row:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .project-stack__meta-row:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .project-stack__meta-row:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .project-stack__actions {
    width: 100%;
    margin-top: auto;
    padding-top: 4px;
  }

  .project-stack__actions .text-link:last-child {
    margin-left: auto;
  }

  .preview-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-screen--publications {
    position: relative;
    top: auto;
  }

  .home-screen--publications .preview-list {
    grid-template-columns: 1fr;
    gap: 14px;
    overflow: visible;
    padding-right: 0;
  }

  .home-screen--publications .container {
    min-height: auto;
    height: auto;
    overflow: visible;
    padding-top: calc(var(--header-height) + 12px);
    padding-bottom: 18px;
  }

  .preview-card__image {
    aspect-ratio: 1.2;
  }

  .project-single-hero {
    padding: 0 0 18px;
  }

  .project-single-section {
    padding-top: 20px;
  }

  .project-single-flow {
    gap: 32px;
  }

  .project-slide__media,
  .publication-block--image img {
    border-radius: 0;
  }

  .project-slide__media {
    aspect-ratio: 1.18;
  }

  .project-slide__media img {
    max-height: none;
  }

  .project-single-slider__nav {
    width: 44px;
    height: 44px;
  }

  .project-single-slider__nav::before {
    width: 16px;
    height: 16px;
    border-top-width: 3px;
    border-left-width: 3px;
  }

  .project-single-slider__nav--prev {
    left: 12px;
  }

  .project-single-slider__nav--next {
    right: 12px;
  }

  .project-single-controls-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 14px;
  }

  .project-single-controls-spacer {
    display: none;
  }

  .project-single-group-button,
  .project-single-meta-card {
    min-width: 0;
  }

  .project-single-group-button--concept,
  .project-single-group-button--render,
  .project-single-group-button--drawings,
  .project-single-group-button--photos,
  .project-single-meta-card--year,
  .project-single-meta-card--location,
  .project-single-meta-card--function {
    grid-column: auto;
  }

  .project-single-meta-card {
    width: 100%;
    justify-self: stretch;
    align-items: flex-start;
    text-align: left;
  }

  .project-single-meta-card p,
  .project-single-meta-card .meta-label {
    width: auto;
    text-align: left;
  }

  .project-single-group-button {
    width: 100%;
    padding-bottom: 10px;
  }
  .publication-single {
    padding: 0 0 72px;
  }

  .publication-rich-text {
    max-width: none;
  }

  .publication-block + .publication-block {
    margin-top: 20px;
  }

  .publication-block--image {
    margin: 28px 0;
  }

  .press-item {
    gap: 10px;
    align-items: start;
  }

  .press-item__year {
    margin-top: 2px;
  }

  .admin-grid {
    gap: 24px;
  }


  .project-stack__description {
    max-width: none;
  }

  .project-stack__actions {
    gap: 12px;
  }

  .home-screen--publications .home-screen__panel {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 18px;
  }

  .home-screen--publications .container > .section-label {
    margin-bottom: 4px;
  }

  .home-screen--publications .preview-card {
    gap: 12px;
    padding: 12px;
    border-color: rgba(0, 0, 0, 0.045);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.03);
  }

  .home-screen--publications .preview-card__image {
    aspect-ratio: 1.28;
    border-radius: 0;
  }

  .home-screen--publications .preview-card .stack-16 {
    display: grid;
    gap: 10px;
  }

  .home-screen--publications .preview-card__actions {
    align-items: center;
    gap: 12px;
  }

  .home-screen--publications .preview-card__actions .text-link {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

}

/* Final client revisions: mobile header/home/projects */
@media (max-width: 980px) {
  .site-header__inner {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    justify-content: flex-end;
  }

  .brand {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    max-width: calc(100vw - 32px);
    margin-left: auto;
    text-align: right;
  }

  .brand__title {
    font-size: 13px;
    letter-spacing: 0.38em;
  }

  .brand__title::after {
    margin-left: 0.42em;
  }

  .brand__subtitle {
    font-size: 9px;
    letter-spacing: 0.24em;
  }

  body.page-home {
    overflow: hidden;
  }

  body.page-home .home-screen--intro .home-screen__panel {
    background-image: url('../images/home-hero-mobile.webp');
    background-position: center center;
  }

  body.page-home .home-intro {
    padding: 0 0 88px;
  }

  body.page-home .home-intro__text {
    max-width: 350px;
  }

  body.page-home .hero-kicker {
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  body.page-home .home-intro__line {
    display: none;
  }

  body.page-home .hero-title {
    margin-top: 16px;
    max-width: 350px;
    font-size: clamp(22px, 6.2vw, 28px);
    line-height: 1.05;
    letter-spacing: 0.085em;
  }

  body.projects-page {
    background: #bfc0c2;
  }

  body.projects-page.has-header-fill .site-header,
  body.projects-page.has-header-fill .site-header__inner {
    background: #bfc0c2 !important;
  }

  body.projects-page .brand__title,
  body.projects-page .brand__subtitle {
    color: #fff !important;
  }

  .projects-page main > .section {
    padding: 0;
  }

  .projects-page .project-list {
    width: 100%;
    gap: 0;
  }

  .projects-page .mobile-card-switch__sticky {
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(var(--header-height) + 54px) 18px 32px;
  }

  .projects-page .mobile-card-switch__cards {
    height: calc(100svh - var(--header-height) - 86px);
  }

  .projects-page .mobile-card-switch__card {
    grid-template-rows: auto auto;
    align-content: start;
    gap: 58px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .projects-page .mobile-card-switch__media {
    height: auto;
    aspect-ratio: 1.14;
    background: rgba(255, 255, 255, 0.16);
  }

  .projects-page .mobile-card-switch__media img {
    object-fit: cover;
  }

  .projects-page .mobile-card-switch__content {
    justify-content: flex-start;
    color: #fff;
  }

  .projects-page .mobile-card-switch__content-main {
    display: grid;
    gap: 20px;
  }

  .projects-page .mobile-card-switch__title {
    color: #fff;
    font-size: clamp(22px, 6.6vw, 30px);
    line-height: 1.14;
    letter-spacing: 0.26em;
  }

  .projects-page .mobile-card-switch__meta,
  .projects-page .mobile-card-switch__meta .card-meta {
    color: #fff;
    letter-spacing: 0.24em;
  }

  .project-single-hero {
    padding-top: 22px;
  }

  .publication-single {
    padding-top: 32px;
  }

  body:not(.page-home):not(.projects-page) main > .section:first-child {
    padding-top: 32px;
  }

  .image-lightbox {
    padding: 14px;
  }

  .image-lightbox__frame,
  .image-lightbox__image {
    max-height: calc(100svh - 28px);
  }
}


/* Final mobile typography/alignment pass */
@media (max-width: 980px) {
  .brand {
    gap: 7px;
    align-items: center;
  }

  .brand__title {
    font-family: var(--font-light);
    font-size: clamp(10px, 3.35vw, 13px);
    line-height: 1;
    font-weight: 300;
    letter-spacing: 0.38em;
  }

  .brand__title::after {
    margin-left: 0.42em;
    font-weight: 300;
    opacity: 0.9;
  }

  .brand__subtitle {
    font-family: var(--font-light);
    font-size: clamp(7.5px, 2.05vw, 9.5px);
    line-height: 1;
    font-weight: 300;
    letter-spacing: 0.24em;
    opacity: 0.88;
    transform: translateY(0.25px);
  }

  body.page-home .hero-kicker {
    font-family: var(--font-light);
    font-size: clamp(9px, 2.85vw, 11px);
    line-height: 1.25;
    font-weight: 300;
    letter-spacing: 0.15em;
    opacity: 0.9;
    text-shadow: none !important;
  }

  body.page-home .home-intro__line {
    display: block;
    width: 34px;
    height: 1px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.76);
  }

  body.page-home .hero-title {
    max-width: 350px;
    margin-top: 18px;
    font-family: var(--font-light);
    font-size: clamp(20px, 5.8vw, 25px);
    line-height: 1.08;
    font-weight: 300;
    letter-spacing: 0.075em;
    opacity: 0.9;
    text-shadow: none !important;
  }

  body.projects-page .mobile-card-switch__title {
    font-family: var(--font-light);
    font-size: clamp(20px, 6vw, 27px);
    line-height: 1.16;
    font-weight: 300;
    letter-spacing: 0.26em;
    opacity: 0.86;
  }

  body.projects-page .mobile-card-switch__meta,
  body.projects-page .mobile-card-switch__meta .card-meta {
    font-family: var(--font-light);
    font-size: 11px;
    line-height: 1.35;
    font-weight: 300;
    letter-spacing: 0.24em;
    opacity: 0.86;
  }

  body:not(.admin-body) .display,
  body:not(.admin-body) .project-title,
  body:not(.admin-body) .publication-title,
  body:not(.admin-body) .card-meta,
  body:not(.admin-body) .meta-label,
  body:not(.admin-body) .text-link,
  body:not(.admin-body) .body-copy,
  body:not(.admin-body) .rich-text p {
    font-family: var(--font-light);
    font-weight: 300;
  }
}

/* Final mobile logo refinement after client screenshots */
@media (max-width: 980px) {
  .brand {
    gap: 8px;
    align-items: center;
  }

  .brand__title {
    font-size: clamp(11px, 3.55vw, 14px);
    line-height: 1;
    letter-spacing: 0.37em;
  }

  .brand__title::after {
    margin-left: 0.43em;
  }

  .brand__subtitle {
    font-size: clamp(9.5px, 2.55vw, 11.5px);
    line-height: 1;
    letter-spacing: 0.23em;
    transform: translateY(1.4px);
  }
}


/* Cross-device readability fix: iOS/Safari can make 300-weight text with opacity look transparent */
@media (max-width: 980px) {
  body.page-home .brand__title,
  body.page-home .brand__subtitle,
  body.page-home .hero-kicker,
  body.page-home .hero-title,
  body.projects-page .brand__title,
  body.projects-page .brand__subtitle,
  body.projects-page .mobile-card-switch__title,
  body.projects-page .mobile-card-switch__meta,
  body.projects-page .mobile-card-switch__meta .card-meta {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    opacity: 1 !important;
  }

  body.page-home .brand__title::after,
  body.projects-page .brand__title::after {
    opacity: 1 !important;
  }

  body.page-home .home-intro__line {
    background: rgba(255, 255, 255, 0.92);
  }
}

/* Final client batch: mobile menu logo, unified grey pages and hero divider */
@media (max-width: 980px) {
  body.has-header-fill:not(.admin-body) {
    --bg: var(--page-grey);
    background: var(--page-grey);
  }

  body.has-header-fill:not(.admin-body) .site-header,
  body.has-header-fill:not(.admin-body) .site-header__inner {
    background: var(--page-grey) !important;
  }

  .mobile-menu__inner {
    position: relative;
    align-items: flex-end;
    justify-content: flex-start;
    padding: calc(var(--header-height) + 26px) 28px 24px;
  }

  .mobile-menu__brand.brand {
    position: absolute;
    top: 0;
    right: 16px;
    height: var(--header-height);
    margin-left: 2px;
    margin-right: 9px;
    max-width: calc(100vw - 32px);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    color: #fff !important;
  }

  .mobile-menu__nav {
    width: 100%;
    justify-items: end;
    gap: 10px;
  }

  body.page-home .home-intro__line {
    margin-top: 15px;
  }

  body.page-home .hero-title {
    margin-top: 15px;
  }

  body.has-header-fill:not(.admin-body) main > .section:first-child {
    padding-top: 34px;
  }

  .publications-page main > .section {
    padding-top: 0;
  }

  .mobile-card-switch--publications .mobile-card-switch__sticky {
    padding-top: calc(var(--header-height) + 34px);
  }

  .projects-page .mobile-card-switch__sticky {
    padding-top: calc(var(--header-height) + 34px);
  }

  .projects-page .mobile-card-switch__title,
  body.projects-page .mobile-card-switch__title {
    font-size: clamp(18px, 5.1vw, 24px);
    letter-spacing: 0.2em;
  }
}

@media (max-width: 980px) {
  .projects-page main > .section {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 980px) {
  body.has-header-fill:not(.admin-body) .project-single-hero,
  body.has-header-fill:not(.admin-body) .publication-single {
    padding-top: 34px;
  }
}

/* Final polish after 0102 screenshots: mobile menu spacing/color and grey media letterbox */
@media (max-width: 980px) {
  .mobile-menu__inner {
    padding-top: calc(var(--header-height) + 8px);
  }

  .mobile-menu__brand.brand,
  .mobile-menu__brand.brand .brand__title,
  .mobile-menu__brand.brand .brand__subtitle {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    opacity: 1 !important;
  }

  .mobile-menu__brand.brand .brand__title::after {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    opacity: 1 !important;
  }

  .projects-page .mobile-card-switch__sticky,
  .mobile-card-switch--publications .mobile-card-switch__sticky {
    padding-top: calc(var(--header-height) + 17px);
  }

  .project-single-slider,
  .project-single-slider__viewport,
  .project-slide,
  .project-slide__media,
  .project-slide__media img,
  .publication-block--image,
  .publication-block--image img,
  .about-image,
  .project-list-card__image,
  .publication-card__cover,
  .mobile-card-switch__card,
  .mobile-card-switch__media {
    background-color: var(--page-grey) !important;
  }
}

/* 0104 surgical finish: phone/tablet logo, spacing, readability and safe adaptive card layout */
@media (max-width: 980px) {
  .brand,
  .mobile-menu__brand.brand {
    gap: 7px;
    align-items: center;
  }

  .brand__title,
  .mobile-menu__brand.brand .brand__title {
    display: inline-flex;
    align-items: center;
    font-size: clamp(11px, 3.55vw, 14px);
    line-height: 1;
    letter-spacing: 0.37em;
  }

  .brand__title::after,
  .mobile-menu__brand.brand .brand__title::after {
    display: inline-flex;
    align-items: center;
    margin-left: 0.44em;
    line-height: 1;
    transform: none;
  }

  .brand__subtitle,
  .mobile-menu__brand.brand .brand__subtitle {
    display: inline-flex;
    align-items: center;
    font-size: clamp(8px, 2.25vw, 9.8px);
    line-height: 1;
    letter-spacing: 0.36em;
    transform: none;
    opacity: 1;
  }

  body.has-header-fill:not(.admin-body):not(.projects-page) .site-header .brand__title,
  body.has-header-fill:not(.admin-body):not(.projects-page) .site-header .brand__subtitle {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }

  body.has-header-fill:not(.admin-body):not(.projects-page) .site-header .brand__title::after {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    opacity: 1 !important;
  }

  body.page-home .site-header .brand__title,
  body.page-home .site-header .brand__subtitle,
  body.projects-page .site-header .brand__title,
  body.projects-page .site-header .brand__subtitle {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.16);
  }

  body.page-home .home-intro__text {
    width: 100%;
    max-width: min(560px, calc(100vw - 32px));
  }

  body.page-home .hero-kicker {
    max-width: min(560px, calc(100vw - 32px));
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
    font-weight: 400;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28) !important;
  }

  body.page-home .hero-title {
    max-width: min(560px, calc(100vw - 32px));
    font-size: clamp(18px, 5.05vw, 25px);
    line-height: 1.08;
    letter-spacing: 0.066em;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
    font-weight: 400;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.32) !important;
  }

  body.projects-page .mobile-card-switch__title,
  body.projects-page .mobile-card-switch__meta,
  body.projects-page .mobile-card-switch__meta .card-meta {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
    font-weight: 400;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.16);
  }

  .projects-page .mobile-card-switch__sticky,
  .mobile-card-switch--publications .mobile-card-switch__sticky {
    padding-top: calc(var(--header-height) + 6px) !important;
    padding-bottom: 16px !important;
  }

  .projects-page .mobile-card-switch__cards,
  .mobile-card-switch--publications .mobile-card-switch__cards {
    height: calc(100svh - var(--header-height) - 22px) !important;
  }

  .projects-page .mobile-card-switch__card {
    height: 100%;
    grid-template-rows: minmax(0, 62%) minmax(0, 1fr);
    gap: clamp(20px, 3svh, 32px);
    align-content: stretch;
    overflow: hidden;
  }

  .projects-page .mobile-card-switch__media {
    height: 100%;
    aspect-ratio: auto;
    min-height: 0;
  }

  .projects-page .mobile-card-switch__content {
    min-height: 0;
    overflow: hidden;
  }

  .projects-page .mobile-card-switch__content-main {
    gap: 9px;
    min-height: 0;
  }

  .projects-page .mobile-card-switch__title,
  body.projects-page .mobile-card-switch__title {
    max-width: 100%;
    font-size: clamp(13px, 4.14vw, 19px);
    line-height: 1.14;
    letter-spacing: 0.15em;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  .projects-page .mobile-card-switch__content-main.stack-16 > * + * {
    margin-top: 9px;
  }

  .mobile-card-switch--publications .mobile-card-switch__card {
    height: 100%;
    grid-template-rows: minmax(0, 52%) minmax(0, 1fr);
    gap: clamp(12px, 2svh, 20px);
    overflow: hidden;
  }

  .mobile-card-switch--publications .mobile-card-switch__media {
    height: 100%;
    min-height: 0;
  }

  .mobile-card-switch--publications .mobile-card-switch__content-main {
    gap: 9px;
    min-height: 0;
  }

  .mobile-card-switch__title--publication {
    max-width: 100%;
    font-size: clamp(14px, 4.5vw, 20px);
    line-height: 1.14;
    letter-spacing: 0.15em;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  .mobile-card-switch__excerpt {
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 360px) {
  body.page-home .hero-title {
    font-size: clamp(17px, 5.15vw, 19px);
    letter-spacing: 0.052em;
  }

  .projects-page .mobile-card-switch__title,
  body.projects-page .mobile-card-switch__title,
  .mobile-card-switch__title--publication {
    letter-spacing: 0.12em;
  }
}

@media (max-width: 980px) {
  body:not(.admin-body) .body-copy,
  body:not(.admin-body) .rich-text p {
    font-weight: 400;
    opacity: 1;
    color: rgba(17, 17, 17, 0.9);
  }
}

@media (max-width: 980px) {
  body.projects-page.has-header-fill main > .section:first-child,
  body.publications-page.has-header-fill main > .section:first-child {
    padding-top: 0 !important;
  }

  .projects-page .mobile-card-switch__sticky,
  .mobile-card-switch--publications .mobile-card-switch__sticky {
    top: var(--header-height);
    height: calc(100svh - var(--header-height));
    padding-top: 6px !important;
    padding-bottom: 16px !important;
  }
}

/* 0104.4 final mobile/tablet polish: balanced separator gaps, controlled title break, stronger Projects logo */
@media (max-width: 980px) {
  .site-header__inner {
    padding-left: 10px;
    padding-right: 10px;
  }

  .site-header .brand,
  .mobile-menu__brand.brand {
    flex-shrink: 0;
    max-width: none;
    gap: 8px;
    transform: translateX(-5px);
  }

  .site-header .brand__title,
  .mobile-menu__brand.brand .brand__title {
    font-size: 11.2px;
    line-height: 1;
    letter-spacing: 0.44em;
  }

  .site-header .brand__title::after,
  .mobile-menu__brand.brand .brand__title::after {
    margin-left: 0.2em;
    line-height: 1;
    transform: translateY(-1px);
  }

  .site-header .brand__subtitle,
  .mobile-menu__brand.brand .brand__subtitle {
    font-size: 8.8px;
    line-height: 1;
    letter-spacing: 0.58em;
    transform: translateY(1.35px);
  }

  body.page-home .hero-title__mobile-break {
    display: inline;
  }

  body.projects-page .site-header .brand__title,
  body.projects-page .site-header .brand__subtitle {
    font-weight: 500;
    text-shadow:
      0 0 0.35px rgba(255, 255, 255, 0.92),
      0 1px 10px rgba(0, 0, 0, 0.2) !important;
  }

  .projects-page .mobile-card-switch__sticky,
  .mobile-card-switch--publications .mobile-card-switch__sticky {
    top: var(--header-height);
    height: calc(100svh - var(--header-height));
    padding-top: 34px !important;
    padding-bottom: 16px !important;
  }

  .projects-page .mobile-card-switch__cards,
  .mobile-card-switch--publications .mobile-card-switch__cards {
    height: calc(100svh - var(--header-height) - 50px) !important;
  }

  body.page-home .hero-kicker,
  body.page-home .hero-title,
  body.projects-page .mobile-card-switch__title,
  body.projects-page .mobile-card-switch__meta,
  body.projects-page .mobile-card-switch__meta .card-meta {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
    font-weight: 400;
  }

  body.page-home .hero-kicker,
  body.page-home .hero-title {
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.34) !important;
  }

  body.projects-page .mobile-card-switch__title,
  body.projects-page .mobile-card-switch__meta,
  body.projects-page .mobile-card-switch__meta .card-meta {
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.18) !important;
  }
}

@media (max-width: 360px) {
  .site-header__inner {
    padding-left: 2px;
    padding-right: 8px;
  }

  .site-header .brand,
  .mobile-menu__brand.brand {
    transform: translateX(-12px);
  }
}

/* 0104.4 narrow phone home title: keep & DESIGN on the second line, not alone after & */
@media (max-width: 360px) {
  body.page-home .home-intro__text,
  body.page-home .hero-title {
    max-width: calc(100vw - 24px);
  }

  body.page-home .hero-title {
    font-size: clamp(16.5px, 5.05vw, 18px);
    letter-spacing: 0.02em;
  }
}

/* 0104.6 final mobile Projects card spacing and weight parity */
@media (max-width: 980px) {
  .site-header .brand__title,
  .site-header .brand__subtitle,
  .mobile-menu__brand.brand .brand__title,
  .mobile-menu__brand.brand .brand__subtitle {
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
  }

  .site-header .brand__subtitle,
  .mobile-menu__brand.brand .brand__subtitle {
    transform: translateY(1.35px);
  }

  body.projects-page .site-header .brand__title,
  body.projects-page .site-header .brand__subtitle,
  body.projects-page .mobile-card-switch__title,
  body.projects-page .mobile-card-switch__meta,
  body.projects-page .mobile-card-switch__meta .card-meta {
    font-weight: 400 !important;
    opacity: 1 !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
  }

  body.projects-page .site-header .brand__title,
  body.projects-page .site-header .brand__subtitle {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.16) !important;
  }

  body.projects-page .mobile-card-switch__title,
  body.projects-page .mobile-card-switch__meta,
  body.projects-page .mobile-card-switch__meta .card-meta {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.16) !important;
  }

  .projects-page .mobile-card-switch__card {
    grid-template-rows: minmax(0, 60%) minmax(0, 1fr);
    gap: clamp(32px, 4.2svh, 46px);
  }

  .projects-page .mobile-card-switch__content-main,
  .projects-page .mobile-card-switch__content-main.stack-16 {
    gap: 6px;
  }

  .projects-page .mobile-card-switch__content-main.stack-16 > * + * {
    margin-top: 6px;
  }
}

/* 0104.6 narrow mobile: keep the card rhythm readable after increasing the image-title gap */
@media (max-width: 360px) {
  .projects-page .mobile-card-switch__card {
    grid-template-rows: minmax(0, 59%) minmax(0, 1fr);
    gap: clamp(28px, 4svh, 40px);
  }
}

/* 0104.7 final client request: longer separator and white public typography */
body:not(.admin-body) {
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.86);
  --text-meta: rgba(255, 255, 255, 0.76);
  color: #ffffff;
}

body:not(.admin-body) :where(
  a,
  button,
  h1,
  h2,
  h3,
  h4,
  p,
  span,
  small,
  li,
  label,
  .brand__title,
  .brand__subtitle,
  .nav-link,
  .menu-toggle,
  .hero-kicker,
  .hero-title,
  .page-title,
  .project-title,
  .publication-title,
  .section-label,
  .meta-label,
  .card-meta,
  .list-meta,
  .body-copy,
  .rich-text,
  .rich-text p,
  .text-link,
  .project-list-card__title,
  .mobile-card-switch__title,
  .mobile-card-switch__meta,
  .publication-card__title,
  .publication-card__meta,
  .project-single-group-button
) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body:not(.admin-body) .brand__title::after {
  color: currentColor !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
}

@media (min-width: 981px) {
  .site-header .brand__title::after {
    font-weight: 500;
    transform: translateY(-1.1px) scaleY(1.18);
    transform-origin: center center;
  }
}

@media (max-width: 980px) {
  .site-header .brand__title::after,
  .mobile-menu__brand.brand .brand__title::after {
    font-weight: 500;
    transform: translateY(-1px) scaleY(1.18);
    transform-origin: center center;
  }
}

body:not(.admin-body) .mobile-menu,
body:not(.admin-body) .mobile-menu :where(
  a,
  button,
  h1,
  h2,
  h3,
  h4,
  p,
  span,
  small,
  li,
  label,
  .brand__title,
  .brand__subtitle,
  .mobile-menu__nav a,
  .mobile-menu__close
),
body:not(.admin-body) .mobile-menu .brand__title::after {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  text-shadow: none !important;
}

/* 0104.7 specificity lock: all public header text white outside mobile menu */
body.has-header-fill:not(.admin-body):not(.projects-page) .site-header .brand__title,
body.has-header-fill:not(.admin-body):not(.projects-page) .site-header .brand__subtitle,
body.has-header-fill:not(.admin-body):not(.projects-page) .site-header .nav-link,
body.has-header-fill:not(.admin-body):not(.projects-page) .site-header .menu-toggle,
body.has-header-fill:not(.admin-body):not(.projects-page) .site-header .brand__title::after {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

body:not(.admin-body) .mobile-menu .brand__title,
body:not(.admin-body) .mobile-menu .brand__subtitle,
body:not(.admin-body) .mobile-menu .mobile-menu__nav a,
body:not(.admin-body) .mobile-menu .mobile-menu__close,
body:not(.admin-body) .mobile-menu .brand__title::after {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  text-shadow: none !important;
}


/* 0104.8 final mobile footer and line polish */
@media (max-width: 980px) {
  body.projects-page .site-footer,
  body.publications-page .site-footer {
    padding-top: 48px;
  }
}


/* 0104.12 footer correction: client wants white copyright text again */
body:not(.admin-body) .site-footer,
body:not(.admin-body) .site-footer p {
  color: rgba(255, 255, 255, 0.78) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}


/* 0104.13 final demo logo style: Montserrat proportions from supplied demo, mobile/tablet/menu */
@media (max-width: 980px) {
  .site-header .brand,
  .mobile-menu__brand.brand {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    max-width: none;
    text-align: left;
    white-space: nowrap;
    line-height: 1;
    transform: translateX(-5px);
  }

  .site-header .brand__title,
  .mobile-menu__brand.brand .brand__title {
    display: inline-flex;
    align-items: center;
    font-family: "Montserrat", var(--font-sans);
    font-size: 13.8px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.583em;
    text-transform: uppercase;
    padding-right: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
  }

  .site-header .brand__title::after,
  .mobile-menu__brand.brand .brand__title::after {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    width: 1px;
    height: 14px;
    margin-left: 3px;
    margin-right: 11px;
    background: currentColor;
    opacity: 1;
    transform: translateY(-1px);
    transform-origin: center center;
  }

  .site-header .brand__subtitle,
  .mobile-menu__brand.brand .brand__subtitle {
    display: inline-block;
    width: auto;
    font-family: "Montserrat", var(--font-sans);
    font-size: 7.5px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.625em;
    text-transform: uppercase;
    opacity: 1;
    padding-left: 0;
    transform: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
  }

  .site-header .brand__title + .brand__subtitle,
  .mobile-menu__brand.brand .brand__title + .brand__subtitle {
    margin-top: 0;
  }
}

@media (max-width: 360px) {
  .site-header .brand,
  .mobile-menu__brand.brand {
    transform: translateX(-12px);
  }
}


/* 0104.21 mobile-only logo scale fix: preserve demo proportions, reduce whole mark after final logo rules */
@media (max-width: 980px) {
  .site-header .brand,
  .mobile-menu__brand.brand {
    transform: translateX(-5px) scale(0.88) !important;
    transform-origin: right center !important;
  }

  .site-header .brand__title,
  .mobile-menu__brand.brand .brand__title {
    font-size: 13.8px !important;
    letter-spacing: 0.583em !important;
  }

  .site-header .brand__title::after,
  .mobile-menu__brand.brand .brand__title::after {
    height: 17px !important;
    margin-left: 3px !important;
    margin-right: 11px !important;
    transform: translateY(-1px) !important;
  }

  .site-header .brand__subtitle,
  .mobile-menu__brand.brand .brand__subtitle {
    font-size: 9.2px !important;
    letter-spacing: 0.625em !important;
  }
}

@media (max-width: 360px) {
  .site-header .brand,
  .mobile-menu__brand.brand {
    transform: translateX(-12px) scale(0.88) !important;
    transform-origin: right center !important;
  }
}

/* 0104.22 mobile-only logo refinement: slightly smaller whole mark and raise Architect optically */
@media (max-width: 980px) {
  .site-header .brand,
  .mobile-menu__brand.brand {
    transform: translateX(-5px) scale(0.84) !important;
    transform-origin: right center !important;
  }

  .site-header .brand__subtitle,
  .mobile-menu__brand.brand .brand__subtitle {
    transform: translateY(-1px) !important;
  }
}

@media (max-width: 360px) {
  .site-header .brand,
  .mobile-menu__brand.brand {
    transform: translateX(-12px) scale(0.84) !important;
    transform-origin: right center !important;
  }
}

/* 1929222 mobile-only fixes: home title break and menu logo alignment */
@media (max-width: 980px) {
  body.page-home .hero-title__mobile-break {
    display: block !important;
  }

  .mobile-menu__brand.brand {
    right: 10px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: translateX(-5px) scale(0.84) translateY(2px) !important;
    transform-origin: right center !important;
  }
}

@media (max-width: 360px) {
  .mobile-menu__brand.brand {
    right: 8px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: translateX(-12px) scale(0.84) translateY(2px) !important;
    transform-origin: right center !important;
  }
}

/* 1929222 logo axis correction: rollback lowered Architect and use even-pixel separator */
@media (max-width: 980px) {
  .site-header .brand__title::after,
  .mobile-menu__brand.brand .brand__title::after {
    width: 1px !important;
    height: 16px !important;
    opacity: 0.72 !important;
    transform: translateY(-1px) !important;
  }

  .site-header .brand__subtitle,
  .mobile-menu__brand.brand .brand__subtitle {
    transform: translateY(-1px) !important;
  }
}
