/**
 * Daniel Prayer Team — mobile-only UI (max-width: 768px).
 * Desktop layout is unchanged.
 */
@media (max-width: 768px) {
  /* ── Transparent header at scroll top ── */
  nav#navbar.nav-mobile-top {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease,
      border-color 0.3s ease;
  }

  nav#navbar.nav-mobile-top .nav-name {
    color: #fff;
  }

  nav#navbar.nav-mobile-top .nav-tag {
    color: rgba(255, 255, 255, 0.85);
  }

  nav#navbar.scrolled {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  }

  /* ── Hero: fixed box (no layout jump) + compact welcome/CTAs ── */
  .hero {
    min-height: auto !important;
    display: flex;
    flex-direction: column;
  }

  .hero-media {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    /* Stable frame — images cover this box without resizing the page */
    aspect-ratio: 16 / 10;
    min-height: 200px;
    max-height: 42vh;
    height: auto;
    background: #0f172a;
    overflow: hidden;
  }

  .hero-bg,
  .hero-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .hero-title,
  .hero-verse,
  .hero-ref,
  .hero-cross {
    display: none !important;
  }

  .hero-pill {
    display: inline-flex !important;
    align-items: center;
    align-self: center;
    margin: 0 0 8px !important;
    padding: 4px 10px !important;
    font-size: 0.52rem !important;
    letter-spacing: 0.12em !important;
    line-height: 1.2;
    border-radius: 999px !important;
    animation: none !important;
  }

  .hero-content {
    position: relative !important;
    margin-top: 0 !important;
    padding: 8px 14px 12px !important;
    width: 100%;
    max-width: 100%;
  }

  .hero-btns {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 8px !important;
    width: 100%;
    justify-content: center;
  }

  .btn-hero-primary,
  .btn-hero-teal {
    width: auto !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    font-size: 0.68rem !important;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(50% - 4px);
  }

  /* ── Featured sermon card: mobile matches standard card layout ── */
  .serm-feat {
    display: flex !important;
    flex-direction: column !important;
    aspect-ratio: auto !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .serm-feat-thumb {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    flex-shrink: 0;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #0f172a;
  }

  .serm-feat-thumb img {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  .serm-feat-overlay,
  .serm-feat-glow,
  .serm-glow {
    display: none !important;
  }

  .serm-feat-content.serm-feat-mobile-body {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    z-index: 1 !important;
    margin-top: 0 !important;
    padding: 0.85rem 1rem 1rem !important;
    background: #fff !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .serm-feat .serm-title {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    color: var(--navy) !important;
    margin-bottom: 0.35rem !important;
  }

  .serm-feat .serm-feat-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    color: var(--text-mid) !important;
    margin-bottom: 0.25rem !important;
    white-space: normal !important;
  }

  .serm-feat .serm-feat-date {
    font-size: 0.75rem !important;
    color: var(--text-soft) !important;
    margin-top: 0 !important;
    margin-bottom: 0.65rem !important;
  }

  .serm-feat .stag {
    align-self: flex-start;
    margin-bottom: 0.45rem !important;
    text-transform: uppercase;
    font-size: 0.68rem !important;
    letter-spacing: 0.06em;
  }

  .serm-feat .play-btn {
    align-self: flex-start;
  }

  .serm-feat .play-btn.play-sm {
    align-self: flex-start;
  }

  /* ── Testimonies horizontal swipe carousel ── */
  .testimonies {
    overflow: visible !important;
  }

  .test-inner {
    overflow: visible !important;
    max-width: 100% !important;
  }

  .test-hdr {
    padding-left: 16px;
    padding-right: 16px;
  }

  .test-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 7.5%;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    gap: 16px !important;
    padding: 0 16px 16px !important;
    margin: 0 !important;
    grid-template-columns: none !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
  }

  .test-grid.is-dragging-x {
    cursor: grabbing;
    scroll-snap-type: none;
  }

  .test-grid::-webkit-scrollbar {
    display: none;
  }

  .test-grid .test-card {
    flex: 0 0 85%;
    width: 85%;
    min-width: 85%;
    max-width: 85%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    touch-action: pan-x pan-y;
    overflow: visible;
    pointer-events: auto;
  }

  .test-grid .read-more-btn,
  .test-grid .share-btn {
    touch-action: manipulation;
  }

  /* ── Daily devotion: preview only; full text in modal ── */
  .dev-body.dev-body--preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
  }

  #dev-mobile-read-more,
  .dev-mobile-read-more {
    display: none !important;
  }

  #read-full-devotion-btn {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
  }

  .dev-lang-switch {
    margin-left: auto;
  }

  /* ── Wall stitch toggle + inset popup actions ── */
  @keyframes mobFabEdgePulse {
    0%, 100% {
      transform: translateX(0);
      box-shadow: -4px 6px 16px rgba(37, 99, 235, 0.28);
    }
    50% {
      transform: translateX(-3px);
      box-shadow:
        -10px 0 24px rgba(37, 99, 235, 0.5),
        -4px 0 14px rgba(96, 165, 250, 0.35),
        0 0 18px rgba(59, 130, 246, 0.25);
    }
  }

  .mobile-fab-container {
    right: 0 !important;
    bottom: 96px !important;
    left: auto !important;
    align-items: flex-end !important;
    gap: 10px !important;
    padding-left: 0;
  }

  /* Popup buttons sit a bit away from the wall */
  .speed-dial-menu {
    align-items: flex-end !important;
    padding-right: 12px !important;
    gap: 12px !important;
    margin-right: 0;
  }

  .speed-dial-item {
    margin-right: 0 !important;
  }

  .speed-dial-item .speed-dial-icon,
  .speed-dial-item .speed-dial-emoji {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    margin-right: 0 !important;
    border: none !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22) !important;
  }

  .speed-dial-label {
    margin-right: 8px;
    background: rgba(15, 23, 42, 0.86) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    padding: 6px 10px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16) !important;
  }

  /* Normal blue wall-stitched toggle (flush to edge) */
  /* ══ Edge handle — the tab stitched to the right wall ══════════
     Reads as a physical drawer pull rather than a flat blue chip:
     a deep indigo body, a lit cyan hairline down the outer edge, an
     inner top highlight, and a grip mark beside the chevron. */
  .modern-arrow-fab {
    position: relative;
    width: 38px !important;
    min-width: 38px !important;
    height: 66px !important;
    padding: 0 !important;
    margin-left: auto;
    margin-right: 0 !important;
    border-radius: 19px 0 0 19px !important;
    border: none !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 42%),
      linear-gradient(155deg, #5b8cff 0%, #2f6ce5 46%, #1b45b8 100%) !important;
    box-shadow:
      -6px 8px 22px rgba(29, 78, 216, 0.34),
      inset 1px 0 0 rgba(255, 255, 255, 0.30),
      inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
    animation: fabBeckon 5.2s cubic-bezier(0.34, 1.4, 0.5, 1) infinite !important;
    color: #fff !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition:
      box-shadow .34s ease,
      background .34s ease,
      width .32s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  }

  /* Lit hairline down the outer edge — catches the eye without motion. */
  .modern-arrow-fab::before {
    content: '' !important;
    display: block !important;
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, transparent, #8fd8ff 28%, #bdeaff 50%, #8fd8ff 72%, transparent);
    opacity: .95;
    animation: fabEdgeGlow 5.2s ease-in-out infinite;
  }

  /* Grip mark — two short rules that say "this pulls open". */
  .modern-arrow-fab::after {
    content: '' !important;
    display: block !important;
    position: absolute;
    right: 7px;
    top: 50%;
    width: 2px;
    height: 13px;
    margin-top: -6.5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 4px 0 0 rgba(255, 255, 255, 0.42);
  }

  .modern-arrow-fab:active {
    transform: translateX(3px) scale(0.97);
    box-shadow: -2px 4px 12px rgba(29, 78, 216, 0.30) !important;
  }

  .modern-arrow-fab .fab-chevron {
    width: 18px !important;
    height: 18px !important;
    stroke: #fff !important;
    stroke-width: 2.6 !important;
    margin: 0 0 0 -4px !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .28));
    transition: transform .42s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  }

  /* Open: widens slightly, brightens, and the beckon stops — the hint
     has done its job once the menu is showing. */
  .modern-arrow-fab.active {
    width: 44px !important;
    min-width: 44px !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,0) 42%),
      linear-gradient(155deg, #7aa6ff 0%, #4d84f0 46%, #2a5ad6 100%) !important;
    box-shadow:
      -8px 10px 26px rgba(37, 99, 235, 0.42),
      inset 1px 0 0 rgba(255, 255, 255, 0.42) !important;
    animation: none !important;
  }

  .modern-arrow-fab.active::before {
    animation: none;
    opacity: 1;
  }

  .modern-arrow-fab.active .fab-chevron {
    transform: rotate(180deg) !important;
  }

  /* A slow lean out and back — reads as "pull me", where the old 2.6s
     pulse read as a twitch. Long rest between gestures keeps it calm. */
  @keyframes fabBeckon {
    0%, 62%, 100% { transform: translateX(0); }
    72%           { transform: translateX(-6px); }
    82%           { transform: translateX(-1px); }
    90%           { transform: translateX(-3px); }
  }

  @keyframes fabEdgeGlow {
    0%, 58%, 100% { opacity: .55; filter: none; }
    72%           { opacity: 1;   filter: drop-shadow(0 0 6px rgba(143, 216, 255, .95)); }
  }

  .modern-arrow-fab.fade-on-scroll {
    opacity: 0.4 !important;
  }

  /* ── Verse generator mobile accordion ── */
  .verse-generator-form.vg-mobile-accordion {
    padding: 0.75rem !important;
  }

  .verse-generator-form.vg-mobile-accordion > h3:first-of-type {
    display: none;
  }

  .vg-acc-panel {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
  }

  .vg-acc-panel.is-collapsed .vg-acc-body {
    display: none;
  }

  .vg-acc-panel.is-open .vg-acc-body {
    display: block;
    padding: 0 12px 12px;
  }

  .vg-acc-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border: none;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    font-family: 'EB Garamond', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    text-align: left;
  }

  .vg-acc-head .vg-acc-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }

  .vg-acc-panel.is-open .vg-acc-head .vg-acc-chevron {
    transform: rotate(180deg);
  }

  .verse-generator-preview {
    position: sticky !important;
    top: 80px !important;
    z-index: 5;
  }

  .verse-generator-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }
}

