/* Final responsive layer for the v2 site.
 * Loaded after page-specific styles so narrow viewports cannot be overridden
 * by later desktop refinement rules.
 */

body.home-v2 .site-main {
  overflow-wrap: break-word;
}

body.home-v2 .site-main img,
body.home-v2 .site-main svg {
  max-width: 100%;
}

body.home-v2 .site-main > *,
body.home-v2 .site-main .wrap > *,
body.home-v2 .site-main article,
body.home-v2 .site-main section,
body.home-v2 .site-main div {
  min-width: 0;
}

@media (max-width: 900px) {
  body.home-v2 .wrap {
    width: min(100% - 36px, 1180px);
  }

  .home-v2 .header-v2__inner {
    grid-template-columns: 1fr;
  }

  .home-v2 .header-v2__motto {
    display: none;
  }

  .home-v2-principal__panel {
    grid-template-columns: 180px minmax(0, 1fr) !important;
    min-height: 0;
  }

  .home-v2-principal__proof {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.home-v2 .wrap {
    width: min(100% - 32px, 1180px);
  }

  .home-v2 .header-v2__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    min-height: 0;
    padding: 13px 0 11px;
  }

  .home-v2 .brand-v2 {
    max-width: 100%;
  }

  .home-v2 .brand-v2__mark {
    width: 38px;
    height: 38px;
  }

  .home-v2 .nav-v2 {
    order: 2;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 16px;
    overflow: visible;
    padding: 2px 0 0;
    font-size: 0.68rem;
    white-space: normal;
  }

  .home-v2 .nav-v2 a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }

  .home-v2-hero {
    padding: 34px 0 30px;
  }

  .home-v2-hero__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .home-v2-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.55rem, 12vw, 4rem);
    line-height: 0.99;
  }

  .home-v2-hero__eyebrow {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .home-v2-hero__lead {
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .home-v2-hero__visual {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
  }

  .home-v2-page .home-btn,
  .services-v2-page .home-btn,
  .method-v2-page .home-btn {
    width: 100%;
    min-width: 0;
    min-height: 50px;
  }

  .home-v2-page .section-title {
    font-size: 0.82rem;
  }

  .home-v2-why__grid,
  .home-v2-services__grid,
  .home-v2-research__grid,
  .home-v2-commitments__grid {
    grid-template-columns: 1fr;
  }

  .home-v2-why__item,
  .home-v2-why__item + .home-v2-why__item {
    min-height: 0;
    grid-template-columns: 44px 1fr;
    gap: 13px;
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid #555;
  }

  .home-v2-why__item:first-child {
    border-top: 0;
  }

  .home-v2-why h3 {
    font-size: 0.82rem;
  }

  .home-v2-why p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .home-v2-service-card {
    min-height: 0;
    grid-template-columns: 48px 1fr;
    padding: 20px 18px 22px;
  }

  .home-v2-service-card h3 {
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .home-v2-service-card p {
    max-width: none;
    margin: 18px 38px 0 0;
    font-size: 0.84rem;
    line-height: 1.58;
  }

  .home-v2-research__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .home-v2-research__all {
    font-size: 0.72rem;
  }

  .home-v2-research-card {
    min-height: 0;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    padding: 18px 16px;
  }

  .home-v2-research-card h3 {
    font-size: 0.86rem;
  }

  .home-v2-research-card__year,
  .home-v2-research-card a {
    font-size: 0.72rem;
  }

  .home-v2-research-card p {
    font-size: 0.83rem;
    line-height: 1.58;
  }

  .home-v2-timeline {
    padding: 22px 0 18px;
  }

  .home-v2-timeline__line {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 0 0 0 22px;
    border-top: 0;
    border-left: 1px solid #111;
  }

  .home-v2-timeline__line::after {
    display: none;
  }

  .home-v2-timeline__item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    min-height: 0;
    padding: 12px 0 18px;
  }

  .home-v2-timeline__item::before {
    top: 30px;
    left: -26px;
  }

  .home-v2-timeline__copy strong {
    font-size: 0.78rem;
  }

  .home-v2-timeline__copy p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .home-v2-principal {
    padding: 8px 0 20px;
  }

  .home-v2-principal__panel {
    grid-template-columns: 1fr !important;
    min-height: 0;
  }

  .home-v2-principal__portrait {
    width: 100%;
    height: clamp(220px, 68vw, 300px) !important;
    min-height: 0;
  }

  .home-v2-principal__portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  .home-v2-principal__bio {
    padding: 22px 20px 20px;
  }

  .home-v2-principal__eyebrow {
    font-size: 0.76rem;
  }

  .home-v2-principal__bio h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
    line-height: 1;
  }

  .home-v2-principal__bio > p:not(.home-v2-principal__eyebrow) {
    max-width: 62ch;
    margin-top: 14px;
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .home-v2-principal__credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 17px;
    white-space: normal;
  }

  .home-v2-principal__credentials span {
    flex: 0 1 auto;
    padding: 7px 9px;
    border: 1px solid #d7d9d5;
    background: #fff;
    font-size: 0.67rem;
    line-height: 1.2;
    white-space: normal;
  }

  .home-v2-principal__credentials span + span::before {
    content: none;
  }

  .home-v2-principal__proof {
    grid-column: auto;
    grid-template-columns: 1fr !important;
    gap: 0;
    margin: 0;
    padding: 6px 20px 14px;
    border-top: 1px dotted #aaa;
    border-left: 0;
  }

  .home-v2-principal__proof-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
  }

  .home-v2-principal__proof-item + .home-v2-principal__proof-item {
    border-top: 1px solid #dedfdb;
  }

  .home-v2-principal__proof-item .icon-mask {
    width: 26px;
    height: 26px;
  }

  .home-v2-principal__proof-item strong {
    font-size: 0.72rem;
  }

  .home-v2-principal__proof-item p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .home-v2-commitment,
  .home-v2-commitment + .home-v2-commitment {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid #ddd;
  }

  .home-v2-commitment:first-child {
    border-top: 0;
  }

  .home-v2-commitment h3 {
    font-size: 0.76rem;
  }

  .home-v2-commitment p {
    font-size: 0.81rem;
    line-height: 1.5;
  }

  .home-v2 .footer-v2 {
    padding: 22px 0 28px;
    font-size: 0.76rem;
  }

  .home-v2 .footer-v2__inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .home-v2 .footer-v2 nav {
    gap: 5px 16px;
    font-size: 0.72rem;
  }

  .home-v2 .footer-v2 nav a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }

  /* Services */
  .services-v2-hero,
  .service-detail-hero {
    padding: 42px 0 40px;
  }

  .services-v2-hero h1,
  .service-detail-hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.5rem);
  }

  .services-v2-hero__lead,
  .service-detail-hero__lead {
    font-size: 0.94rem;
    line-height: 1.68;
  }

  .svc-principle p,
  .services-v2-lines__intro p,
  .svc-line-card__statement,
  .svc-process-step p,
  .svc-specialist-card p,
  .svc-model-card p,
  .services-v2-cta__panel p,
  .service-detail-summary p,
  .service-detail-intro p,
  .service-detail-card p,
  .service-outcome p,
  .service-detail-needs__panel li {
    font-size: 0.83rem;
    line-height: 1.58;
  }

  .svc-line-card__focus span {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .service-detail-back,
  .service-detail-summary strong,
  .service-outcome span {
    font-size: 0.68rem;
  }

  /* Methodology */
  .method-v2-hero {
    padding: 46px 0 44px;
  }

  .method-v2-hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.55rem);
  }

  .method-v2-hero__lead,
  .method-v2-intro > p,
  .method-v2-lifecycle__head > p,
  .method-v2-communication__head > p,
  .method-v2-readers__head > p,
  .method-v2-evidence__statement > p:not(.method-eyebrow),
  .method-v2-retest__grid > div:first-child > p:not(.method-eyebrow),
  .method-v2-cta__panel p {
    font-size: 0.92rem;
    line-height: 1.68;
  }

  .method-expect p,
  .method-promise-card p,
  .method-step p,
  .method-v2-evidence__qualities p,
  .method-v2-standards__grid p,
  .method-v2-readers__grid p,
  .method-v2-communication__grid p,
  .method-v2-delivery__grid p,
  .method-v2-retest__states p {
    font-size: 0.82rem;
    line-height: 1.58;
  }

  .method-v2-intro h2,
  .method-v2-evidence__statement h2,
  .method-v2-retest h2,
  .method-v2-communication__head h2,
  .method-v2-readers__head h2,
  .method-v2-lifecycle__head h2 {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }
}

@media (max-width: 480px) {
  body.home-v2 .wrap {
    width: min(100% - 24px, 1180px);
  }

  .home-v2 .brand-v2__name {
    font-size: 1rem;
  }

  .home-v2 .brand-v2__security {
    font-size: 0.55rem;
    letter-spacing: 0.46em;
  }

  .home-v2 .nav-v2 {
    gap: 2px 13px;
    font-size: 0.64rem;
  }

  .home-v2-hero h1,
  .services-v2-hero h1,
  .service-detail-hero h1,
  .method-v2-hero h1 {
    font-size: clamp(2.25rem, 11.5vw, 3rem);
  }

  .home-v2-research-card {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .home-v2-research-card__year {
    grid-column: 2;
    margin-top: 3px;
  }

  .home-v2-research-card p,
  .home-v2-research-card a {
    grid-column: 2;
  }

  .home-v2-principal__portrait {
    height: clamp(210px, 72vw, 270px) !important;
  }

  .home-v2-principal__bio {
    padding-inline: 18px;
  }

  .services-v2-hero__principles {
    grid-template-columns: 1fr;
  }

  .services-v2-cta__panel,
  .method-v2-cta__panel {
    padding: 24px 20px;
  }
}

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