.capabilities{background:#fff}.capability-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.capability-grid article{border:1px solid var(--line);padding:28px;min-height:315px;transition:transform .25s,box-shadow .25s}.capability-grid article:hover{transform:translateY(-6px);box-shadow:0 14px 32px #0925400d}.capability-grid span,.engagement-type{color:var(--blue);font:10px var(--mono);letter-spacing:1px}.capability-grid h3{margin:32px 0 12px;font-size:26px;line-height:1.05;letter-spacing:-.06em}.capability-grid p{color:var(--muted);font-size:13px;line-height:1.7}.capability-grid ul,.engagement-grid ul{margin:18px 0 0;padding:0;list-style:none}.capability-grid li{display:inline-block;margin:0 5px 6px 0;border-radius:15px;background:var(--sky);padding:4px 7px;color:#466277;font:9px var(--mono)}.engagement{background:var(--mist)}.engagement-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.engagement-grid article{display:flex;min-height:375px;flex-direction:column;background:#fff;padding:28px}.engagement-grid article:nth-child(2){background:#edf6fc}.engagement-grid article:nth-child(3){background:var(--navy);color:#fff}.engagement-type{margin-bottom:34px}.engagement-grid article:nth-child(3) .engagement-type{color:#b9d8ec}.engagement-grid h3{margin:0 0 13px;font-size:28px;line-height:1.05;letter-spacing:-.06em}.engagement-grid p:not(.engagement-type){color:var(--muted);font-size:13px;line-height:1.72}.engagement-grid article:nth-child(3) p:not(.engagement-type){color:#c8d9e5}.engagement-grid li{margin-bottom:7px;color:#4c6272;font-size:11px}.engagement-grid article:nth-child(3) li{color:#d5e5ef}.engagement-grid li:before{content:'— ';color:var(--blue)}.engagement-grid article:nth-child(3) li:before{color:#b8d8ed}.engagement-grid a{margin-top:auto;color:var(--blue);font-size:12px;font-weight:800;text-decoration:none}.engagement-grid article:nth-child(3) a{color:#fff}.standards{display:grid;grid-template-columns:1fr 1.25fr;gap:9vw;background:#fff;padding:100px 10vw;border-bottom:1px solid var(--line)}.standards h2{margin:0;font-size:clamp(2.5rem,4.3vw,4.6rem);line-height:1.03;letter-spacing:-.07em}.standards-list{border-top:1px solid var(--line)}.standards-list article{display:grid;grid-template-columns:55px 1fr;gap:10px;border-bottom:1px solid var(--line);padding:21px 0}.standards-list b{color:var(--blue);font:10px var(--mono)}.standards-list h3{margin:0 0 7px;font-size:21px;letter-spacing:-.04em}.standards-list p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}@media(max-width:900px){.capability-grid,.engagement-grid{grid-template-columns:1fr}.capability-grid article,.engagement-grid article{min-height:auto}.standards{grid-template-columns:1fr;gap:30px;padding:75px 21px}} 
/* Breadcrumbs Styling */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font: 11px var(--mono);
  color: var(--slate);
  margin-bottom: 24px;
}
.breadcrumbs a {
  color: var(--blue);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs .sep {
  color: #a0aec0;
}
.breadcrumbs .current {
  color: var(--navy);
  font-weight: 600;
}

/* AEO & GEO Structured Answer / Executive Summary Box */
.aeo-summary-box {
  background: linear-gradient(135deg, #f8fbfd 0%, #edf5fa 100%);
  border: 1px solid #c9dfea;
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  padding: 24px 28px;
  margin: 32px 0;
}
.aeo-summary-box .aeo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 10px var(--mono);
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.aeo-summary-box h3 {
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}
.aeo-summary-box p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--charcoal);
  margin: 0 0 12px;
}
.aeo-key-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d4e5ee;
}
.aeo-point {
  font-size: 12.5px;
  line-height: 1.5;
  color: #435b6b;
}
.aeo-point strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  margin-bottom: 3px;
}

/* ==========================================================================
   UX, RESPONSIVE & MOTION REFINEMENTS
   Layout/behaviour only — uses the existing palette tokens.
   ========================================================================== */

html {
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  /* Safety net: show the page even if script.js fails to load */
  animation: pageFallbackReveal 0s linear 1.5s forwards;
}

body.page-ready {
  animation: none;
}

@keyframes pageFallbackReveal {
  to { opacity: 1; }
}

