/* M08 page level system: consistent rhythm and controls without changing copy or data. */
body.m08-page { --m08-line: rgba(148, 163, 184, .16); --m08-surface: rgba(13, 25, 40, .72); }
body.m08-page main { isolation: isolate; }
body.m08-page :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #5eead4;
    outline-offset: 4px;
}
body.tt-light-style-on.m08-page :is(a, button, input, select, textarea):focus-visible { outline-color: #0f766e; }
body.m08-page :is(button, a, input, select, textarea) { scroll-margin-block: 7rem; }

/* About already has its own page system; reinforce the shared content rhythm. */
body.m08-about #about-page .about-section { padding-block: clamp(4.5rem, 8vw, 7rem); }
body.m08-about #about-page .about-story-copy { max-width: 66ch; }
body.m08-about #about-page .about-client-logo { border-color: var(--about-line); }

/* Services */
body.m08-services { background: #080f18; }
body.m08-services main { padding-block: clamp(7rem, 11vw, 10rem) 5rem; }
body.m08-services main > .max-w-7xl > .text-center h1 { max-width: 18ch; margin-inline: auto; font-size: clamp(2.5rem, 5.5vw, 4.8rem); line-height: 1.08; text-wrap: balance; }
body.m08-services .service-card-innovative,
body.m08-services .services-contact-box,
body.m08-services .contact-info-card,
body.m08-services .contact-logo-card {
    border-radius: 1.1rem;
    border-color: var(--m08-line);
    box-shadow: 0 22px 54px rgba(1, 7, 14, .18);
}
body.m08-services .service-card-innovative { background: var(--m08-surface); }
body.m08-services .service-card-innovative:hover,
body.m08-services .project-rec-card:hover { border-color: rgba(94, 234, 212, .42); }
body.m08-services .service-card-innovative :is(h2, h3) { text-wrap: balance; }
body.m08-services .services-contact-box { padding: clamp(1.5rem, 4vw, 3rem); }

/* Insights archive and article reading experience */
body.m08-insights { --brand-gold: #d7b978; --mntn-accent: #d7b978; }
body.m08-insights .mntn-hero-backdrop { opacity: .5; }
body.m08-insights .filter-pill { min-height: 2.75rem; border-radius: .75rem; transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
body.m08-insights .filter-pill:hover { transform: translateY(-1px); }
body.m08-insights .valorant-article-card { border-radius: 1rem; border-color: var(--m08-line); box-shadow: 0 22px 54px rgba(1, 7, 14, .2); }
body.m08-insights .valorant-poster-area { aspect-ratio: 1.18; }
body.m08-insights .valorant-article-card :is(h2, h3) { text-wrap: balance; }
body.m08-insights .search-submit-btn { inset-inline-end: .75rem; inset-inline-start: auto; right: auto; }
html[dir="rtl"] body.m08-insights .search-submit-btn { right: auto; left: .75rem; }
body.m08-insights .count-badge { font-variant-numeric: tabular-nums; }
body.m08-article .article-title-heading { max-width: 18ch; line-height: 1.12; text-wrap: balance; }
body.m08-article .article-body-content { max-width: 72ch; margin-inline: auto; font-size: clamp(1.05rem, 1.35vw, 1.18rem); line-height: 1.9; overflow-wrap: anywhere; }
body.m08-article .article-body-content :is(h2, h3) { margin-block: 2.6em .8em; line-height: 1.25; scroll-margin-top: 7rem; }
body.m08-article .article-body-content img { max-width: 100%; height: auto; border-radius: .9rem; }
body.m08-article .article-body-content :is(pre, table) { max-width: 100%; overflow-x: auto; }
body.m08-article .service-card-innovative { border-radius: 1.15rem; }

/* Contact and FAQs */
body.m08-contact .contact-info-card,
body.m08-contact .contact-logo-card,
body.m08-contact .service-card-innovative { border-radius: 1.1rem; }
body.m08-contact #contact-form :is(input, select, textarea),
body.m08-services #services-contact-form :is(input, select, textarea) {
    min-height: 3rem;
    border-color: rgba(148, 163, 184, .25);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
body.m08-contact #contact-form :is(input, select, textarea):focus,
body.m08-services #services-contact-form :is(input, select, textarea):focus { border-color: #2dd4bf; box-shadow: 0 0 0 3px rgba(45, 212, 191, .14); }
body.m08-faq .faq-accordion-item { border-radius: .9rem; }
body.m08-faq .faq-accordion-header { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; border: 0; background: transparent; color: inherit; padding: 0; text-align: start; cursor: pointer; }
body.m08-faq .faq-accordion-header h3 { margin: 0; }
body.m08-faq .faq-accordion-header:focus-visible { border-radius: .35rem; }
body.m08-faq .faq-accordion-content { padding-inline: .25rem; }

@media (max-width: 640px) {
    body.m08-page main { overflow-x: clip; }
    body.m08-services main > .max-w-7xl > .text-center { margin-bottom: 3.5rem; }
    body.m08-insights .valorant-poster-area { aspect-ratio: 1.08; }
    body.m08-article .article-body-content { font-size: 1rem; line-height: 1.85; }
    body.m08-contact .contact-logo-card { flex-wrap: wrap; }
}

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