@media (min-width: 1440px) {
  .hero-grid {
    min-height: 650px;
  }
}
@media (max-width: 1200px) {
  .container {
    width: calc(100% - 56px);
  }
  .header-inner {
    gap: 18px;
  }
  .aap-menu {
    gap: 15px;
  }
  .header-cta {
    padding: 10px;
    font-size: 10px;
  }
  .brand strong {
    font-size: 14px;
  }
  .brand-symbol {
    font-size: 42px;
  }
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .service-card {
    padding: 24px;
  }
  .service-card h3 {
    font-size: 19px;
  }
  .industries-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-visual {
    margin-right: -28px;
    margin-left: -40px;
    min-height: 540px;
  }
  .hero h1 {
    font-size: clamp(46px, 5.4vw, 65px);
  }
  .footer-grid {
    gap: 25px;
  }
  .about-grid {
    gap: 42px;
  }
  .article-layout {
    gap: 35px;
  }
  .cta-panel .handwritten {
    right: 4%;
    font-size: 24px;
  }
  .cta-copy {
    max-width: 60%;
  }
}
@media (max-width: 1024px) {
  .header-inner {
    min-height: 76px;
  }
  .header-cta {
    margin-left: auto;
    margin-right: 5px;
  }
  .menu-toggle {
    display: block;
    order: 3;
  }
  .primary-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    color: #0b1838;
    box-shadow: 0 15px 20px #00152c18;
    margin: 0;
    padding: 20px 28px;
    max-height: calc(100dvh - 110px);
    overflow: auto;
  }
  .primary-navigation.is-open {
    display: block;
  }
  .primary-navigation .aap-menu {
    display: block;
  }
  .primary-navigation .aap-menu a {
    padding: 12px;
    font-size: 15px;
  }
  .primary-navigation .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    padding: 0 0 0 24px;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    min-height: 540px;
  }
  .hero-copy {
    padding-top: 38px;
  }
  .hero h1 {
    font-size: 52px;
  }
  .hero-copy > p {
    font-size: 15px;
  }
  .hero-visual {
    min-height: 530px;
  }
  .floating-label {
    font-size: 10px;
  }
  .hero-glass {
    right: 14%;
    padding: 12px;
  }
  .hero .handwritten {
    display: none;
  }
  .stats-bar {
    gap: 15px;
    grid-template-columns: repeat(4, 1fr);
  }
  .stats-bar blockquote {
    grid-column: 1/-1;
    text-align: center;
    margin-top: 10px;
  }
  .stats-bar > div:last-of-type {
    border: 0;
  }
  .section {
    padding: 55px 0;
  }
  .section-heading {
    gap: 25px;
  }
  .about-overlay {
    right: -12px;
    padding: 15px;
    font-size: 15px;
  }
  .process-grid {
    gap: 25px;
  }
  .stories-grid {
    grid-template-columns: 1.7fr 1fr;
  }
  .case-study {
    grid-template-columns: 1fr;
  }
  .case-study > img {
    height: 200px;
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
  }
  .featured-post > div {
    padding: 28px;
  }
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 25px;
  }
  .sidebar-box {
    padding: 18px;
  }
  .blog-orbit {
    right: -70px;
    opacity: 0.6;
  }
}
@media (max-width: 768px) {
  .container {
    width: calc(100% - 40px);
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-copy {
    padding-top: 38px;
  }
  .hero h1 {
    font-size: clamp(46px, 8.5vw, 65px);
    max-width: 600px;
  }
  .hero-copy > p {
    max-width: 550px;
  }
  .hero-visual {
    min-height: 400px;
    height: 400px;
    margin: -10px -20px 0;
  }
  .hero-art {
    width: 100%;
    object-position: right center;
    mask-image: linear-gradient(
      180deg,
      transparent,
      #000 12%,
      #000 85%,
      transparent
    );
  }
  .hero .handwritten {
    display: block;
    right: 8%;
    bottom: 12%;
  }
  .hero-glass {
    right: 30%;
    bottom: 6%;
  }
  .label-ideas {
    top: 12%;
    left: 14%;
  }
  .label-ai {
    right: 17%;
  }
  .label-automation {
    left: 12%;
    bottom: 18%;
  }
  .stats-bar {
    padding-top: 10px;
  }
  .stats-bar strong {
    font-size: 27px;
  }
  .stats-bar span {
    display: block;
    font-size: 10px;
  }
  .purpose-strip p {
    font-size: 13px;
  }
  .purpose-strip b {
    margin: 0 8px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > div:last-child:not(:first-child) {
    max-width: none;
  }
  .section-heading .text-link {
    display: inline-block;
    margin-top: 8px;
  }
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .about-copy {
    order: 0;
  }
  .about-visual {
    order: 1;
    width: 100%;
  }
  .rounded-image {
    aspect-ratio: 3 / 2;
    width: 100%;
  }
  .about-overlay {
    right: 15px;
  }
  .about-section {
    padding: 15px 0 70px;
  }
  .process-section {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    background: #031629;
  }
  .process-art {
    position: relative;
    order: 2;
    height: 260px !important;
    margin-top: 15px;
    object-position: right center;
    mask-image: linear-gradient(180deg, transparent, #000 18%);
  }
  .process-section:before {
    content: none;
  }
  .process-section h2,
  .process-section > .container > p {
    max-width: 100%;
  }
  .process-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
  }
  .process-grid li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0 18px;
    padding-left: 42px;
  }
  .step-number {
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 18px;
  }
  .process-icon {
    grid-column: 1;
    grid-row: 1/3;
    margin: 0;
  }
  .process-grid h3 {
    grid-column: 2;
    margin: 0 0 6px;
  }
  .process-grid p {
    grid-column: 2;
    max-width: none;
    margin: 0;
  }
  .process-grid li:not(:last-child):after {
    left: 60px;
    top: 46px;
    bottom: -14px;
    width: 1px;
    height: auto;
    right: auto;
  }
  .process-motto {
    text-align: left;
  }
  .industry-banner {
    margin: 25px 0 0;
    min-height: 175px;
  }
  .industries-grid {
    gap: 12px;
  }
  .stories-grid {
    grid-template-columns: 1fr;
  }
  .case-study {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .case-study > img {
    height: 100%;
  }
  .testimonial {
    padding: 25px;
  }
  .testimonial blockquote {
    font-size: 23px;
  }
  .cta-panel {
    padding: 32px 25px 270px;
  }
  .cta-copy {
    max-width: 100%;
  }
  .cta-panel .handwritten {
    display: none;
  }
  .cta-panel:after {
    background: linear-gradient(
      180deg,
      #071b45 0%,
      #071b45 55%,
      transparent 78%
    );
  }
  .cta-image {
    width: 100%;
    inset: auto 0 0;
    height: 250px !important;
    object-position: right center;
    mask-image: linear-gradient(180deg, transparent, #000 20%);
  }
  .final-cta {
    padding-bottom: 40px;
  }
  .featured-post {
    grid-template-columns: 1fr;
  }
  .featured-post .post-image {
    min-height: 0;
    aspect-ratio: 1.8;
  }
  .blog-hero {
    padding: 55px 0;
  }
  .blog-hero p {
    font-size: 15px;
  }
  .blog-orbit {
    display: none;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-sticky {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .sidebar-box {
    margin: 0;
  }
  .article-hero h1 {
    font-size: 42px;
  }
  .article-summary {
    font-size: 17px;
  }
  .article-content {
    font-size: 16px;
  }
  .article-content h2 {
    font-size: 29px;
  }
  .article-hero {
    padding-top: 22px;
  }
  .breadcrumbs {
    margin-bottom: 25px;
  }
  .admin-bar .site-header {
    top: 46px;
  }
}
@media (max-width: 480px) {
  .container {
    width: calc(100% - 32px);
  }
  .header-inner {
    gap: 8px;
    min-height: 70px;
  }
  .brand strong {
    font-size: 13px;
  }
  .brand small {
    font-size: 8px;
  }
  .brand-symbol {
    font-size: 38px;
  }
  .header-cta {
    display: none;
  }
  .menu-toggle {
    margin-left: auto;
  }
  .hero h1 {
    font-size: 46px;
  }
  .hero-copy {
    padding-top: 30px;
  }
  .hero-copy > p {
    font-size: 15px;
  }
  .hero .button-row .button {
    padding: 12px 17px;
    font-size: 12px;
  }
  .hero-trust {
    font-size: 10px;
    gap: 9px;
  }
  .hero-visual {
    height: 340px;
    min-height: 340px;
  }
  .hero-glass {
    right: 29%;
    bottom: 4%;
    font-size: 8px;
  }
  .hero-glass strong {
    font-size: 9px;
  }
  .hero .handwritten {
    font-size: 19px;
    right: 7%;
  }
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .stats-bar > div:nth-child(2) {
    border: 0;
  }
  .stats-disclaimer {
    font-size: 8px;
  }
  .purpose-strip p {
    line-height: 2;
  }
  .purpose-strip b {
    margin: 0 4px;
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .service-card {
    padding: 20px 12px 14px;
  }
  .service-card h3 {
    font-size: 17px;
  }
  .service-card p {
    font-size: 11px;
  }
  .icon-tile {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }
  .section {
    padding: 44px 0;
  }
  .aap-site h2 {
    font-size: 31px;
  }
  .industries-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .industry-card {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 16px 12px;
    gap: 10px;
  }
  .industry-card svg {
    flex-shrink: 0;
    width: 24px;
  }
  .industry-card span {
    font-size: 11px;
  }
  .case-study {
    grid-template-columns: 1fr;
  }
  .case-study > img {
    height: 220px;
    width: 100%;
  }
  .case-study > div {
    padding: 23px;
  }
  .cta-panel .button-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-panel {
    padding: 30px 23px 240px;
  }
  .cta-image {
    height: 220px !important;
  }
  .process-art {
    height: 230px !important;
  }
  .cta-panel h2 {
    font-size: 30px;
  }
  .footer-grid {
    gap: 28px 18px;
  }
  .footer-grid > div:first-child,
  .footer-grid > div:last-child {
    grid-column: 1/-1;
  }
  .footer-bottom .container {
    flex-direction: column;
    gap: 12px;
  }
  .footer-bottom a {
    margin: 0 18px 0 0;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .featured-post > div {
    padding: 24px;
  }
  .featured-post {
    margin-bottom: 40px;
  }
  .blog-hero h1 {
    font-size: 39px;
  }
  .post-card h3 {
    font-size: 23px;
  }
  .latest-heading span {
    font-size: 12px;
  }
  .article-hero h1 {
    font-size: 35px;
  }
  .article-layout {
    padding-top: 32px;
  }
  .sidebar-sticky {
    display: block;
  }
  .sidebar-box {
    margin-bottom: 20px;
  }
  .article-content blockquote {
    padding: 20px;
    font-size: 19px;
  }
  .article-meta {
    gap: 8px;
    font-size: 11px;
  }
  .article-cover {
    border-radius: 12px;
  }
  .post-navigation {
    gap: 18px;
  }
  .article-content h2 {
    font-size: 28px;
  }
  .article-content h3 {
    font-size: 24px;
  }
  .article-content ul,
  .article-content ol {
    padding-left: 22px;
  }
  .post-navigation span {
    font-size: 13px;
  }
  .aap-site .sidebar-box h2,
  .aap-site .sidebar-cta h2 {
    font-size: 21px;
  }
}
@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .aap-site *,
  .aap-site *:before,
  .aap-site *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
