/* Main WallPrint — mobile-only refinement.
   All rules are scoped to compact viewports and do not alter the desktop layout. */

@media (max-width: 820px) {
  :root {
    --mwp-header-height: 64px;
    --mwp-container: calc(100vw - 28px);
  }

  html {
    scroll-padding-top: calc(var(--mwp-header-height) + 12px);
    overscroll-behavior-y: none;
  }

  body.home-page {
    width: 100%;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .home-page main,
  .home-page section,
  .home-page article,
  .home-page form,
  .home-page aside {
    max-width: 100%;
  }

  .home-page a,
  .home-page button,
  .home-page summary,
  .home-page label,
  .home-page input,
  .home-page select,
  .home-page textarea {
    touch-action: manipulation;
  }

  /* Compact, stable mobile header. */
  .home-page .site-header {
    grid-template-columns: 1fr auto;
    min-height: var(--mwp-header-height);
    padding: 5px 12px 5px 14px;
    background: rgba(5, 5, 5, calc(.2 + var(--header-alpha) * .78));
    -webkit-backdrop-filter: blur(calc(5px + var(--header-alpha) * 9px));
    backdrop-filter: blur(calc(5px + var(--header-alpha) * 9px));
  }

  .home-page .site-brand {
    width: 88px;
  }

  .home-page .site-brand img {
    height: 48px;
  }

  .home-page .desktop-nav,
  .home-page .admin-link {
    display: none;
  }

  .home-page .site-header__actions {
    gap: 0;
  }

  .home-page .menu-button {
    width: 44px;
    height: 44px;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  }

  .home-page .menu-button span {
    width: 19px;
  }

  /* Mobile navigation is a contained slide-in panel, never an oversized desktop menu. */
  .home-page .mobile-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .home-page .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .home-page .mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
    opacity: 0;
    transition: opacity .3s ease;
  }

  .home-page .mobile-menu.is-open .mobile-menu__backdrop {
    opacity: 1;
  }

  .home-page .mobile-menu__panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(92vw, 410px);
    height: 100dvh;
    padding: 8px 18px max(24px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid var(--mwp-line);
    background: #080809;
    transform: translate3d(100%, 0, 0);
    transition: transform .45s var(--mwp-ease);
    scrollbar-width: none;
  }

  .home-page .mobile-menu__panel::-webkit-scrollbar {
    display: none;
  }

  .home-page .mobile-menu.is-open .mobile-menu__panel {
    transform: translate3d(0, 0, 0);
  }

  .home-page .mobile-menu__head {
    position: sticky;
    z-index: 2;
    top: 0;
    min-height: 58px;
    padding: 2px 0;
    background: #080809;
  }

  .home-page .mobile-menu__head img {
    width: 92px;
    height: 50px;
  }

  .home-page .mobile-menu__close {
    width: 42px;
    height: 42px;
  }

  .home-page .mobile-menu__nav {
    min-height: 0;
    padding: 22px 0 12px;
    justify-content: flex-start;
  }

  .home-page .mobile-menu__nav > a,
  .home-page .mobile-services > summary {
    padding: 12px 0;
    font-size: clamp(1.8rem, 8.6vw, 2.75rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    overflow-wrap: normal;
  }

  .home-page .mobile-services > div {
    gap: 0;
    padding: 8px 0 14px 12px;
  }

  .home-page .mobile-services > div a {
    display: block;
    min-height: 42px;
    padding: 9px 0;
    font-size: .84rem;
    line-height: 1.35;
  }

  /* Hero keeps the desktop identity while fitting a phone naturally. */
  .home-page .editorial-hero {
    min-height: 100svh;
    align-items: flex-end;
    padding: calc(var(--mwp-header-height) + 28px) 16px max(30px, env(safe-area-inset-bottom));
  }

  .home-page .hero__video {
    object-position: 58% center;
  }

  .home-page .hero__shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .04) 0%, rgba(0, 0, 0, .12) 44%, rgba(0, 0, 0, .72) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, .34), transparent 72%);
  }

  .home-page .hero__content {
    width: 100%;
    max-width: 520px;
  }

  .home-page .editorial-hero .hero__content h1 {
    max-width: 95%;
    font-size: clamp(3.65rem, 17.5vw, 5.25rem);
    line-height: .88;
    letter-spacing: -.07em;
    white-space: normal;
  }

  .home-page .editorial-hero .hero__places {
    max-width: 340px;
    margin-top: 18px;
    font-size: 10px;
    line-height: 1.65;
    letter-spacing: .045em;
  }

  .home-page .editorial-hero .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 22px;
  }

  .home-page .editorial-hero .editorial-button {
    width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    font-size: 11.5px;
    line-height: 1.25;
  }

  /* Mobile rhythm and headings. */
  .home-page .section {
    padding: 56px 0;
  }

  .home-page .section-head,
  .home-page .editorial-process__head,
  .home-page .team-header {
    margin-bottom: 28px;
  }

  .home-page .section-head.split,
  .home-page .about-benefits-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-page .about-benefits-top {
    margin-bottom: 26px;
  }

  .home-page .eyebrow {
    margin-bottom: 11px;
    font-size: 10px;
  }

  .home-page h2,
  .home-page .section-head h2,
  .home-page .about-benefits-heading h2,
  .home-page .team-header h2,
  .home-page .contact-intro h2,
  .home-page .upload-section__copy h2 {
    font-size: clamp(2.15rem, 10vw, 3.7rem);
    line-height: .94;
    letter-spacing: -.055em;
    text-wrap: balance;
  }

  .home-page .section-head > .muted,
  .home-page .section-head.split > .muted,
  .home-page .service-benefits-intro,
  .home-page .upload-section__copy .muted {
    font-size: .95rem;
    line-height: 1.62;
  }

  /* Accordions. */
  .home-page .benefit-accordion {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-page .benefit-accordion-item summary {
    min-height: 58px;
    gap: 12px;
    padding: 15px 0;
  }

  .home-page .benefit-accordion-item h3 {
    font-size: 1.08rem;
    line-height: 1.18;
  }

  .home-page .benefit-accordion-item summary::after {
    width: 30px;
    height: 30px;
  }

  .home-page .benefit-accordion-item p {
    padding: 0 36px 18px 0;
    font-size: .9rem;
    line-height: 1.58;
  }

  /* Process and value cards remain recognizable but become compact. */
  .home-page .editorial-process .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .editorial-process .steps article {
    min-height: 0;
    padding: 18px;
    border-right: 1px solid var(--mwp-line);
    border-bottom: 1px solid var(--mwp-line);
  }

  .home-page .editorial-process .steps article:nth-child(2n) {
    border-right: 0;
  }

  .home-page .editorial-process .steps article:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .home-page .editorial-process .steps span {
    width: 34px;
    height: 34px;
  }

  .home-page .editorial-process .steps h3 {
    margin: 24px 0 8px;
    font-size: 1.25rem;
    line-height: 1.05;
  }

  .home-page .editorial-process .steps p {
    font-size: .84rem;
    line-height: 1.5;
  }

  .home-page .trust-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-page .trust-card {
    min-height: 0;
    padding: 20px;
    border-radius: 3px;
  }

  .home-page .trust-card h3 {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 7.3vw, 2.05rem);
    line-height: 1.02;
  }

  .home-page .trust-card p {
    font-size: .88rem;
    line-height: 1.52;
  }

  /* Services. */
  .home-page .mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-page .mosaic-card,
  .home-page .mosaic-card.big,
  .home-page .mosaic-card.wide,
  .home-page .mosaic-card:nth-child(n) {
    grid-column: 1;
    grid-template-rows: auto auto;
    min-height: 0;
    margin: 0;
  }

  .home-page .mosaic-art {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .home-page .mosaic-card > div {
    padding: 18px;
  }

  .home-page .mosaic-card h3 {
    margin-bottom: 10px;
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .home-page .mosaic-card p {
    margin-bottom: 15px;
    font-size: .89rem;
    line-height: 1.55;
  }

  .home-page .read-more {
    min-height: 40px;
    align-items: center;
  }

  /* Upload workspace. */
  .home-page .upload-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-page .upload-section__copy {
    position: static;
  }

  .home-page .upload-workspace {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-page .upload-workspace__drop,
  .home-page .upload-workspace__preview {
    min-height: 210px;
  }

  .home-page .upload-workspace__drop {
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--mwp-line);
    justify-content: center;
  }

  .home-page .upload-workspace__drop span {
    max-width: 250px;
    font-size: 1.55rem;
  }

  .home-page .upload-workspace__drop small {
    margin-top: 12px;
    font-size: .78rem;
  }

  .home-page .upload-workspace__preview div {
    padding: 20px;
  }

  .home-page .upload-workspace__preview img {
    max-height: 300px;
  }

  .home-page .inspiration-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 22px;
  }

  /* Forms and calculator. */
  .home-page .calculator-grid,
  .home-page .tracking-grid,
  .home-page .contact-layout,
  .home-page .field-row,
  .home-page .field-row.thirds,
  .home-page .estimate-snapshot,
  .home-page .footer-main,
  .home-page .footer-links {
    grid-template-columns: 1fr;
  }

  .home-page .panel,
  .home-page .result-card,
  .home-page .tracking-result,
  .home-page .contact-form,
  .home-page .contact-intro {
    padding: 20px;
  }

  .home-page input,
  .home-page select,
  .home-page textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .home-page textarea {
    min-height: 130px;
  }

  .home-page .editorial-button,
  .home-page .btn,
  .home-page button[type="submit"] {
    min-height: 48px;
  }

  /* Compact team cards. */
  .home-page .team-page {
    padding-top: 56px;
  }

  .home-page .team-fullscreen {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 14px 56px;
  }

  .home-page .team-screen,
  .home-page .team-open {
    min-height: 190px;
  }

  .home-page .team-open {
    padding: 20px;
  }

  .home-page .team-name {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .home-page .team-bio {
    inset: 6px;
    padding: 20px;
  }

  /* FAQ, tracking and footer. */
  .home-page .faq-master-accordion > summary,
  .home-page .faq-grid summary {
    min-height: 52px;
    padding: 14px 0;
  }

  .home-page .faq-grid details {
    padding-inline: 0;
  }

  .home-page .footer-main {
    gap: 28px;
  }

  .home-page .footer-links {
    gap: 18px;
  }

  .home-page .footer-bottom {
    flex-direction: column;
    gap: 10px;
    padding-bottom: 86px;
  }

  /* Floating CTA sits above the safe area and never covers form controls. */
  .home-page .floating-cta {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-width: 430px;
    margin-inline: auto;
    border-radius: 999px;
  }

  .home-page .floating-cta a {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
    font-size: 11px;
    text-align: center;
  }

  .home-page .original-live-test-frame {
    min-height: 1500px;
  }

  /* Shorter and softer reveal movement on mobile. */
  .home-page.motion-ready [data-reveal] {
    transform: translateY(16px);
    transition: opacity .48s ease, transform .58s var(--mwp-ease);
  }

  .home-page.motion-ready [data-reveal].is-visible {
    transform: none;
  }

  .home-page .trust-card:hover,
  .home-page .mosaic-card:hover,
  .home-page .editorial-button:hover {
    transform: none;
  }
}

@media (max-width: 560px) {
  :root {
    --mwp-container: calc(100vw - 22px);
  }

  .home-page .editorial-hero .hero__content h1 {
    font-size: clamp(3.45rem, 18vw, 4.75rem);
  }

  .home-page .editorial-hero .hero__actions {
    grid-template-columns: 1fr;
  }

  .home-page .editorial-process .steps {
    grid-template-columns: 1fr;
  }

  .home-page .editorial-process .steps article,
  .home-page .editorial-process .steps article:nth-child(2n),
  .home-page .editorial-process .steps article:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--mwp-line);
  }

  .home-page .editorial-process .steps article:last-child {
    border-bottom: 0;
  }

  .home-page .inspiration-strip {
    grid-template-columns: 1fr 1fr;
  }

  .home-page .original-live-test-frame {
    min-height: 1640px;
  }
}

