/* At laptop size 1rem is the browser default. On larger displays the
   reading columns, type and spacing grow together. Height limits the
   scale on ultrawide screens so pinned chapters still fit the window. */
@media screen and (min-width: 1440px) {
  :root { font-size: max(100%, min(100vw / 90, 100svh / 49.25)); }
  /* Keep the long consultation offer and its button together in shallow windows. */
  .consult h2 { font-size: min(3.2vw, 2.88rem); }
}

/* Scale fixed hero details from the laptop composition (1440 × 788).
   The height limit keeps the action visible on wide, shallow displays. */
@media (min-width: 1440px) and (min-height: 720px) {
  .landing {
    --hero-unit: max(1px, min(100vw / 1440, 100svh / 720));
    --menu-inset: clamp(10px, 1.45vw, calc(24 * var(--hero-unit)));
    --menu-width: calc(116 * var(--hero-unit));
    --menu-height: calc(48 * var(--hero-unit));
  }

  .landing .hero { --pad: 3.2vw; }
  .brand-logo {
    top: calc(20 * var(--hero-unit));
    height: var(--menu-height);
    gap: calc(12 * var(--hero-unit));
  }
  .brand-logo img { height: calc(32 * var(--hero-unit)); }
  .brand-logo__name { font-size: calc(13 * var(--hero-unit)); }
  .grid-rule-top { top: calc(86 * var(--hero-unit)); }

  .hero__offer {
    gap: clamp(18px, 2.8svh, calc(30 * var(--hero-unit)));
    padding-block: max(calc(98 * var(--hero-unit)), 10.5svh)
                   clamp(24px, 3.8svh, calc(40 * var(--hero-unit)));
  }
  /* The three fitted headline lines take their measure from this bar. */
  .promise__bar {
    margin-top: calc(12 * var(--hero-unit));
    border-radius: calc(10 * var(--hero-unit));
    font-size: min(2.45vw, max(4.2svh, calc(33 * var(--hero-unit))), calc(36 * var(--hero-unit)));
  }
  .facts {
    max-width: calc(600 * var(--hero-unit));
    font-size: min(1.12vw, max(1.92svh, calc(15 * var(--hero-unit))), calc(17 * var(--hero-unit)));
  }
  .facts li { padding-block: clamp(8px, 1.15svh, calc(12 * var(--hero-unit))); }

  .hero-cta-wrap { margin-top: clamp(2px, .6svh, calc(8 * var(--hero-unit))); }
  .hero-cta-wrap .cta-pill {
    --cta-pad: calc(7 * var(--hero-unit));
    font-size: clamp(18px, 1.38vw, calc(21 * var(--hero-unit)));
    padding: var(--cta-pad) var(--cta-pad) var(--cta-pad) min(2vw, calc(34 * var(--hero-unit)));
    gap: min(1.85vw, calc(28 * var(--hero-unit)));
  }
  .hero-cta-wrap .cta-pill__arrow { width: calc(44 * var(--hero-unit)); }

  .parallax-plate { bottom: clamp(20px, 2.8svh, calc(32 * var(--hero-unit))); }
  .nameplate {
    width: min(calc(468 * var(--hero-unit)), 90%);
    padding: calc(20 * var(--hero-unit)) calc(28 * var(--hero-unit));
    border-radius: calc(18 * var(--hero-unit));
  }
  .nameplate__name { font-size: min(2.2vw, max(3.7svh, calc(29 * var(--hero-unit))), calc(33 * var(--hero-unit))); }
  .nameplate__role {
    margin-top: calc(6 * var(--hero-unit));
    font-size: min(1.16vw, max(1.98svh, calc(15.5 * var(--hero-unit))), calc(18 * var(--hero-unit)));
  }

  /* The closed menu is painted by the clipped drawer behind its button. */
  .menu[data-menu-open] {
    padding-inline: calc(8 * var(--hero-unit)) calc(44 * var(--hero-unit));
    font-size: calc(15 * var(--hero-unit));
  }
  .sm-v5 {
    width: min(34vw, calc(550 * var(--hero-unit)));
    clip-path: inset(0 0 calc(100% - var(--menu-height)) calc(100% - var(--menu-width)) round calc(24 * var(--hero-unit)));
  }
  .sm-head { min-height: calc(68 * var(--hero-unit)); }
  .sm-close {
    top: calc(2 * var(--hero-unit));
    right: calc(2 * var(--hero-unit));
    width: calc(44 * var(--hero-unit));
    height: calc(44 * var(--hero-unit));
  }
  .sm-mark { width: calc(36 * var(--hero-unit)); }
  .sm-mark::before, .sm-mark::after {
    width: calc(14 * var(--hero-unit));
    height: calc(2 * var(--hero-unit));
  }
  .sm-mark::before { transform: translateY(calc(-3 * var(--hero-unit))); }
  .sm-mark::after { transform: translateY(calc(3 * var(--hero-unit))); }
}
