/* Final mobile contract for the Home Work, Process, and Track Record sections. */

@media (max-width: 820px) {
  /* WORK */
  #root [data-loc="src/web/pages/Home.tsx:254"].triptych,
  #root [data-loc="src/web/pages/Home.tsx:254"].av-projects-triptych-motion {
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 68px 0 0 !important;
    padding: 42px 14px 56px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    overflow: hidden !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"]::after {
    inset: 10px !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] > * {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:271"].triptych-center {
    order: 1 !important;
    height: auto !important;
    min-height: 450px !important;
    padding: 34px 22px 30px !important;
    gap: 16px !important;
    overflow: hidden !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:271"]::after {
    inset: 12px !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:273"] {
    order: 1 !important;
    font-size: clamp(42px, 13vw, 58px) !important;
    line-height: 0.92 !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .av-projects-hover-detail {
    order: 3 !important;
    width: 100% !important;
    min-height: 92px !important;
    grid-template-rows: auto !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .av-projects-hover-arrow {
    display: none !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .av-projects-hover-copy {
    grid-row: 1 !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .av-projects-hover-title {
    font-size: 14px !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .av-projects-hover-description {
    max-width: 30ch !important;
    font-size: 12px !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .triptych-center .av-work-metrics {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .triptych-center .av-work-metrics span {
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 11px 14px !important;
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    justify-items: start !important;
    gap: 12px !important;
    border: 1px solid rgba(255, 248, 239, 0.11) !important;
    border-radius: 7px !important;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
      rgba(255, 255, 255, 0.025) !important;
    text-align: left !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .triptych-center .av-work-metrics span:last-child {
    border: 1px solid rgba(255, 248, 239, 0.11) !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .triptych-center .av-work-metrics span::before {
    content: none !important;
    display: none !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .triptych-center .av-work-metrics b {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    color: #fff8ef !important;
    -webkit-text-fill-color: #fff8ef !important;
    font-size: clamp(20px, 6vw, 26px) !important;
    line-height: 1 !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .triptych-center .av-work-metrics em {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    max-width: none !important;
    justify-self: start !important;
    color: rgba(226, 211, 171, 0.70) !important;
    -webkit-text-fill-color: rgba(226, 211, 171, 0.70) !important;
    font-size: 9px !important;
    line-height: 1.3 !important;
    text-align: left !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:257"],
  #root [data-loc="src/web/pages/Home.tsx:284"] {
    height: clamp(330px, 94vw, 430px) !important;
    min-height: clamp(330px, 94vw, 430px) !important;
    max-height: none !important;
    transform: none !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:257"] {
    order: 2 !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:284"] {
    order: 3 !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:265"],
  #root [data-loc="src/web/pages/Home.tsx:292"] {
    display: none !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .av-work-card-meta,
  #root [data-loc="src/web/pages/Home.tsx:254"] [data-loc="src/web/pages/Home.tsx:257"]:hover .av-work-card-meta,
  #root [data-loc="src/web/pages/Home.tsx:254"] [data-loc="src/web/pages/Home.tsx:284"]:hover .av-work-card-meta,
  #root [data-loc="src/web/pages/Home.tsx:254"] [data-loc="src/web/pages/Home.tsx:257"].av-work-card--pointer-active .av-work-card-meta,
  #root [data-loc="src/web/pages/Home.tsx:254"] [data-loc="src/web/pages/Home.tsx:284"].av-work-card--pointer-active .av-work-card-meta {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    width: auto !important;
    height: auto !important;
    min-height: 140px !important;
    max-height: none !important;
    padding: 20px 18px 19px !important;
    transform: none !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .av-work-card-meta span,
  #root [data-loc="src/web/pages/Home.tsx:254"] .av-work-card-meta b,
  #root [data-loc="src/web/pages/Home.tsx:254"] .av-work-card-meta em,
  #root [data-loc="src/web/pages/Home.tsx:254"] .av-work-card-meta::after {
    opacity: 1 !important;
    transform: none !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .av-work-card-meta b {
    max-width: 18ch !important;
    font-size: clamp(20px, 6vw, 26px) !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .av-work-detail-rail {
    order: 4 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    margin-top: 8px !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .av-work-detail-rail article {
    min-width: 0 !important;
    min-height: 164px !important;
    padding: 20px 18px !important;
    border-right: 1px solid rgba(18, 18, 18, 0.09) !important;
    border-bottom: 1px solid rgba(18, 18, 18, 0.09) !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .av-work-detail-rail article:nth-child(2n) {
    border-right: 0 !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .av-work-detail-rail article:nth-last-child(-n + 2) {
    border-bottom: 0 !important;
  }

  /* PROCESS */
  #root [data-loc="src/web/pages/Home.tsx:300"] {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 48px 0 0 !important;
    padding: 52px 14px 64px !important;
    overflow: hidden !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:300"]::after {
    inset: 10px !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:301"].av-process-architecture,
  #root .process-triptych-grid.av-process-architecture {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    overflow: visible !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:301"].av-process-architecture > *,
  #root .process-triptych-grid.av-process-architecture > * {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
  }

  #root .av-process-architecture [data-loc="src/web/pages/Home.tsx:328"] {
    order: 1 !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    transform: none !important;
  }

  #root .av-process-architecture [data-loc="src/web/pages/Home.tsx:332"] {
    font-size: clamp(46px, 14vw, 62px) !important;
    line-height: 0.92 !important;
  }

  #root .av-process-architecture [data-loc="src/web/pages/Home.tsx:338"] {
    max-width: 31ch !important;
    margin-top: 14px !important;
    font-size: 13px !important;
  }

  #root .av-process-architecture .av-process-current {
    order: 2 !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 0 4px !important;
    padding: 22px 18px 20px !important;
    border: 1px solid rgba(247, 243, 232, 0.11) !important;
    border-radius: 8px !important;
    background: rgba(247, 243, 232, 0.035) !important;
  }

  #root .av-process-architecture .av-process-current::after {
    inset: 78px 12px 12px !important;
  }

  #root .av-process-current__number {
    font-size: clamp(46px, 13vw, 60px) !important;
  }

  #root .av-process-current__title,
  #root .av-process-current__body,
  #root .av-process-current__dossier {
    max-width: 100% !important;
  }

  #root .av-process-current__title {
    font-size: clamp(22px, 6.5vw, 28px) !important;
  }

  #root .av-process-current__dossier {
    grid-template-columns: 1fr !important;
  }

  #root .av-process-architecture .av-process-preview {
    order: 3 !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: clamp(230px, 64vw, 320px) !important;
    min-height: 230px !important;
    margin: 0 0 4px !important;
    border-radius: 8px !important;
    transform: none !important;
  }

  #root .av-process-architecture .av-process-preview::before {
    inset: 8px !important;
    border-radius: 6px !important;
  }

  #root .av-process-architecture .av-process-path {
    display: none !important;
  }

  #root .av-process-architecture [data-loc="src/web/pages/Home.tsx:304"],
  #root .av-process-architecture [data-loc="src/web/pages/Home.tsx:342"] {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    grid-auto-rows: auto !important;
    gap: 10px !important;
  }

  #root .av-process-architecture [data-loc="src/web/pages/Home.tsx:304"] {
    order: 4 !important;
  }

  #root .av-process-architecture [data-loc="src/web/pages/Home.tsx:342"] {
    order: 5 !important;
  }

  #root .av-process-architecture .av-process-step,
  #root .av-process-architecture .av-process-step:hover,
  #root .av-process-architecture .av-process-step:focus-visible,
  #root .av-process-architecture .av-process-step.is-active {
    box-sizing: border-box !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-height: 92px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 18px !important;
    border: 1px solid rgba(247, 243, 232, 0.10) !important;
    border-radius: 8px !important;
    background: rgba(247, 243, 232, 0.025) !important;
    transform: none !important;
  }

  #root .av-process-architecture .av-process-step.is-active {
    border-color: rgba(234, 217, 165, 0.34) !important;
    background:
      linear-gradient(90deg, rgba(234, 217, 165, 0.08), rgba(134, 232, 222, 0.025)),
      rgba(247, 243, 232, 0.035) !important;
  }

  #root .av-process-architecture .av-process-step::before,
  #root .av-process-architecture .av-process-step::after {
    display: none !important;
  }

  #root .av-process-architecture [data-loc="src/web/pages/Home.tsx:316"],
  #root .av-process-architecture [data-loc="src/web/pages/Home.tsx:354"] {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 14px !important;
    row-gap: 7px !important;
    align-items: center !important;
    justify-items: start !important;
    padding: 0 !important;
    text-align: left !important;
  }

  #root .av-process-architecture [data-loc="src/web/pages/Home.tsx:317"],
  #root .av-process-architecture [data-loc="src/web/pages/Home.tsx:355"] {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    width: 34px !important;
    height: 34px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(234, 217, 165, 0.30) !important;
    border-radius: 50% !important;
  }

  #root .av-process-architecture [data-loc="src/web/pages/Home.tsx:320"],
  #root .av-process-architecture [data-loc="src/web/pages/Home.tsx:358"] {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: clamp(16px, 4.8vw, 20px) !important;
    line-height: 1.15 !important;
    text-align: left !important;
  }

  #root .av-process-architecture .av-process-summary {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: block !important;
    max-width: none !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    text-align: left !important;
  }

  /* OUR TRACK RECORD */
  #root:has([data-loc="src/web/pages/Home.tsx:188"]) [data-loc="src/web/components/StatsBanner.tsx:13"] {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 14px 72px !important;
    overflow: hidden !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) [data-loc="src/web/components/StatsBanner.tsx:14"] {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 54px 0 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    overflow: visible !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-record-kicker,
  #root:has([data-loc="src/web/pages/Home.tsx:188"]) [data-loc="src/web/components/StatsBanner.tsx:19"],
  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-record-copy,
  #root:has([data-loc="src/web/pages/Home.tsx:188"]) [data-loc="src/web/components/StatsBanner.tsx:22"],
  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-record-detail-grid {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) [data-loc="src/web/components/StatsBanner.tsx:19"] {
    font-size: clamp(34px, 10vw, 44px) !important;
    line-height: 0.98 !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-record-copy {
    max-width: 34ch !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) [data-loc="src/web/components/StatsBanner.tsx:22"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-height: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-stat-card,
  #root:has([data-loc="src/web/pages/Home.tsx:188"]) [data-loc="src/web/components/StatsBanner.tsx:24"].av-track-stat-card {
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 124px !important;
    padding: 18px 12px 16px !important;
    border: 0 !important;
    border-right: 1px solid rgba(247, 243, 232, 0.09) !important;
    border-top: 1px solid rgba(247, 243, 232, 0.09) !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-stat-card:nth-child(2n) {
    border-right: 0 !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-stat-card:nth-child(-n + 2) {
    border-top: 0 !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-stat-icon,
  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-stat-icon img {
    width: 28px !important;
    height: 28px !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-stat-card [data-loc="src/web/components/StatsBanner.tsx:25"] {
    font-size: clamp(25px, 8vw, 34px) !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-record-detail-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    margin-top: 6px !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-record-proof {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-record-proof-head {
    box-sizing: border-box !important;
    min-height: 0 !important;
    padding: 22px !important;
    justify-content: flex-start !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(247, 243, 232, 0.10) !important;
    overflow: hidden !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-record-signal-visual {
    position: relative !important;
    inset: auto !important;
    width: 126px !important;
    height: 122px !important;
    margin: -2px 0 16px -5px !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-record-signal-visual__wave {
    width: 126px !important;
    height: 122px !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-record-proof-head > span {
    margin-top: 0 !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-record-proof-head strong {
    margin: 14px 0 10px !important;
    font-size: clamp(34px, 10vw, 44px) !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-record-proof-rows {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-record-proof-rows article {
    min-height: 0 !important;
    padding: 20px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(247, 243, 232, 0.10) !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-record-proof-rows article:last-child {
    border-bottom: 0 !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-record-pipeline {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 22px !important;
    gap: 16px !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-record-pipeline p {
    max-width: 34ch !important;
  }
}

@media (max-width: 540px) {
  #root [data-loc="src/web/pages/Home.tsx:254"] .av-work-detail-rail {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .av-work-detail-rail article {
    min-height: 136px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(18, 18, 18, 0.09) !important;
  }

  #root [data-loc="src/web/pages/Home.tsx:254"] .av-work-detail-rail article:last-child {
    border-bottom: 0 !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) [data-loc="src/web/components/StatsBanner.tsx:22"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #root:has([data-loc="src/web/pages/Home.tsx:188"]) .av-track-stat-card,
  #root:has([data-loc="src/web/pages/Home.tsx:188"]) [data-loc="src/web/components/StatsBanner.tsx:24"].av-track-stat-card {
    min-height: 116px !important;
    padding: 16px 10px 14px !important;
  }
}
