/* Shared finishing rules, loaded after each page's component styles. */
[hidden] { display: none !important; }
html { scroll-padding-top: 90px; }
.shell > *, .contact-form__grid > *, .footer__links > * { min-width: 0; }
button, a, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: 3px solid #c84b39; outline-offset: 4px; }

.light-experience .hero__ambient-video,
.light-experience .hero__ambient-cursor,
.light-experience .hero__ambient-blob { display: none; }
.light-experience .hero__ambient *,
.light-experience .hero__glow,
.light-experience .promo-stage *,
.light-experience .integration-map *,
.light-experience .services-visual *,
.light-experience .ai-demo *,
.light-experience .workflow-window * { animation: none !important; }
.light-experience .tech-track { animation: none; width: 100%; }
.light-experience .tech-group { flex-wrap: wrap; justify-content: center; width: 100%; padding-inline: 14px; }
.light-experience .tech-marquee { mask-image: none; }
.light-experience .tech-panel::before { animation: none; }
.light-experience .hero-visual { transform: none; }
.light-experience .reveal { opacity: 1; transform: none; }
.light-experience .site-header { background: #fff; backdrop-filter: none; }
.light-experience .contact-form,
.light-experience .contact-page__form-shell,
.light-experience .ai-demo,
.light-experience .workflow-node,
.light-experience .nav { -webkit-backdrop-filter: none; backdrop-filter: none; }

@media (max-width: 1040px) {
  .site-header, .site-header.scrolled { height: 72px; }
  .nav { position: absolute; top: calc(100% + 8px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-wrap { gap: 16px; }
  .menu-toggle { justify-self: end; }
  .section-heading { gap: 32px; }
  .project-slide__tags { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .site-header, .site-header.scrolled { height: 68px; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: clamp(36px, 10.8vw, 60px); letter-spacing: -.055em; line-height: 1.08; }
  .services-hero h1, .ai-hero h1, .contact-hero h1, .portfolio-hero h1 { font-size: clamp(36px, 10.5vw, 60px); letter-spacing: -.055em; line-height: 1.08; overflow-wrap: break-word; }
  .section-heading h2, .ai-copy h2, .process-intro h2, .faq-intro h2, .contact-card h2 { font-size: clamp(32px, 9vw, 48px); letter-spacing: -.045em; }
  .section { padding-block: 60px; }
  .hero-visual--promo { min-height: 400px; margin-top: 34px; }
  .promo-brand-logo { max-width: 95%; }
  .promo-brand-lockup > strong { font-size: clamp(28px, 8vw, 40px); }
  .project-media, .has-project-motion .project-media { height: clamp(230px, 78vw, 410px); }
  .project-slide__info h3 { font-size: clamp(32px, 10vw, 48px); }
  .contact-card { padding: 36px 18px 22px; }
  .contact-form { padding: 18px 14px; }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; min-width: 0; }
  .contact-form__footer .button { width: 100%; }
  .contact-page__form-shell { padding: 22px 12px; }
  .button, .promo-control, .footer__links a { min-height: 44px; }
  .footer__links a { display: inline-flex; align-items: center; }
  .portfolio-hero { min-height: 0; }
  .portfolio-hero__foot { position: static; transform: none; margin-top: 36px; flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 380px) {
  .site-header .brand { width: 160px; }
  .contact-detail { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; padding-inline: 10px; }
  .contact-detail__icon { width: 34px; height: 38px; }
  .contact-detail strong { font-size: 12px; }
  .map-node--one, .map-node--three { left: 0; }
  .map-node--two, .map-node--four { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Keep primary content immediately readable on lightweight devices. */
.light-experience .hero .eyebrow,
.light-experience .hero h1,
.light-experience .hero__lead,
.light-experience .hero__actions,
.light-experience .hero__proof,
.light-experience .hero-visual,
.light-experience .site-header {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
  will-change: auto;
}