@media (max-width: 390px) {
  .home-page .editorial-hero {
    padding-inline: 12px;
  }

  .home-page .editorial-hero .hero__content h1 {
    font-size: clamp(3.1rem, 17.2vw, 4.15rem);
  }

  .home-page h2,
  .home-page .section-head h2,
  .home-page .about-benefits-heading h2,
  .home-page .team-header h2,
  .home-page .contact-intro h2,
  .home-page .upload-section__copy h2 {
    font-size: clamp(2rem, 9.8vw, 3rem);
  }

  .home-page .mobile-menu__nav > a,
  .home-page .mobile-services > summary {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }
}

/* Project/service pages: mobile-only stabilization and spacing. */
@media (max-width: 780px) {
  body.project-page {
    width: 100%;
    overflow-x: hidden;
  }

  body.project-page .header {
    top: 8px;
    left: 8px;
    width: calc(100vw - 16px);
    height: 58px;
  }

  body.project-page .brand-logo-img {
    width: 88px;
    height: 44px;
  }

  body.project-page .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
  }

  body.project-page .menu-toggle-label {
    display: none;
  }

  body.project-page .menu-toggle-icon {
    width: 19px;
  }

  body.project-page .nav {
    inset: -8px -8px auto;
    height: 100dvh;
    padding: 84px 16px max(28px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    align-content: start;
    scrollbar-width: none;
  }

  body.project-page .nav::-webkit-scrollbar {
    display: none;
  }

  body.project-page .nav > a,
  body.project-page .nav-item > a {
    width: 100%;
    padding: 8px 0;
    font-size: clamp(2.15rem, 10.5vw, 3.45rem);
    line-height: 1;
    overflow-wrap: normal;
  }

  body.project-page .sub-menu {
    margin: 8px 0 14px;
  }

  body.project-page .sub-menu a {
    min-height: 40px;
    padding: 9px 10px;
    font-size: .72rem;
    line-height: 1.35;
  }

  body.project-page .project-hero-detail {
    min-height: auto;
    padding: 84px 12px 14px;
  }

  body.project-page .project-hero-copy {
    padding: 28px 2px 14px;
  }

  body.project-page .back-link {
    margin-bottom: 24px;
  }

  body.project-page .project-hero-copy h1 {
    margin: 8px 0 18px;
    font-size: clamp(3.05rem, 15vw, 4.8rem);
    line-height: .88;
  }

  body.project-page .project-hero-art {
    min-height: 48vh;
    border-radius: 18px;
  }

  body.project-page .section {
    padding: 58px 0;
  }

  body.project-page .section-head {
    margin-bottom: 30px;
  }

  body.project-page .section-head h2,
  body.project-page .project-detail-panel h2 {
    font-size: clamp(2.1rem, 10.5vw, 3.45rem);
    line-height: .94;
  }

  body.project-page .project-detail-panel,
  body.project-page .project-facts {
    padding: 20px;
    border-radius: 18px;
  }

  body.project-page .project-facts #projectFacts {
    grid-template-columns: 1fr;
  }

  body.project-page .project-process-grid,
  body.project-page .project-related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.project-page .project-step {
    min-height: 0;
    padding: 20px;
    border-radius: 18px;
  }

  body.project-page .project-step h3 {
    margin-top: 34px;
    font-size: 1.35rem;
  }

  body.project-page .related-card {
    min-height: 330px;
    border-radius: 18px;
  }

  body.project-page .footer-main,
  body.project-page .footer-links {
    grid-template-columns: 1fr;
  }

  body.project-page .floating-cta {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    border-radius: 999px;
  }

  body.project-page .floating-cta a {
    flex: 1;
    padding: 12px 8px;
    font-size: 11px;
    text-align: center;
  }

  body.project-page .cursor-dot,
  body.project-page .cursor-ring,
  body.project-page .cursor-label {
    display: none;
  }
}

