/* Approved mobile closing study; desktop remains on the existing scene. */
.closing-mobile{display:none}
.closing-mobile .closing__mountain{box-sizing:border-box}
/* The original closing markup already contains its diagonal SVG arrow. */
body.lpc-home .closing-scene .role-action i::before,
body.lpc-home .closing-scene .role-action i::after{content:none;display:none}
body.lpc-home .closing-scene .role-action i svg{display:block;width:100%;height:100%}
@media(max-width:767px),(hover:none) and (pointer:coarse){
body.lpc-home .closing-mobile{position:relative;isolation:isolate;contain:layout style;display:block;height:var(--closing-height,780px);padding:0;overflow:clip;background:#07131f;color:#fff}
body.lpc-home .closing-mobile .closing__sky{position:absolute;inset:0;background:linear-gradient(180deg,#071c30 0%,#103c60 45%,#07131f 100%);z-index:0}
body.lpc-home .closing-mobile .closing__mountain{position:absolute;left:-24px;top:0;width:calc(100% + 48px);height:100%;z-index:3;pointer-events:none;will-change:transform}
body.lpc-home .closing-mobile .closing__fallback{position:absolute;left:50%;top:27%;height:100%;width:150%;max-width:none;object-fit:cover;translate:-43% 0;filter:brightness(.64) saturate(.82);z-index:1;pointer-events:none}
body.lpc-home .closing-mobile.closing--rendered .closing__fallback{display:none}
body.lpc-home .closing-mobile #closing-mobile-title{position:absolute;z-index:2;top:var(--title-top,230px);left:18px;right:18px;margin:0;color:#fff;text-align:center;font:300 clamp(36px,10.8vw,68px)/1.06 'Cormorant Garamond',Georgia,serif;font-synthesis:none;letter-spacing:-.035em}
body.lpc-home .closing-mobile #closing-mobile-title{will-change:transform,opacity}
body.lpc-home .closing-mobile #closing-mobile-title span,body.lpc-home .closing-mobile #closing-mobile-title em{display:block}
body.lpc-home .closing-mobile #closing-mobile-title em{font-weight:300}
body.lpc-home .closing-mobile .closing__actions{position:absolute;z-index:4;top:var(--actions-top,460px);left:8px;right:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:440px;margin:auto}
body.lpc-home .closing-mobile .closing__actions a{display:flex;align-items:center;gap:8px;min-height:72px;padding:18px 12px;border:1px solid rgb(229 241 255 / .56);border-radius:16px;background:linear-gradient(135deg,rgb(208 224 240 / .28),rgb(174 197 220 / .19));color:#f8fbff;text-align:left;box-shadow:0 2px 12px rgb(0 0 0 / .08)}
body.lpc-home .closing-mobile .closing__actions a{opacity:1;filter:none}
body.lpc-home .closing-mobile .closing__actions strong{flex:1;min-width:0;font:400 clamp(18px,6vw,25px)/1.15 'Cormorant Garamond',Georgia,serif}
body.lpc-home .closing-mobile .closing__actions svg{flex:0 0 18px;width:18px;height:18px}
body.lpc-home .closing-mobile .closing__actions a:active{background:rgb(233 244 255 / .3)}
body.lpc-home .closing-mobile .closing__actions a:focus-visible{outline:2px solid #e5edf5;outline-offset:4px}
body.lpc-home .closing-mobile .closing__reassurance{grid-column:1/-1;margin:4px 0 0;color:rgb(233 244 255 / .86);font:300 14px/1.5 Sarabun,sans-serif;text-align:center;opacity:1;text-shadow:0 1px 3px rgb(0 8 22 / .45)}
body.lpc-home .closing-cloud-region .closing-scene,
body.lpc-home .closing-cloud-region .closing-parallax-track{display:none!important}
body.lpc-home .closing-mobile{min-height:0;margin:0;box-sizing:border-box}
body.lpc-home .closing-mobile #closing-mobile-title{max-width:none;translate:none;scale:none;text-shadow:none;font-size:clamp(36px,10.8vw,68px);font-weight:300!important;line-height:1.06;font-family:'Cormorant Garamond',Georgia,serif!important}
body.lpc-home .closing-mobile .closing__actions a{box-sizing:border-box;text-decoration:none;translate:none;transform:none;transition:none}
body.lpc-home .closing-mobile .closing__actions strong{margin:0;letter-spacing:0;font-weight:400;font-family:'Cormorant Garamond',Georgia,serif}
body.lpc-home .closing-mobile .closing__actions svg{display:block}
body.lpc-home .closing-mobile .closing__reassurance{max-width:none;letter-spacing:0}
body.lpc-home .closing-mobile #closing-mobile-title em{font-weight:300!important}
body.lpc-home .closing-mobile .closing__actions a{font:300 16px/1.6 Sarabun,sans-serif}
body.lpc-home .closing-mobile .closing__actions a{font-weight:300!important}
body.lpc-home .closing-mobile .closing__actions strong{font-weight:400!important}
body.lpc-home .closing-mobile .closing__reassurance{font-weight:300!important}
body.lpc-home .home-footer{padding-top:64px}
}
@media(prefers-reduced-motion:reduce){.closing-mobile .closing__mountain,.closing-mobile #closing-mobile-title{will-change:auto;transform:none!important}.closing-mobile #closing-mobile-title,.closing-mobile .closing__actions a,.closing-mobile .closing__reassurance{opacity:1!important}.closing-mobile .closing__actions a{filter:none!important;will-change:auto}}

/* Desktop keeps the ridge reveal and parallax with immediately visible choices. */
@media (min-width: 768px) {
  body.lpc-home .closing-cloud-region .closing-scene {
    position: relative;
    isolation: isolate;
    contain: layout style;
    height: var(--closing-height, max(740px, 100svh));
    min-height: 0;
    padding: 0;
    overflow: clip;
    clip-path: none;
  }
  body.lpc-home .closing-scene .closing-scene__canvas {
    position: absolute;
    left: -24px;
    top: 0;
    width: calc(100% + 48px);
    height: 100%;
    z-index: 3;
    pointer-events: none;
    will-change: transform;
  }
  body.lpc-home .closing-scene.closing--rendered > :is(.closing-scene__mountain, .closing-scene__ridge) { display: none; }
  body.lpc-home .closing-scene #closing-title {
    top: var(--title-top, 230px);
    translate: -50% 0;
    opacity: 0;
    will-change: transform, opacity;
  }
  body.lpc-home .closing-scene .role-actions {
    top: var(--actions-top, 460px);
    bottom: auto;
    translate: -50% 0;
    z-index: 4;
    gap: 16px;
    will-change: transform;
  }
  body.lpc-home .closing-scene .role-actions .role-action {
    min-height: 88px;
    padding: 18px 20px;
    border: 1px solid rgb(229 241 255 / .56);
    border-radius: 16px;
    background: linear-gradient(135deg, rgb(208 224 240 / .28), rgb(174 197 220 / .19));
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
  body.lpc-home .closing-scene .closing-scene__reassurance {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    color: rgb(233 244 255 / .86);
    font: 300 14px/1.5 Sarabun, sans-serif;
    text-align: center;
    opacity: 1;
  }
  body.lpc-home .closing-scene--mountain .role-actions .role-action {
    background: linear-gradient(135deg, #193e5e, #14334e);
    border-color: rgb(229 241 255 / .65);
  }
  body.lpc-home .closing-scene--mountain .role-actions .role-action:is(:hover, :focus-visible) {
    background: #234c70;
    border-color: #fff;
  }
  body.lpc-home.lpc-home--hybrid .closing-scene--mountain .role-action small {
    font-size: 14px;
    font-weight: 400;
    color: #f3f7fc;
  }
  body.lpc-home .closing-scene--mountain .closing-scene__reassurance {
    font-size: 15px;
    font-weight: 400;
    color: #edf4fb;
    text-shadow: none;
  }
  body.lpc-home .home-footer { padding-top: 64px; }
}
@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  body.lpc-home .closing-scene :is(.closing-scene__canvas, #closing-title, .role-actions) { transform: none !important; will-change: auto; }
  body.lpc-home .closing-scene :is(#closing-title, .role-action, .closing-scene__reassurance) { opacity: 1 !important; filter: none !important; }
}

/* Continue the mountain below the scene on a separate footer background layer. */
@media (min-width: 768px) {
  body.lpc-home .home-footer { overflow: clip; background: #07131f; box-shadow: none; }
  body.lpc-home .closing-footer__canvas { position: absolute; top: -48px; left: -24px; width: calc(100% + 48px); height: calc(100% + 96px); z-index: 0; pointer-events: none; }
  body.lpc-home .home-footer__inner { position: relative; z-index: 1; }
}

@media (max-width: 767px) {
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a { background: #14334e; }
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a:is(:active, :focus-visible) { background: #234c70; }
}
@media (min-width: 768px) {
  body.lpc-home :is(.closing-scene__canvas, .closing-footer__canvas) { filter: brightness(.55); }
  body.lpc-home .home-footer summary { color: #c4d8fb; }
}

/* Mobile role choices follow the supplied open, divided-row reference. */
@media (max-width: 767px) {
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions { column-gap: 0; }
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a {
    grid-template-columns: minmax(0, 1fr) 12px;
    column-gap: 4px;
    padding-inline: clamp(4px, 2vw, 8px);
    align-content: center;
    border: 0;
    border-top: 1px solid rgb(196 216 235 / .45);
    border-bottom: 1px solid rgb(196 216 235 / .45);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a:first-child {
    border-right: 1px solid rgb(196 216 235 / .45);
  }
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a:is(:active, :focus-visible) {
    background: transparent;
  }
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a small {
    font-size: 12px;
    color: #c2cfdb;
  }
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a strong {
    font-size: clamp(14px, calc(7vw - 10px), 20px);
    white-space: nowrap;
  }
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a svg {
    display: block;
    width: 12px;
    height: 12px;
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    color: #c2cfdb;
    transform: rotate(45deg);
  }
}

@media (max-width: 767px) {
  body.lpc-home .closing-mobile #closing-mobile-title {
    z-index: 4;
    white-space: nowrap;
    font-size: clamp(36px, 12vw, 56px);
    min-height: calc(clamp(36px, 10.8vw, 68px) * 2.12);
  }
  body.lpc-home .closing-mobile .closing__mountain { height: var(--closing-height, 780px); filter: brightness(.4); translate: 0 -120px; }
  body.lpc-home .closing-mobile .closing__fallback { top: calc(var(--closing-height, 780px) * .27); width: calc(var(--closing-height, 780px) * 1.5); height: var(--closing-height, 780px); filter: brightness(.256) saturate(.82); translate: -43% -120px; }
  body.lpc-home .closing-mobile { height: calc(var(--closing-height, 780px) - 120px); }
  body.lpc-home .home-footer { padding-top: 0; }
  body.lpc-home .closing-mobile > .closing__reassurance {
    position: absolute;
    z-index: 4;
    top: var(--reassurance-top, 280px);
    left: 8px;
    right: 8px;
    margin: 0;
    color: #dce5ee;
    font-size: 16px;
    text-shadow: none;
  }
}

@media (max-width: 767px) {
  body.lpc-home .mobile-nav a.lpc-noise-signup {
    border-radius: 999px;
    clip-path: inset(0 round 999px);
  }
  body.lpc-home .mobile-nav a.lpc-noise-signup::before { border-radius: inherit; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  body.lpc-home .closing-mobile .closing__actions {
    animation: lpc-mobile-choices-float 4s ease-in-out infinite;
    animation-play-state: paused;
  }
  body.lpc-home .closing-mobile.closing--in-view .closing__actions { animation-play-state: running; }
  body.lpc-home:is(.accessibility-mode) .closing-mobile .closing__actions,
  html.accessibility-mode body.lpc-home .closing-mobile .closing__actions { animation: none; }
}
@keyframes lpc-mobile-choices-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

/* Desktop mountain continuation must never enter the mobile footer layout. */
@media (max-width: 767px) {
  body.lpc-home .closing-footer__canvas { display: none !important; }
}

/* Full-width mobile closing actions, attorneys first. */
@media (max-width: 767px) {
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: none; }
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a { min-height: 88px; padding: 14px 12px; grid-template-columns: minmax(0, 1fr) 18px; }
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a:first-child { border-right: 0; border-bottom: 0; }
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a small { font-size: 14px; }
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a strong { font-size: clamp(25px, 7vw, 32px); line-height: 1.15; white-space: normal; }
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a svg { width: 18px; height: 18px; }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  body.lpc-home .closing-mobile :is(.closing__actions, .closing__reassurance) { transform: none !important; }
}

/* Stronger mobile closing action typography and directional arrows. */
@media (max-width: 767px) {
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a { min-height: 100px; padding: 16px 14px; grid-template-columns: minmax(0, 1fr) 32px; column-gap: 12px; border-color: rgb(233 244 255 / .75); }
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a small { font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a strong { font-size: clamp(28px, 8.4vw, 38px); font-weight: 500 !important; line-height: 1.08; color: #fff; }
  body.lpc-home.lpc-home--hybrid .closing-mobile .closing__actions a svg { width: 32px; height: 32px; color: #fff; stroke-width: 1.8; transform: none; }
}
