/* Communique Consultancy — mobile balance pass v5 (17 November 2026)
   Mobile-only layout refinements. Desktop choreography and layout remain unchanged. */

/* The Perspective portrait is supplied in colour; remove the legacy editorial grayscale treatment. */
#perspective .perspective-illustration img,
#perspective .perspective-bench-image,
#perspective .perspective-right-stage:hover .perspective-illustration img {
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
}

@media (max-width: 760px) {
  :root {
    --mobile-page-gutter: 19px;
    --mobile-section-space: 40px;
  }

  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  body { -webkit-text-size-adjust: 100%; }
  main { width: 100%; max-width: 100%; overflow-x: clip; }
  main > section:not(#home) { min-width: 0; max-width: 100%; }
  main > section:not(#home)::before { left: var(--mobile-page-gutter) !important; right: var(--mobile-page-gutter) !important; }

  /* One action and one compact audio control on the hero: remove the competing visitor GIF and scroll cue. */
  .homepage-scroll-cue,
  #home .homepage-visitor-counter,
  #home .visitor-counter-walkers,
  #home .visitor-counter-value { display: none !important; }
  #home .homepage-bottom-actions {
    position: absolute !important;
    z-index: 60 !important;
    left: var(--mobile-page-gutter) !important;
    right: auto !important;
    bottom: calc(15px + env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: calc(100% - 88px) !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  #home .homepage-bottom-actions .homepage-action-framework,
  #home .homepage-bottom-actions a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 112px !important;
    max-width: 144px !important;
    min-height: 39px !important;
    height: 39px !important;
    padding: 0 15px !important;
    gap: 12px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    letter-spacing: .035em !important;
    white-space: nowrap !important;
    box-shadow: 0 5px 16px rgba(14, 47, 83, .15) !important;
  }
  #home .homepage-bottom-actions a span { font-size: 14px !important; }

  /* Reduce the sound orb to a discrete, thumb-accessible control, clear of the hero CTA. */
  .site-music-orb {
    right: 11px !important;
    bottom: calc(11px + env(safe-area-inset-bottom, 0px)) !important;
    width: 48px !important;
    height: 48px !important;
    z-index: 9999 !important;
    opacity: .94 !important;
  }
  #siteMusicOrbCanvas { width: 100% !important; height: 100% !important; }
  .site-music-orb .site-music-control,
  .site-music-orb #siteMusicControl {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .site-music-orb .site-music-icon { width: 19px !important; height: 19px !important; }
  .site-music-orb .site-music-label { display: none !important; }

  /* Keep the actual silver fountain pen visible on phones. The decorative wind ribbon is
     suppressed; the pen itself follows a smaller, edge-to-edge mobile route in script.js. */
  .journey-pen-horizontal { display: none !important; }
  .journey-pen-vertical {
    display: block !important;
    z-index: 38 !important;
    max-width: none !important;
    pointer-events: none !important;
    filter: drop-shadow(0 3px 7px rgba(0,0,0,.16)) !important;
  }
  .pen-wind-flare { display: none !important; }

  /* Consistent section gutters and a calmer vertical rhythm. */
  .section-pad,
  .perspective.section-pad,
  .experience,
  .services,
  .method,
  .founder,
  .contact,
  .gallery {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--mobile-page-gutter) !important;
    padding-right: var(--mobile-page-gutter) !important;
    padding-top: var(--mobile-section-space) !important;
    padding-bottom: var(--mobile-section-space) !important;
  }
  .section-label { margin-bottom: 18px !important; gap: 8px !important; }
  .section-label strong { font-size: 9px !important; letter-spacing: .16em !important; }
  .section-label > span:first-child { font-size: 10px !important; }
  p { overflow-wrap: break-word; }
  img, video { max-width: 100%; }

  /* Perspective: preserve the supplied full-colour portrait and keep the POV action in the text flow. */
  #perspective .perspective-composition {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 18px 0 0 !important;
  }
  #perspective .perspective-copy {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }
  #perspective .perspective-lead h1 {
    max-width: 15ch !important;
    margin: 0 0 10px !important;
    font-size: clamp(34px, 9.1vw, 42px) !important;
    line-height: 1.03 !important;
    letter-spacing: -.035em !important;
    text-wrap: balance;
  }
  #perspective .perspective-lead .perspective-question {
    max-width: 18ch !important;
    margin: 10px 0 17px !important;
    font-size: clamp(22px, 6.2vw, 28px) !important;
    line-height: 1.13 !important;
    text-wrap: balance;
  }
  #perspective .perspective-lead .sub-head {
    max-width: 100% !important;
    margin: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.68 !important;
  }
  #perspective .perspective-divider { margin: 17px 0 13px !important; }
  #perspective .point-of-view-inline {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 36px !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #perspective .point-of-view-inline .point-of-view-statement {
    min-width: 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
  #perspective .point-of-view-inline .point-of-view-expand {
    position: static !important;
    align-self: center !important;
    justify-self: end !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
  #perspective .perspective-illustration {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    order: initial !important;
    width: calc(100% + (2 * var(--mobile-page-gutter))) !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 calc(-1 * var(--mobile-page-gutter)) !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f2f4f6 !important;
  }
  #perspective .perspective-bench-animation,
  #perspective .perspective-illustration picture {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
    line-height: 0 !important;
  }
  #perspective .perspective-illustration img,
  #perspective .perspective-bench-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    filter: none !important;
    -webkit-filter: none !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
    transform: none !important;
  }
  #perspective .perspective-point-of-view { display: none !important; }

  /* Section 02 headline: allow natural, balanced wrapping instead of forcing a line break after "the". */
  #what-we-do .services-heading {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 18px 0 22px !important;
  }
  #what-we-do .services-heading h2 {
    max-width: 18ch !important;
    margin: 0 !important;
    font-size: clamp(30px, 8.3vw, 37px) !important;
    line-height: 1.06 !important;
    letter-spacing: -.025em !important;
    text-wrap: balance !important;
  }
  #what-we-do .services-heading h2 br { display: none !important; }
  #what-we-do .cxo-framework-scene {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    width: 100% !important;
    margin: 0 0 25px !important;
    transform: none !important;
  }
  #what-we-do .cxo-framework-art {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 7px !important;
  }
  #what-we-do .what-we-do-feature-video {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    transform: none !important;
  }
  #what-we-do .cxo-framework-art figcaption {
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding-top: 8px !important;
    font-size: 7px !important;
    letter-spacing: .12em !important;
  }
  #what-we-do .cxo-framework-note {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }
  #what-we-do .cxo-framework-note h4 {
    margin: 0 0 16px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
  #what-we-do .cxo-framework-note h3 {
    margin: 0 0 10px !important;
    font-size: 23px !important;
    line-height: 1.13 !important;
    text-wrap: balance;
  }
  #what-we-do .cxo-framework-note > p:not(.mini-label) {
    font-size: 13px !important;
    line-height: 1.65 !important;
  }
  #what-we-do .capability-intro { margin: 24px 0 26px !important; }
  #what-we-do .services-subhead {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 7px !important;
    margin: 0 0 16px !important;
  }
  #what-we-do .services-subhead { width: 100% !important; max-width: 100% !important; }
  #what-we-do .services-subhead p {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
  }
  #what-we-do .service-grid-executive.capability-cards {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 0 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: 0 !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    touch-action: pan-x pan-y !important;
  }
  #what-we-do .service-grid-executive.capability-cards::-webkit-scrollbar { display: none !important; }
  #what-we-do .service-grid-executive.capability-cards > .capability-open {
    flex: 0 0 84vw !important;
    width: 84vw !important;
    min-width: 84vw !important;
    max-width: 84vw !important;
    min-height: 310px !important;
    height: auto !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
  }

  /* Mobile navigation for the six capability cards. */
  .capability-carousel-navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 10px 0 22px !important;
    min-height: 36px !important;
  }
  .capability-carousel-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border: 1px solid rgba(39, 55, 72, .18) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.82) !important;
    color: #24364a !important;
    font: 20px/1 Georgia, serif !important;
    box-shadow: none !important;
  }
  .capability-carousel-arrow:disabled { opacity: .32 !important; }
  .capability-carousel-dots { display: flex !important; align-items: center !important; justify-content: center !important; gap: 7px !important; }
  .capability-carousel-dot {
    display: inline-block !important;
    flex: 0 0 6px !important;
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    min-height: 6px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(40, 56, 73, .28) !important;
    box-shadow: none !important;
  }
  .capability-carousel-dot.is-active,
  .capability-carousel-dot[aria-pressed="true"] {
    flex-basis: 17px !important;
    width: 17px !important;
    border-radius: 8px !important;
    background: #ad8748 !important;
  }
  .capability-carousel-hint {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
  }

  /* Method, founder and contact: one-column reading rhythm, no transforms or forced desktop widths. */
  #how-we-do .method-heading,
  #how-we-do .method-intro,
  #founder .founder-wide-heading,
  #founder .founder-cxo-grid,
  #contact .contact-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #how-we-do h2,
  #founder h2,
  #contact h2 {
    max-width: 17ch !important;
    font-size: clamp(30px, 8.5vw, 37px) !important;
    line-height: 1.06 !important;
    text-wrap: balance !important;
  }
  #how-we-do .method p,
  #founder .founder-action p,
  #contact .contact-copy > p { font-size: 13px !important; line-height: 1.65 !important; }
  #founder .founder-video-panel,
  #founder .founder-main-copy,
  #founder .founder-linkedin-card { width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
  #founder .founder-cxo-grid { grid-template-columns: minmax(0, 1fr) !important; align-items: start !important; }
  #founder .founder-wide-heading h2 { font-size: clamp(31px, 8.5vw, 38px) !important; line-height: 1.07 !important; }
  #founder .founder-cinematic-video { width: 100% !important; height: auto !important; object-fit: contain !important; }
  #contact .contact-form,
  #contact form,
  #contact .form-panel { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  #contact .contact-form .form-row { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  #contact input:not([type="checkbox"]):not([type="hidden"]),
  #contact select,
  #contact textarea,
  #contact button[type="submit"] { box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  #contact .consent-label { display: flex !important; align-items: flex-start !important; gap: 9px !important; }
  #contact .consent-label input[type="checkbox"] { flex: 0 0 18px !important; width: 18px !important; min-width: 18px !important; height: 18px !important; margin: 2px 0 0 !important; }
  #contact textarea { min-height: 110px !important; }

  #how-we-do .assessment-panel { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 20px !important; width: 100% !important; max-width: 100% !important; }
  #how-we-do .assessment-context { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
  #how-we-do .stakeholder-groups { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  #how-we-do .assessment-cta { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; width: 100% !important; }
  #how-we-do .enquiry-journey { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
  #how-we-do .enquiry-journey > i { display: none !important; }
  #how-we-do .method-image-carousel {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #how-we-do .method-image-viewport {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 2 / 1 !important;
  }
  /* The track is 200% wide and each slide must be exactly half of it (one viewport).
     This matches script.js moving by 50% of the track and makes slide 2 fully reachable. */
  #how-we-do .method-image-track { display: flex !important; width: 200% !important; height: 100% !important; }
  #how-we-do .method-image-slide {
    display: flex !important;
    flex: 0 0 50% !important;
    width: 50% !important;
    min-width: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }
  #how-we-do .method-image-slide img {
    display: block !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }


  /* Founder: restore equal left/right gutters. Earlier full-bleed rules set the parent to zero
     horizontal padding, which made the heading, video and profile card touch the screen edges. */
  #founder.founder-cxo.section-pad {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 38px var(--mobile-page-gutter) 32px !important;
    overflow: hidden !important;
  }
  #founder > .section-label,
  #founder > .founder-wide-heading {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #founder > .founder-wide-heading { margin-top: 17px !important; margin-bottom: 0 !important; }
  #founder > .founder-wide-heading h2 {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(30px, 8.2vw, 36px) !important;
    line-height: 1.06 !important;
    letter-spacing: -.035em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: balance !important;
  }
  #founder > .founder-video-balanced-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    align-items: start !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 21px 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  #founder .founder-video-panel,
  #founder .founder-video-copy,
  #founder .founder-linkedin-card {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  #founder .founder-video-panel { grid-row: 1 !important; }
  #founder .founder-linkedin-card { grid-row: 2 !important; padding: 14px !important; }
  #founder .founder-video-copy { grid-row: 3 !important; }
  #founder .founder-cinematic-video {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  #founder .founder-video-copy .founder-action p {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
    overflow-wrap: break-word !important;
  }
  #founder .founder-video-copy .founder-credentials { width: 100% !important; max-width: 100% !important; }
  #founder .founder-video-copy .founder-credentials > div {
    grid-template-columns: minmax(92px, .72fr) minmax(0, 1.28fr) !important;
    gap: 9px !important;
  }
  #founder .founder-video-copy .founder-experience-note { width: 100% !important; max-width: 100% !important; }

  /* Horizontal gallery has no vertical scroll instruction. Its image dots remain the only gallery cue. */
  #gallery .gallery-scroll-cue { display: none !important; }
  #gallery .gallery-mobile-carousel { padding-top: 14px !important; padding-bottom: 16px !important; }
  #gallery .gallery-mobile-track { gap: 9px !important; }
  #gallery .gallery-mobile-slide { flex-basis: 90% !important; width: 90% !important; }

  /* Footer order: brand, wrapped legal links, then a real back-to-top action. */
  .site-footer {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 22px var(--mobile-page-gutter) calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .site-footer-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    align-items: start !important;
    justify-items: start !important;
    gap: 15px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .site-footer-main > .footer-brand { grid-column: 1 !important; grid-row: 1 !important; min-width: 0 !important; }
  .site-footer-main .footer-legal-links {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px 11px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 60px 0 0 !important;
    box-sizing: border-box !important;
    font-size: 8px !important;
    line-height: 1.7 !important;
    letter-spacing: .055em !important;
  }
  .site-footer-main .footer-legal-links > span[aria-hidden="true"] { display: none !important; }
  .site-footer-main .footer-legal-links > button { flex: 0 0 auto !important; max-width: 100% !important; white-space: nowrap !important; }
  .site-footer-main #backToTop {
    grid-column: 1 !important;
    grid-row: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-self: start !important;
    margin: 0 !important;
    padding: 7px 0 !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
  }
}

@media (min-width: 761px) {
  .capability-carousel-navigation { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  #home .homepage-bottom-actions a,
  .site-music-orb,
  #what-we-do .capability-carousel-dot { transition: none !important; }
}
