/* Tablet and mobile layout refinements. */
@media (width > 640px) and (width <= 980px) {
  .hero-copy {
    min-height: auto;
    padding: 76px 7vw 68px;
  }

  .hero-visual {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .section {
    padding-block: 88px;
  }

  .page-hero {
    padding: 90px 7vw 72px;
  }

  .content-shell {
    padding-block: 76px 100px;
  }
}

@media (width <= 640px) {
  body {
    overflow-x: hidden;
    font-size: 15px;
  }

  .site-header {
    gap: 16px;
    height: 64px;
    padding-inline: 16px;
  }

  .brand img {
    width: 136px;
  }

  .mobile-menu summary {
    align-items: center;
    display: flex;
    min-height: 44px;
    padding-inline: 10px 0;
  }

  .mobile-menu div {
    gap: 0;
    padding: 10px 18px 18px;
    top: 64px;
  }

  .mobile-menu div a {
    align-items: center;
    border-bottom: 1px solid rgb(96 70 59 / 8%);
    display: flex;
    min-height: 46px;
  }

  .mobile-menu div a:last-child {
    border-bottom: 0;
  }

  .hero-copy {
    padding: 48px 18px 42px;
  }

  .hero h1 {
    font-size: clamp(36px, 10.5vw, 42px);
    line-height: 1.16;
    margin-bottom: 22px;
  }

  .hero-lead {
    font-size: 15.5px;
    line-height: 1.82;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 30px;
  }

  .button,
  .nav-cta {
    min-height: 48px;
    padding-inline: 20px;
  }

  .trust-line {
    gap: 10px 16px;
    margin-top: 30px;
    padding-top: 22px;
  }

  .hero-visual {
    aspect-ratio: 1.08 / 1;
    min-height: 0;
  }

  .orb-note {
    bottom: 16px;
    padding: 8px 12px;
    right: 16px;
  }

  .fact-band {
    gap: 0;
    padding: 18px;
  }

  .fact-band div {
    padding: 16px 0;
  }

  .fact-band div:last-child {
    border-bottom: 0;
  }

  .fact-band span {
    font-size: 16px;
  }

  .section {
    padding: 60px 18px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .eyebrow,
  .section-heading .eyebrow {
    margin-bottom: 14px;
  }

  .section-heading h2 {
    font-size: 32px;
    line-height: 1.25;
    margin-bottom: 16px;
  }

  .section-heading > p:last-child {
    font-size: 15.5px;
  }

  .process-card {
    padding: 24px 4px;
  }

  .process-card h3 {
    font-size: 22px;
    margin: 22px 0 10px;
  }

  .process-card:last-child {
    border-bottom: 0;
  }

  .article-grid,
  .info-grid,
  .service-grid {
    gap: 12px;
  }

  .service-card {
    min-height: 220px;
    padding: 24px;
  }

  .service-card h3 {
    font-size: 25px;
  }

  .split {
    gap: 36px;
  }

  .split h2 {
    font-size: 32px;
  }

  .large-copy {
    font-size: 15.5px;
  }

  .quote-panel {
    min-height: 280px;
    padding: 28px;
  }

  .quote-panel p {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .article-card {
    min-height: 0;
    padding: 24px;
  }

  .article-card h3 {
    font-size: 24px;
    line-height: 1.3;
    margin: 28px 0 14px;
  }

  .article-card b {
    margin-top: 20px;
  }

  .faq-list summary {
    font-size: 18px;
    line-height: 1.55;
    padding: 20px 40px 20px 0;
  }

  .faq-list details p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 22px;
  }

  .cta-section {
    padding: 62px 18px;
  }

  .cta-section h2 {
    font-size: 32px;
    line-height: 1.25;
    margin-bottom: 18px;
  }

  .cta-section > p:not(.eyebrow) {
    font-size: 15.5px;
  }

  .cta-section .button {
    margin-top: 22px;
    width: 100%;
  }

  .page-hero {
    padding: 56px 18px 48px;
  }

  .page-hero h1 {
    font-size: clamp(36px, 10vw, 42px);
    line-height: 1.18;
    margin-bottom: 20px;
  }

  .page-hero > p:last-child {
    font-size: 16px;
    line-height: 1.8;
  }

  .content-shell {
    padding: 52px 18px 72px;
  }

  .content-section {
    margin-bottom: 56px;
  }

  .content-section:last-child {
    margin-bottom: 0;
  }

  .content-section h2 {
    font-size: 29px;
    line-height: 1.3;
    margin-bottom: 18px;
  }

  .content-section h3 {
    font-size: 22px;
    margin-top: 32px;
  }

  .info-card {
    padding: 22px;
  }

  .definition-box,
  .notice-box {
    padding: 22px 18px;
  }

  .notice-box {
    margin: 32px 0;
  }

  .breadcrumbs {
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .article-header {
    margin-bottom: 40px;
  }

  .article-header h1 {
    font-size: 36px;
    line-height: 1.22;
    margin-bottom: 20px;
  }

  .article-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .article-body h2 {
    font-size: 28px;
    line-height: 1.35;
    margin: 44px 0 16px;
  }

  .article-body p,
  .article-body li {
    font-size: 16px;
    line-height: 1.85;
  }

  .article-body table {
    -webkit-overflow-scrolling: touch;
    display: block;
    font-size: 14px;
    max-width: 100%;
    overflow-x: auto;
  }

  .article-body th,
  .article-body td {
    min-width: 130px;
    padding: 12px;
  }

  .site-footer {
    padding: 56px 18px 20px;
  }

  .footer-main {
    gap: 32px;
    padding-bottom: 40px;
  }

  .footer-main > div:not(.footer-brand) {
    gap: 8px;
  }

  .footer-brand img {
    margin-bottom: 16px;
    width: 160px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (width <= 380px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand img {
    width: 128px;
  }

  .cta-section,
  .hero-copy,
  .page-hero,
  .section {
    padding-inline: 16px;
  }

  .content-shell {
    padding-inline: 16px;
  }

  .article-header h1,
  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .cta-section h2,
  .section-heading h2,
  .split h2 {
    font-size: 30px;
  }
}
