/* Finch Technologies — Phase 62 sitewide responsive and alignment safeguards */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:96px}
body{max-width:100%;overflow-x:hidden}
img,svg,video,iframe{max-width:100%}
img{height:auto}
main,section,article,aside,header,footer,.container,.wrap,.about-wrap{min-width:0}
a,button{overflow-wrap:anywhere}
button,input,select,textarea{font:inherit;max-width:100%}
:focus-visible{outline:3px solid #ff7278;outline-offset:3px}
@media(max-width:1024px){
  .container,.wrap,.about-wrap{width:min(100% - 40px,100%)!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important}
  .hero-grid,.intro-grid,.solution-grid,.path-grid,.outcome-grid,.proof-grid,.cap-grid,.industry-grid,.story-grid,.approach-grid,.intersection-grid,.statement-grid,.quote-grid,.stack-grid,.choose-grid,.expect-grid,.challenge-grid,.home-enquiry-grid,.finch-capability-grid{min-width:0}
  .solution-card,.path-card,.card,.outcome-card,.proof-card,.expect-card{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:767px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  .container,.wrap,.about-wrap{width:calc(100% - 36px)!important;max-width:100%!important;padding-left:0!important;padding-right:0!important}
  .solution-grid,.path-grid,.outcome-grid,.proof-grid,.cap-grid,.industry-grid,.story-grid,.approach-grid,.intersection-grid,.statement-grid,.quote-grid,.stack-grid,.choose-grid,.expect-grid,.challenge-grid,.home-enquiry-grid,.finch-capability-grid,.intro-grid,.dark-grid,.cards,.grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
  .hero-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:24px!important}
  .solution-card,.path-card,.card,.outcome-card,.proof-card,.expect-card,.form-card{width:100%;min-width:0;max-width:100%;height:auto;overflow-wrap:anywhere}
  h1{font-size:clamp(34px,8.5vw,54px)!important;line-height:1.08!important;letter-spacing:-.045em!important;word-spacing:normal!important;overflow-wrap:break-word;text-wrap:balance}
  h2{font-size:clamp(26px,6.5vw,40px)!important;line-height:1.16!important;letter-spacing:-.035em!important;word-spacing:normal!important;text-wrap:balance}
  h3{font-size:clamp(20px,5.2vw,29px)!important;line-height:1.22!important;letter-spacing:-.02em!important}
  p,li{font-size:16px;line-height:1.65;letter-spacing:normal;word-spacing:normal;overflow-wrap:break-word}
  .hero-actions,.actions,.button-row,.cta-row{display:flex!important;flex-wrap:wrap!important;gap:12px!important;align-items:stretch!important}
  .hero-actions a,.actions a,.button-row a,.cta-row a{max-width:100%;min-height:46px;white-space:normal;justify-content:center;text-align:center}
  .solution-row,.build-row,.promise-row,.industry-row,.filter-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:14px!important}
  table{display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  input,select,textarea{width:100%;min-width:0}
  .global-footer-main,.global-footer-inner{min-width:0;max-width:100%}
}
@media(max-width:480px){
  .container,.wrap,.about-wrap{width:calc(100% - 30px)!important}
  .finch-aihi-subheader:not(.hero-premium){min-height:0!important;padding:112px 0 64px!important}
  .finch-aihi-subheader:not(.hero-premium) h1{font-size:clamp(34px,9vw,46px)!important;line-height:1.08!important;letter-spacing:-.045em!important}
  .hero-actions a,.actions a{width:100%}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}


/* PHASE 69 — restrained Finch theme panels on selected content pages */
:root{--finch-red:#c9252d;--finch-orange:#ef572b;--finch-navy:#0b1b33}
/* Solutions: highlight only the outcome cards, not every section */
body.solutions-page .outcome-card{border:1px solid rgba(201,37,45,.16)!important;background:linear-gradient(145deg,#fff 0%,#fff7f5 100%)!important;box-shadow:0 10px 28px rgba(11,27,51,.045);border-radius:14px!important}
body.solutions-page .outcome-card:hover{border-color:rgba(201,37,45,.48)!important;box-shadow:0 16px 34px rgba(201,37,45,.10);transform:translateY(-4px)}
/* Technology: one branded highlight on the technology stack cards */
body.technology-page .stack-card{border:1px solid rgba(201,37,45,.17)!important;background:linear-gradient(145deg,#fff 0%,#fff8f6 100%)!important;border-radius:14px!important;box-shadow:0 9px 26px rgba(11,27,51,.045)}
body.technology-page .stack-card:hover{border-color:rgba(239,87,43,.55)!important;transform:translateY(-4px);box-shadow:0 15px 32px rgba(201,37,45,.10)}
/* Industries: restrained red edge and warm tint */
body.industries-page .industry-grid>*,body.industries-page .challenge-grid>*{border-color:rgba(201,37,45,.16)!important}
body.industries-page .industry-grid>*{background:linear-gradient(145deg,#fff 0%,#fff8f6 100%)!important;border-radius:14px!important}
/* How we work: highlight the numbered process cards */
body.how-we-work-page .steps>.step{border:1px solid rgba(201,37,45,.17)!important;background:linear-gradient(145deg,#fff 0%,#fff8f6 100%)!important;border-radius:14px!important;box-shadow:0 8px 24px rgba(11,27,51,.04)}
body.how-we-work-page .step-num{color:var(--finch-red)!important}
/* Growth stories: make the featured story feel like a branded feature panel */
body.growth-stories-page .feature-big{background:linear-gradient(135deg,#0b1b33 0%,#142b4b 72%,#55212d 130%)!important;color:#fff!important;border:1px solid rgba(239,87,43,.28)!important;border-radius:18px!important}
body.growth-stories-page .feature-big :is(h2,h3,p,small){color:#fff}
/* Testimonials: one featured quote panel only */
body.testimonials-page .quote.featured{background:linear-gradient(135deg,#0b1b33 0%,#142b4b 75%,#51232e 130%)!important;color:#fff!important;border:1px solid rgba(239,87,43,.3)!important;border-radius:18px!important}
body.testimonials-page .quote.featured :is(p,h2,h3,blockquote,small){color:#fff!important}
/* Shared restrained accent details */
body.solutions-page .outcome-card,body.technology-page .stack-card,body.industries-page .industry-grid>*,body.how-we-work-page .steps>.step{transition:background .25s ease,border-color .25s ease,box-shadow .25s ease,transform .25s ease}
@media(max-width:767px){body.growth-stories-page .feature-big,body.testimonials-page .quote.featured{border-radius:14px!important}}
@media(prefers-reduced-motion:reduce){body.solutions-page .outcome-card,body.technology-page .stack-card,body.industries-page .industry-grid>*,body.how-we-work-page .steps>.step{transition:none!important}}