/* Transform on <body> breaks position:fixed children (nav jumps on exit) */
body.page-leaving {
  transform: none;
}

img, video {
  max-width: 100%;
}

h1, h2, h3 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

/* Keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.hero :focus-visible,
.page-hero :focus-visible,
.statement-copy :focus-visible,
.consultation :focus-visible,
.footer :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

/* --- Header ------------------------------------------------------------ */
.nav {
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
}

@media (min-width: 1081px) {
  .nav.scrolled {
    height: 70px;
  }
}

@media (max-width: 1200px) and (min-width: 1081px) {
  .nav nav {
    gap: 20px;
  }
  .brand small {
    display: none;
  }
}

/* Desktop dropdowns: animated instead of display toggling */
@media (min-width: 1081px) {
  .nav-dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.25s;
  }
  /* Invisible bridge so the menu doesn't close while the pointer crosses the gap */
  .nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
  }
  .nav-dropdown:hover .nav-dropdown-toggle span,
  .nav-dropdown:focus-within .nav-dropdown-toggle span {
    transform: rotate(180deg);
  }
  .nav nav > a:not(.nav-cta):not(.nav-whatsapp) {
    position: relative;
  }
  .nav nav > a:not(.nav-cta):not(.nav-whatsapp):not(.active)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav nav > a:not(.nav-cta):not(.nav-whatsapp):hover::after {
    transform: scaleX(1);
  }
}

/* Navbar buttons: the generic ".nav nav > a" rule (padding: 6px 0) was
   stripping their side padding, so text touched the pill border. */
.nav nav > a.nav-cta,
.nav nav > a.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  margin: 0;
  padding: 0 20px;
  border-radius: 30px;
  font: 800 12px/1 var(--sans);
  letter-spacing: 0.4px;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav nav > a.nav-cta {
  border: 1.5px solid var(--blue);
  background: transparent;
  color: var(--blue) !important;
}

.nav nav > a.nav-cta span {
  display: inline-block;
  font-size: 13px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav nav > a.nav-cta:hover,
.nav nav > a.nav-cta.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(22, 102, 158, 0.25);
}

.nav nav > a.nav-cta:hover {
  transform: translateY(-1px);
}

.nav nav > a.nav-cta:hover span {
  transform: translate(2px, -2px);
}

.nav nav > a.nav-whatsapp {
  padding: 0 18px 0 14px;
  border: 1.5px solid #20ba5a;
  font-size: 12px;
}

.nav nav > a.nav-whatsapp svg {
  width: 16px;
  height: 16px;
}

.nav nav > a.nav-cta:focus-visible,
.nav nav > a.nav-whatsapp:focus-visible {
  outline-offset: 3px;
}

@media (min-width: 1081px) {
  /* Pull the buttons into one tidy group, slightly apart from the text links */
  .nav nav > a.nav-cta {
    margin-left: 6px;
  }
  .nav nav > a.nav-whatsapp {
    margin-left: -8px;
  }
}

.nav nav > a,
.nav-dropdown-toggle {
  white-space: nowrap;
}

.brand {
  flex-shrink: 0;
}

@media (max-width: 1280px) and (min-width: 1081px) {
  .nav nav {
    gap: 20px;
  }
  .brand small {
    display: none;
  }
  .nav nav > a.nav-cta,
  .nav nav > a.nav-whatsapp {
    padding: 0 16px;
  }
}

/* Two buttons + six links don't fit below ~1360px; the floating
   WhatsApp button is always on screen, so drop the header copy there */
