/* Mobile edition: compact choices, a readable route and generous touch areas. */
@media (max-width: 767px) {
  .hero .brand-stage {
    order: 1;
    margin-top: 0;
    margin-bottom: 26px;
  }
  .hero .hero-body { order: 2; }
  .hero .brand-caption { display: none; }
  .header .brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .menu-toggle { min-width: 64px; min-height: 44px; }
  .fit-layout { row-gap: 26px; }
  .fit .fit-layout > .section-intro { margin-bottom: 5px; }
  .fit-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    border-top: 0;
  }
  .fit-tab {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 15px 12px 21px;
    min-width: 0;
    min-height: 104px;
    border: 1px solid #d5b4ff;
    background: transparent;
    color: var(--paper);
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  }
  .fit-tab > span:first-child {
    width: min-content;
    max-width: 100%;
    font-size: clamp(25px, 7vw, 31px);
    line-height: 1.06;
    font-weight: 750;
    letter-spacing: -.01em;
    opacity: 1;
  }
  .fit-tab > small {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .fit-tab > span:last-child {
    position: absolute;
    right: 10px;
    bottom: 9px;
    display: block;
    opacity: .8;
    transform: none;
    font-size: 18px;
    line-height: 1;
  }
  .fit-tab[aria-selected="true"] {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
  }
  .fit-tab[aria-selected="true"] > span:last-child { opacity: 1; }
  .fit-tab:focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: 4px;
  }

  .fit-route {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.25fr);
    gap: 19px 14px;
    padding: 24px;
  }
  .fit-route > div { min-width: 0; }
  .route-label { font-size: 11px; line-height: 1.55; }
  .route-start {
    margin-top: 9px;
    font-size: clamp(25px, 7.5vw, 31px);
    line-height: 1.15;
  }
  .route-destination {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
  }
  .route-arrow {
    align-self: center;
    height: auto;
    border: 0;
    font-size: 0;
    line-height: 1;
  }
  .route-arrow::before { content: "→"; font-size: 24px; }
  .route-goal {
    margin-top: 9px;
    font-size: clamp(36px, 11vw, 46px);
    line-height: 1.05;
    min-height: 2.1em;
  }
  .fit-route[data-offer="school"] .route-goal {
    font-size: clamp(28px, 8.7vw, 38px);
    min-height: calc(clamp(36px, 11vw, 46px) * 2.1);
  }
  .route-focus {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: 6px 18px;
    min-height: 52px;
    padding-top: 15px;
    font-size: 12px;
    line-height: 1.5;
  }
  .route-focus > li { white-space: nowrap; }
  .fit-panel,
  .fit-panel-content { min-height: 0; }
  .fit-panel h3 { font-size: 45px; line-height: 1.06; }
  .fit-panel p { font-size: 14px; line-height: 1.8; margin-top: 20px; }
  .fit-panel ul { font-size: 13px; line-height: 1.7; gap: 13px; }
  #fit-cta {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 28px;
    padding: 15px 18px;
    min-height: 56px;
    font-size: 14px;
    gap: 16px;
  }

  .faq .section-intro { margin-bottom: 30px; }
  .faq-list summary {
    min-height: 78px;
    padding: 22px 0;
    gap: 18px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
    align-items: center;
  }
  .faq-list summary > span {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid #beb4c7;
    border-radius: 50%;
    color: var(--ink);
    font: 400 23px/1 var(--body);
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
  }
  .faq-list details[open] summary { color: var(--violet); }
  .faq-list details[open] summary > span {
    color: white;
    background: var(--violet);
    border-color: var(--violet);
  }
  .faq-list details > p {
    max-width: none;
    padding: 0 0 25px;
    font-size: 15px;
    line-height: 1.8;
    color: #57505e;
  }
  .faq-list summary:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 5px;
  }
  .faq-aside { padding: 27px 25px 25px; }
  .faq-aside h3 { font-size: clamp(38px, 10.5vw, 46px); line-height: 1.08; }
  .faq-aside > p:not(.faq-aside-note) { margin-top: 18px; font-size: 15px; line-height: 1.75; }
  .faq-preparation { margin-top: 23px; padding-top: 21px; }
  .faq-preparation > p { font-size: 12px; }
  .faq-preparation ul { margin-top: 15px; gap: 11px; font-size: 14px; line-height: 1.65; }
  .faq-preparation li { padding-left: 20px; }
  .faq-aside .button {
    margin-top: 25px;
    padding: 15px 18px;
    min-height: 56px;
    font-size: 14px;
  }
  .faq-aside > .faq-aside-note { margin-top: 15px; font-size: 11px; line-height: 1.7; }

  .funnel-select .funnel-open { min-height: 56px; padding: 15px 16px; font-size: 13px; }
  .hero-invitation .button,
  .lead-form > .button { min-height: 56px; font-size: 14px; }
  .hero-meeting { font-size: 11px; line-height: 1.65; }
  .field label { font-size: 13px; }
  .field label > span { font-size: 11px; }
  .form-intro { font-size: 13px; line-height: 1.75; }
  .form-hint { font-size: 11px; line-height: 1.75; }
  .lead-form { scroll-margin-top: 86px; }
  .field input,
  .field textarea { font-size: 16px; line-height: 1.5; padding: 15px; }
  .field input { min-height: 56px; }
  .field textarea { min-height: 132px; }
  .video-close,
  .dialog-close { min-height: 44px; padding: 9px 12px; gap: 12px; font-size: 12px; }
  .text-link,
  .material-source,
  .contact-direct {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .text-link,
  .material-source { padding-block: 10px; font-size: 12px; }
  .footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .assembly-node > span { font-size: 12px; }
  .school-assembly .assembly-caption { font-size: 11px; line-height: 1.7; }
  .fit-tab,
  .faq-list summary,
  .funnel-select,
  .button,
  .text-link,
  .material-source,
  .menu-toggle,
  .video-close,
  .dialog-close {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}
@media (max-width: 374px) {
  .fit-tab { padding-inline: 9px; }
  .fit-tab > span:first-child { font-size: clamp(22px, 6.9vw, 25px); }
  .fit-route { padding: 22px 20px; column-gap: 11px; }
  .route-destination { grid-template-columns: 15px minmax(0, 1fr); gap: 8px; }
  .route-start { font-size: 25px; }
  .faq-aside { padding-inline: 22px; }
  .fit-panel h3 { font-size: 42px; }
}
@media (hover: none) and (pointer: coarse) {
  .button:hover { transform: none; }
  .button:not(.button-paper):not(.button-violet):hover { background: var(--ink); }
  .button-paper:hover { background: var(--paper); color: var(--ink); }
  .button-violet:hover { background: var(--violet); color: white; }
  .project-portrait:hover img,
  .hero-aperture:hover .hero-video-poster { transform: none; }
  .text-link:hover { gap: 20px; }
  .button:active { transform: scale(.985); }
  .video-close,
  .dialog-close { min-height: 44px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .fit-tab,
  .faq-list summary > span { transition: none; }
}