@media (min-width: 769px) {
  #dev-mobile-read-more {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE HEADER — icon-only utility row (≤768px)
   Everything below is scoped to the mobile media query. The desktop
   header (.desktop-bible-centre, full-width nav) is untouched.
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Breathing room from the screen edge ──
     The action buttons previously sat hard against the right wall. */
  nav#navbar {
    padding-left: 16px !important;
    padding-right: 16px !important;
    /* Respect notch / rounded-corner insets on modern phones. */
    padding-left: calc(16px + env(safe-area-inset-left)) !important;
    padding-right: calc(16px + env(safe-area-inset-right)) !important;
    gap: 10px;
  }

  .nav-header-actions {
    gap: 10px !important;
    align-items: center;
  }

  /* ══ A. Bible Centre → icon-only animated book ══════════════════ */

  /* The word is dropped on mobile; aria-label on the anchor keeps the
     control announced correctly for screen readers. */
  .mobile-bible-centre span {
    display: none !important;
  }

  .mobile-bible-centre {
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: none;
    background: linear-gradient(140deg, #FFC46B 0%, #FF9F1C 55%, #F08700 100%);
    box-shadow:
      0 4px 14px rgba(240, 135, 0, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
    overflow: visible !important;
    transition:
      transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
      box-shadow 0.32s ease,
      background 0.4s ease;
  }

  /* Kill the inherited .shop-books-btn "lightSweep" streak on mobile — a
     white bar travelling across the header button every 3.5s reads as a
     glitch at this size, not as polish. The header keeps the halo + page
     turn below instead; the desktop chip is unaffected. */
  .mobile-bible-centre::after {
    content: none !important;
    animation: none !important;
    display: none !important;
  }

  /* Soft halo that breathes — draws the eye without shouting. */
  .mobile-bible-centre::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 176, 60, 0.55), transparent 68%);
    opacity: 0;
    z-index: -1;
    animation: bcHalo 3.6s ease-in-out infinite;
  }

  @keyframes bcHalo {
    0%, 100% { opacity: 0.30; transform: scale(0.92); }
    50%      { opacity: 0.75; transform: scale(1.10); }
  }

  .mobile-bible-centre .bible-centre-icon {
    width: 21px !important;
    height: 21px !important;
    stroke: #fff;
    stroke-width: 1.9;
    overflow: visible;
    /* Without perspective, rotateY on an SVG path collapses to a flat
       horizontal squash — invisible at 21px. This makes the flip read as
       an actual page lifting off the spine. */
    perspective: 90px;
    transform-style: preserve-3d;
    animation: bcBookTilt 4.6s ease-in-out infinite;
  }

  /* The whole book leans into the turn, which is what makes the motion
     legible at this size; the leaf alone is too small to notice. */
  @keyframes bcBookTilt {
    0%, 58%, 100% { transform: rotate(0deg)   scale(1);    }
    68%           { transform: rotate(-7deg)  scale(1.10); }
    80%           { transform: rotate(2.5deg) scale(1.04); }
  }

  /* The right-hand leaf lifts and settles, like a page being turned. */
  .mobile-bible-centre .bible-centre-icon path:nth-of-type(2) {
    transform-origin: 12px 12px;
    transform-box: view-box;
    animation: bcPageTurn 4.6s ease-in-out infinite;
  }

  @keyframes bcPageTurn {
    0%, 58%, 100% { transform: rotateY(0deg);   opacity: 1;    }
    68%           { transform: rotateY(-72deg); opacity: 0.55; }
    80%           { transform: rotateY(-22deg); opacity: 0.9;  }
  }

  /* The little cross on the left leaf glints as the page settles. */
  .mobile-bible-centre .bible-centre-icon path:nth-of-type(3) {
    transform-box: view-box;
    animation: bcGlint 4.6s ease-in-out infinite;
  }

  @keyframes bcGlint {
    0%, 62%, 100% { opacity: 1;    }
    74%           { opacity: 0.28; }
  }

  .mobile-bible-centre:active {
    transform: scale(0.9);
    box-shadow: 0 2px 8px rgba(240, 135, 0, 0.4) !important;
  }

  /* Over the hero photo the solid amber chip looks pasted on, so it
     becomes frosted glass and turns solid once the header does. */
  nav#navbar.nav-mobile-top .mobile-bible-centre {
    background: rgba(255, 255, 255, 0.16);
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.22),
      inset 0 0 0 1px rgba(255, 255, 255, 0.34) !important;
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
  }

  nav#navbar.nav-mobile-top .mobile-bible-centre::before {
    animation: none;
    opacity: 0;
  }

  /* ══ B. Hamburger — softer target, spring morph to X ════════════ */

  .nav-header-actions .hamburger {
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
    border-radius: 14px !important;
    background: rgba(15, 23, 42, 0.055) !important;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.075) !important;
    transition:
      background 0.3s ease,
      box-shadow 0.3s ease,
      transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .nav-header-actions .hamburger:active {
    transform: scale(0.9);
  }

  /* Bars are positioned rather than stacked, so the morph rotates
     about the true centre instead of drifting. */
  .nav-header-actions .hamburger span {
    position: absolute;
    left: 50%;
    width: 19px !important;
    height: 2px !important;
    margin-left: -9.5px;
    border-radius: 2px;
    background: #0f172a;
    transition:
      transform 0.42s cubic-bezier(0.68, -0.4, 0.27, 1.4),
      opacity 0.2s ease,
      width 0.32s ease,
      background 0.3s ease;
  }

  .nav-header-actions .hamburger span:nth-child(1) { transform: translateY(-6px); }
  .nav-header-actions .hamburger span:nth-child(2) { transform: translateY(0); width: 13px !important; margin-left: -9.5px; }
  .nav-header-actions .hamburger span:nth-child(3) { transform: translateY(6px); }

  /* Open state — the short middle bar fades, outer bars cross. */
  .nav-header-actions .hamburger.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg) !important;
  }
  .nav-header-actions .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateY(0) scaleX(0.2) !important;
  }
  .nav-header-actions .hamburger.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg) !important;
  }
  .nav-header-actions .hamburger.active span {
    width: 19px !important;
  }

  /* Over the hero: glass tile with white bars. */
  nav#navbar.nav-mobile-top .nav-header-actions .hamburger {
    background: rgba(255, 255, 255, 0.16) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.30) !important;
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
  }

  nav#navbar.nav-mobile-top .nav-header-actions .hamburger span {
    background: #fff !important;
  }

  /* ══ C. Transparent-at-top polish ═══════════════════════════════ */

  /* Match the header's own easing so the chip, bars and bar colours
     all settle together instead of finishing at different moments. */
  nav#navbar.nav-mobile-top,
  nav#navbar.scrolled {
    transition:
      background-color 0.42s cubic-bezier(0.4, 0, 0.2, 1),
      backdrop-filter 0.42s cubic-bezier(0.4, 0, 0.2, 1),
      -webkit-backdrop-filter 0.42s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.42s cubic-bezier(0.4, 0, 0.2, 1),
      border-color 0.42s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  /* Legibility over a bright hero frame. */
  nav#navbar.nav-mobile-top .nav-name {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.42);
  }
  nav#navbar.nav-mobile-top .nav-tag {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.38);
  }

  /* ══ D. Motion preferences ══════════════════════════════════════ */
  @media (prefers-reduced-motion: reduce) {
    .mobile-bible-centre::before,
    .mobile-bible-centre .bible-centre-icon,
    .mobile-bible-centre .bible-centre-icon path:nth-of-type(2),
    .mobile-bible-centre .bible-centre-icon path:nth-of-type(3),
    .modern-arrow-fab,
    .modern-arrow-fab::before {
      animation: none !important;
    }
    .nav-header-actions .hamburger span,
    .mobile-bible-centre {
      transition-duration: 0.01ms !important;
    }
  }
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE HERO — let the photo run under the fixed header (≤768px)
   Desktop already does this: .hero-media is position:absolute there, so
   the image fills the hero including the strip behind the transparent
   nav. On mobile .hero-media is position:relative and was pushed down by
   .hero's 60px padding-top, so "transparent" revealed the white page
   instead of the photo. Dropping that padding restores the desktop
   effect without touching the tuned aspect-ratio / max-height framing.
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero {
    padding-top: 0 !important;
  }

  /* Scrim so the wordmark and controls stay legible over any photo,
     including bright skies. Sits above the image, below hero content. */
  .hero-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 118px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(2, 6, 23, 0.58) 0%,
      rgba(2, 6, 23, 0.28) 55%,
      rgba(2, 6, 23, 0) 100%
    );
  }

  /* styles.css pins these dark with !important for the solid mobile
     header. Over the photo they have to win back to white. */
  nav#navbar.nav-mobile-top .nav-name {
    color: #fff !important;
  }

  nav#navbar.nav-mobile-top .nav-tag {
    color: rgba(255, 255, 255, 0.88) !important;
  }

  nav#navbar.nav-mobile-top .nav-header-actions .hamburger span {
    background: #fff !important;
  }
}
