/* Responsive refinements and lightweight interaction effects.
   Loaded last so the approved desktop composition remains unchanged. */

html { overflow-x: clip; }
body { overflow-x: clip; }
img { max-width: 100%; }

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: var(--scroll-progress, 0%);
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(90deg, #d1051b, #ff5363);
  box-shadow: 0 0 14px #d1051baa;
}

.service-grid article,
.benefit,
.review-tab,
.stat {
  isolation: isolate;
}

.service-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--spot-x, 50%) var(--spot-y, 50%), #d1051b12, transparent 60%);
  transition: opacity .35s ease;
}

.service-grid article:hover::before { opacity: 1; }

.book-viewport { width: 1170px; max-width: calc(100% - 100px); overflow: hidden; }
.book-track { display: flex; grid-template-columns: none; gap: 30px; width: max-content; will-change: transform; }
.book-track.is-animating { transition: transform .65s cubic-bezier(.22, 1, .36, 1); }
.book-track img { flex: 0 0 370px; user-select: none; -webkit-user-drag: none; }

.ui-btn:focus-visible,
.menu-toggle:focus-visible,
.book-arrow:focus-visible,
.review-tab:focus-visible,
.faq-item button:focus-visible {
  outline: 3px solid #ff5363;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .ui-btn { will-change: transform; }
  .stat-icon { transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
  .stat:hover .stat-icon { transform: translateY(-6px) rotate(-4deg); }
}

@media (max-width: 1000px) {
  .site-container { width: min(100% - 40px, 760px); max-width: none; }

  .main-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 8px 30px #0000000d; }
  .main-nav {
    top: 100%;
    z-index: 20;
    gap: 0;
    padding: 12px 20px 22px;
    border-top: 1px solid #eee;
    box-shadow: 0 18px 35px #0002;
  }
  .main-nav a { width: 100%; padding: 13px 6px; border-bottom: 1px solid #eee; }
  .menu-toggle { width: 46px; height: 46px; border-radius: 50%; color: #111; }

  .hero { min-height: 0; }
  .hero-inner { min-height: 0; }
  .hero-copy { padding: 74px 0 25px; }
  .hero h1 { max-width: 720px; font-size: clamp(42px, 7vw, 58px); }
  .hero-copy > p { max-width: 680px; }
  .hero-visual { height: clamp(430px, 62vw, 560px); }
  .hero-book { width: min(650px, 88vw); right: 50%; }
  .red-slash { left: 22%; height: 100%; }

  .platform-section { height: 240px; padding-top: 50px; }
  .platform-slider { height: 160px; }
  .platform-item { height: 100px; margin-top: 30px; padding: 18px 34px; }

  .about-grid { padding: 80px 0 120px; }
  .about-images { width: min(100%, 670px); height: clamp(460px, 77vw, 575px); margin: 0 auto; }
  .about-images > img:first-child { width: 55.22%; height: 100%; }
  .about-images > img:nth-child(2) { width: 55.22%; height: calc(100% - 50px); }
  .experience { left: 31.3%; top: 42.6%; width: 62.7%; }
  .about-copy { width: min(100%, 670px); margin: 0 auto; padding: 65px 0 0; }
  .about-copy::after { left: 0; }
  .about-corner { width: 220px; }

  .stats-wrap { height: auto; padding: 0 20px; background: #000; }
  .stats-card {
    position: relative;
    inset: auto;
    width: min(100%, 760px);
    max-width: none;
    height: auto;
    min-height: 430px;
    margin: -82px auto 0;
    transform: none;
    grid-template-columns: repeat(2, 1fr);
    padding: 25px 0;
    border-radius: 36px;
  }
  .stat { min-height: 190px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid #ddd; }
  .stat-icon { width: 72px; height: 72px; }
  .stat-icon img { width: 39px; height: 39px; }
  .stat strong { font-size: 40px; margin: 14px 0 7px; }
  .stat small { font-size: 14px; }

  .services-section { padding: 130px 0 150px; background: #000; }
  .service-grid { width: min(100% - 40px, 770px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 24px; }
  .service-grid article { width: 100%; height: auto; min-height: 210px; }
  .service-road { height: 400px; }

  .book-slider { width: min(100% - 30px, 800px); }
  .book-viewport { width: calc(100% - 100px); max-width: none; }
  .book-track { width: max-content; gap: 18px; }
  .book-track img { flex-basis: calc((min(100vw - 140px, 700px) - 36px) / 3); min-width: 0; }

  .publish-cta { grid-template-columns: 1fr; }
  .cta-copy { padding: 80px max(30px, calc((100vw - 720px) / 2)); }
  .cta-image { min-height: 480px; background-position: center; }

  .benefit-panel { width: min(100% - 40px, 760px); padding: 42px; }
  .reviews-inner { width: min(100% - 40px, 760px); gap: 24px; }
  .vertical-title { height: auto; justify-content: flex-start; }
  .vertical-title strong { font-size: 30px; }
  .review-panel { width: 100%; }
  .review-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-tab { min-width: 0; height: 84px; }
  .review-tab b { font-size: 14px; }
  .review-tab img { width: 54px; height: 54px; }

  .expertise-art { width: min(100% - 40px, 650px); height: 650px; margin: 0 auto; }
  .expertise-copy { width: min(100% - 60px, 700px); margin: 0 auto; padding: 65px 0 0; }
  .contact-inner { width: min(100% - 40px, 700px); gap: 75px; }
  .contact-form { height: auto; }
  .footer-inner { width: min(100% - 40px, 760px); }
}

@media (max-width: 600px) {
  .site-container { width: calc(100% - 30px); }
  .topbar .site-container { justify-content: center; }
  .topbar span:nth-child(3) { font-size: 9px; }
  .brand img { width: min(180px, 52vw); }

  .hero-copy { padding: 52px 0 20px; text-align: left; }
  .kicker { font-size: 12px; gap: 8px; }
  .kicker img { width: 17px; height: 17px; }
  .hero h1 { font-size: clamp(34px, 10.5vw, 44px); line-height: 1.14; }
  .hero-copy > p { font-size: 14px; }
  .button-row { align-items: stretch; gap: 12px; }
  .button-row .ui-btn { width: 100% !important; }
  .trusted { margin-top: 28px; }
  .hero-visual { height: 360px; }
  .hero-book { width: min(440px, 112vw); }
  .red-slash { left: 16%; }

  .platform-section { height: 190px; padding-top: 30px; }
  .platform-slider { max-width: calc(100% - 30px); height: 135px; }
  .platform-item { height: 90px; margin-top: 22px; padding: 15px 25px; }

  .about-grid { padding: 65px 0 105px; }
  .about-images { width: 100%; height: min(116vw, 465px); transform: none; margin: 0 auto; }
  .about-images > img:nth-child(2) { top: 35px; height: calc(100% - 35px); }
  .experience { left: 22%; top: 43%; width: 75%; height: 66px; gap: 9px; border-width: 5px; }
  .experience strong { font-size: 26px; }
  .experience span { font-size: 13px; }
  .about-copy { padding-top: 52px; }
  .about-copy h2 br,
  .expertise-copy h2 br,
  .why-section h2 br,
  .final-cta h2 br { display: none; }
  .about-copy p { font-size: 14px; }
  .icon-list li, .package-list li { font-size: 14px; }

  .stats-wrap { padding: 0 15px; }
  .stats-card { min-height: 0; margin-top: -64px; border-radius: 28px; padding: 16px 0; }
  .stat { min-height: 158px; padding: 14px 8px; }
  .stat-icon { width: 58px; height: 58px; }
  .stat-icon img { width: 31px; height: 31px; }
  .stat strong { font-size: 31px; }
  .stat small { font-size: 11px; }

  .services-section { padding: 95px 0 115px; }
  .section-heading { padding-inline: 15px; }
  .section-heading p { font-size: 14px; }
  .service-grid { width: calc(100% - 30px); margin-top: 45px; grid-template-columns: 1fr; gap: 55px; }
  .service-grid article { min-height: 190px; padding: 34px 22px; }

  .portfolio-section { padding: 75px 0; }
  .book-slider { position: relative; width: calc(100% - 20px); padding-bottom: 60px; }
  .book-viewport { width: calc(100% - 30px); max-width: none; margin: auto; border-radius: 18px; }
  .book-track { width: max-content; margin: 0; gap: 0; }
  .book-track img { flex: 0 0 calc(100vw - 50px); width: calc(100vw - 50px); height: auto; min-width: 0; }
  .book-arrow { position: absolute; bottom: 0; z-index: 2; }
  .book-arrow.prev { left: calc(50% - 48px); }
  .book-arrow.next { right: calc(50% - 48px); }

  .cta-copy { padding: 65px 20px; }
  .cta-copy h2 { font-size: clamp(34px, 10vw, 44px); }
  .cta-copy p { max-width: none; }
  .cta-image { min-height: 330px; height: 330px; }

  .why-section { padding: 75px 0 130px; }
  .benefit-panel { width: calc(100% - 30px); margin-top: 40px; padding: 18px; gap: 16px; }
  .benefit { height: auto; min-height: 94px; }
  .benefit > b { flex: 0 0 42px; }
  .benefit span { padding: 16px 12px 16px 26px; }

  .feature-ticker { height: 62px; font-size: 20px; line-height: 62px; }
  .reviews-section { padding: 70px 0; }
  .reviews-inner { width: calc(100% - 30px); max-width: none; }
  .vertical-title strong { font-size: 27px; }
  .review-panel { padding: 32px 24px 75px; }
  .review-panel p { font-size: 15px; }
  .review-arrows { bottom: 0; }
  .review-tabs { grid-template-columns: 1fr; }

  .expertise-section { padding: 70px 0; }
  .expertise-art { width: calc(100% - 30px); height: 105vw; max-height: 475px; transform: none; margin: 0 auto; }
  .expertise-art > img:first-child { left: 38%; width: 62%; height: 100%; }
  .expertise-art > img:nth-child(2) { left: 0; top: 18%; width: 58%; height: 82%; }
  .expertise-copy { width: calc(100% - 30px); padding: 55px 0 0; }
  .expertise-copy h3 { height: auto; min-height: 60px; }
  .package-list { gap: 13px; }

  .contact-inner { width: calc(100% - 24px); max-width: none; gap: 55px; }
  .contact-form { box-shadow: 0 12px 35px #0002; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
  .faq-copy { padding-inline: 6px; }
  .faq-item button { height: auto; min-height: 62px; gap: 12px; }

  .final-cta { padding: 75px 15px; }
  .final-cta mark { display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .footer { padding-top: 70px; }
  .footer-inner { width: calc(100% - 36px); max-width: none; }
  .copyright { position: relative; left: auto; bottom: auto; transform: none; margin: 55px auto -90px; min-height: 52px; height: auto; padding: 12px 25px; }

  .book-modal .modal-dialog { margin: 8px; }
  .modal-visual { min-height: 230px; }
  .modal-visual h2 { width: 68%; font-size: 25px; }
  .modal-visual > img { width: 220px; right: -45px; }
  .modal-form-wrap { padding: 30px 20px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 32px; }
  .ui-btn { padding-inline: 16px; font-size: 13px; }
  .experience { left: 16%; width: 82%; }
  .stat strong { font-size: 27px; }
  .stat small { font-size: 10px; }
  .modal-visual h2 { width: 75%; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}
