/* Phone layout, aligned with simpleinsure.co on a small screen.
   Desktop at 1024px and up is unchanged by the rules in this file:
   the only rule outside these queries hides the extra phone markup. */

.m-only { display: none; }

@media (max-width: 768px) {
  .m-only { display: block; }
  p.kicker.m-only { display: flex; }

  body { overflow-x: clip; background: #fff; }

  .wrap { width: calc(100% - 64px); }

  .site-header {
    top: max(12px, env(safe-area-inset-top));
    padding-top: 0;
  }
  .site-header:before { background: #061A2E; }
  html.veil .site-header:before,
  html.veil body.page-home .site-header:before,
  html.veil body.page-inner .site-header:before { background: #fff; }

  .bar {
    width: calc(100% - 40px);
    height: 64px;
    padding: 0 8px 0 18px;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #061A2E;
    box-shadow: 0 10px 28px rgba(6, 26, 46, .14);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html:not(.scrolled) body.page-home:not(.nav-open) .bar,
  html:not(.scrolled) body.page-inner:has(.photo-hero):not(.nav-open) .bar,
  html.scrolled .bar,
  body.nav-open .bar {
    background: #fff;
    border-color: transparent;
    color: #061A2E;
    box-shadow: 0 10px 28px rgba(6, 26, 46, .14);
  }
  .logo img,
  html:not(.scrolled) body.page-home:not(.nav-open) .logo img,
  html:not(.scrolled) body.page-inner:has(.photo-hero):not(.nav-open) .logo img {
    height: 30px;
    width: auto;
    max-width: none;
    filter: none;
  }
  .nav-actions { gap: 0; }
  .nav-actions .btn,
  .phone-full { display: none; }
  .nav-btn {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border: 0;
    color: #061A2E;
  }

  .sheet {
    top: calc(max(12px, env(safe-area-inset-top)) + 76px);
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 8px 24px max(28px, env(safe-area-inset-bottom));
  }
  .sheet a { font-family: Franklin, Arial, sans-serif; font-weight: 600; color: #061A2E; }
  .sheet .sheet-cta { background: #fff; }
  .sheet .sheet-cta a.btn {
    border-radius: 999px;
    background: #2D7DD2;
    color: #fff;
  }

  h1, h2,
  .page-head h1, .photo-hero h1, .hero h1,
  .section h2, .prose h2, .ask h2, .panel h2,
  .m-block h2, .m-block .m-h, .band h2, .cc-item summary b, .index-list strong, .next b {
    font-family: Newsreader, Georgia, serif;
    font-weight: 500;
  }
  .faq summary, .work-steps h3 { font-family: Newsreader, Georgia, serif; font-weight: 500; }

  .btn, .btn-ghost, .btn-light, .btn-line { border-radius: 0; }
  .btn, .sheet .sheet-cta a.btn, .photo-hero .btn, .page-head .btn {
    background: #2D7DD2;
    border-color: #2D7DD2;
    color: #fff;
    font-weight: 600;
  }
  .btn:hover, .photo-hero .btn:hover { background: #246bb8; border-color: #246bb8; color: #fff; }

  .kicker {
    font-family: Franklin, Arial, sans-serif;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #2D7DD2;
    gap: 10px;
    margin: 0 0 14px;
  }
  .kicker:before, .kicker.light:before {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
  }
  .page-head .kicker, .photo-hero .kicker { color: #7CB8F2; }

  .page-head, .photo-hero {
    position: relative;
    top: auto;
    min-height: 0;
    display: block;
    overflow: hidden;
    background: #061A2E;
    color: #fff;
    padding: 128px 0 48px;
  }
  .photo-hero .hero-media, .photo-hero .hero-shade, .photo-hero .ken { display: none; }
  .page-head .wrap, .photo-hero .wrap { padding: 0; width: calc(100% - 64px); }
  .page-head h1, .photo-hero h1 {
    font-family: Newsreader, Georgia, serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -.03em;
    color: #fff;
    max-width: 12em;
  }
  .page-head .lede, .photo-hero .lede {
    margin-top: 14px;
    color: #d5e2ef;
    font-size: 16.5px;
    line-height: 1.5;
    max-width: 28em;
  }
  .photo-hero .cta-row, .page-head .cta-row { margin-top: 22px; }
  .photo-hero .cta-row .btn, .page-head .cta-row .btn, .m-actions .btn { width: auto; }

  body.page-inner .page-head { position: relative; top: auto; }
  body.page-inner:has(.page-head) main > :not(.page-head):before { content: none; display: none; }
  body.page-inner:has(.page-head) main > .page-head + .section { padding-top: 36px !important; }
  body.page-inner main > :not(.page-head):not(.photo-hero) { background: #fff; }
  body.page-inner main > .photo-hero,
  body.page-inner main > .photo-hero h1,
  body.page-inner main > .photo-hero h1 span {
    background: #061A2E;
    color: #fff;
  }
  body.page-inner main > .photo-hero h1,
  body.page-inner main > .photo-hero h1 span { background: transparent; }
  body.page-inner main > .photo-hero .lede { color: #d5e2ef; }

  .section { padding: 36px 0 48px !important; }
  .section h2, .prose h2, .ask h2, .panel h2 {
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: -.03em;
    color: #061A2E;
  }
  .prose h2::before, .ask h2::before, .panel h2::before {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    margin-bottom: 10px;
    background: #2D7DD2;
  }
  .intro { margin-bottom: 22px; }
  .prose p, .prose li, .lede { font-size: 16.5px; }

  .photo-block { margin: 22px 0 0; }
  .photo-block .shot, .shot { height: 210px; border-radius: 18px; overflow: hidden; }
  .split, .layout, .defs, .ress, .next .wrap { grid-template-columns: 1fr; }
  .next a { border-right: 0; border-bottom: 1px solid #e4ebf2; padding: 16px 0; }
  .next b { font-size: 18px; color: #061A2E; }

  .index-list a { padding: 18px 0; border-top-color: #e4ebf2; }
  .index-list strong { font-size: 20px; color: #061A2E; }
  .index-list em { font-size: 14.5px; }

  .defs div { border-top-color: #e4ebf2; padding: 16px 0; }
  .defs b { font-size: 16.5px; color: #061A2E; }

  .faq details { border-top-color: #e4ebf2; padding: 4px 0; }
  .faq details:last-child { border-bottom-color: #e4ebf2; }
  .faq summary {
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 0;
    font-size: 17.5px;
    line-height: 1.3;
    letter-spacing: -.02em;
    color: #061A2E;
  }
  .faq summary:after {
    order: -1;
    content: "+";
    width: 28px;
    height: 28px;
    border: 1.5px solid #2D7DD2;
    border-radius: 50%;
    color: #2D7DD2;
    display: grid;
    place-items: center;
    flex: none;
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
  }
  .faq details[open] summary:after { content: "-"; }

  .wizard, .panel { border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
  .panel { border-top: 1px solid #e4ebf2; padding-top: 18px; margin-top: 8px; }
  .field input, .field select, .field textarea, .choice { border-radius: 12px; }
  .aside { position: static; }

  .marquee { display: none; }

  body.page-home .h-pin,
  body.page-home .case,
  body.page-home .work,
  body.page-home .close { display: none !important; }
  .desk-only { display: none !important; }

  .hero { min-height: 100svh; align-items: flex-end; }
  .hero .hero-copy { width: calc(100% - 64px); padding: 0 0 56px; }
  .hero h1 { font-size: 52px; line-height: .98; max-width: 9em; }
  .hero .lede { font-size: 17px; max-width: 22em; }
  .hero-shade {
    background:
      linear-gradient(to top, rgba(6, 16, 24, .88) 0%, rgba(6, 16, 24, .55) 42%, rgba(6, 16, 24, .28) 100%),
      linear-gradient(90deg, rgba(6, 16, 24, .72), rgba(6, 16, 24, .2) 70%);
  }
  .hero .cta-row .btn, .hero .m-phone { width: auto; }
  .hero .m-phone { color: #fff; font-weight: 600; text-decoration: none; font-size: 16px; }
  .hero .text-link.on-dark { color: #fff; }
  .scroll-cue { display: none; }

  .m-hero {
    position: relative;
    overflow: hidden;
    background: #061A2E;
    color: #fff;
    padding: 132px 0 64px;
  }
  .m-eye {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-family: Franklin, Arial, sans-serif;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #2D7DD2;
  }
  .m-eye i { display: block; width: 22px; height: 2px; background: currentColor; flex: none; }
  .m-hero .m-eye, .m-card .m-eye { color: #7CB8F2; }
  .m-hero h1 {
    margin: 0;
    font-size: 46px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.034em;
    color: #fff;
    max-width: 11em;
  }
  .m-hero h1 .b {
    display: block;
    margin-top: 2px;
    color: #7CB8F2;
    font-weight: 450;
  }
  .m-sub {
    margin: 18px 0 0;
    max-width: 22em;
    color: #d5e2ef;
    font-size: 17px;
    line-height: 1.45;
  }
  .m-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 18px;
    margin-top: 28px;
  }
  .m-actions .btn {
    min-height: 50px;
    padding: 0 22px;
    background: #2D7DD2;
    border: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
  }
  .m-phone {
    color: #fff;
    font-size: 16.5px;
    font-weight: 650;
    text-decoration: none;
    letter-spacing: -.01em;
  }

  .m-block { background: #fff; padding: 52px 0; }
  .m-block.alt { background: #f3f7fb; }
  .m-block h2, .m-block .m-h {
    margin: 0;
    font-family: Newsreader, Georgia, serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.03em;
    color: #061A2E;
  }
  .m-block h2 .b, .m-block .m-h .b { display: block; color: #1F6FC4; font-weight: 500; }
  .m-lead {
    margin: 14px 0 0;
    max-width: 28em;
    color: #3E4854;
    font-size: 16.5px;
    line-height: 1.5;
  }

  .m-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
  }
  .m-tile {
    position: relative;
    display: block;
    height: 168px;
    border-radius: 18px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
  }
  .m-tile-wide { grid-column: 1 / -1; height: 196px; }
  .m-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 42%;
  }
  .m-tile:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 16, 30, .72), rgba(6, 16, 30, .05) 58%);
  }
  .m-tile span {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 1;
    font-family: Franklin, Arial, sans-serif;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -.02em;
    line-height: 1.1;
  }

  .m-tabbar { display: flex; gap: 8px; margin: 22px 0 4px; }
  .m-tabbar button {
    border: 0;
    background: transparent;
    color: #5A6572;
    font-family: Franklin, Arial, sans-serif;
    font-size: 15px;
    font-weight: 650;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
  }
  .m-tabbar button[aria-selected="true"] { background: #061A2E; color: #fff; }
  .m-num { list-style: none; margin: 8px 0 0; }
  .m-num li { border-top: 1px solid #e4ebf2; }
  .m-num li:last-child { border-bottom: 1px solid #e4ebf2; }
  .m-num a, .m-num li > div {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 18px 0;
    text-decoration: none;
    color: inherit;
  }
  .m-num span {
    color: #2D7DD2;
    font-weight: 650;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    min-width: 1.6em;
  }
  .m-num strong {
    display: block;
    font-size: 18px;
    font-weight: 650;
    color: #061A2E;
    letter-spacing: -.02em;
  }
  .m-num em {
    display: block;
    margin-top: 3px;
    font-style: normal;
    font-weight: 450;
    font-size: 14.5px;
    line-height: 1.4;
    color: #5A6572;
  }
  .m-more { margin: 18px 0 0; }
  .m-more a {
    font-weight: 650;
    color: #1B365D;
    text-decoration: none;
  }

  .m-fig { margin-top: 18px; }
  .m-fig div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .m-fig span { color: #5A6572; font-size: 14px; font-weight: 650; }
  .m-fig b {
    font-family: Franklin, Arial, sans-serif;
    font-size: 28px;
    font-weight: 650;
    letter-spacing: -.03em;
    color: #061A2E;
  }
  .m-fig i {
    display: block;
    height: 6px;
    margin-top: 8px;
    border-radius: 999px;
    background: #d7e4f2;
    position: relative;
    overflow: hidden;
  }
  .m-fig i:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--w);
    background: #2D7DD2;
    border-radius: inherit;
  }
  .m-card {
    position: relative;
    overflow: hidden;
    margin-top: 26px;
    padding: 26px 22px 24px;
    border-radius: 22px;
    background: #061A2E;
    color: #e7eef6;
  }
  .m-card h3 {
    margin: 0 0 4px;
    font-size: 42px;
    font-weight: 650;
    letter-spacing: -.03em;
    color: #fff;
  }
  .m-card p { color: #d5e2ef; font-size: 16px; line-height: 1.45; }
  .m-card .fine { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: #a9bdd0; }
  .m-card:after {
    content: "";
    position: absolute;
    right: -46%;
    bottom: -78%;
    width: 130%;
    height: 110%;
    border: 1px solid rgba(124, 184, 242, .28);
    border-radius: 50%;
    pointer-events: none;
  }

  .site-footer {
    background: #061A2E;
    padding: 36px 0 max(28px, env(safe-area-inset-bottom));
  }
  .site-footer .foot-grid,
  .site-footer .legal-line { display: none; }
  .m-foot .logo img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
  }
  .m-foot-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    margin-top: 28px;
  }
  .m-foot h2 {
    font-family: Franklin, Arial, sans-serif;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7CB8F2;
    margin: 0 0 12px;
  }
  .m-foot ul { list-style: none; }
  .m-foot li { margin: 0 0 10px; font-size: 14.5px; line-height: 1.4; color: #d5e2ef; }
  .m-foot a { color: #e7eef6; text-decoration: none; }
  .m-legal {
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #a9bdd0;
    font-size: 12.5px;
    line-height: 1.5;
  }
  .m-legal + .m-legal { margin-top: 8px; padding-top: 0; border-top: 0; }
  .m-legal a { color: #d5e2ef; }

  .band { display: block; padding: 8px 0 36px; scroll-margin-top: 96px; }
  .band .shot { height: 210px; border-radius: 18px; overflow: hidden; }
  .band h2 { font-size: 36px; margin-top: 18px; }
  .band .lines { list-style: none; margin-top: 16px; }
  .band .lines li { padding: 12px 0; border-top: 1px solid #e4ebf2; }
  .band .lines b { display: block; font-family: Franklin, Arial, sans-serif; font-size: 16px; }
  .band .lines span { display: block; color: #3E4854; font-size: 15px; margin-top: 4px; }
  .cc-item { border-top: 1px solid #e4ebf2; }
  .cc-item summary b { font-size: 28px; }
  .path-bar { display: flex; gap: 18px; margin-bottom: 22px; }
  .path-bar button { background: none; border: 0; padding: 0 0 8px; font-family: Newsreader, Georgia, serif; font-size: 22px; color: #5A6572; }
  .path-bar button[aria-selected="true"] { color: #061A2E; box-shadow: inset 0 -2px 0 #1B365D; }
  .callout { margin: 0 0 16px; padding: 14px 16px; background: #061A2E; color: #fff; }
  .callout a { color: #fff; font-weight: 650; }

  body.page-inner:has(.page-head) main > .prac-nav {
    position: static;
    top: auto;
    z-index: 2;
    overflow-x: auto;
    background: #fff;
    color: #061A2E;
    border-bottom: 1px solid #e4ebf2;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .prac-nav .wrap { width: max-content; min-width: 100%; gap: 18px; padding: 0 24px; }
  .prac-nav a { font-size: 17px; padding: 12px 0; color: #3E4854; }
  .prac-nav a:hover, .prac-nav a.is-on { color: #061A2E; border-bottom-color: #061A2E; }

  body.page-inner main > .stage {
    display: block;
    min-height: 0;
    background: #fff !important;
    color: #061A2E;
    overflow: visible;
  }
  .stage-photo {
    width: calc(100% - 48px);
    margin: 28px auto 0;
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }
  .stage-photo:after { display: none; }
  .stage-copy {
    width: calc(100% - 64px);
    margin: 0 auto;
    padding: 16px 0 32px;
  }
  .stage h2 { color: #061A2E; font-size: 40px; }
  .stage .lede, .stage .asks p, .stage-lines span { color: #3E4854; }
  .stage-lines { grid-template-columns: 1fr; margin-top: 16px; }
  .stage-lines li { border-top-color: #e4ebf2; }
  .stage-lines b { color: #061A2E; }
  .stage .more { color: #061A2E; border-bottom-color: rgba(6, 26, 46, .35); }

  .cc-layout { display: block; }
  .cc-hero { min-height: 0; }
  .expect-strip { position: static; margin-top: 12px; }
  .cc-item summary { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 18px 0; }
  .cc-claim summary { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 18px 16px; }
  .cc-hot { grid-column: 1 / -1; justify-self: start; font-size: 22px; white-space: normal; }
  .cc-item summary b { font-size: 28px; }
  .cc-claim .cc-inner { padding: 16px 16px 4px; }
}

/* Phone header and menu, under 1024. Desktop at 1024px and up is untouched. */
@media (max-width: 1023px) {
  .site-header {
    top: calc(12px + env(safe-area-inset-top)) !important;
    padding-top: 0 !important;
  }
  .site-header:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: 100%;
    height: calc(12px + env(safe-area-inset-top));
    background: transparent;
    pointer-events: none;
  }
  html.veil .site-header:before,
  html.veil body.page-home .site-header:before,
  html.veil body.page-inner .site-header:before {
    top: auto;
    bottom: 100%;
    height: calc(12px + env(safe-area-inset-top));
    background: #fff;
  }
  .bar { width: calc(100% - 24px); }

  html.nav-open .site-header {
    top: 0 !important;
    padding-top: env(safe-area-inset-top) !important;
    transform: none !important;
  }
  html.nav-open .site-header:before,
  html.nav-open body.page-home .site-header:before,
  html.nav-open body.page-inner .site-header:before {
    background: #fff !important;
    height: env(safe-area-inset-top);
  }
  html.nav-open .bar,
  body.nav-open .bar {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .sheet {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    overflow: auto;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    transform: none;
    padding: calc(env(safe-area-inset-top) + 76px) 24px max(24px, env(safe-area-inset-bottom));
  }
  .sheet nav { flex: none; overflow: visible; min-height: 0; }
  .sheet nav > a {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -.03em;
    color: #0c1824;
    padding: 13px 0;
    border-bottom: 1px solid #e4ebf2;
  }
  .sheet .sheet-cta {
    flex: none;
    margin: 0;
    padding: 18px 0 0;
    gap: 8px;
    background: #fff;
  }
  .sheet .sheet-cta a {
    padding: 2px 0;
    border: 0;
    font-size: 16px;
    font-weight: 560;
    color: #0c1824;
  }
  .sheet .sheet-cta a.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    height: 42px;
    margin: 0 0 4px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #1F6FC4;
    color: #fff;
    font-size: 14px;
    font-weight: 560;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
  }
  .sheet .sheet-cta a.btn:hover {
    background: #185fa8;
    border-color: transparent;
    color: #fff;
  }
  html.nav-open,
  html.nav-open body {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
  }
}

/* Menu v2 (design/menu-grays): full-height navy overlay, large serif links,
   four links only (no Coverage sub-links), understated CTA, contact anchored at the bottom.
   Burger widths only (under 1024). Desktop is untouched. */
@media (max-width: 1023px) {
  html.nav-open .site-header:before,
  html.nav-open body.page-home .site-header:before,
  html.nav-open body.page-inner .site-header:before { background: #06182f !important; }
  html.nav-open .bar,
  html.nav-open body.nav-open .bar,
  html:not(.scrolled) body.page-home.nav-open .bar {
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
  }
  html.nav-open .bar .logo img { filter: brightness(0) invert(1) !important; }
  html.nav-open .nav-btn { color: #fff; }
  .nav-ic, .nav-ic:before, .nav-ic:after { transition: transform .35s cubic-bezier(.2,.7,.2,1), background .2s ease; }

  #sheet {
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    color: #fff;
    background:
      radial-gradient(120% 70% at 100% 0%, rgba(45,125,210,.16) 0%, rgba(45,125,210,0) 60%),
      linear-gradient(180deg, #071c36 0%, #06182f 55%, #051427 100%);
    padding: calc(env(safe-area-inset-top) + 112px) 22px max(28px, calc(env(safe-area-inset-bottom) + 16px));
  }
  #sheet[hidden] { display: none; }
  #sheet nav { flex: none; display: flex; flex-direction: column; overflow: visible; }
  #sheet nav > a {
    display: block;
    padding: 13px 0;
    border: 0;
    font-family: Newsreader, Georgia, serif;
    font-weight: 400;
    font-size: 44px;
    line-height: 1.06;
    letter-spacing: -.025em;
    color: #fff;
    text-decoration: none;
  }
  #sheet nav > a:active { color: rgba(255,255,255,.7); }

  #sheet .sheet-cta {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: auto 0 0;
    padding: 40px 0 0;
    background: transparent;
    border: 0;
  }
  #sheet .sheet-cta a {
    display: block;
    padding: 0;
    border: 0;
    font-family: Franklin, Arial, sans-serif;
    font-weight: 450;
    color: #fff;
    text-decoration: none;
  }
  #sheet .sheet-cta a.btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 56px;
    min-height: 56px;
    margin: 0 0 28px;
    padding: 0 4px 0 0;
    border: 0;
    border-top: 1px solid rgba(231,238,244,.22);
    border-bottom: 1px solid rgba(231,238,244,.22);
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 560;
    letter-spacing: .01em;
    line-height: 1;
    text-align: left;
    box-shadow: none;
  }
  #sheet .sheet-cta a.btn:after {
    content: "";
    width: 16px; height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .3s cubic-bezier(.2,.7,.2,1);
  }
  #sheet .sheet-cta a.btn:hover,
  #sheet .sheet-cta a.btn:active { background: transparent; color: #fff; }
  #sheet .sheet-cta a.btn:active:after { transform: translateX(4px); }
  #sheet .sheet-cta a[href^="tel:"] {
    font-family: Newsreader, Georgia, serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -.01em;
    padding: 2px 0 6px;
  }
  #sheet .sheet-cta a[href^="mailto:"] {
    font-size: 15px;
    line-height: 1.4;
    color: rgba(231,238,244,.66);
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  #sheet:not([hidden]) { animation: sheet-fade .38s cubic-bezier(.2,.7,.2,1) both; }
  #sheet:not([hidden]) nav > a,
  #sheet:not([hidden]) .sheet-cta > a {
    animation: sheet-rise .7s cubic-bezier(.2,.7,.2,1) both;
  }
  #sheet nav > :nth-child(1) { animation-delay: .06s !important; }
  #sheet nav > :nth-child(2) { animation-delay: .12s !important; }
  #sheet nav > :nth-child(3) { animation-delay: .18s !important; }
  #sheet nav > :nth-child(4) { animation-delay: .24s !important; }
  #sheet nav > :nth-child(5) { animation-delay: .30s !important; }
  #sheet .sheet-cta > :nth-child(1) { animation-delay: .38s !important; }
  #sheet .sheet-cta > :nth-child(2) { animation-delay: .44s !important; }
  #sheet .sheet-cta > :nth-child(3) { animation-delay: .48s !important; }
}
@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }

/* Gray's Papaya client result v2 (design/menu-grays): full-bleed storefront,
   headline set over the gradient, outcomes as typographic lines. Under 1024. */
@media (max-width: 1023px) {
  .client-result.client-result-grays {
    position: relative;
    display: block;
    margin: 0;
    padding: 0 0 76px;
    background: #06182f;
    color: #e7eef4;
    overflow: clip;
  }
  .client-result-grays .result-photo.only-1024 {
    display: block;
    position: static;
    margin: 0;
    height: min(136vw, 680px);
    overflow: clip;
  }
  .client-result-grays .result-photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 82%;
    transform-origin: 50% 55%;
  }
  .client-result-grays .wrap {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 640px;
    margin: -92px 0 0;
    padding: 20px 32px 0;
    background: #06182f;
    border: 0;
  }
  .client-result-grays .wrap:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0; right: 0;
    top: -120px;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(6,24,47,0) 0%, #06182f 100%);
  }
  .client-result-grays .result-label {
    margin: 0 0 14px;
    font-family: Franklin, Arial, sans-serif;
    font-size: 11px;
    font-weight: 560;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(231,238,244,.72);
  }
  .client-result-grays .result-name {
    margin: 0 0 10px;
    font-family: Newsreader, Georgia, serif;
    font-weight: 400;
    font-size: 20px;
    letter-spacing: -.01em;
    color: #fff;
  }
  .client-result-grays h2 {
    margin: 0;
    font-family: Newsreader, Georgia, serif;
    font-weight: 400;
    font-size: clamp(36px, 9.8vw, 54px);
    line-height: 1.02;
    letter-spacing: -.03em;
    color: #fff;
    max-width: none;
  }
  .client-result-grays h2 .desk-break { display: block; }
  .client-result-grays .result-headline {
    margin: 22px 0 0;
    max-width: 16em;
    font-family: Newsreader, Georgia, serif;
    font-weight: 500;
    font-size: clamp(26px, 7.2vw, 34px);
    line-height: 1.15;
    letter-spacing: -.02em;
    color: #fff;
    text-wrap: balance;
  }
  @media (max-width: 349px) {
    .client-result-grays .result-headline { text-wrap: wrap; }
    .client-result-grays .result-headline span { display: block; }
  }
  .client-result-grays .result-line {
    margin: 22px 0 0;
    max-width: none;
    font-family: Newsreader, Georgia, serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    color: #fff;
  }
  .client-result-grays .result-line > span {
    display: flex;
    align-items: baseline;
    gap: 14px;
    min-width: 0;
    padding: 15px 0;
    border: 0;
    border-top: 1px solid rgba(231,238,244,.16);
    white-space: normal;
  }
  .client-result-grays .result-line > span:last-child { border-bottom: 1px solid rgba(231,238,244,.16); }
  .client-result-grays .result-line > span:before {
    content: "";
    flex: none;
    width: 14px;
    height: 1px;
    transform: translateY(-6px);
    background: #6fa8e6;
  }
  .client-result-grays .result-line > span > span {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    white-space: normal;
  }
  .client-result-grays .result-line > span > span:before { content: none; }
  .client-result-grays .result-body {
    margin: 28px 0 0;
    max-width: 32em;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(231,238,244,.8);
  }
  .client-result-grays .result-foot {
    margin: 20px 0 0;
    max-width: 42em;
    font-size: 13px;
    line-height: 1.5;
    color: #a8bdd4;
  }
  .client-result-grays .result-rep {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 26px;
    margin: 0;
    font-size: 10.5px;
    line-height: 1.45;
    letter-spacing: 0;
    color: rgba(231,238,244,.42);
  }
  .client-result-grays .result-rep a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
}
@media (max-width: 1023px) {
  html.motion.js .client-result-grays .result-photo img,
  html.motion.js .client-result-grays .result-photo:not(.is-in) img,
  html.motion.js .client-result-grays .result-photo.is-in img {
    transform: none;
    clip-path: none;
    opacity: 1;
    transition: none;
  }
  html.motion.js .client-result-grays [data-rise],
  html.motion.js .client-result-grays [data-rise]:not(.is-in) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Gray's Papaya disclaimer (compliance): always rendered. No reveal start state,
   no breakpoint or reduced-motion hide. Muted but at or above the photo credit gray. */
.client-result-grays .result-foot,
html.motion.js .client-result-grays .result-foot,
html.motion.js .client-result-grays .result-foot[data-rise]:not(.is-in) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
@media (max-width: 1023px) {
  .client-result-grays .result-foot { color: #a8bdd4; font-size: 13px; line-height: 1.5; }
}

/* Menu v5 (design/menu-v4): one design. Dark facade photo with slow drift
   (photos/facade-800.webp, Pexels License, Anna Chip), numbered rows with
   hairlines and soft arrows, a side rule that draws down the left edge of the
   list, and a small-caps office and license block. Under 1024 only.
   Reduced motion: no drift, no draw, no stagger; everything shown at rest. */
@media (max-width: 1023px) {
  #sheet {
    isolation: isolate;
    background: #040f1e;
    padding-top: calc(env(safe-area-inset-top) + 100px);
  }
  #sheet:before, #sheet:after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: -1;
  }
  #sheet:before {
    inset: -6%;
    background: url("photos/facade-800.webp") 50% 50% / cover no-repeat;
    filter: grayscale(.45) brightness(.5) contrast(1.05);
    opacity: .42;
    transform: scale(1.06);
  }
  #sheet:after {
    inset: 0;
    background:
      linear-gradient(180deg, rgba(4,15,30,.80) 0%, rgba(5,19,37,.70) 34%, rgba(4,15,30,.90) 64%, #040f1e 100%),
      radial-gradient(90% 55% at 100% 0%, rgba(45,125,210,.16) 0%, rgba(45,125,210,0) 60%);
  }

  /* Numbered list with a side rule on its left edge */
  #sheet nav {
    position: relative;
    counter-reset: mnum;
    padding-left: 18px;
  }
  #sheet nav:before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(231,238,244,.08), rgba(231,238,244,.42) 22%, rgba(231,238,244,.42) 78%, rgba(231,238,244,.08));
    transform-origin: 50% 0;
  }
  #sheet nav > a {
    counter-increment: mnum;
    display: grid;
    grid-template-columns: 34px 1fr 18px;
    align-items: baseline;
    padding: 18px 2px 17px 0;
    border-top: 1px solid rgba(231,238,244,.13);
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -.015em;
  }
  #sheet nav > a:last-child { border-bottom: 1px solid rgba(231,238,244,.13); }
  #sheet nav > a:before {
    content: counter(mnum, decimal-leading-zero);
    font-family: Franklin, Arial, sans-serif;
    font-size: 11px;
    font-weight: 560;
    letter-spacing: .16em;
    color: rgba(231,238,244,.46);
    transform: translateY(-9px);
  }
  #sheet nav > a:after {
    content: "";
    align-self: center;
    width: 16px; height: 16px;
    background: rgba(231,238,244,.5);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .3s cubic-bezier(.2,.7,.2,1), background .3s ease;
  }
  #sheet nav > a[aria-current="page"]:before { color: #fff; }
  #sheet nav > a:active:after { transform: translateX(4px); background: #fff; }

  /* Contact and the office and license block */
  #sheet .sheet-cta { padding-top: 32px; }
  #sheet .sheet-cta a.btn { margin-bottom: 22px; }
  #sheet .sheet-meta {
    flex: none;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 22px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid rgba(231,238,244,.13);
    font-family: Franklin, Arial, sans-serif;
    font-size: 11px;
    font-weight: 560;
    line-height: 1.3;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-variant-caps: all-small-caps;
    color: rgba(231,238,244,.52);
  }
  #sheet .sheet-meta span { display: block; }
}

/* Short screens (small iPhone 375x667 and similar): tighten the rhythm */
@media (max-width: 1023px) and (max-height: 740px) {
  #sheet { padding-top: calc(env(safe-area-inset-top) + 84px); padding-bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); }
  #sheet nav > a { padding: 14px 2px 13px 0; font-size: 28px; }
  #sheet .sheet-cta { padding-top: 22px; }
  #sheet .sheet-cta a.btn { height: 50px; min-height: 50px; margin-bottom: 14px; }
  #sheet .sheet-cta a[href^="tel:"] { font-size: 24px; padding: 0 0 4px; }
  #sheet .sheet-meta { margin-top: 16px; padding-top: 12px; }
}

@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  #sheet:not([hidden]):before { animation: mv5-drift 28s ease-in-out infinite alternate; }
  #sheet:not([hidden]) nav:before { animation: mv5-rule 1s .08s cubic-bezier(.2,.7,.2,1) both; }
  #sheet:not([hidden]) nav > a:after { animation: mv5-arrow .6s cubic-bezier(.2,.7,.2,1) both; }
  #sheet nav > :nth-child(1):after { animation-delay: .36s; }
  #sheet nav > :nth-child(2):after { animation-delay: .42s; }
  #sheet nav > :nth-child(3):after { animation-delay: .48s; }
  #sheet nav > :nth-child(4):after { animation-delay: .54s; }
  #sheet:not([hidden]) .sheet-meta { animation: sheet-rise .7s .54s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes mv5-drift { from { transform: scale(1.06) translate3d(0,0,0); } to { transform: scale(1.16) translate3d(-2.5%,-2%,0); } }
@keyframes mv5-arrow { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes mv5-rule { from { transform: scaleY(0); } to { transform: none; } }

/* Phone and tablet polish. Desktop at 1024px and up is unchanged.
   Readable type, 44px targets, the same serif and photo language as desktop,
   and no blur. */
@media (max-width: 1023px) {
  html { scroll-padding-top: 96px; }
  body { overflow-x: clip; }
  h1, h2, .m-h, .result-line span { text-wrap: balance; }

  .logo { min-height: 44px; }
  .nav-btn { width: 44px; height: 44px; }

  .btn { background: #1A6EC8; border-color: #1A6EC8; color: #fff; font-weight: 650; font-size: 16px; }
  .hero .btn-light, .close .btn-light { background: #fff; color: #06182f; border-color: #fff; }
  .hero .btn-line, .close .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
  .hero .cta-row .btn, .close .cta-row .btn { min-height: 48px; padding: 0 22px; }

  p, li, .lede, .quiet, .prose p, .prose li, .field label, .form-error,
  .m-foot li, .m-legal, .result-body, .result-foot, .cc-note, .cc-item summary em,
  .m-num em, .callout, .firm-office, .firm-reach, .reach-addr, .reach-mail {
    font-size: 16px;
    line-height: 1.5;
  }
  .field label { font-weight: 600; color: #0a2540; }
  .quiet, .form-error { color: #3e4854; }
  .field input, .field select, .field textarea, input[type="file"] {
    font-size: 16px;
    border-radius: 0;
    min-height: 48px;
  }
  .field textarea { min-height: 120px; }
  .choice { border-radius: 0; min-height: 52px; }
  .wizard-nav, .done-actions { flex-direction: column; align-items: stretch; }
  .wizard-nav .btn, .wizard-nav .btn-ghost, .done-actions .btn, .done-actions .btn-ghost {
    width: 100%;
    min-height: 48px;
  }

  .m-num strong {
    font-family: Newsreader, Georgia, serif;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -.02em;
  }
  .m-num span { color: #143864; font-size: 15px; }
  .m-num a, .m-num li > div { padding: 20px 0; }

  .m-foot li { margin: 0; }
  .m-foot a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    font-size: 16px;
    text-decoration: none;
  }
  .m-legal { font-size: 16px; line-height: 1.5; color: #d5e2ef; }
  .m-foot .m-legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; display: inline; min-height: 0; padding: 0; }

  .stage-photo {
    width: 100%;
    margin: 0;
    border-radius: 0;
    aspect-ratio: 16 / 10;
    height: auto;
  }
  .stage-copy { padding-top: 22px; padding-bottom: 40px; }
  .stage .more { min-height: 44px; display: inline-flex; align-items: center; }

  .cc-n { color: #4e6278; }
  .cc-claim .cc-n, .cc-claim summary b, .cc-claim .cc-go { color: #fff; }
  .cc-item summary { position: relative; align-items: center; min-height: 72px; padding-right: 28px; }
  .cc-go { display: none; }
  .cc-item summary:after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    text-align: center;
    font-family: Franklin, Arial, sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    color: #1B365D;
  }
  .cc-item[open] summary:after { content: "-"; }
  .cc-claim summary:after { color: #fff; }
  .cc-claim summary { grid-template-columns: 36px minmax(0, 1fr); padding: 18px 40px 18px 16px; }
  .cc-hot {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-top: 6px;
    font-size: 18px;
    white-space: normal;
  }

  .client-result-grays .wrap:before {
    top: -120px;
    height: 120px;
    background: linear-gradient(to bottom, rgba(6,24,47,0) 0%, #06182f 100%);
  }
  .client-result-grays .result-foot { color: #a8bdd4; font-size: 13px; line-height: 1.5; }
  .client-result-grays .result-body { color: #e7eef4; font-size: 16px; }
  .client-result-grays .result-rep { color: #d5e2ef; font-size: 13px; line-height: 1.45; }
  .client-result-grays .result-rep a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
  .client-result-grays .result-line { font-size: 20px; }
  .client-result.client-result-grays { padding-bottom: 48px; }
  .result-rep { display: none !important; }
  .prose p.photo-credits, .prose p.photo-credits a { font-size: 13px; line-height: 1.45; color: #5A6572; }
  .cc-claim summary:after { top: 28px; transform: none; }

  body.page-home .close {
    display: flex !important;
    position: relative;
    min-height: 560px;
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
  }
  body.page-home .close .hero-media { display: block; }
  body.page-home .close-inner { position: relative; z-index: 1; padding: 0 0 36px; }
  body.page-home .close h2 { font-size: 46px; }
  body.page-home .close .cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  body.page-home .close .cta-row .btn { width: 100%; }

  .path-bar { flex-direction: column; align-items: stretch; gap: 0; margin-bottom: 18px; }
  .path-bar button {
    width: 100%;
    min-height: 48px;
    padding: 12px 0;
    text-align: left;
    font-size: 22px;
    line-height: 1.2;
    white-space: normal;
  }

  .contact-desk.only-1024 { display: block; background: #06182f; }
  .contact-desk .contact-form { display: none; }
  .contact-split { display: block; width: 100%; min-height: 0; margin: 0; }
  .contact-visual { position: relative; display: block; height: 78vw; min-height: 320px; max-height: 520px; margin: 0; overflow: hidden; }
  .contact-visual img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
  .contact-visual figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    margin: 0;
    padding: 88px 24px 28px;
    background: linear-gradient(to top, #06182f 0%, rgba(6,24,47,.94) 46%, rgba(6,24,47,0) 100%);
    color: #fff;
  }
  .contact-visual .reach-call {
    display: block;
    font-family: Newsreader, Georgia, serif;
    font-weight: 500;
    font-size: clamp(32px, 8vw, 44px);
    line-height: 1.05;
    letter-spacing: -.03em;
    color: #fff;
    text-decoration: none;
  }
  .contact-visual .reach-mail {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 6px;
    color: #fff;
    font-size: 16px;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .contact-visual .reach-addr { margin-top: 4px; color: #e7eef4; font-size: 16px; max-width: 18em; }

  .about-principal .kicker { color: #1B365D; }
  .about-principal h2 { font-size: 40px; margin-bottom: 8px; }
  .about-principal h2::before { content: none; }
  .m-block h2 .b, .m-block .m-h .b { color: inherit; }
  .field input[type="file"]::file-selector-button,
  .field input[type="file"]::-webkit-file-upload-button {
    min-height: 44px;
    margin: 8px 12px 8px 0;
    padding: 0 14px;
    border: 0;
    background: #06182f;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
  }
  .panel .row a, .cc-disclose a, .contact-visual .reach-call {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .client-result-grays .result-rep a { padding: 6px 2px; }
  .firm-reach a { display: inline-flex; align-items: center; min-height: 44px; }

  #sheet .sheet-cta a[href^="tel:"] { min-height: 44px; display: flex; align-items: center; }
  #sheet .sheet-cta a[href^="mailto:"] {
    min-height: 44px;
    display: flex;
    align-items: center;
    color: rgba(231,238,244,.92);
    font-size: 16px;
  }
  #sheet .sheet-meta { color: rgba(231,238,244,.82); font-size: 12px; letter-spacing: .12em; }
  #sheet .sheet-cta a.btn { min-height: 48px; height: 48px; font-size: 16px; }
}

@media (max-width: 1023px) and (max-height: 740px) {
  #sheet { padding-top: calc(env(safe-area-inset-top) + 72px); }
  #sheet nav > a { padding: 12px 2px 11px 0; font-size: 26px; }
  #sheet .sheet-cta { padding-top: 16px; }
  #sheet .sheet-meta { margin-top: 10px; }
}

/* Gray's is a full-bleed section, not a card in the rail. How it works
   keeps a clear pause after the navy. */
@media (max-width: 768px) {
  body.page-home .m-home .m-block:has(.m-tiles) { padding-bottom: 64px; }
  body.page-home .m-home .m-block:has(.m-num) { padding: 112px 0 80px; }
  body.page-home .client-result.client-result-grays {
    margin: 0;
    padding: 0 0 72px;
    border-radius: 0;
    overflow: hidden;
    background: #06182f;
  }
  body.page-home .client-result-grays .result-photo.only-1024 {
    display: block;
    width: 100%;
    margin: 0;
    border-radius: 0;
  }
  body.page-home .client-result-grays .result-photo img { border-radius: 0; }
  body.page-home .client-result-grays .wrap {
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 28px 32px 0;
    background: #06182f;
  }
  body.page-home .close,
  body.page-home .site-footer { background: #06182f; }
}

/* Footer wordmark stays white on navy, including before any scroll. */
html:not(.scrolled) body.page-home:not(.nav-open) .m-foot .logo img,
html:not(.scrolled) body.page-inner:has(.photo-hero):not(.nav-open) .m-foot .logo img,
.m-foot .logo img,
.site-footer .logo img {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

@media (max-width: 1023px) {
  .cc-portal { padding: 56px 0 104px; }
  .cc-login { margin-bottom: 64px; }
  .ez-card { margin: 0 0 18px; box-shadow: none; }
  .ez-frame { height: 460px; }
  .cc-list { margin-top: 8px; }
  .cc-item { border-top: 0; border-bottom: 1px solid #d5dee8; }
  .cc-item:first-child { border-top: 1px solid #d5dee8; }
  .cc-item summary {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    align-items: baseline;
    column-gap: 8px;
    row-gap: 0;
    min-height: 0;
    padding: 28px 0 26px;
  }
  .cc-n, .cc-main { grid-row: 1; align-self: baseline; }
  .cc-n { grid-column: 1; font-size: 22px; line-height: 1; }
  .cc-main { grid-column: 2; }
  .cc-item summary b { font-size: 34px; line-height: 1.05; }
  .cc-item summary:after {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    grid-column: 3;
    grid-row: 1;
    align-self: baseline;
    justify-self: end;
    width: 32px;
    margin: 0;
    line-height: 1;
  }
  .cc-inner { padding-bottom: 36px; }
  .cc-claim {
    margin: 32px 0;
    border: 0;
    background: #06182f;
  }
  .cc-claim summary {
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    align-items: baseline;
    padding: 32px;
    background: #06182f;
    color: #fff;
  }
  .cc-claim summary:after { color: #fff; top: auto; transform: none; }
  .cc-hot {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 48px;
    margin: 18px 0 0;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.75);
    background: transparent;
    color: #fff;
    font-family: Franklin, Arial, sans-serif;
    font-size: 16px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
  }
  .hero .brand-line { font-size: 52px; line-height: .98; max-width: 9em; }
  .page-head .page-title { font-size: 40px; line-height: 1.08; letter-spacing: -.03em; }
  .m-foot .foot-h {
    font-family: Franklin, Arial, sans-serif;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7CB8F2;
    margin: 0 0 12px;
  }
}

/* Brighter phone pages. Navy stays on the hero, Gray's, and the claim card. */
@media (max-width: 1023px) {
  body { background: #fff; }
  .page-head, .photo-hero, .cc-hero,
  body.page-inner main > .photo-hero,
  body.page-inner main > .cc-hero {
    background: #fff;
    color: #1B365D;
    padding: 118px 0 8px;
    min-height: 0;
  }
  .cc-hero .hero-media, .cc-hero .hero-shade { display: none; }
  .page-head h1, .page-head .page-title, .page-head .page-title span,
  .photo-hero h1, .photo-hero h1 span, .cc-hero h1, .cc-hero h1 span,
  body.page-inner main > .photo-hero h1,
  body.page-inner main > .photo-hero h1 span {
    color: #1B365D;
    background: transparent;
  }
  .page-head .lede, .photo-hero .lede, .cc-hero .lede,
  body.page-inner main > .photo-hero .lede { color: #4e6278; }
  .page-head .kicker, .photo-hero .kicker, .page-head h1.kicker { color: #2D7DD2; }
  .cover-head { padding-bottom: 6px; }
  .cover-head h1.kicker {
    font-family: Franklin, Arial, sans-serif;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: none;
    line-height: 1.4;
    max-width: 22em;
    color: #2D7DD2;
  }
  .cover-head .page-title { margin-top: 10px; font-size: 40px; line-height: 1.02; color: #1B365D; }

  .hero-shade {
    background: linear-gradient(to top, rgba(6,24,47,.62) 0%, rgba(6,24,47,.22) 48%, rgba(6,24,47,.06) 100%);
  }
  .m-tile {
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(27,54,93,.12);
  }
  .m-tile:after {
    background: linear-gradient(to top, rgba(6,16,30,.58), rgba(6,16,30,0) 58%);
  }
  .m-tile:active { transform: scale(.98); }
  body.page-home .m-home .m-block:has(.m-tiles) { padding: 40px 0 64px; background: #fff; }
  body.page-home .m-home .m-block:has(.m-num) { padding: 72px 0 64px; background: #fff; }
  .m-num { display: grid; gap: 12px; margin-top: 20px; }
  .m-num li {
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(27,54,93,.08);
  }
  .m-num li:last-child { border: 0; }
  .m-num li > div { padding: 16px 18px; }

  body.page-home .client-result.client-result-grays {
    margin: 0;
    width: 100%;
    border-radius: 0;
    background: #06182f;
  }
  body.page-home .client-result-grays .result-photo,
  body.page-home .client-result-grays .result-photo img,
  body.page-home .client-result-grays .wrap {
    border-radius: 0;
  }

  body.page-home .close {
    display: block !important;
    position: relative;
    min-height: 0 !important;
    align-items: stretch;
    background: #fff !important;
    color: #1B365D;
    padding: 8px 0 64px !important;
  }
  body.page-home .close .hero-media { display: none !important; }
  body.page-home .close h2, body.page-home .close h2 em, body.page-home .close h2 span { color: #1B365D !important; }
  body.page-home .close p { color: #4e6278; }
  body.page-home .close .btn-light { background: #1B365D; color: #fff; border-color: #1B365D; }
  body.page-home .close .btn-line { color: #1B365D; border-color: rgba(27,54,93,.35); background: transparent; }
  body.page-home .close .cta-row .btn { width: auto; }

  body.page-home .site-footer,
  body.page-inner .site-footer,
  .m-foot { background: #fff; color: #1B365D; }
  .m-foot li, .m-legal, .m-foot .m-legal { color: #4e6278; }
  .m-foot a, .m-foot .m-legal a { color: #1B365D; }
  .m-foot .foot-h { color: #2D7DD2; }
  html:not(.scrolled) body.page-home:not(.nav-open) .m-foot .logo img,
  html:not(.scrolled) body.page-inner:has(.photo-hero):not(.nav-open) .m-foot .logo img,
  .m-foot .logo img { filter: none !important; }

  .btn, .btn-light, .btn-line, .hero .btn-light, .close .btn-light, .close .btn-line {
    border-radius: 999px;
    transition: transform .16s ease, background .16s ease, color .16s ease;
  }
  .btn:active { transform: scale(.98); }
  .cc-claim {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(6,24,47,.14);
  }

  .cover-list { padding: 18px 0 28px; background: #fff; }
  .cover-seg {
    scroll-margin-top: 96px;
    margin: 0 0 14px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(27,54,93,.08);
  }
  .cover-seg h2 { margin: 0; font-size: inherit; font-weight: inherit; }
  .cover-seg button {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 20px 18px 16px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .cover-seg button span { min-width: 0; }
  .cover-seg button b {
    display: block;
    font-family: Newsreader, Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.05;
    color: #1B365D;
  }
  .cover-seg button em {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-family: Franklin, Arial, sans-serif;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.4;
    color: #4e6278;
  }
  .cover-seg button:after {
    content: "+";
    flex: none;
    width: 32px;
    height: 32px;
    margin-top: 2px;
    border: 1.5px solid #2D7DD2;
    border-radius: 50%;
    color: #2D7DD2;
    display: grid;
    place-items: center;
    font-family: Franklin, Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
  }
  .cover-seg.is-open button:after { content: "\2013"; }
  .cover-seg button:active { transform: scale(.985); }
  .cover-detail {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .4s cubic-bezier(.2,.7,.2,1), opacity .3s ease;
  }
  .cover-detail > div { overflow: hidden; min-height: 0; }
  .cover-seg.is-open .cover-detail { grid-template-rows: 1fr; opacity: 1; }
  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0 18px 4px;
  }
  .chips li, .chips a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f3f7fb;
    color: #1B365D;
    font-family: Franklin, Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
  }
  .cover-detail .more {
    display: inline-flex;
    margin: 10px 18px 18px;
    color: #1B365D;
    font-weight: 650;
    font-size: 15px;
    line-height: 1.35;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .cover-end { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 12px; }
}

@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  html.motion .sleek-rise:not(.is-in) {
    opacity: 0;
    transform: translateY(14px);
  }
  html.motion .sleek-rise.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--d, 0s);
  }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .cover-detail, .btn, .m-tile, .sleek-rise { transition: none; animation: none; }
  html.motion .sleek-rise { opacity: 1; transform: none; }
}
