/* ==========================================================================
   HADES — mobile layer (phones, 767px and below)
   Loaded after site.css, same approach as the TP Marine site. Everything
   except the first rule sits inside the media query, so tablet and desktop
   are not affected.
   ========================================================================== */

.mdock { display: none; }

@media (max-width: 767px) {

  :root { --hdr: 64px; --h1: clamp(1.7rem, 8.4vw, 2.6rem); --h2: clamp(1.45rem, 7vw, 2.1rem); --wide: 112; }

  /* ---------- Bottom dock ---------- */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .mdock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    background: rgba(3, 4, 11, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); transition: transform .3s var(--ease);
  }
  .mdock a { min-height: 52px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .mdock svg { width: 21px; height: 21px; }
  .mdock a[aria-current] { color: var(--text); }
  .mdock a[aria-current] svg { color: var(--red); }
  .mdock .mdock__cta { background: var(--text); color: var(--bg); }
  .mdock .mdock__cta[aria-current] svg { color: var(--bg); }
  body.kb-open .mdock { transform: translateY(110%); }

  /* ---------- Header: logo only, the dock carries the links ---------- */
  .hdr__logo img { width: 116px; }
  .hdr__cta { display: none; }

  /* ---------- Hero ---------- */
  .hero { min-height: 100svh; }
  /* Landscape photo as a band at the top, copy below it on the dark background */
  .hero { min-height: 0; }
  /* The whole boat in a band under the header (photo is 2.2:1, band is 2:1) */
  .hero__media { top: var(--hdr); bottom: auto; height: 50vw; }
  .hero__media img { top: 0; height: 100%; object-position: 50% 50%; animation: none; }
  .hero__veil { background: linear-gradient(180deg, var(--bg) 0, var(--bg) var(--hdr), rgba(3, 4, 11, 0) calc(var(--hdr) + 10vw), rgba(3, 4, 11, 0) calc(var(--hdr) + 36vw), var(--bg) calc(var(--hdr) + 50vw)); }
  .hero__in { padding: calc(var(--hdr) + 52vw) 0 34px; }
  .hero__title { letter-spacing: .01em; }
  .hero__lead { margin: 20px 0 26px; font-size: 1rem; }
  .hero__btns { gap: 14px 22px; }
  .hero__btns .btn--solid { flex: 1 1 100%; }
  .hero__pts { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .hero__pt, .hero__pt + .hero__pt { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero__pt + .hero__pt::before { left: 0; }
  .hero__pt::before { top: -1px; }
  .hero__pt h2 { font-size: .8rem; }
  .hero__scroll { display: none; }

  /* ---------- Sections ---------- */
  .sec { padding: 72px 0; }
  .sec__head { margin-bottom: 36px; }
  .eyebrow { font-size: .62rem; letter-spacing: .24em; gap: 10px; }
  .eyebrow::before { width: 22px; }
  h3 { --wide: 110; }

  /* Film: full width, a little taller for phones */
  .film { width: 100%; border-radius: 0; aspect-ratio: 4 / 3; }
  .film__cap { left: 16px; top: 14px; font-size: .56rem; }
  .film__btn { right: 14px; bottom: 14px; width: 44px; height: 44px; }

  .pts { grid-template-columns: minmax(0, 1fr); gap: 34px; margin-top: 44px; }
  .pt__icon { margin-bottom: 18px; }

  /* Protocol: vertical track */
  .proto { padding: 26px 20px 8px; }
  .proto__track { grid-template-columns: minmax(0, 1fr); }
  .proto__track::before { top: 8px; bottom: 30px; left: 7px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--line-2), var(--steel) 50%, var(--red)); }
  .proto__step { padding: 0 0 26px 36px; }

  /* Pillars: swipe row, one card in view and the next one peeking */
  .pillars { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .pillars::-webkit-scrollbar { display: none; }
  .pillars > * { flex: 0 0 84%; scroll-snap-align: start; min-width: 0; }
  .pillars .reveal { opacity: 1; transform: none; }
  .pillar__img { aspect-ratio: 4 / 3; margin-bottom: 20px; }
  .mdots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
  .mdots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: width .3s, background .3s; }
  .mdots i.is-on { width: 20px; background: var(--red); }
  .interior { margin-top: 64px; }

  /* Portal */
  .portal__copy h2 { font-size: clamp(1.25rem, 6vw, 1.7rem); }
  .redact li { grid-template-columns: 16px minmax(0, 1fr); font-size: .7rem; letter-spacing: .12em; }
  .redact i { grid-column: 2; }
  .auth { padding: 34px 20px 26px; }
  .auth__badges { gap: 8px 14px; }
  .request { padding: 26px 18px; margin-top: 56px; }
  .form__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .form__foot .btn { flex: 1 1 100%; }

  /* Footer */
  .parent { grid-template-columns: minmax(0, 1fr); margin: 56px auto; padding: 30px 22px; gap: 20px; }
  .parent__seal { width: 54px; }
  .parent__link { flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; }
  .parent__link span { border-left: 0; padding-left: 0; min-height: 24px; }
  .ftr__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .ftr__nav a, .ftr__legal a { display: inline-flex; align-items: center; min-height: 40px; }
  .ftr__nav { gap: 0; }
  .btn { min-height: 50px; }
}

@media (max-width: 360px) {
  :root { --wide: 104; }
  .hero__title { font-size: 1.55rem; }
  .auth__badges li { font-size: .56rem; }
}