@media (max-width: 820px) {
  .home-page.motion-ready [data-reveal] {
    transition-delay: var(--mobile-reveal-delay, 0ms);
  }
}

/* Mobile: remove the floating quick-action bar completely. */
@media (max-width: 820px) {
  .floating-cta,
  .floating-cta-premium,
  .home-page .floating-cta,
  body.project-page .floating-cta,
  .legal-page .floating-cta {
    display: none !important;
  }

  body.home-page {
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  .home-page .footer-bottom,
  .legal-page .footer-bottom {
    padding-bottom: max(18px, env(safe-area-inset-bottom)) !important;
  }
}


/* Floating CTA removed globally */
.floating-cta, .floating-cta-premium { display: none !important; }


/* Compact Live-Design-Test iframe fallbacks; JS replaces these with the measured height. */
.home-page .original-live-test-frame,
.original-live-test-frame {
  min-height: 0 !important;
  height: 1040px;
}
@media (max-width: 1100px) {
  .home-page .original-live-test-frame,
  .original-live-test-frame { height: 1240px; }
}
@media (max-width: 760px) {
  .home-page .original-live-test-frame,
  .original-live-test-frame { height: 1060px; }
}
@media (max-width: 430px) {
  .home-page .original-live-test-frame,
  .original-live-test-frame { height: 980px; }
}


@media (max-width: 780px) {
  .home-page .faq-answer {
    gap: 11px;
    padding-bottom: 18px;
    font-size: .92rem;
  }

  .home-page .faq-answer ul,
  .home-page .faq-answer ol {
    gap: 6px;
    padding-left: 1.1rem;
  }

  .home-page .faq-link {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}


/* Live-Test accordion fallback height; runtime measurement replaces this value. */
@media (max-width: 760px){.home-page .original-live-test-frame,.original-live-test-frame{height:1040px}}
@media (max-width: 430px){.home-page .original-live-test-frame,.original-live-test-frame{height:960px}}


/* Designerstellung must remain one complete word on phones. */
@media (max-width: 780px) {
  html.project-designerstellung body.project-page .project-hero-copy h1 {
    font-size: clamp(2.25rem, 10.6vw, 3.8rem);
    line-height: .92;
    letter-spacing: -.055em;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}


@media (max-width: 767px) {
  .home-page .faq-master-accordion > summary {
    min-height: 58px;
    padding: 15px 16px;
  }

  .home-page .faq-master-accordion > summary strong {
    font-size: clamp(1rem, 4.8vw, 1.18rem);
    line-height: 1.22;
  }
}

/* Compact mobile footer navigation spacing */
@media (max-width: 820px) {
  .site-footer,
  .home-page .site-footer {
    padding-top: 46px;
    padding-bottom: 18px;
  }

  .footer-main,
  .home-page .footer-main,
  body.project-page .footer-main {
    gap: 26px;
  }

  .footer-links,
  .home-page .footer-links,
  body.project-page .footer-links {
    gap: 24px;
  }

  .footer-links > div,
  .home-page .footer-links > div,
  body.project-page .footer-links > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .footer-links strong,
  .home-page .footer-links strong,
  body.project-page .footer-links strong {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.2;
  }

  .footer-links a,
  .home-page .footer-links a,
  body.project-page .footer-links a {
    padding: 4px 0;
    font-size: .96rem;
    line-height: 1.28;
  }

  .footer-bottom,
  .home-page .footer-bottom {
    margin-top: 28px;
    padding-top: 16px;
  }
}

@media (max-width: 480px) {
  .site-footer,
  .home-page .site-footer {
    padding-top: 36px;
  }

  .footer-main,
  .home-page .footer-main,
  body.project-page .footer-main {
    gap: 22px;
  }

  .footer-links,
  .home-page .footer-links,
  body.project-page .footer-links {
    gap: 18px;
  }

  .footer-links strong,
  .home-page .footer-links strong,
  body.project-page .footer-links strong {
    margin-bottom: 6px;
  }

  .footer-links a,
  .home-page .footer-links a,
  body.project-page .footer-links a {
    padding: 3px 0;
    font-size: .93rem;
  }
}

/* Separate cloud tracking page: keep the footer link deliberately subtle. */
.site-footer .footer-status-link {
  opacity: .62;
  font-size: .9em;
}
.site-footer .footer-status-link:hover,
.site-footer .footer-status-link:focus-visible {
  opacity: 1;
}
.form-tracking-link {
  display: inline-block;
  margin-top: 10px;
  color: #3894C4;
  font-weight: 800;
}

/* Compact and readable contact form on phones after applying the paper theme. */
@media (max-width: 820px) {
  .home-page .contact.compact-section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .home-page .contact-accordion {
    border-radius: 0;
  }

  .home-page .contact-accordion__body {
    padding-top: 10px;
  }

  .home-page .contact-promise--compact {
    margin-bottom: 10px;
  }

  .home-page .contact-promise--compact span {
    padding: 10px 12px;
    font-size: .78rem;
    line-height: 1.35;
  }

  .home-page .contact-form--accordion {
    padding: 8px 14px 14px;
  }

  .home-page .form-accordion > summary {
    min-height: 58px;
    gap: 12px;
    padding: 9px 0;
  }

  .home-page .form-accordion > summary strong {
    font-size: 1rem;
  }

  .home-page .form-accordion > summary small {
    margin-top: 2px;
    font-size: .72rem;
  }

  .home-page .form-accordion__content {
    gap: 11px;
    padding: 3px 0 15px;
  }

  .home-page .contact-form--accordion .field-row,
  .home-page .contact-form--accordion .field-row.thirds {
    gap: 11px;
  }

  .home-page .contact-form--accordion label {
    gap: 6px;
    font-size: .78rem;
    line-height: 1.25;
  }

  .home-page .contact-form--accordion input,
  .home-page .contact-form--accordion select {
    min-height: 52px;
    padding: 11px 13px;
  }

  .home-page .contact-form--accordion textarea {
    min-height: 112px;
    padding: 12px 13px;
  }

  .home-page .contact-form__finish {
    gap: 11px;
    padding-top: 14px;
  }

  .home-page .site-footer {
    padding-top: 48px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .home-page .site-footer .footer-main {
    gap: 22px;
  }

  .home-page .site-footer .footer-brand p {
    margin-top: 10px;
  }

  .home-page .site-footer .footer-links {
    gap: 16px;
  }

  .home-page .original-live-test-host {
    scroll-margin-top: calc(var(--mwp-header-height) + 16px);
  }
}

/* Mobile footer: align the visible logo edge with the footer copy. */
@media (max-width: 820px) {
  .site-footer .footer-brand .logo-image-link,
  .home-page .site-footer .footer-brand .logo-image-link,
  body.project-page .site-footer .footer-brand .logo-image-link,
  body.status-page .site-footer .footer-brand .logo-image-link,
  body.legal-page .site-footer .footer-brand .logo-image-link {
    display: block;
    width: fit-content;
    margin: 0;
    padding: 0;
  }

  .site-footer .footer-brand .brand-logo-img,
  .home-page .site-footer .footer-brand .brand-logo-img,
  body.project-page .site-footer .footer-brand .brand-logo-img,
  body.status-page .site-footer .footer-brand .brand-logo-img,
  body.legal-page .site-footer .footer-brand .brand-logo-img {
    display: block;
    width: clamp(150px, 43vw, 178px);
    height: auto;
    margin: 0;
    object-fit: contain;
    object-position: left center;
  }
}