@media (max-width: 1359px) and (min-width: 1081px) {
  .nav nav > a.nav-whatsapp {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand small {
    display: none;
  }
  .brand-logo {
    max-width: 150px;
  }
}

/* Mobile / tablet navigation sheet (≤1080px so the full menu never overflows) */
@media (max-width: 1080px) {
  .nav {
    height: 70px;
    padding: 0 20px;
  }
  .nav nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    padding: 6px 20px calc(24px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    box-shadow: 0 22px 40px rgba(8, 35, 63, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
  }
  .nav nav.open {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
  }
  .nav nav > a,
  .nav-dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 52px;
    padding: 14px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
  }
  .nav nav > a.active {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    box-shadow: inset 3px 0 0 var(--gold);
    padding-left: 12px;
  }
  .nav nav > a.nav-cta,
  .nav nav > a.nav-whatsapp {
    width: 100%;
    height: 50px;
    min-height: 50px;
    margin: 20px 0 0;
    padding: 0 20px;
    font-size: 14px;
    box-shadow: none;
  }
  .nav nav > a.nav-cta {
    border: 1.5px solid var(--blue);
    background: var(--blue);
    color: #fff !important;
  }
  .nav nav > a.nav-whatsapp {
    margin-top: 10px;
    border: 1.5px solid #20ba5a;
  }
  .nav nav > a.nav-cta:hover,
  .nav nav > a.nav-whatsapp:hover {
    transform: none;
  }
  .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-dropdown-toggle span {
    display: inline-block;
    font-size: 11px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    position: static;
    display: block;
    min-width: 100%;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 2px solid var(--blue);
    box-shadow: none;
    background: var(--mist);
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, margin 0.3s;
  }
  .nav-dropdown.is-open .nav-dropdown-menu {
    max-height: 760px;
    opacity: 1;
    margin: 8px 0;
    padding: 6px 0;
  }
  .nav-dropdown.is-open .nav-dropdown-toggle span {
    transform: rotate(180deg);
  }
  .nav-dropdown-menu a {
    padding: 11px 16px;
    font-size: 13px;
  }
  .nav-dropdown-menu a:hover {
    padding-left: 20px;
  }
  .menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    min-width: 92px;
    padding: 0 16px;
    border: 1.5px solid var(--line);
    border-radius: 30px;
    background: #fff;
    color: var(--navy);
    font: 500 10.5px/1 var(--mono);
    letter-spacing: 1px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
  }
  .menu:hover,
  .menu[aria-expanded="true"] {
    border-color: var(--navy);
  }
  .menu[aria-expanded="true"] {
    background: var(--navy);
    color: #fff;
  }
  .menu span {
    display: inline-block;
    font-size: 14px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .menu[aria-expanded="true"] span {
    transform: rotate(180deg);
  }
  body.nav-open {
    overflow: hidden;
  }
}

/* --- Micro-interactions ------------------------------------------------- */
.button span,
.text-link span,
.quiet-link span,
.service-card > a span,
.engagement-grid b,
.deep-card-action a span,
.service-cta-btn span {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover span,
.text-link:hover span,
.quiet-link:hover span,
.service-card > a:hover span,
.engagement-grid a:hover b,
.deep-card-action a:hover span,
.service-cta-btn:hover span {
  transform: translateX(4px);
}

.text-link,
.quiet-link {
  transition: color 0.2s, border-color 0.2s;
}

.text-link:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.quiet-link:hover {
  border-color: #fff;
}

.button:active,
.need-btn:active,
.btn-copy:active,
.filter-btn:active,
.service-cta-btn:active {
  transform: scale(0.97);
}

.industry-card,
.process-step,
.engagement-grid article,
.need-btn {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s, background 0.2s;
}

.industry-card:hover,
.process-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(8, 35, 63, 0.06);
}

.service-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  box-shadow: 0 14px 30px rgba(8, 35, 63, 0.07);
}

