@media(max-width:600px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  .sca-hero--home .sca-hero__inner { transition: opacity .22s ease; }
  .sca-hero--home.sca-hm-changing .sca-hero__inner { opacity: 0; }
  .sca-hero--home .sca-hm-background {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-position: center; background-size: cover; opacity: 0; transition: opacity .5s ease;
  }
  .sca-hero--home .sca-hm-background-visible { opacity: 1; }
  .sca-hero--home.sca-hm-sized {
    height: var(--sca-hm-height) !important;
    min-height: var(--sca-hm-height) !important;
    max-height: var(--sca-hm-height) !important;
  }
  .sca-hero--home.sca-hm-sized:not(.sca-hm-active) .sca-hero__inner {
    height:100%; min-height:0; box-sizing:border-box;
    padding:18px 0 34px !important;
    display:flex; flex-direction:column; justify-content:center;
  }
  .sca-hero--home.sca-hm-sized:not(.sca-hm-active) .sca-hero__inner h1 { margin-bottom:14px !important; }
  .sca-hero--home.sca-hm-sized:not(.sca-hm-active) .sca-hero__subtitle { margin-bottom:0 !important; }
  .sca-hero--home.sca-hm-sized:not(.sca-hm-active) .sca-hero__subtitle::before { margin:12px auto 10px !important; }
  .sca-hero--home.sca-hm-sized:not(.sca-hm-active) .sca-hero__actions { margin-top:16px !important; gap:10px !important; }

  .sca-hero--home.sca-hm-active .sca-hero__inner {
    height: 100%; box-sizing: border-box; padding: 14px 0 30px !important; min-height: 0;
  }
  .sca-hero--home.sca-hm-active .sca-hm-content {
    height: 100%; display: grid; grid-template-rows: 44px 100px minmax(0,1fr) 48px;
    gap: 10px; min-height: 0;
  }
  .sca-hero--home.sca-hm-active .sca-hm-reading {
    min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 10px;
    scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #b88b43 rgba(255,255,255,.15);
    -webkit-overflow-scrolling: touch;
  }
  .sca-hm-reading:focus-visible { outline: 2px solid #b88b43; outline-offset: 2px; }
  .sca-hero--home.sca-hm-sized.sca-hm-active .sca-hero__inner .sca-hm-content h1 {
    font-family: var(--sca-serif,Georgia,serif); font-size: clamp(26px,7vw,32px) !important;
    font-weight: 400 !important; line-height: 1.15 !important; text-transform: none !important;
    white-space: normal !important; margin: 0 !important; color: var(--sca-gold,#b88b43) !important;
    align-self: center;
  }
  .sca-hero--home.sca-hm-active .sca-hm-description {
    display:block !important; font: 16px/1.65 var(--sca-sans,Arial,sans-serif) !important;
    text-transform:none !important; letter-spacing:normal !important;
    text-align:justify !important; text-align-last:start; hyphens:auto; overflow-wrap:break-word; color:#fff; margin:0 0 16px;
  }
  .sca-hero--home .sca-hm-back {
    border:1px solid rgba(255,255,255,.6); border-radius:5px; background:rgba(11,51,72,.65);
    color:#fff; padding:8px 14px; min-height:44px; font:14px/1.4 Arial,sans-serif; margin:0; justify-self:center;
  }
  .sca-hero--home .sca-hm-cta { min-height:44px; justify-self:center; align-self:center; margin:0; }
  .sca-practice-panels__grid--three > .sca-hm-selected { box-shadow:inset 0 -4px 0 #d5ad65; }
  .sca-hm-content :is(a,button):focus-visible { outline:2px solid white; outline-offset:3px; }
}
@media(prefers-reduced-motion:reduce) {
  .sca-hero--home.sca-hm-changing .sca-hero__inner { opacity:1; }
  .sca-hero--home .sca-hero__inner, .sca-hero--home .sca-hm-background { transition:none; }
}

/* Compact welcome message and side-by-side actions, phones only. */
@media (max-width:600px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  body.home .sca-hero--home.sca-hm-sized:not(.sca-hm-active) .sca-hero__inner h1 {
    font-size: clamp(19px,6vw,36px) !important;
    line-height: 1.3 !important;
    white-space: pre !important;
    text-wrap: nowrap !important;
    letter-spacing: 0 !important;
    max-width: none !important;
  }
  body.home .sca-hero--home.sca-hm-sized:not(.sca-hm-active) .sca-hero__actions {
    display: flex !important; flex-direction: row !important;
    align-items: stretch !important; justify-content: center;
    gap: 8px !important; width: 100%; max-width: 360px;
    margin-left: auto !important; margin-right: auto !important;
  }
  body.home .sca-hero--home.sca-hm-sized:not(.sca-hm-active) .sca-hero__actions .sca-button {
    flex: 0 0 auto; width: auto !important; min-width: 0 !important; min-height: 40px !important;
    padding: 8px 10px !important; font-size: 11px !important;
    line-height: 1.3; white-space: nowrap; border-radius: 6px;
  }
}

@media (max-width:600px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  body.home .sca-hero--home.sca-hm-sized:not(.sca-hm-active) .sca-hero__inner .sca-hero__subtitle {
    font-size: clamp(15px,4.3vw,23px) !important;
    line-height: 1.4 !important;
    letter-spacing: .5px !important;
  }
}

/* Compact domain controls and persistent iOS scroll cue. */
@media (max-width:600px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  body.home .sca-hero--home.sca-hm-active .sca-hm-content {
    grid-template-rows: 36px 100px minmax(0,1fr) 40px;
  }
  body.home .sca-hero--home.sca-hm-active .sca-hm-content :is(.sca-hm-back,.sca-hm-cta) {
    font-size: 12px !important; line-height: 1.3 !important;
    min-height: 36px !important; min-width: 0 !important;
    width: auto !important; padding: 7px 12px !important;
    border-radius: 6px; align-self: center;
  }
  body.home .sca-hero--home.sca-hm-active .sca-hm-content h1:focus {
    outline: none !important; box-shadow: none !important;
  }
  .sca-hero--home .sca-hm-reading-wrap { position: relative; min-height: 0; }
  .sca-hero--home .sca-hm-reading-wrap .sca-hm-reading {
    height: 100%; box-sizing: border-box; padding-right: 20px;
    scrollbar-width: none;
  }
  .sca-hero--home .sca-hm-reading::-webkit-scrollbar { display: none; }
  .sca-hero--home .sca-hm-scroll-track {
    position: absolute; right: 2px; top: 4px; bottom: 4px;
    width: 4px; border-radius: 4px; background: rgba(255,255,255,.25);
    pointer-events: none;
  }
  .sca-hero--home .sca-hm-scroll-track[hidden] { display: none; }
  .sca-hero--home .sca-hm-scroll-track span {
    display: block; width: 100%; border-radius: inherit; background: #d5ad65;
  }
}

/* More generous tablet typography and touch controls. */
@media (min-width:601px) and (max-width:1366px) and (min-height:501px) and (hover:none) and (pointer:coarse) {
  body.home .sca-hero--home.sca-hm-sized:not(.sca-hm-active) .sca-hero__inner h1 { font-size:clamp(32px,4.4vw,52px) !important; }
  body.home .sca-hero--home.sca-hm-sized:not(.sca-hm-active) .sca-hero__inner .sca-hero__subtitle { font-size:clamp(21px,2.7vw,28px) !important; }
  body.home .sca-hero--home.sca-hm-sized:not(.sca-hm-active) .sca-hero__actions { max-width:480px; }
  body.home .sca-hero--home.sca-hm-sized:not(.sca-hm-active) .sca-hero__actions .sca-button,
  body.home .sca-hero--home.sca-hm-active .sca-hm-content :is(.sca-hm-back,.sca-hm-cta) { font-size:14px !important; min-height:44px !important; padding:10px 18px !important; }
  body.home .sca-hero--home.sca-hm-active .sca-hm-content { grid-template-rows:44px 100px minmax(0,1fr) 44px; }
  body.home .sca-hero--home.sca-hm-active .sca-hm-description { font-size:18px !important; }
  body.home .sca-hero--home.sca-hm-active .sca-hm-reading-wrap { width:100%; max-width:900px; justify-self:center; }
}
