/* ============================================================
   EXCEED — phone experience
   ------------------------------------------------------------
   On a phone every content page collapses to the same shape: a
   short intro (already terse on desktop, so it stays), a condensed
   summary of the page's key points, a small strip of relevant
   photography, and one clear call to action with a strapline.
   The long desktop sections — grids, chapters, tables, profile
   stories — are hidden rather than reflowed, so nothing long is
   put in the way of a phone visitor. Everything hidden here is
   still on the page for a wider screen. Desktop is completely
   unaffected — every rule below is inside a max-width media query.
   ============================================================ */

.m-only { display: none; }

@media (max-width: 760px) {

  /* ---- 1. FRONT PAGE: logo on black leather, lit table beneath ---- */
  .hero { min-height: 100svh; background: #0c0b0a; }
  .hero .hero-media,
  .hero .hero-video,
  .hero .hero-fallback {
    background-image: url('../img/mobile-splash-bg.jpg') !important;
    background-size: cover;
    background-position: center bottom;
  }
  .hero .hero-shade {
    background: linear-gradient(180deg, rgba(6,6,8,.30), rgba(6,6,8,.10) 34%, rgba(6,6,8,.46));
  }
  .hero { align-items: flex-start !important; }
  .hero .hero-content {
    position: absolute; inset: 0; z-index: 3;
    display: flex; align-items: flex-start; justify-content: center;
  }
  .hero .hero-content .container {
    padding-top: 27vh; text-align: center;
    display: flex; flex-direction: column; align-items: center;
  }
  .hero-single, .hero .btn-ghost, .hero-tagline { display: none; }

  .m-splash-logo { display: block; width: min(74vw, 320px); margin: 0 auto; }
  .m-splash-sub {
    display: block; margin-top: 22px; font-family: var(--reading);
    font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
    color: rgba(244,240,231,.72);
  }
  .m-scroll-cue {
    position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%);
    z-index: 5; font-size: 20px; color: var(--gold-bright); opacity: .8;
    animation: mNudge 2.4s ease-in-out infinite; text-decoration: none;
  }
  @keyframes mNudge { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,7px); } }
  @media (prefers-reduced-motion: reduce) { .m-scroll-cue { animation: none; } }

  /* the lockup must still read clearly against the splash */
  .brand-lockup { width: 176px; }

  /* ---- 2. SHOW THE PHONE BLOCKS, HIDE THE LONG DESKTOP PAGE ---- */
  .m-only { display: block; }

  body.m-condensed .split-story,
  body.m-condensed .image-statement,
  body.m-condensed .video-interlude,
  body.m-condensed .method-sig,
  body.m-condensed .stat-band,
  body.m-condensed .mosaic,
  body.m-condensed .editorial.light,
  body.m-condensed .wide-figure,
  body.m-condensed .closing,
  body.m-condensed .industry-gallery,
  body.m-condensed .method-step,
  body.m-condensed .case,
  body.m-condensed .service-grid,
  body.m-condensed .exp-chapter,
  body.m-condensed .profile-story,
  body.m-condensed .quote-band { display: none; }
  body.m-condensed .m-only { display: block; }

  .m-section { padding: 54px 0 46px; background: var(--ivory); color: var(--ink); }
  .m-section.navy { background: var(--navy); color: var(--ivory); }
  .m-section .container { padding-left: 22px; padding-right: 22px; }
  .m-label {
    font-family: var(--reading); font-size: 10.5px; letter-spacing: .3em;
    text-transform: uppercase; color: var(--gold-deep); display: block; margin-bottom: 12px;
  }
  .m-section.navy .m-label { color: var(--gold-bright); }
  .m-section h2 {
    font-family: var(--display); font-size: 33px; line-height: 1.12;
    letter-spacing: -.01em; margin-bottom: 16px;
  }
  .m-section.navy h2 { color: #fdfaf2; }
  .m-section h2 em { font-style: italic; color: var(--gold); }
  .m-section.navy h2 em { color: var(--gold-bright); }
  .m-section p { font-size: 16px; line-height: 1.75; color: var(--ink-dim); text-align: left; }
  .m-section.navy p { color: rgba(240,238,232,.82); }

  .m-steps { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: ms; }
  .m-steps li {
    counter-increment: ms; position: relative; padding: 13px 0 13px 42px;
    border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.55;
  }
  .m-steps li:last-child { border-bottom: 0; }
  .m-steps li::before {
    content: counter(ms, decimal-leading-zero); position: absolute; left: 0; top: 15px;
    font-family: var(--reading); font-size: 10.5px; letter-spacing: .12em; color: var(--gold-deep);
  }
  .m-steps b { display: block; font-weight: 500; font-size: 16.5px; margin-bottom: 2px; }

  /* ---- 3. THE PHOTOGRAPH BAR ---- */
  .m-gallery { padding: 40px 0 46px; background: var(--navy); overflow: hidden; }
  .m-gallery .m-label, .m-gallery h2 { padding: 0 22px; }
  .m-gallery .m-label { color: var(--gold-bright); }
  .m-gallery h2 { color: #fdfaf2; }
  .m-rail {
    display: flex; gap: 10px; margin-top: 20px; padding: 0 22px 14px;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .m-rail::-webkit-scrollbar { display: none; }
  .m-rail img {
    flex: 0 0 auto; width: 236px; height: 182px; object-fit: cover;
    scroll-snap-align: center; border: 1px solid rgba(183,139,67,.26);
    background: #10161f;
  }
  .m-rail-hint {
    padding: 0 22px; margin-top: 4px; font-family: var(--reading);
    font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase;
    color: rgba(216,179,107,.6);
  }

  /* ---- 4. CONTACT: THE FORM AND NOTHING ELSE ---- */
  .m-cta { text-align: center; padding: 50px 22px 58px; background: var(--ivory); color: var(--ink); }
  .m-cta h2 { font-family: var(--display); font-size: 32px; line-height: 1.14; margin-bottom: 10px; }
  .m-cta p { font-size: 15.5px; line-height: 1.7; color: var(--ink-dim); margin-bottom: 24px; }
  .m-cta .btn-gold { display: inline-block; }

  body.m-formonly .page-intro .lead,
  body.m-formonly .c-direct,
  body.m-formonly .image-statement,
  body.m-formonly .split-story,
  body.m-formonly .editorial { display: none; }
  body.m-formonly .page-intro { padding-top: clamp(120px, 17vh, 170px); padding-bottom: 6px; }
  body.m-formonly .c-form label { font-size: 13px; }
  body.m-formonly .c-form input,
  body.m-formonly .c-form select,
  body.m-formonly .c-form textarea { font-size: 16px; }  /* 16px stops iOS zooming on focus */

  /* ---- 5. A SHORTER MENU ON A PHONE ---- */
  body.m-condensed .site-menu .menu-list > li.m-hide,
  .site-menu .menu-list > li[data-m="hide"] { display: none; }

  /* ---- 6. LANGUAGE: flags live in the menu on a phone ----
     The full flag row is right for a desktop, but on a 390px screen
     it covers the page, so the flags stay one tap away inside the
     Explore menu instead. The compact bar itself (ambience bubble +
     call/WhatsApp) is repositioned in site.css, not here, so the
     same fix also reaches the translated-language pages, which
     don't load this file. */
  .site-menu .lang-row { display: block; }
  .site-menu .lang-flags { gap: 10px; }
  .site-menu .lang-flags button { font-size: 26px; padding: 6px; }

  /* the footer is long; on a phone it needs to breathe less */
  .foot-grid { gap: 26px; }
  .site-footer { padding-bottom: 96px; }

  /* keep the splash clear of the fixed furniture */
  .hero .pagenav { bottom: 118px; }
  .m-scroll-cue { bottom: 118px; }
  .ambience-toggle { transform: scale(.9); transform-origin: left bottom; }
}

/* Very small phones */
@media (max-width: 380px) {
  .m-splash-logo { width: 78vw; }
  .m-section h2, .m-cta h2 { font-size: 29px; }
  .m-rail img { width: 208px; height: 162px; }
}
