/* FHA mobile home experience (locked template v13) - active <=991px */
@media (max-width: 991px) {
html, body { overflow: hidden !important; height: 100%; }
body > *:not(#fhaMobile) { visibility: hidden !important; }
#fhaMobile, #fhaMobile * { visibility: visible; }

#fhaMobile { --ht: 218px; --hb: 156px; }
/* derived vars MUST live on body so the .settled --ht override re-resolves them:
   custom properties bake in var() lookups at the element they're declared on. */
#fhaMobile { --bandH: calc(100dvh - var(--ht) - var(--hb));
  --wmW: calc(var(--bandH) * 0.2247);
  --anchor: calc(var(--bandH) * 0.0687); }
#fhaMobile.settled { --ht: 150px; }
#fhaMobile, #fhaMobile * { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
#fhaMobile { height:100%; overflow:hidden; }
#fhaMobile { position:fixed; inset:0; z-index:5000; overflow:hidden;
  font-family:'Cormorant Garamond','Playfair Display',serif;
  background: linear-gradient(90deg,#045567 0%,#166878 20%,#247885 31%,#30828F 44%,#398C97 58%,#40959D 71%,#479CA4 85%,#4A9EA4 100%);
}
/* ---------- ice header band + stacked-at-open lockup ---------- */
#fhaMobile .hdrBand { position:fixed; top:0; left:0; right:0; z-index:19; height:var(--ht);
  background: transparent; transition: height .85s cubic-bezier(.3,.8,.25,1); }
#fhaMobile .mark { position:fixed; z-index:22; top:calc(10px + env(safe-area-inset-top)); left:50%;
  transform:translateX(-50%); height:82px; aspect-ratio: 534/708;
  background: url(../images/mobile/logo-mark-metal.png?v=13) center/contain no-repeat;
  transition: all .85s cubic-bezier(.3,.8,.25,1); }
/* tilt-parallax sheen: a moving reflection masked to the metal shape */
#fhaMobile .sheen, #fhaMobile .mi-sheen { position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(115deg, rgba(255,255,255,0) 38%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 62%);
  background-size: 220% 220%;
  background-position: calc(50% + var(--shx,0%)) calc(50% + var(--shy,0%));
  mix-blend-mode: screen; }
#fhaMobile .mark .sheen { -webkit-mask: url(../images/mobile/logo-mark-metal.png?v=13) center/contain no-repeat;
  mask: url(../images/mobile/logo-mark-metal.png?v=13) center/contain no-repeat; }
#fhaMobile.settled .mark { top:calc(16px + env(safe-area-inset-top)); left:22px; transform:none; height:84.9px; }
#fhaMobile .scriptWrap { position:fixed; z-index:21; left:0; right:0; top:calc(96px + env(safe-area-inset-top));
  height:70px; text-align:center; overflow:hidden;
  transition: top .85s cubic-bezier(.3,.8,.25,1), height .85s cubic-bezier(.3,.8,.25,1); }
#fhaMobile.settled .scriptWrap { height:62px; top:calc(16px + env(safe-area-inset-top)); }
#fhaMobile .scriptWrap .roll { transition: transform .6s cubic-bezier(.3,.8,.25,1); }
#fhaMobile .scriptWrap img.script { display:block; margin:0; margin-left:calc(50% - 125.95px); height:70px;
  filter: drop-shadow(0 1.5px 1px rgba(2,44,68,0.25));
  transition: height .85s cubic-bezier(.3,.8,.25,1), margin-left .85s cubic-bezier(.3,.8,.25,1); }
#fhaMobile.settled .scriptWrap img.script { height:62px; margin-left:108px; }
#fhaMobile .secTitle { display:none; height:62px; line-height:62px; text-align:left; padding:0 20px 0 108px;
  white-space:nowrap; overflow:hidden;
  font-family:'Playfair Display',serif; font-variant:small-caps; letter-spacing:.16em;
  font-size:24px; color:#CBEAEA; text-shadow:0 2px 2px rgba(2,30,46,.5); }
/* rolling header (sections demo): ?section=Name */
#fhaMobile.rolling .secTitle { display:block; }
/* slogan: slides in ABOVE the hero at final x/width, then rides up with the header settle */
#fhaMobile .slogan { position:fixed; z-index:21; pointer-events:none;
  top:184px; left:calc(50% - 103.6px); width:206px;
  filter: drop-shadow(0 1.5px 1px rgba(2,30,46,.55));
  opacity:0; transform: translateX(-30vw);
  transition: opacity .75s cubic-bezier(.2,.85,.3,1), transform .75s cubic-bezier(.2,.85,.3,1); }