/* Hero entrance: gentle zoom-settle on the photo, bouncing scroll cue */
.hero-image {
  animation: heroSettle 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroSettle {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

.scroll span {
  display: inline-block;
  animation: scrollCue 2s ease-in-out infinite;
}

@keyframes scrollCue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* FAQ: animated accordion (span was inline, so its rotate never applied) */
.faq-item {
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item.open {
  border-color: #c9dcea;
  box-shadow: 0 8px 22px rgba(8, 35, 63, 0.05);
}

.faq-q {
  gap: 16px;
  min-height: 56px;
}

.faq-q span {
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-a {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-bottom: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding-bottom 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 1200px;
  opacity: 1;
  padding-bottom: 18px;
}

/* Scroll-reveal: softer travel; stagger comes from JS per row */
.reveal-on-scroll {
  transform: translateY(18px);
}

/* --- Previously unstyled components ------------------------------------ */

/* Footer variant used on most pages (.footer-grid / .footer-heading / .office) */
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 38px;
}

.footer-grid > div > a {
  display: block;
  width: fit-content;
  margin: 0 0 9px;
  color: #e1eaf0;
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.2s, transform 0.2s;
}

.footer-grid > div > a:hover {
  color: #9cd0ef;
  transform: translateX(3px);
}

.footer-grid .footer-brand .brand {
  color: #fff;
}

.footer-grid .footer-brand p {
  max-width: 290px;
  margin: 20px 0 14px;
  color: #a7bbca;
  font-size: 12.5px;
  line-height: 1.7;
}

.footer .brand small {
  color: #9cb7c8;
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-heading {
  display: block;
  margin: 3px 0 17px;
  color: #8fadc0;
  font: 10px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.office {
  display: block;
  color: #94aabb;
  font: 10px var(--mono);
  letter-spacing: 0.6px;
}

.footer .footer-bottom {
  gap: 10px;
  flex-wrap: wrap;
}

/* Dark call-to-action band (its copy is white, but the band had no background) */
.consultation {
  background: var(--navy);
  color: #fff;
  padding: 95px 7vw;
  position: relative;
  overflow: hidden;
}

.consultation-inner {
  max-width: 1100px;
  position: relative;
}

.consultation .section-title {
  display: block;
}

.consultation .section-title h2 {
  margin-top: 14px;
}

.consultation .section-title h2 em {
  color: #b4d7ec;
}

/* Blog card image bleed matched to the card's real padding */
.deep-card > .deep-card-media-link {
  margin: -34px -34px 20px;
}

/* Field-note articles: content started under the fixed header */
main > .article-container {
  padding-top: 122px;
}

/* --- Layout breakpoints ------------------------------------------------- */
@media (max-width: 1200px) {
  .process-matrix {
    grid-template-columns: repeat(3, 1fr);
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > .footer-brand {
    grid-column: 1 / -1;
  }
  main > .article-container {
    padding-top: 104px;
  }
}

@media (max-width: 900px) {
  .needs-grid,
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Inline desktop-only grids */
  .intro-main[style*="grid-template-columns"],
  [style*="grid-template-columns: 1.1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .consultation {
    padding: 75px 22px;
  }
  .deep-card {
    padding: 26px;
  }
  .deep-card > .deep-card-media-link {
    margin: -26px -26px 18px;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 18px 24px;
  }
  .statement-copy {
    padding: 64px 22px;
  }
  .scroll {
    display: none;
  }
}

@media (max-width: 640px) {
  .needs-grid,
  .industries-grid,
  .process-matrix,
  .service-grid,
  .engagement-grid {
    grid-template-columns: 1fr;
  }
  .need-btn,
  .service-card {
    min-height: 0;
  }
  .service-card h3 {
    margin-top: 14px;
  }
  /* Inline auto-fit grids with large minimums overflow narrow phones */
  .photo-gallery-grid,
  [style*="minmax(240px, 1fr)"],
  [style*="minmax(280px, 1fr)"],
  [style*="minmax(300px, 1fr)"],
  [style*="minmax(320px, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  .photo-gallery-section {
    padding: 60px 20px;
  }
  .photo-card-img-wrap {
    height: 210px;
  }
  /* 16px inputs stop iOS from zooming the page on focus */
  input,
  select,
  textarea,
  .contact input,
  .contact select,
  .contact textarea,
  .search-input {
    font-size: 16px;
  }
  .form-actions-row > * {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }
  .hub-controls {
    padding: 18px;
  }
  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -18px;
    padding: 2px 18px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filter-pills::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex: 0 0 auto;
    min-height: 38px;
  }
  /* Tables scroll sideways instead of crushing columns */
  .data-table {
    min-width: 620px;
  }
  .article-table {
    min-width: 560px;
  }
  .data-table-wrapper,
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
  .aeo-summary-box,
  .scenario-box {
    padding: 20px;
  }
  .page-pagination a {
    padding: 18px;
  }
  .service-cta-card {
    padding: 28px 22px;
  }
  .sources-box {
    padding: 18px;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }
  .page-hero h1 {
    font-size: clamp(2.1rem, 9.5vw, 2.8rem);
  }
  .intro h2,
  .section-title h2,
  .statement h2,
  .principle h2,
  .contact h2,
  .sprint h2,
  .standards h2 {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }
  .hero-content {
    padding: 118px 20px 80px;
  }
  .hero-copy {
    font-size: 15px;
  }
  .page-hero {
    padding: 100px 20px 44px;
  }
  .page-hero p.lead {
    font-size: 15.5px;
  }
  .intro,
  .needs-section,
  .services,
  .industries-section,
  .engagements,
  .faq-section,
  .approach,
  .principle,
  .contact {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .contact {
    padding-left: 20px;
    padding-right: 20px;
  }
  .page-content {
    padding: 50px 20px;
  }
  .approach-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .faq-q {
    padding: 16px 18px;
    font-size: 14.5px;
  }
  .faq-a {
    padding-left: 18px;
    padding-right: 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  main > .article-container {
    padding: 96px 18px 60px;
  }
  .article-content {
    font-size: 15.5px;
  }
  .article-content h2 {
    font-size: 21px;
    margin-top: 36px;
  }
  .article-meta-bar {
    gap: 8px 12px;
    font-size: 11px;
  }
  .deep-card-header h3 {
    font-size: 22px;
  }
  .founder-profile {
    padding: 20px;
  }
}

/* Floating buttons: bigger tap target, clear of the iPhone home indicator */
.sourceit-wa-widget {
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 600px) {
  .sourceit-wa-widget {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
    justify-content: center;
  }
  .back-to-top-btn {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Touch screens: no sticky hover lifts */
@media (hover: none) {
  .service-card:hover,
  .deep-card:hover,
  .industry-card:hover,
  .process-step:hover,
  .need-btn:hover,
  .photo-card:hover,
  .page-pagination a:hover,
  .capability-grid article:hover,
  .related-article-card:hover,
  .button:hover,
  .footer-grid > div > a:hover {
    transform: none;
  }
  .photo-card:hover .photo-card-img-wrap img,
  .deep-card:hover .deep-card-thumb {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* Hero photo: keep industrial engineering floor in clear part of fade */
.hero-image {
  background-position: 28% 30%;
}

@media (max-width: 900px) {
  .hero-image {
    background-position: 50% 25%;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(8, 35, 63, 0.8) 0%, rgba(8, 35, 63, 0.86) 45%, rgba(8, 35, 63, 0.94) 100%);
  }
}

/* ==========================================================================
   MOBILE POLISH (pass 2)
   ========================================================================== */

/* Headings without their own rule inherited body line-height (1.65),
   so two-line titles floated apart. Class-level rules still win. */
h1, h2 {
  line-height: 1.08;
}

h3 {
  line-height: 1.22;
}

h4 {
  line-height: 1.3;
}

.article-content h2,
.article-content h3,
.aeo-summary-box h3,
.scenario-box h3 {
  line-height: 1.3;
}

/* Native <details> FAQs (service & industry pages): custom +/− marker */
details > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  line-height: 1.4;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--blue);
  font: 18px/1 var(--mono);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

details[open] > summary::after {
  transform: rotate(45deg);
}

details[open] > summary {
  margin-bottom: 10px;
}

details {
  transition: border-color 0.25s, box-shadow 0.25s;
}

details[open] {
  border-color: #c9dcea !important;
  box-shadow: 0 8px 22px rgba(8, 35, 63, 0.05);
}

/* Article cover image: <figure> kept its default 40px side margins */
main .article-hero-media {
  margin: 0 0 36px;
}

/* Photos that fail to load (flagged by script.js) get a clean brand block
   instead of a broken-image icon with alt text */
.img-missing {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}

.img-missing img {
  visibility: hidden;
}

.article-hero-media.img-missing {
  display: none;
}

@media (max-width: 640px) {
  /* Blog filters: one swipeable row (the page's own styles re-enabled wrapping) */
  main .hub-controls {
    padding: 18px;
  }
  .hub-controls .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -18px;
    padding: 2px 18px 6px;
  }

  /* Footer: link groups side by side instead of one very long column */
  .footer-grid,
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }
  .footer-grid > .footer-brand,
  .footer-top > div:first-child,
  .footer-top > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .footer-grid > div > a,
  .footer-top > div > a {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 11px;
  }
  .footer {
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }
  .footer-bottom {
    padding-right: 64px; /* clear of the floating WhatsApp button */
  }

  details[style] {
    padding: 16px 18px !important;
  }

  /* A <select> sizes itself to its longest option; let grid columns shrink */
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact > *,
  .contact form,
  .contact select {
    min-width: 0;
    max-width: 100%;
  }
  details > summary {
    font-size: 14.5px !important;
  }
}

/* ==========================================================================
   PAKISTANI INDUSTRIAL DESIGN SYSTEM & MASTER LEADS ENGINE
   ========================================================================== */
:root {
  --pk-green: #07472e;
  --pk-emerald: #0b6b45;
  --pk-emerald-light: #e6f4ed;
  --pk-emerald-glow: rgba(11, 107, 69, 0.25);
  --pk-gold: #c89d5a;
  --pk-gold-bright: #d4a359;
  --pk-gold-light: #fdf8ef;
  --pk-gold-border: rgba(200, 157, 90, 0.35);
  --pk-dark: #051928;
}

/* Pakistan Industrial Ticker / Corridor Bar */
.pk-corridor-bar {
  background: #051928;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(11, 107, 69, 0.4);
  padding: 10px 5vw;
  font: 500 11px var(--mono);
  color: #a3bac9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.pk-corridor-bar .corridor-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pk-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(11, 107, 69, 0.25);
  border: 1px solid rgba(11, 107, 69, 0.6);
  color: #48d390;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.pk-corridor-bar .hubs-list {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.pk-corridor-bar .hub-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pk-corridor-bar .hub-item b {
  color: #fff;
  font-weight: 600;
}
.pk-corridor-bar .live-lead-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f7c948;
}
.live-pulse-dot {
  width: 7px;
  height: 7px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulse-green 1.8s infinite;
}
@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Master Hero Trust Badges */
.hero-trust-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #dce7ee;
  font: 500 11px var(--mono);
  padding: 6px 12px;
  border-radius: 20px;
}
.hero-chip.accent {
  background: rgba(11, 107, 69, 0.35);
  border-color: rgba(72, 211, 144, 0.4);
  color: #7cedb5;
}

/* Master Leads Engine - Interactive Sourcing Scoper */
.lead-engine-wrapper {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(8, 35, 63, 0.08);
  padding: 36px 40px;
  margin: 30px auto;
  position: relative;
  overflow: hidden;
}
.lead-engine-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0b6b45 0%, #c89d5a 50%, #16669e 100%);
}
.scoper-step-title {
  font: 600 12px var(--mono);
  color: #0b6b45;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scoper-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.scoper-pill {
  background: var(--mist);
  border: 1px solid var(--line);
  color: var(--navy);
  font: 600 13px var(--sans);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.scoper-pill:hover {
  border-color: #0b6b45;
  background: #f0f8f4;
  transform: translateY(-1px);
}
.scoper-pill.selected {
  background: #08233f;
  border-color: #08233f;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(8, 35, 63, 0.2);
}
.scoper-pill.selected .pill-icon {
  filter: brightness(1.2);
}

/* Scoper Result Output Card */
.scoper-result-box {
  background: linear-gradient(135deg, #08233f 0%, #06192a 100%);
  border: 1px solid rgba(200, 157, 90, 0.35);
  border-radius: 10px;
  padding: 26px 30px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 10px;
  box-shadow: 0 10px 30px rgba(8, 35, 63, 0.25);
}
.scoper-result-info h4 {
  color: #f7c948;
  font-size: 19px;
  margin: 0 0 8px;
}
.scoper-result-info p {
  color: #c9d8e4;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.scoper-specs-grid {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.scoper-spec-item {
  font: 11.5px var(--mono);
  color: #8da4b5;
}
.scoper-spec-item b {
  display: block;
  color: #ffffff;
  font-size: 13px;
  margin-top: 2px;
}
.scoper-result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-wa-scoper {
  background: #25d366;
  color: #08233f;
  font: 800 13px var(--sans);
  padding: 14px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}
.btn-wa-scoper:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
}
.btn-consult-scoper {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font: 700 12px var(--sans);
  padding: 12px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: 0.2s;
}
.btn-consult-scoper:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

@media (max-width: 850px) {
  .scoper-result-box {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .lead-engine-wrapper {
    padding: 24px 20px;
  }
}

/* Technical Benchmark & Sourcing Matrix Tables (AEO / GEO / SearchGPT Optimized) */
.specs-table-wrapper {
  margin: 28px 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(8, 35, 63, 0.04);
}
.specs-table-header {
  padding: 16px 20px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.specs-table-header h4 {
  margin: 0;
  font-size: 15px;
  color: var(--navy);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.specs-table-badge {
  font: 700 10px var(--mono);
  background: #08233f;
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.specs-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.specs-table th {
  background: #f8fafc;
  color: var(--navy);
  font: 700 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 16px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.specs-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: #2c3e50;
  vertical-align: top;
  line-height: 1.5;
}
.specs-table tr:last-child td {
  border-bottom: none;
}
.specs-table tr:hover td {
  background: rgba(234, 244, 250, 0.4);
}
.specs-table td strong {
  color: var(--navy);
  font-weight: 600;
}
.specs-table td code {
  font: 11.5px var(--mono);
  background: var(--mist);
  padding: 2px 6px;
  border-radius: 3px;
  color: #0b6b45;
}

