.motion-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(450px, 40vw, 660px);
  color: white;
  background: #172d40;
}
.hero-photo, .hero-photo img, .motion-hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { z-index: -2; }
.hero-photo img { display: block; object-fit: cover; object-position: 70% 46%; }
.motion-hero::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #0c1e3842 0%, #13273bd4 45%, #13284170 66%, #101e3022 83%),
              linear-gradient(0deg, #0d213872, transparent 38%);
}
.hero-composition {
  width: min(1460px, 95%); margin: 0 auto; padding: 48px 0 62px;
  display: grid; grid-template-columns: 1fr minmax(330px, 1.4fr) 1fr;
  align-items: center; gap: clamp(12px, 2vw, 40px);
}
.hero-copy { grid-column: 2; grid-row: 1; }
.hero-copy h1 {
  color: white; font-size: clamp(48px, 5vw, 88px); font-weight: 570;
  letter-spacing: -.055em; line-height: 1.08; text-wrap: balance;
}
.hero-copy h1 span { display: block; }
.motion-hero .hero-copy p { color: #f0f4ff; font-size: clamp(16px, 1.15vw, 20px); margin-top: 19px; line-height: 1.65; }
.hero-actions { margin-top: 24px; }
.hero-primary { background: white; border: 1px solid white; color: #142443; }
.hero-primary:hover { background: #eaf1ff; }
.hero-secondary { border: 1px solid #ffffffa6; color: #fff; background: #11233a32; }
.hero-secondary:hover { background: #ffffff24; }
.hero-deck {
  --deck-radius: 15px;
  grid-column: 1; grid-row: 1; display: block; position: relative;
  justify-self: end; width: clamp(176px, 16.4vw, 270px); aspect-ratio: 1.26;
  perspective: 850px; color: white; text-align: left; margin-right: 3%;
  border-radius: var(--deck-radius);
}
.deck-turn, .deck-face, .deck-plane { position: absolute; inset: 0; border-radius: var(--deck-radius); }
.deck-turn { transform-style: preserve-3d; transform: rotateY(-12deg) rotateZ(-3deg); }
.deck-plane { background: #a6b9f83b; border: 1px solid #c0d8ff87; }
.deck-plane-back { transform: translate(-9%, 10%) rotate(-9deg) scale(.94); opacity: .8; }
.deck-plane-front { transform: translate(4%, -4%) rotate(5deg) scale(.97); }
.deck-face {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  color: #132748; background: linear-gradient(128deg, #f2f7fffa, #dce8ffed);
  border: 1px solid #f6f9ffcc; padding: 8%; box-shadow: 0 15px 45px #0d183844;
}
.deck-back { transform: rotateY(180deg); background: linear-gradient(130deg, #eceaff, #d2c9ffef); }
.deck-brand { display: inline-flex; align-items: center; gap: 6px; font-size: clamp(10px, .82vw, 13px); font-weight: 600; }
.deck-brand img { width: 1.65em; height: auto; }
.deck-topic { margin: 5% 0 4%; font-weight: 650; font-size: clamp(16px, 1.6vw, 25px); line-height: 1.2; }
.deck-bubble, .deck-rule { display: inline-block; margin: 2% 0; font-size: clamp(10px, .86vw, 13px); line-height: 1.4; }
.deck-bubble { padding: 3px 8px; border-radius: 8px; background: white; }
.deck-reply { background: #d5e2ff; }
.deck-rule { display: flex; align-items: center; gap: 8px; }
.deck-rule i { width: 6px; height: 6px; border-radius: 50%; background: #695ee0; }
.deck-chip {
  position: absolute; bottom: 6%; right: -11%; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 10px; background: #273e9e; border: 1px solid #9bb5f6;
  color: white; font-size: clamp(10px, .82vw, 13px); line-height: 1.45; box-shadow: 0 4px 16px #12214455;
}
.deck-chip .icon { width: 1.1em; height: 1.1em; }
.hero-motion-toggle {
  position: absolute; bottom: 18px; left: max(20px, 4.5vw);
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 4px 13px;
  border: 1px solid #ffffff80; border-radius: 30px; background: #10203980; color: white; font-size: 13px;
}
.hero-motion-toggle:hover { background: #13213adb; }
.hero-play-state { width: 8px; height: 10px; border: solid currentColor; border-width: 0 2px; }
.hero-motion-toggle[aria-pressed="true"] .hero-play-state {
  width: 0; height: 0; border: solid transparent; border-width: 5px 0 5px 8px; border-left-color: white;
}
@keyframes deck-turn {
  0%, 15% { transform: rotateY(-12deg) rotateZ(-3deg); }
  42%, 60% { transform: rotateY(168deg) rotateZ(3deg); }
  88%, 100% { transform: rotateY(348deg) rotateZ(-3deg); }
}
@keyframes chip-drift {
  0%, 100% { transform: translate(0,0); }
  48% { transform: translate(-9px,5px); }
}
@keyframes plane-drift {
  0%, 100% { transform: translate(-9%, 10%) rotate(-9deg) scale(.94); }
  50% { transform: translate(-2%, 4%) rotate(-5deg) scale(.96); }
}
@keyframes intro-copy {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-hero.can-animate .deck-turn { animation: deck-turn 12.4s ease-in-out infinite; }
  .motion-hero.can-animate .deck-chip { animation: chip-drift 6.2s ease-in-out infinite; }
  .motion-hero.can-animate .deck-plane-back { animation: plane-drift 6.2s ease-in-out infinite; }
  .motion-hero.can-animate .hero-copy > * { animation: intro-copy .62s ease-out backwards; }
  .motion-hero.can-animate .hero-copy p { animation-delay: .1s; }
  .motion-hero.can-animate .hero-actions { animation-delay: .2s; }
  .motion-hero.motion-idle :is(.deck-turn, .deck-chip, .deck-plane-back),
  .hero-deck:is(:hover, :focus-visible) :is(.deck-turn, .deck-chip, .deck-plane-back) { animation-play-state: paused; }
  .service-card { transition: box-shadow .24s, background .24s; }
  .service-card:focus-within { box-shadow: 0 4px 22px #23387916; }
  .faq summary svg, .card-details span { transition: transform .22s ease; }
}
@media (max-width: 935px) and (min-width: 761px) {
  .nav-shell { width: calc(100% - 36px); gap: 17px; }
  #navigation { gap: 13px; }
}
@media (max-width: 760px) {
  .motion-hero { min-height: clamp(560px, 115vw, 680px); align-items: stretch; }
  .hero-photo { top: auto; height: 72%; mask-image: linear-gradient(180deg, transparent, black 23%); }
  .hero-photo img { object-position: 61% 50%; }
  .motion-hero::before {
    background: linear-gradient(180deg, #10253be6 0%, #152c43cc 27%, #162c4370 51%, #142b4110 73%, #15274388 100%);
  }
  .hero-composition {
    width: min(550px, 90%); padding: 40px 0 70px; align-self: stretch;
    display: flex; flex-direction: column-reverse; justify-content: space-between; gap: 38px;
  }
  .hero-copy { width: 100%; }
  .hero-copy h1 { font-size: clamp(37px, 7.9vw, 58px); }
  .hero-copy h1 span { display: inline; }
  .motion-hero .hero-copy p { font-size: 16px; margin: 14px auto 0; }
  .hero-copy p br { display: none; }
  .hero-actions { margin-top: 19px; }
  .hero-deck { width: clamp(144px, 37vw, 186px); margin: 0 0 0 5%; align-self: flex-start; }
  .deck-chip { right: -7%; }
  .hero-motion-toggle { bottom: 13px; left: 20px; }
}
@media (max-width: 359px) {
  .hero-copy p br { display: initial; }
  .hero-composition { width: 94%; }
  .hero-deck { margin-left: 7%; }
}