#fhaMobile .slogan img { width:100%; height:auto; display:block; }
#fhaMobile .slogan.preset { opacity:1; transform:none; }
#fhaMobile .slogan.parked { opacity:1; transform:none;
  top: calc(88px + env(safe-area-inset-top)); left:115.9px;
  transition: top .85s cubic-bezier(.3,.8,.25,1), left .85s cubic-bezier(.3,.8,.25,1); }
/* menu pull tab, upper-right */
#fhaMobile .pull { position:fixed; top:calc(10px + env(safe-area-inset-top)); right:10px; z-index:40;
  width:44px; height:44px; background:none; border:none; opacity:.9; }
#fhaMobile .pull span { display:block; width:20px; height:3px; margin:3.5px auto; border-radius:1px;
  background: linear-gradient(105deg,#C5CACB 32%,#FBFCFC 50%,#C5CACB 68%);
  background-size: 300% 100%;
  background-position: calc(50% + var(--shx,0%)) 50%;
  box-shadow: 0 1.5px 1px rgba(2,44,68,0.45), inset 0 1px 0 rgba(255,255,255,0.85); }
#fhaMobile .pull i { display:block; margin:2px auto 0; width:0; height:0; border-left:5px solid transparent;
  border-right:5px solid transparent; border-top:5px solid #D8DCDD; }
#fhaMobile .pull { transition: top .85s cubic-bezier(.3,.8,.25,1); }
#fhaMobile.settled .pull { top: calc(48px + env(safe-area-inset-top)); }
/* ---------- panes: [mission | hero]; hero default; swipe RIGHT reveals mission ---------- */
#fhaMobile .track { position:fixed; inset:0; z-index:3; display:flex; width:200vw; height:100%;
  transform: translateX(-100vw);
  transition: transform .5s cubic-bezier(.22,.9,.28,1); will-change: transform; }
#fhaMobile .track.mission { transform: translateX(calc(-1 * var(--anchor))); }
#fhaMobile .pane { width:100vw; height:100%; position:relative; overflow:hidden; }
/* watermark (FHA Logo Vertical): static, ABOVE the hero — hero slides under it */
#fhaMobile .wmWrap { position:absolute; left:0; top:var(--ht); bottom:var(--hb); width:var(--wmW);
  z-index:6; pointer-events:none;
  transition: top .85s cubic-bezier(.3,.8,.25,1), width .85s cubic-bezier(.3,.8,.25,1); }
#fhaMobile .wmWrap img { position:absolute; left:0; top:0; height:100%; width:auto; }
/* hero: slides in UNDER the watermark and locks to its anchor column */
#fhaMobile .heroImg { position:absolute; top:var(--ht); bottom:var(--hb); right:0;
  left: var(--anchor); z-index:1;
  overflow:hidden; border-radius:2px 0 0 2px;
  box-shadow: -8px 10px 28px rgba(2,30,46,0.35), inset 0 0 0 1px rgba(255,255,255,0.18);
  animation: imgIn .95s .15s cubic-bezier(.16,.84,.28,1) both;
  transition: top .85s cubic-bezier(.3,.8,.25,1), left .85s cubic-bezier(.3,.8,.25,1); }
#fhaMobile .heroImg img { width:100%; height:100%; object-fit:cover; object-position:62% 28%; }
@keyframes imgIn { from { transform: translateX(110%); } to { transform:none; } }
/* mission pane */
#fhaMobile .colInner { position:absolute; left:0; right:0; top:calc(var(--ht) + 8px); bottom:var(--hb); overflow-y:auto;
  display:flex; flex-direction:column;
  padding: 4px 18px 10px calc(var(--anchor) + 30px); text-align:center;
  transition: top .85s cubic-bezier(.3,.8,.25,1); }
#fhaMobile .colInner .cc { margin:auto; }
#fhaMobile .colInner .om { width:60%; max-width:240px; filter: drop-shadow(0 1.5px 1px rgba(2,44,68,0.35)); margin-bottom:14px; }
#fhaMobile .colInner p.mis { color:#C1D7D7; text-shadow:0 1px 2px rgba(2,44,68,.5);
  font-family:'Raleway',system-ui,sans-serif; font-size:14.5px; line-height:1.6; font-weight:400; }
/* pane dots */
#fhaMobile .pdots { position:fixed; bottom:calc(var(--hb) - 12px + env(safe-area-inset-bottom)); left:0; right:0; z-index:21;
  display:flex; justify-content:center; gap:8px; pointer-events:none; }
#fhaMobile .pdots span { width:6px; height:6px; border-radius:50%; background:rgba(203,234,234,.45);
  box-shadow:0 1px 1px rgba(2,30,46,.4); transition:all .3s ease; }
