/* Phone presentation only. Authored copy, media, links and desktop stay intact. */
@media (max-width: 950px) {
  .rs-menu-toggle { min-width: 44px; min-height: 44px; font-size: 13px; }
  .rs-header nav {
    max-height: calc(100vh - 85px);
    max-height: calc(100dvh - 85px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #63705b #171c17;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .rs-header nav > a { flex: none; }
  .rs-header nav > a:not(.rs-btn) {
    min-height: 52px;
    padding-block: 14px;
    font-size: 18px;
    line-height: 1.45;
    white-space: normal;
  }
  .rs-header nav .rs-nav-phone { display: block; padding-block: 17px; }
  .rs-header nav .rs-btn { min-height: 52px; font-size: 13px; }
  .rs-inner-main .rs-inner-aside .rs-inner-toc nav a {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 44px;
    padding-block: 8px;
    line-height: 1.6;
  }
}

@media (max-width: 700px) {
  body.rs-design { -webkit-text-size-adjust: 100%; }
  .rs-wrap { width: calc(100% - 40px); }
  body.rs-design .rs-kicker,
  .rs-inner-heading .rs-kicker,
  .rs-concrete-heading .rs-kicker,
  .rs-activity-heading .rs-kicker,
  .rs-portfolio-heading .rs-kicker,
  .rs-journal-heading .rs-kicker {
    font-size: 10px !important;
    line-height: 1.7;
    letter-spacing: .075em;
  }
  .rs-breadcrumb,
  :is(.rs-inner-hero,.rs-concrete-hero,.rs-activity-hero,.rs-portfolio-hero,.rs-contact-hero,.rs-journal-hero) .rs-breadcrumb {
    min-height: 56px;
    padding-block: 4px;
    gap: 6px 10px;
    font-size: 11px;
    line-height: 1.7;
  }
  .rs-breadcrumb a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; padding-block: 4px; }
  .rs-section-intro,
  body.home .rs-direction-intro,
  .rs-details .rs-detail-panels p,
  .rs-about-home .rs-about-text {
    font-size: 16px;
    line-height: 1.8;
  }
  body.rs-design .rs-btn,
  body.rs-design .rs-oc .rs-oc-button,
  body.rs-design .rs-oc :is(.rs-about-btn,.rs-work-button,.rs-about-link,.rs-work-link) {
    min-height: 52px;
    font-size: 13px;
    line-height: 1.6;
  }
  .rs-btn > svg { flex-shrink: 0; }
  :is(.rs-link,.rs-text-link,.rs-concrete-jump,.rs-portfolio-jump) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 13px;
    line-height: 1.6;
  }

  /* Reading is the same size across articles, services and project records. */
  body.rs-design .rs-oc,
  body.rs-design .rs-inner-main .rs-oc,
  body.rs-design .rs-concrete-main .rs-oc,
  body.rs-design .rs-contact-main .rs-oc,
  body.rs-design .rs-journal-intro .rs-oc {
    font-size: 16px;
    line-height: 1.8;
  }
  body.rs-design .rs-oc .rs-oc-card > .rs-oc-text,
  body.rs-design .rs-oc :is(.rs-about-hero-copy,.rs-work-hero-copy,.rs-about-intro-copy,.rs-about-service,.rs-about-section-head,.rs-work-heading,.rs-about-step,.rs-work-step,.rs-work-card-body,.rs-work-method-intro,.rs-about-cta-grid,.rs-work-cta-row) > p {
    font-size: 16px;
    line-height: 1.8;
  }
  body.rs-design .rs-oc :is(h2,h3,h4) { overflow-wrap: anywhere; }
  body.rs-design .rs-oc h2 { line-height: 1.23 !important; }
  body.rs-design .rs-oc .rs-oc-faq > summary {
    padding-block: 21px;
    padding-right: 33px;
    font-size: 17px;
    line-height: 1.5;
  }
  body.rs-design .rs-oc .rs-oc-faq > summary::after { top: 21px; }
  body.rs-design .rs-oc .rs-oc-faq-body { font-size: 16px; line-height: 1.8; }
  body.rs-design .rs-oc :is(.rs-about-kicker,.rs-work-kicker,.rs-about-number,.rs-work-step > small) {
    font-size: 10px;
    line-height: 1.7;
  }
  body.rs-design .rs-oc :is(.rs-about-photo-note,.rs-work-visual-caption) { font-size: 10px; line-height: 1.7; }
  body.rs-design .rs-oc .rs-oc-card > .rs-oc-button {
    display: flex;
    align-self: stretch;
    justify-content: space-between;
    width: auto;
  }
  .rs-cta-inner > .rs-btn,
  body.rs-design .rs-oc :is(.rs-about-cta-grid,.rs-work-cta-row) :is(.rs-about-btn,.rs-work-button) {
    width: 100%;
    justify-content: space-between;
  }
  .rs-oc :is(.rs-about-cta-grid,.rs-work-cta-row) > p:has(> .rs-about-btn,> .rs-work-button) {
    width: 100%;
    align-self: stretch;
  }
  .rs-concrete-main .rs-oc > .rs-oc-section:nth-child(2) .rs-oc-text a {
    width: 100%;
    justify-self: stretch;
    white-space: normal;
  }
  body.rs-design .rs-oc :is(.rs-about-fact,.rs-work-fact) { font-size: 12px; line-height: 1.65; }
  body.rs-design .rs-oc :is(.rs-about-fact,.rs-work-fact) > strong { font-size: 22px; line-height: 1.3; }
  .rs-inner-main--about .rs-about-process-grid { grid-template-columns: minmax(0,1fr); gap: 25px; }
  body.rs-design .rs-oc .rs-oc-field > label { font-size: 13px; }
  body.rs-design .rs-oc .rs-oc-field :is(input,textarea,select) { font-size: 16px; min-height: 52px; }
  body.rs-design .rs-oc .rs-oc-form-note { font-size: 12px; line-height: 1.75; }
  .rs-inner-main .rs-inner-toc > summary { font-size: 13px; }
  .rs-inner-main .rs-inner-aside .rs-inner-toc nav { gap: 0; }
  .rs-inner-main .rs-inner-aside .rs-inner-toc nav a + a { border-top: 1px solid #c6d1b85c; }

  /* Long Bulgarian titles wrap naturally; the photograph has its own row. */
  .rs-inner-hero-grid,
  :is(.rs-inner-hero--article,.rs-inner-hero--project) .rs-inner-hero-grid {
    gap: 23px;
    padding-block: 24px 28px;
  }
  .rs-inner-heading .rs-kicker { margin-bottom: 16px !important; }
  body.rs-design .rs-inner-heading h1 { text-wrap: balance; }
  .rs-inner-main--project .rs-oc p:has(> strong:first-child) { text-wrap: balance; }
  body.rs-design .rs-inner-hero--service .rs-inner-heading h1 { font-size: clamp(29px,8.2vw,36px); line-height: 1.16; }
  body.rs-design .rs-inner-hero.is-long-title .rs-inner-heading h1,
  body.rs-design .rs-inner-hero .rs-inner-heading--long h1 { font-size: clamp(28px,7.8vw,33px); line-height: 1.17; }
  body.rs-design .rs-inner-hero.is-very-long-title .rs-inner-heading h1 { font-size: clamp(26px,7.2vw,30px); line-height: 1.19; }
  .rs-inner-visual--photo:not(.rs-inner-visual--brand) { height: auto; aspect-ratio: 3 / 2; }
  .rs-inner-hero :is(.rs-inner-facts,.rs-project-facts) { gap: 9px 13px; margin-top: 20px; font-size: 12px; line-height: 1.7; }
  .rs-inner-visual--project .rs-cover-discipline { font-size: 11px; line-height: 1.5; }
  .rs-inner-visual--project .rs-cover-note { font-size: 10px; line-height: 1.5; }
  .rs-inner-visual-note { font-size: 10px; line-height: 1.5; }
  .rs-inner-visual--project .rs-cover-area > small { font-size: 12px; }
  .rs-inner-main { padding-block: 36px 56px; }

  /* Home: generous text and usable tabs, retaining the approved video hero. */
  body.home .rs-hero .rs-kicker { font-size: 10px !important; }
  body.home .rs-hero-actions > .rs-text-link { min-height: 44px; font-size: 13px; }
  body.home .rs-proof p span,
  body.home .rs-proof-inner > div span { font-size: 11px; line-height: 1.7; }
  .rs-service-tab .number { font-size: 10px; }
  .rs-service-tab strong { font-size: clamp(18px,5.1vw,30px); }
  .rs-direction-copy { padding: 27px 20px 25px; }
  .rs-direction-tags > li { font-size: 11px; line-height: 1.6; }
  .rs-direction-links > a { min-height: 48px; font-size: 14px; padding-block: 12px; }
  .rs-direction-image-caption { font-size: 10px; line-height: 1.6; }
  .rs-details .rs-detail-tab { min-height: 68px; gap: 11px; }
  .rs-details .rs-detail-tab > span { font-size: 10px; }
  .rs-details .rs-detail-tab strong { font-size: 16px; line-height: 1.45; }
  .rs-details .rs-detail-tab i { flex-shrink: 0; }
  .rs-details .rs-diagram-head { font-size: 9px; line-height: 1.6; }
  .rs-details .rs-diagram-note { font-size: 11px; line-height: 1.7; }
  .rs-details .rs-floor-diagram text { font-size: 22px; letter-spacing: .1px; }
  .rs-details .rs-floor-diagram[aria-labelledby="rs-foundation-title"] text:nth-of-type(3) { transform: translateY(15px); }
  .rs-details .rs-floor-diagram[aria-labelledby="rs-surface-title"] text:nth-of-type(2) { transform: translateY(12px); }
  .rs-details .rs-floor-diagram[aria-labelledby="rs-drainage-title"] text:nth-of-type(2) { transform: translateX(-12px); }
  .rs-details .rs-detail-panels h3 { font-size: 23px !important; line-height: 1.3 !important; }
  .rs-details .rs-detail-panels { padding-top: 24px; }
  .rs-details .rs-detail-panels .rs-link { min-height: 44px; font-size: 13px; line-height: 1.6; }
  body.home .rs-post-excerpt { font-size: 15px; line-height: 1.8; }
  body.home .rs-about-home p:not(.rs-kicker) { font-size: 16px; line-height: 1.8; }
  .rs-trust .rs-trust-item > p { font-size: 15px; line-height: 1.8; }
  .rs-project-meta > span,
  .rs-post-meta { font-size: 11px; line-height: 1.7; letter-spacing: .045em; }
  .rs-project-open { min-height: 44px; padding-block: 11px; font-size: 13px; }

  /* Service catalogue, completed projects and the editorial index. */
  .rs-concrete-jump { margin-top: 23px; }
  .rs-concrete-nav a { min-height: 64px; font-size: 14px; }
  .rs-concrete-nav a > span { font-size: 11px; }
  .rs-concrete-project > span,
  .rs-concrete-serial { font-size: 10px; line-height: 1.6; }
  .rs-concrete-project { width: 200px; }
  .rs-activity-direction-number { font-size: 10px; }
  .rs-portfolio-index .rs-filters {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .rs-portfolio-index .rs-filters button {
    min-width: 0;
    min-height: 48px;
    padding: 10px;
    font-size: 12px;
    line-height: 1.5;
  }
  .rs-portfolio-index .rs-filter-row > [data-project-count] { font-size: 11px; }
  .rs-portfolio-total > span { font-size: 12px; }
  .rs-portfolio-mosaic { height: auto; grid-template-rows: 210px 190px; }
  .rs-portfolio-shot-meta > span { font-size: 13px; line-height: 1.4; }
  .rs-portfolio-shot-meta > small,
  .rs-portfolio-shot--1 .rs-portfolio-shot-meta > small { font-size: 10px; line-height: 1.6; }
  .rs-portfolio-index .rs-project-catalog .rs-project-meta > span { font-size: 11px; line-height: 1.7; }
  .rs-portfolio-index .rs-load-more { width: 100%; }
  .rs-journal-card-kicker,
  .rs-journal-grid .rs-post-meta { font-size: 11px; line-height: 1.7; letter-spacing: .045em; }
  .rs-journal-index .rs-pagination { flex-wrap: wrap; }
  .rs-journal-index .rs-pagination > :is(a,span) { min-width: 44px; min-height: 46px; font-size: 13px; }
  .rs-contact-main .rs-contact-info-column .rs-oc-checklist > li { font-size: 16px; line-height: 1.75; }
  .rs-contact-main .rs-contact-form-column .rs-oc-form-note { font-size: 12px; }

  /* Footer navigation remains legible and spaced for a thumb. */
  .rs-footer-top > p { font-size: 15px; line-height: 1.8; }
  .rs-footer-grid { gap: 27px 20px; padding-block: 30px; }
  .rs-footer-grid .rs-label { font-size: 11px; line-height: 1.6; }
  .rs-footer-grid a { min-height: 44px; margin-bottom: 0; padding-block: 10px; font-size: 13px; line-height: 1.7; }
  .rs-footer-grid .rs-footer-phone { padding-top: 0; }
  .rs-footer-grid p { font-size: 13px; line-height: 1.8; }
  .rs-footer-bottom { font-size: 11px; line-height: 1.75; }
  .rs-footer-bottom > div { gap: 0 20px; margin-top: 10px; }
  .rs-footer-bottom > div > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
  .rs-footer-bottom > div > .rs-footer-credit { font-size: 10px; }
  .rs-lightbox { padding: 56px 16px 18px; max-height: 94dvh; }
  .rs-lightbox img { max-height: 70dvh; }
  .rs-lightbox-close { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  body.rs-design .rs-oc .rs-oc-gallery { grid-template-columns: minmax(0,1fr); gap: 14px; }
  body.rs-design .rs-oc .rs-oc-gallery-item > img { aspect-ratio: auto; height: auto; }
}
@media (max-width: 700px) {
  body.rs-design .rs-inner-main--project .rs-oc .rs-oc-gallery:has(> .rs-oc-gallery-item:nth-child(7)) {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }
  body.rs-design .rs-inner-main--project .rs-oc .rs-oc-gallery:has(> .rs-oc-gallery-item:nth-child(7)) > .rs-oc-gallery-item {
    min-width: 0;
    aspect-ratio: 4 / 3;
  }
  body.rs-design .rs-inner-main--project .rs-oc .rs-oc-gallery:has(> .rs-oc-gallery-item:nth-child(7)) > .rs-oc-gallery-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: auto;
  }
  body.rs-design .rs-inner-main--project .rs-oc .rs-oc-gallery:has(> .rs-oc-gallery-item:nth-child(7)) > .rs-oc-gallery-item > img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  body.rs-design .rs-inner-main--project .rs-oc .rs-oc-gallery:has(> .rs-oc-gallery-item:nth-child(7)) > .rs-oc-gallery-item:first-child > img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
}
@media (max-width: 359px) {
  .rs-wrap { width: calc(100% - 32px); }
  .rs-direction-copy { padding-inline: 17px; }
  .rs-service-tab { padding-inline: 6px; }
  .rs-service-tab strong { font-size: 18px; }
  .rs-details .rs-detail-tab strong { font-size: 15px; }
  .rs-portfolio-shot-meta > span { font-size: 12px; }
  .rs-portfolio-mosaic { grid-template-rows: 196px 190px; }
  .rs-portfolio-shot--1 .rs-portfolio-shot-meta > span { font-size: 15px; }
  .rs-portfolio-shot-meta > small { font-size: 10px; }
  .rs-footer-grid { grid-template-columns: minmax(0,1fr); gap: 25px; }
  .rs-footer-grid > div:first-child { grid-column: auto; }
}
