/* MOBILE — scoped overrides only; desktop >= 800px keeps the approved layout.
   Shared navigation on home/blog/articles/contact; hero changes on home only. */
.mobile-nav-toggle,
.hero-mobile-divider,
.expertises-title-mobile {
  display: none;
}

@media (max-width: 799px) {
  /* One compact row: original logo, FR/EN, 44px burger. Expanded links occupy
     their own row in document flow: no overlay or hidden content underneath. */
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    grid-template-areas: "logo language toggle" "navigation navigation navigation";
    gap: 0 16px;
    height: auto;
    min-height: 64px;
    padding: 8px 16px;
  }
  .site-header > :first-child {
    grid-area: logo;
    justify-self: start;
  }
  .site-header .header-logo {
    display: block;
    width: 40px;
    height: auto;
  }
  .site-header .language {
    grid-area: language;
    display: block;
    white-space: nowrap;
    font-size: 12px;
  }
  .mobile-nav-toggle {
    grid-area: toggle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #777;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }
  .mobile-nav-toggle[hidden] {
    display: none;
  }
  .mobile-nav-toggle:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 3px;
  }
  .site-header .site-nav {
    grid-area: navigation;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 8px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid #555;
    font-size: 15px;
    line-height: 1.4;
  }
  .site-header[data-mobile-ready] .site-nav {
    display: none;
  }
  .site-header[data-menu-open="true"] .site-nav {
    display: flex;
  }
  .site-header .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 6px;
  }
  .site-header .site-nav .active::after {
    bottom: 4px;
  }

  /* EXPERTISES MOBILE — two full-width title statements, then the existing
     two-column colour grid. Cards grow with their text; no fixed-height crop.
     Keep headings readable: long title statements wrap naturally on phones. */
  .home-page .expertises {
    padding: 40px 16px 48px;
  }
  .home-page .expertises-heading {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 0 0 28px;
  }
  .home-page .expertises-heading h2 {
    font-size: clamp(20px, 5vw, 28px);
    line-height: 1.15;
    letter-spacing: -0.5px;
  }
  .home-page .expertises-title-desktop {
    display: none;
  }
  .home-page .expertises-title-mobile {
    display: inline;
  }
  .home-page .expertise-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 0;
    overflow: visible;
  }
  .home-page .expertise-card {
    height: auto;
    min-width: 0;
    padding: 16px 12px 24px;
    border-radius: 0;
    overflow: hidden;
  }
  .home-page .expertise-card .card-person {
    display: none;
  }
  .home-page .expertise-card .card-copy {
    position: relative;
    top: auto;
    left: auto;
    max-width: none;
  }
  .home-page .expertise-card .card-icon {
    top: 16px;
    left: 40px;
    width: 28px;
    height: 28px;
  }
  .home-page .card-copy small {
    display: inline-block;
    line-height: 28px;
    font-size: 11px;
  }
  .home-page .expertise-card .card-copy h3 {
    margin: 16px 0 10px;
    font-size: clamp(16px, 4.2vw, 26px);
    line-height: 1.05;
    letter-spacing: -0.5px;
    overflow-wrap: anywhere;
  }
  .home-page .expertise-card .card-copy h4 {
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.3px;
  }
  .home-page .expertise-card .card-copy p {
    max-width: none;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
  }

  /* MANIFESTE MOBILE — trial requested: text left, smaller artwork right.
     Use real grid columns (no text/art overlap), full-width headings and an
     automatic section height. Art column: 28vw, bounded to 88–148px;
     artwork extends 24px farther right to touch the section edge.
     display:contents only unwraps the non-semantic copy div on mobile. */
  .home-page .manifest {
    height: auto;
    grid-template-columns: minmax(0, 1fr) clamp(88px, 28vw, 148px);
    column-gap: 12px;
    padding: 32px 24px 0;
    overflow: visible;
  }
  .home-page .manifest-copy {
    display: contents;
  }
  .home-page .manifest .section-label {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .home-page .manifest h2 {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: clamp(32px, 8vw, 44px);
    line-height: 1;
  }
  .home-page .manifest h3 {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 20px 0 24px;
    font-size: 26px;
    line-height: 1.15;
  }
  .home-page .manifest ul {
    grid-column: 1;
    grid-row: 4;
    min-width: 0;
    width: 100%;
    font-size: 16px;
    line-height: 1.6;
  }
  .home-page .manifest li {
    padding: 14px 0;
  }
  .home-page .manifest-pill {
    grid-column: 1;
    grid-row: 5;
    justify-self: start;
    max-width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
  }
  .home-page .manifest-visual {
    grid-column: 2;
    grid-row: 4 / 6;
    align-self: end;
    position: relative;
    inset: auto;
    /* Extend through the 24px right padding: artwork touches the stage edge
       and grows slightly without taking any width away from the text. */
    width: calc(100% + 24px);
    margin: 0;
    overflow: visible;
  }
  .home-page .manifest-visual img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Home: remove only the red-swimsuit woman and her watermark panel.
     Put copy/video in normal flow so the subtitle cannot cover the video. */
  .home-page .hero-woman-panel {
    display: none;
  }
  .home-page .hero {
    height: auto;
    padding: 40px 16px 24px;
  }
  .home-page .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
  }
  .home-page .hero h1 {
    font-size: clamp(32px, 9.5vw, 51px);
  }
  .home-page .hero-lead {
    margin-top: 24px;
  }
  /* The requested separator: 120px black rule, mobile only. Increase the
     margins here to give the subtitle/video more breathing room. */
  .home-page .hero-mobile-divider {
    display: block;
    width: min(120px, 40%);
    margin: 24px auto 28px;
    border: 0;
    border-top: 2px solid var(--ink);
  }
  .home-page .hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    transform: none;
  }
  .home-page .hero-panel {
    position: relative;
    top: auto;
    left: auto;
    width: min(408px, 100%);
    height: auto;
    aspect-ratio: 1;
    transform: none;
    object-fit: contain;
  }
  /* Mobile: native video controls replace the decorative play badge.
     display:none also removes its reserved space; desktop stays unchanged. */
  .home-page .hero-media-badge {
    display: none;
  }
  .home-page .hero-video-status {
    position: static;
    order: 2;
    width: 100%;
  }
}
