.mobile-hero-lead {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --mobile-gutter: clamp(1rem, 4.5vw, 1.75rem);
    --mobile-photo-ratio: 5 / 3;
    --mobile-picture-ratio: 5 / 4;
    --mobile-copy-padding: clamp(1rem, 4vw, 1.6rem);
  }

  main :is(h1, h2, h3, p, summary, label, a) {
    overflow-wrap: anywhere;
  }

  /* Full-width photos and independent copy panels on photo-led pages. */
  .detail-hero:has(.detail-hero-inner > :is(img, picture)) {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .detail-hero-inner:has(> :is(img, picture)) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .detail-hero-inner > :is(img, picture) {
    grid-row: 1;
    display: block;
    width: 100%;
  }

  .detail-hero-inner > img,
  .detail-hero-inner > picture img {
    display: block;
    position: static;
    z-index: auto;
    width: 100%;
    height: auto;
    aspect-ratio: var(--mobile-photo-ratio);
    object-fit: cover;
  }

  .detail-hero-inner > picture img {
    aspect-ratio: var(--mobile-picture-ratio, 1);
  }

  .detail-hero .detail-hero-inner > div {
    grid-row: 2;
    max-width: none;
    padding: var(--mobile-copy-padding) var(--mobile-gutter);
  }

  .company-photo-hero::before,
  .detail-hero-inner > div::before {
    content: none;
  }

  .detail-hero h1,
  .detail-hero h1.detail-heading-soft {
    font-size: clamp(1.8rem, 7.2vw, 2.85rem);
    line-height: 1.06;
    text-shadow: none;
    text-wrap: balance;
  }

  .detail-hero .detail-heading-soft span {
    white-space: normal;
  }

  .detail-hero h1 + p {
    margin-block: .9rem 1.2rem;
  }

  .detail-hero p {
    text-shadow: none;
    line-height: 1.55;
  }

  .detail-hero .detail-action {
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 44px;
  }

  .company-contact-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .company-contact-hero::before {
    content: none;
  }

  .company-contact-hero > img {
    grid-row: 1;
    position: static;
    z-index: auto;
    width: 100%;
    height: auto;
    aspect-ratio: var(--mobile-photo-ratio);
    object-fit: cover;
  }

  .company-contact-hero > .detail-wrap {
    width: 100%;
    padding: var(--mobile-copy-padding) var(--mobile-gutter);
  }

  .company-contact-hero h1 {
    font-size: clamp(2rem, 8vw, 3.4rem);
    line-height: 1.08;
  }

  .company-contact-grid,
  .company-principle-list,
  .company-values {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-about-art > img {
    /* Keep the entire group and the placement of the clothing logos. */
    width: 100%;
    height: auto;
  }

  .company-about-intro {
    padding-block: .35rem 1rem;
  }

  .detail-content {
    gap: clamp(1.75rem, 8vw, 3rem);
    width: calc(100% - 2 * var(--mobile-gutter));
  }

  /* Home: isolate the animated image in its own crop. */
  [data-story] .story-opening {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    min-height: 0;
    background: #fff;
    color: #112f29;
  }

  .story-opening::before {
    content: none;
  }

  .story-opening .story-opening-photo {
    display: block;
    overflow: hidden;
    aspect-ratio: var(--mobile-photo-ratio);
  }

  .story-opening > .story-opening-photo > img {
    position: static;
    z-index: auto;
    display: block;
    width: 100%;
    height: 100%;
  }

  .story-opening-copy {
    padding: var(--mobile-copy-padding) var(--mobile-gutter);
  }

  .story-opening h1,
  .story-opening p,
  .story-opening .story-secondary {
    text-shadow: none;
  }

  .story-opening h1 {
    font-size: clamp(1.8rem, 7.2vw, 2.85rem);
    margin: 0;
  }

  .story-opening p {
    margin: .85rem 0 1rem;
    line-height: 1.55;
  }

  .story-opening .story-secondary {
    color: #143730;
    min-height: 44px;
  }

  .story-opening .story-action {
    min-height: 44px;
  }

  .hero-signature-frame > .hero-signature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .35rem .8rem;
    width: 100%;
    margin: 0;
    padding: .65rem var(--mobile-gutter);
  }

  .hero-signature-brand {
    margin: 0;
  }

  .hero-signature-line br {
    display: none;
  }

  .story-service-cards {
    width: calc(100% - 2 * var(--mobile-gutter));
  }

  .story-card-grid a > span {
    min-height: 3rem;
  }

  .story-partner {
    padding-inline: var(--mobile-gutter);
  }

  .story-partner-portrait {
    grid-row: 1;
    max-width: none;
  }

  .story-contact-banner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    background: #fff;
    color: var(--ink);
  }

  .story-contact-banner::before {
    content: none;
  }

  .story-contact-banner > img {
    position: static;
    z-index: auto;
    width: 100%;
    height: auto;
    aspect-ratio: var(--mobile-photo-ratio);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 1.75rem), transparent);
  }

  .story-contact-banner > div {
    padding: var(--mobile-copy-padding) var(--mobile-gutter);
  }

  .story-contact-banner h2 {
    max-width: none;
    font-size: clamp(1.5rem, 6.5vw, 1.9rem);
  }

  /* The original root landing page also remains usable from old bookmarks. */
  [data-concept="areal"] .cover {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 0;
  }

  [data-concept="areal"] .cover-photo {
    position: static;
    z-index: auto;
    grid-row: 1;
    aspect-ratio: var(--mobile-photo-ratio);
    background: url("assets/areal.webp") 62% center / cover;
  }

  [data-concept="areal"] .cover-copy {
    padding: var(--mobile-copy-padding) var(--mobile-gutter);
  }

  .veliia-footer :is(a, p) {
    overflow-wrap: anywhere;
  }

  main .desktop-hero-lead {
    display: none;
  }

  main .mobile-hero-lead {
    display: block;
  }

  .detail-hero h1 ~ .mobile-hero-lead {
    margin-block: .65rem .9rem;
  }

  .story-opening-copy .story-secondary {
    padding-inline: .65em;
  }

  .story-opening .story-opening-photo {
    aspect-ratio: 5 / 3;
  }

  .story-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: .65rem;
    grid-auto-rows: 1fr;
  }

  .story-card-grid a {
    display: grid;
    grid-template-columns: clamp(5.3rem, 24vw, 7rem) minmax(0, 1fr);
    min-block-size: 4.75rem;
  }

  .story-card-grid img {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    contain: size;
  }

  .story-card-grid a > span {
    padding: .7rem .8rem;
    font-size: clamp(.98rem, 3.8vw, 1.13rem);
  }

  .story-partner {
    padding-block: 1.6rem 2rem;
  }

  .story-partner-inner:has(.story-partner-portrait) {
    gap: 1rem;
  }

  .story-partner-benefits {
    gap: .5rem .85rem;
    margin-block: 1rem;
  }

  .story-partner-benefits li {
    padding-block: .6rem .35rem;
  }

  .mobile-fold {
    border-block-start: 1px solid #cbdad0;
  }

  .mobile-fold + .mobile-fold {
    margin: 0;
  }

  .mobile-fold > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    min-height: 44px;
    padding-block: .75rem;
    cursor: pointer;
    list-style: none;
  }

  .mobile-fold > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-fold > summary::after {
    content: "";
    width: .55rem;
    height: .55rem;
    flex: none;
    margin-inline: .35rem;
    border-right: 2px solid #006550;
    border-bottom: 2px solid #006550;
    transform: rotate(45deg) translateY(-.12rem);
  }

  .mobile-fold[open] > summary::after {
    transform: rotate(225deg);
  }

  .mobile-fold > summary h2 {
    margin: 0;
    font-size: clamp(1.1rem, 4.3vw, 1.45rem);
    line-height: 1.25;
  }

  .mobile-fold > summary:focus-visible {
    outline: 3px solid #007c67;
    outline-offset: 2px;
  }

  .mobile-fold-content {
    padding-block: .15rem .9rem;
  }

  .veliia-footer .mobile-fold > summary h2 {
    font-size: 1rem;
  }

  .veliia-footer .mobile-fold-content {
    padding: 0 .25rem .35rem;
  }

  .veliia-footer [aria-labelledby="footer-info"] .mobile-fold-content {
    max-block-size: min(10rem, 40vh);
    overflow-y: auto;
  }

  .veliia-footer .mobile-fold-content a {
    display: flex;
    align-items: center;
    min-block-size: 2.75rem;
  }

  .veliia-footer .mobile-fold-content a:focus-visible {
    outline-offset: -2px;
  }

  .detail-content > section:has(> .mobile-fold) {
    min-width: 0;
  }
}

@media (min-width: 541px) and (max-width: 760px) {
  :root {
    --mobile-photo-ratio: 16 / 9;
    --mobile-picture-ratio: 4 / 3;
  }
}

@media (min-width: 391px) and (max-width: 760px) {
  .story-partner-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
