.home-page { width: 100%; overflow-x: hidden; background: var(--tms-color-white); color: var(--tms-color-black); }
.home-page h1, .home-page h2, .home-page h3, .home-page p, .home-page figure { margin-top: 0; }
.home-page img { max-width: 100%; }
.home-button { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 40px; border-radius: 6px; background: var(--tms-color-brand); color: var(--tms-color-white) !important; font-size: 18px; font-weight: 600; text-decoration: none; transition: background-color .2s, box-shadow .2s; }
.home-button:hover, .home-button:focus-visible { background: var(--tms-color-brand-hover); box-shadow: 0 10px 40px -2px rgba(0,11,48,.3); }
.home-button--dark { background: var(--tms-color-navy); box-shadow: 0 10px 40px -2px rgba(0,11,48,.3); }
.home-button--dark:hover, .home-button--dark:focus-visible { background: #072235; }

.home-hero { padding: 75px 0 15px; background: linear-gradient(0turn, #fff5e1 0%, #fffff0 100%); }
.home-hero__inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 595px; margin: 0 auto; }
.home-hero__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px 40px 40px 50px; }
.home-hero h1 { max-width: 650px; margin-bottom: 40px; font-size: 72px; line-height: 1.05; font-weight: 500; }
.home-hero h1 strong { font-weight: 600; }
.home-hero p { max-width: 600px; margin-bottom: 0; font-size: 20px; line-height: 1.55; font-weight: 300; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.home-hero__media { min-height: 440px; }
.home-hero__media img { display: block; width: 100%; height: 100%; border-radius: 20px 0 0 20px; object-fit: cover; }

.home-directions { padding: 75px 20px 15px; background: linear-gradient(0turn, #0b2e49 0%, #fff5e1 100%); }
.home-directions > header { max-width: 760px; margin: 0 auto 90px; text-align: center; }
.home-directions h2, .home-problems > h2, .home-projects h2, .home-pricing h2, .home-faq h2 { margin-bottom: 40px; font-size: 42px; line-height: 1.2; font-weight: 500; }
.home-directions > header p { max-width: 560px; margin: 0 auto; font-size: 20px; line-height: 1.55; font-weight: 300; }
.home-directions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1160px; margin: 0 auto; }
.home-directions article { min-height: 195px; padding: 30px 30px 40px; border-radius: 5px; background: var(--tms-color-white); box-shadow: 0 0 10px rgba(0,0,0,.1); text-align: left; }
.home-directions h3 { margin-bottom: 10px; font-size: 22px; line-height: 1.3; font-weight: 600; }
.home-directions article p { margin-bottom: 0; font-size: 16px; line-height: 1.55; font-weight: 300; }

.home-problems { padding: 45px 20px 105px; background: linear-gradient(0turn, #fff5e1 0%, #0b2e49 100%); color: var(--tms-color-white); }
.home-problems > h2 { margin-bottom: 105px; text-align: center; font-weight: 400; }
.home-problems__grid { display: block; max-width: 1200px; margin: 0 auto; }
.home-problems article { position: relative; box-sizing: border-box; width: 560px; min-height: 0; margin-left: 20px; padding-left: 210px; }
.home-problems article:nth-child(even) { width: 460px; margin-left: 620px; padding-left: 110px; }
.home-problems article > span { position: absolute; top: 0; left: 0; color: rgba(230,230,230,.42); font: 700 150px/1 sans-serif; user-select: none; }
.home-problems h3 { position: relative; margin-bottom: 4px; padding: 65px 0 10px; font-size: 22px; line-height: 29.7px; font-weight: 700; }
.home-problems p { position: relative; margin-bottom: 0; font-size: 16px; line-height: 24.8px; font-weight: 300; }

.home-stats { padding: 0 20px; background: linear-gradient(0turn, #efefef 0%, #fff5e1 58%); }
.home-stats > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.home-stats strong { display: block; padding: 8px 0 6px; font-size: 30px; line-height: 34px; }
.home-stats i { display: block; width: calc(100% - 20px); height: 3px; margin: 14px 20px 14px 0; background: var(--tms-color-black); }
.home-stats p { margin: 0 20px 0 0; padding: 4px 0 6px; font-size: 16px; line-height: 25px; font-weight: 300; }

.home-projects { overflow-x: hidden; padding: 45px 0; background: #efefef; }
.home-projects > header { display: flex; justify-content: space-between; align-items: end; max-width: 1200px; margin: 0 auto 40px; padding: 0 20px; }
.home-projects h2 { margin-bottom: 20px; font-weight: 400; }
.home-projects nav { display: flex; flex-direction: column; gap: 6px; }
.home-projects nav a { display: list-item; margin-left: 20px; color: inherit; text-underline-offset: 3px; }
.home-projects__controls { display: flex; gap: 5px; }
.home-projects__controls button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--tms-color-white); font: 28px/1 var(--tms-font-family); cursor: pointer; }
.home-projects__track { display: flex; box-sizing: border-box; width: 100%; max-width: 100vw; gap: 40px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; padding: 0 max(20px, calc((100vw - 1160px) / 2)); scrollbar-width: none; }
.home-projects__track::-webkit-scrollbar { display: none; }
.home-projects__track > article { flex: 0 0 360px; overflow: hidden; border-radius: 10px; background: var(--tms-color-white); }
.home-projects__media { position: relative; height: 270px; }
.home-projects__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.home-projects__media img + img { opacity: 0; }
.home-projects article:hover .home-projects__media img:first-child { opacity: 0; }
.home-projects article:hover .home-projects__media img + img { opacity: 1; }
.home-projects__copy { box-sizing: border-box; min-height: 228.6875px; padding: 30px; }
.home-projects__copy span { display: block; margin-bottom: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.home-projects__copy h3 { margin-bottom: 12px; font-size: 18px; line-height: 1.3; }
.home-projects__copy p { margin: 0; color: #333; font-size: 14px; line-height: 1.7; font-weight: 300; }

.home-pricing { padding: 0 20px 15px; background: #efefef; }
.home-pricing > header { max-width: 760px; margin: 0 auto 80px; text-align: center; }
.home-pricing > header p { max-width: 560px; margin: 0 auto 4px; font-size: 18px; line-height: 1.55; font-weight: 300; }
.home-pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1160px; margin: 0 auto; }
.home-pricing__grid article { display: flex; flex-direction: column; overflow: hidden; background: transparent; }
.home-pricing__image { position: relative; display: block; padding-bottom: 110%; overflow: hidden; }
.home-pricing__image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.home-pricing__copy { display: flex; flex: 1; flex-direction: column; padding: 27px 30px 21px; background: var(--tms-color-white); }
.home-pricing__copy h3 { margin-bottom: 8px; font-size: 20px; line-height: 1.35; }
.home-pricing__copy > p { flex: 1; margin-bottom: 0; font-size: 14px; line-height: 1.55; font-weight: 300; }
.home-pricing__copy > strong { display: block; margin: 12px 0 27px; font-size: 16px; line-height: 21.6px; font-weight: 400; }
.home-pricing__copy > strong span { font-size: 14px; font-weight: 400; }
.home-pricing__copy > strong b { font-weight: 400; }
.home-pricing__copy > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.home-pricing__copy .home-button { flex: 0 0 auto; min-height: 45px; padding: 0 30px; font-size: 14px; }
.home-pricing__copy .home-button:first-child { margin: 0 4px 8px 0; }
.home-pricing__copy .home-button--dark { min-height: 35px; margin-bottom: 8px; padding: 0 15px; font-size: 13px; }

.home-faq { padding: 15px 20px; }
.home-faq > header { max-width: 760px; margin: 0 auto 85px; text-align: center; }
.home-faq h2 { line-height: 51.66px; font-weight: 600; }
.home-faq > header p { margin: 0; font-size: 20px; font-weight: 300; }
.home-faq__items { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 1200px; margin: 0 auto; column-gap: 40px; }
.home-faq details { border-top: 1px solid #d6d6d6; }
.home-faq summary { position: relative; padding: 27px 50px 27px 0; list-style: none; cursor: pointer; font-size: 20px; line-height: 32.4px; font-weight: 600; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary span { position: absolute; top: 18px; right: 0; font-size: 34px; font-weight: 300; transition: transform .3s; }
.home-faq details[open] summary span { transform: rotate(45deg); }
.home-faq details p { margin: 0; padding: 0 40px 40px 0; font-size: 16px; line-height: 1.55; font-weight: 300; }
.home-faq-more { min-height: 97.8px; padding: 32px 20px 15px; text-align: center; }
.home-faq__more { color: inherit; font-size: 16px; line-height: 24.8px; font-weight: 300; }
.home-page .general-cta { padding: 0 20px 60px; background: #efefef; color: var(--tms-color-white); }
.home-page .general-cta > div { display: block; max-width: 1160px; margin: 0 auto; }
.home-page .general-cta__button { position: relative; display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; width: 100%; min-height: 72px; padding: 0 18px; font-size: 18px; font-weight: 500; }
.home-page .general-cta__icon { display: block; width: 28px; height: 28px; }
.home-page .general-cta__arrow { display: block; width: 30px; height: 30px; }
.home-page .service-contact { min-height: 668px; padding-top: 30px; padding-bottom: 105px; background: #ebebeb; }

@media (max-width: 960px) {
  .home-directions__grid { grid-template-columns: repeat(2, 1fr); }
  .home-directions article { grid-column: auto; }
  .home-directions article:last-child { grid-column: 1 / -1; }
  .home-projects__track > article { flex-basis: 295px; }
  .home-projects__media { height: 221px; }
  .home-pricing__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 641px) and (max-width: 1100px) {
  .home-problems article { width: 50%; margin-left: 0; padding-left: clamp(100px, 16vw, 170px); }
  .home-problems article:nth-child(even) { width: 50%; margin-left: 50%; padding-left: clamp(70px, 10vw, 110px); }
}

@media (min-width: 641px) and (max-width: 960px) {
  .home-hero { padding: 0; }
  .home-hero__inner { display: flex; min-height: 0; flex-direction: column; }
  .home-hero__copy { order: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 145px 40px 70px; }
  .home-hero__media { order: 2; width: 100%; min-height: 0; height: 520px; }
  .home-hero__media img { border-radius: 20px 20px 0 0; }
}

@media (min-width: 641px) and (max-width: 800px) {
  .home-hero__copy { max-width: 680px; padding-top: 145px; padding-bottom: 80px; }
  .home-hero h1 { margin-bottom: 34px; font-size: 42px; line-height: 1.15; }
  .home-hero__actions { margin-top: 38px; }
  .home-hero__media { height: 500px; }
}

@media (max-width: 640px) {
  .home-button { min-height: 58px; padding: 0 26px; font-size: 16px; }
  .home-hero { padding: 0; }
  .home-hero__inner { display: flex; min-height: 0; flex-direction: column; }
  .home-hero__copy { order: 1; padding: 150px 20px 100px; }
  .home-hero h1 { margin-bottom: 30px; font-size: 42px; }
  .home-hero p { font-size: 20px; }
  .home-hero__actions { flex-direction: column; align-items: flex-start; width: 100%; margin-top: 35px; }
  .home-hero__actions .home-button:first-child { padding-right: 65px; padding-left: 65px; }
  .home-hero__actions .home-button--dark { padding-right: 49px; padding-left: 49px; }
  .home-hero__media { order: 2; min-height: 315px; height: 315px; }
  .home-hero__media img { border-radius: 20px 20px 0 0; }
  .home-directions { padding: 75px 20px 15px; }
  .home-directions > header { margin-bottom: 35px; }
  .home-directions h2, .home-problems > h2, .home-projects h2, .home-pricing h2, .home-faq h2 { margin-bottom: 20px; font-size: 30px; }
  .home-directions__grid { display: block; }
  .home-directions article { min-height: 0; margin-bottom: 20px; padding-bottom: 30px; }
  .home-directions h3 { font-size: 18px; line-height: 1.3; }
  .home-problems { padding-bottom: 70px; }
  .home-problems > h2 { margin-bottom: 45px; }
  .home-problems article, .home-problems article:nth-child(even) { width: 100%; min-height: 0; margin: 45px 0 0; padding-left: 88px; }
  .home-problems article:first-child { margin-top: 0; }
  .home-problems article > span { font-size: 130px; }
  .home-problems p { font-size: 16px; }
  .home-stats { padding-top: 0; padding-bottom: 0; }
  .home-stats > div { display: block; }
  .home-stats article { margin-top: 20px; }
  .home-stats article:first-child { margin-top: 0; }
  .home-projects > header { align-items: start; margin-bottom: 30px; }
  .home-projects nav { gap: 6px; font-size: 16px; }
  .home-projects__controls { display: none; }
  .home-projects__track { gap: 10px; padding-right: 20px; padding-left: 20px; }
  .home-projects__track > article { flex-basis: 280px; }
  .home-projects__media { height: 210px; }
  .home-projects__copy { min-height: 0; padding: 24px 20px 28px; }
  .home-projects__copy span { font-size: 11px; }
  .home-projects__copy h3 { font-size: 16px; }
  .home-projects__copy p { font-size: 12px; }
  .home-pricing { padding-right: 20px; padding-left: 20px; }
  .home-pricing > header { margin-bottom: 27px; padding: 0; }
  .home-pricing__grid { grid-template-columns: 1fr; gap: 20px; }
  .home-pricing__copy { padding: 22px 30px 10px; }
  .home-pricing__copy h3 { font-size: 16px; }
  .home-pricing__copy > p { font-size: 13px; }
  .home-pricing__copy > strong { font-size: 14px; }
  .home-pricing__copy > div { display: block; }
  .home-pricing__copy .home-button { width: 100%; min-height: 44px; margin-top: 8px; padding: 0 6px; font-size: 13px; }
  .home-pricing__copy .home-button:first-child, .home-pricing__copy .home-button--dark { min-height: 44px; margin: 8px 0 0; padding: 0 6px; font-size: 13px; }
  .home-faq > header { margin-bottom: 45px; }
  .home-faq h2 { line-height: 1.2; }
  .home-faq__items { display: block; }
  .home-faq summary { padding-top: 15px; padding-bottom: 14px; font-size: 18px; line-height: normal; }
  .home-faq summary span { top: 6px; }
  .home-faq details p { padding-bottom: 25px; }
  .home-page .general-cta { padding: 0 20px 30px; }
  .home-page .general-cta > div { margin: 0; }
  .home-page .general-cta__button { min-height: 72px; margin-top: 0; }
  .home-page .service-contact { min-height: 892px; padding-bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* TMS MOBILE PARITY PILOT V1 -- bounded overrides */
@media (max-width: 640px) {
  /* Reference hero image starts ~10px earlier; retain heading position. */
  .home-hero__copy { padding-bottom: 90px; }
  /* Russian reference breaks the heading on two lines. */
  .home-projects h2 { max-width: 285px; }
  /* Price disclaimer lines are italic in original screenshots. */
  .home-pricing > header p:nth-of-type(n+2) { font-style: italic; }
}