#fhaMobile .pdots span.on { background:#CBEAEA; width:16px; border-radius:3px; }
/* ---------- fixed CTA ---------- */
#fhaMobile .ctaRow { position:fixed; left:50%; transform:translateX(-50%);
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + 72px); z-index:30;
  width:min(330px, 86vw); height:54px; }
#fhaMobile .cta { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  padding-left:50px; background:#022C44; color:#A1E7E8; text-decoration:none;
  font-family:'Playfair Display',serif; text-transform:uppercase; letter-spacing:.12em; font-size:16px;
  border-radius:2px; box-shadow: 0 3px 12px rgba(2,20,34,.5), inset 0 1px 0 rgba(161,231,232,.22); }
#fhaMobile .ctaThumb { position:absolute; left:4px; top:4px; width:46px; height:46px; z-index:2; border-radius:2px;
  background: linear-gradient(135deg,#FDFDFD 0%,#EAECEC 22%,#C5CACB 45%,#8E9496 50%,#D6DADB 55%,#CED3D3 72%,#F1F2F2 100%);
  background-size: 240% 240%;
  background-position: calc(50% + var(--shx,0%)) calc(50% + var(--shy,0%));
  box-shadow: 0 2px 5px rgba(0,10,18,0.55), inset 0 1px 1px rgba(255,255,255,0.9);
  display:flex; align-items:center; justify-content:center; touch-action:none; }
#fhaMobile .ctaThumb svg { width:20px; height:20px; }
/* ---------- footer: paler Let's Connect icons ---------- */
#fhaMobile .qbar { position:fixed; left:14px; right:14px; bottom: max(10px, env(safe-area-inset-bottom)); z-index:30;
  display:flex; justify-content:space-evenly; align-items:center; padding:10px 6px;
  border-radius:3px;
  background: rgba(235,248,249,0.20);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border:1px solid rgba(255,255,255,0.32);
  box-shadow: 0 4px 18px rgba(2,24,38,0.20); }
#fhaMobile .qbar a { display:block; position:relative; padding:2px; filter: drop-shadow(0 1.5px 1px rgba(2,44,68,0.4)); }
#fhaMobile .qbar a .mi-sheen { inset:2px;
  -webkit-mask: var(--mask) center/contain no-repeat; mask: var(--mask) center/contain no-repeat; }
#fhaMobile .qbar .mi { display:block; width:30px; height:30px; object-fit:contain; }
/* ---------- menu sheet (top, right-aligned) ---------- */
#fhaMobile .menuSheet { position:fixed; left:0; right:0; top:0; z-index:60;
  padding: calc(18px + env(safe-area-inset-top)) 28px 22px;
  transform: translateY(-104%); transition: transform .42s cubic-bezier(.22,.9,.28,1);
  background: rgba(235,248,249,0.22);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  border-bottom:1px solid rgba(255,255,255,0.5); box-shadow: 0 14px 40px rgba(2,24,38,0.45);
  text-align:right; }
#fhaMobile .menuSheet.open { transform: translateY(0); }
#fhaMobile .menuSheet a { display:block; text-decoration:none; font-family:'Playfair Display',serif; }
#fhaMobile .menuSheet .g1 a { color:#CFF2F2; font-variant:small-caps; letter-spacing:.12em; font-size:17px; line-height:1.8;
  text-shadow: 0 1.5px 1px rgba(2,30,46,0.55); }
#fhaMobile .menuSheet .g1 a.active { color:#6FE0E4; }
#fhaMobile .menuSheet .g2 a { color:#F2FBFB; font-variant:small-caps; letter-spacing:.14em; font-size:22px; line-height:1.9;
  text-shadow: 0 2px 2px rgba(2,30,46,0.6); }
#fhaMobile .menuSheet hr { border:none; height:1px; margin:10px 0; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.55)); }
#fhaMobile .menuSheet .handle { width:44px; height:5px; border-radius:1.5px; margin:14px 6px 0 auto;
  background: linear-gradient(90deg,#A8B0B2 25%,#F2F5F5 50%,#A8B0B2 75%);
  background-size: 280% 100%;
  background-position: calc(50% + var(--shx,0%)) 50%; }
#fhaMobile .scrim { position:fixed; inset:0; z-index:59; background:rgba(2,24,38,0.3); opacity:0; pointer-events:none; transition:opacity .3s ease; }
#fhaMobile .scrim.open { opacity:1; pointer-events:auto; }
@media (prefers-reduced-motion: reduce) { .heroImg { animation:none; } }

}
@media (min-width: 992px) { #fhaMobile { display:none; } }
