/* Four page-specific hero backgrounds. Scoped to these headers only. */
.illustrated-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
  background: #edf5f8;
  padding: 76px 0;
}
.illustrated-hero > .wrap { position: relative; z-index: 2; }
.illustrated-hero .hero-copy { width: 49%; max-width: 620px; }
.illustrated-hero h1 { font-size: clamp(38px, 3.5vw, 58px); line-height: 1.3; }
.illustrated-hero .intro { color: #425f73; line-height: 1.9; margin-top: 26px; }
.illustrated-hero .eyebrow { color: #087ba9; }
.illustrated-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #edf5f8 0%, #edf5f8 41%, rgba(237,245,248,.94) 48%, rgba(237,245,248,0) 64%);
}
.hero-visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: 54%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(ellipse at 65% 45%, #c5e5ef, #e1eff4 72%);
  animation: hero-image-in .7s ease-out both;
}
.hero-visual img { display: block; height: auto; object-fit: contain; }
.hero-visual-photo > img { width: 100%; height: 100%; object-fit: contain; }
.hero-visual-services { background: #dcebf0; }
.hero-visual-team { background: #d1e7ee; }
.hero-visual-team > img { max-width: 900px; }
.hero-device-scene { width: min(650px, 95%); aspect-ratio: 1.6; position: relative; }
.hero-desktop {
  position: absolute;
  width: 79%;
  top: 10%;
  left: 2%;
  border: 5px solid #e8f4fc;
  border-radius: 8px;
  box-shadow: 0 24px 40px #103e5d20, 0 0 0 1px #93b8d6;
}
.hero-phone {
  position: absolute;
  width: 25%;
  right: 3%;
  bottom: 4%;
  border: 5px solid #fff;
  border-radius: 17px;
  box-shadow: 0 20px 36px #123d5e33, 0 0 0 1px #b2c5d5;
}
.hero-case-scene { position: relative; width: min(760px, 100%); aspect-ratio: 1.7; }
.hero-case-main { position: absolute; width: 83%; top: 4%; right: 7%; box-shadow: 0 22px 42px #143f5826; }
.hero-case-small { position: absolute; width: 42%; bottom: 1%; right: 0; border: 5px solid #edf5f8; box-shadow: 0 14px 34px #143f5833; }
@keyframes hero-image-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (min-width: 1800px) {
  .hero-visual { width: 53%; padding-right: max(0px, calc((100vw - 1800px) / 2)); }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .illustrated-hero { min-height: 410px; padding: 60px 0; }
  .illustrated-hero .hero-copy { width: 53%; }
  .illustrated-hero h1 { font-size: clamp(34px, 4vw, 44px); }
  .illustrated-hero .intro { font-size: 16px; }
  .hero-visual { width: 50%; }
  .illustrated-hero::after { background: linear-gradient(90deg, #edf5f8 0%, #edf5f8 45%, rgba(237,245,248,.96) 52%, transparent 69%); }
}
@media (max-width: 760px) {
  .illustrated-hero { display: flex; flex-direction: column; padding: 42px 0 0; min-height: 0; }
  .illustrated-hero > .wrap { order: 0; }
  .illustrated-hero .hero-copy { width: 100%; max-width: none; }
  .illustrated-hero h1 { font-size: clamp(30px, 7.8vw, 46px); }
  .illustrated-hero .eyebrow { margin-bottom: 20px; font-size: 12px; }
  .illustrated-hero .intro { font-size: 16px; margin-top: 20px; }
  .illustrated-hero::after { display: none; }
  .hero-visual { position: relative; inset: auto; order: 1; width: 100%; margin-top: 24px; padding: 14px 5.5% 22px; background: linear-gradient(#edf5f8, #d9eaf2); }
  .hero-visual-photo > img { width: min(100%, 640px); height: auto; }
  .hero-device-scene { width: min(520px, 100%); }
  .hero-desktop { border-width: 3px; }
  .hero-phone { border-width: 3px; border-radius: 12px; }
  .hero-case-scene { width: min(580px, 100%); }
  .hero-case-small { border-width: 3px; }
}
@media (prefers-reduced-motion: reduce) { .hero-visual { animation: none; } }
@media print {
  .illustrated-hero { padding: 28px 0; min-height: 0; }
  .hero-visual, .illustrated-hero::after { display: none; }
  .illustrated-hero .hero-copy { width: 100%; }
}
