/* Shared mobile layout for the company site and its product catalogues. */
@media (max-width: 760px) {
  body {
    --gutter: clamp(16px, 5vw, 32px);
    --rule: #203437;
    background: #030c0e;
    line-height: 1.5;
  }

  body > header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 16px;
    align-items: center;
    padding: 12px var(--gutter) 0;
    border-bottom: 1px solid var(--rule);
  }
  header .brand { justify-self: start; min-height: 44px }
  header .brand img { width: 95px }
  header .languages { justify-self: end; gap: 0; font-size: 0; line-height: 1 }
  header .languages a {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    font-size: .88rem;
    font-weight: 600;
    border: 0;
  }
  header .languages [aria-current=true] { text-decoration: underline; text-underline-offset: 5px }
  header > nav {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    gap: clamp(16px, 6vw, 40px);
    margin-top: 4px;
  }
  header > nav a, .footlinks a { display: inline-flex; align-items: center; min-height: 44px }
  header > nav a { font-size: .94rem; font-weight: 550 }

  #top .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 var(--gutter);
  }
  #top .hero .copy { order: 0; padding: 24px 0 0; text-shadow: none; max-width: 38rem; width: 100%; margin-inline: auto; text-align: center; text-wrap: balance }
  #top .hero .copy h1 { font-size: clamp(2rem, 8.3vw, 3rem); line-height: 1.08 }
  #top .hero .eyebrow { margin: 0 0 9px }
  #top .hero .sub { margin: 11px auto 0; max-width: 36ch; font-size: 1rem }
  #top .hero::before {
    order: 1;
    align-self: stretch;
    width: auto;
    height: clamp(145px, 44vw, 215px);
    margin: 8px 0 0;
    background-position: center 24%;
    background-size: auto 115%;
    mask-image: linear-gradient(to bottom, #000 78%, transparent);
  }

  #products, .values, body > footer { margin-inline: var(--gutter) }
  #products { gap: 10px; margin-top: 8px }
  #products .card {
    display: flex;
    align-items: center;
    min-height: 138px;
    padding: 17px;
    border-radius: 13px;
    background-color: #0b191c;
  }
  #products .card::before {
    inset: 0 0 0 26%;
    opacity: .85;
    mask-image: linear-gradient(90deg, transparent, #0004 46%, #000 94%);
  }
  #products .cardhead { width: min(80%, 26rem); align-items: flex-start; gap: 9px }
  #products .cardhead img { flex: 0 0 28px; width: 28px; height: 28px; margin-top: 1px; object-fit: contain }
  #products .cardhead h2 { font-size: clamp(1.19rem, 4.8vw, 1.54rem); line-height: 1.14; letter-spacing: -.015em }
  #products .cardhead p { max-width: 25ch; margin-top: 6px; color: #d1dedd; font-size: .93rem; line-height: 1.37 }
  .values { margin-top: 23px; padding: 4px 0; gap: 0 }
  .values > div { gap: 14px; min-height: 70px; padding: 12px 0 }
  .values > div + div { border-top: 1px solid var(--rule) }
  .values img { width: 28px }
  .values b { font-size: 1rem }
  .values p { font-size: .92rem }

  .division { padding: 18px var(--gutter) 0 }
  .division .breadcrumbs {
    justify-content: flex-start;
    align-items: baseline;
    gap: 1px 7px;
    margin: 0 0 18px;
    font-size: .83rem;
    line-height: 1.5;
  }
  .division > h1, .division .detail h1 { font-size: clamp(1.9rem, 7.6vw, 2.65rem); line-height: 1.08; overflow-wrap: break-word }
  .division .detail { padding: 21px 17px; border-radius: 13px; min-height: 188px }
  .detail .summary, .division > .sub { font-size: 1rem; line-height: 1.55 }
  .detail .summary { margin: 9px 0 0 }
  .detail .eyebrow { font-size: .78rem; letter-spacing: .085em; margin-bottom: 8px }
  .project-text, .related { margin: 25px 0; overflow-wrap: break-word }
  .division .pill { min-height: 44px; white-space: normal; text-align: center }
  .division p { line-height: 1.57 }
  .wellness { margin: 30px 0 }
  .wellness h2 { font-size: 1.48rem }
  .wellness .screens { grid-template-columns: minmax(0, 1fr); margin-top: 12px; gap: 0 }
  .wellness .screens figure {
    display: grid;
    grid-template-columns: clamp(83px, 25vw, 140px) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    max-width: none;
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid var(--rule);
  }
  .wellness .screens a { border-radius: 9px }
  .wellness .screens h3 { margin: 0 0 6px; font-size: 1.12rem; line-height: 1.23 }
  .wellness .screens p { font-size: .95rem; line-height: 1.49 }

  body > footer, .division ~ footer {
    display: grid;
    gap: 12px;
    margin-top: 30px;
    padding: 18px 0 max(24px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--rule);
  }
  .smallbrand { width: fit-content; min-height: 44px }
  footer .footlinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px }
  .footlinks a { width: fit-content; overflow-wrap: anywhere; font-size: .92rem }
  body > footer > span { color: #aabcb9; font-size: .8rem }
}

@media (min-width: 530px) and (max-width: 760px) {
  #top .hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; min-height: 218px }
  #top .hero .copy { grid-area: 1 / 1; padding-block: 20px }
  #top .hero::before { grid-area: 1 / 2; height: 100%; margin: 0; background-size: contain; background-position: center bottom }
}
