/* Native disclosure keeps the menu usable before scripts load. */
.mobile-menu { display: none; }
@media (max-width:980px) {
  header.mast { z-index: 12; }
  header.mast > nav { display: none; }
  header.mast > .mast-contacts { margin-left: auto; }
  .mobile-menu { display: block; flex-shrink: 0; }
  .mobile-menu summary {
    display: grid; place-items: center; list-style: none; cursor: pointer;
    width: 44px; height: 44px; border-radius: 50%; color: #15384a; background: #d6f1fc;
  }
  .mobile-menu summary::-webkit-details-marker { display:none; }
  .mobile-menu summary span { position: relative; width: 18px; height: 14px; }
  .mobile-menu summary span::before,.mobile-menu summary span::after {
    content: ''; position:absolute; left:0; top:4px; width:100%; height:2px; border-radius:2px;
    background:currentColor; transition:transform .23s;
  }
  .mobile-menu summary span::after { top:10px; }
  .mobile-menu[open] summary span::before { transform:translateY(3px) rotate(45deg); }
  .mobile-menu[open] summary span::after { transform:translateY(-3px) rotate(-45deg); }
  header.mast .mobile-menu nav {
    position:absolute; inset:calc(100% + 6px) 0 auto; display:grid; gap:0;
    max-height:calc(100dvh - 155px); overflow:auto; overscroll-behavior:contain;
    border-radius:22px; background:white; border:1px solid #c9dde6; box-shadow:0 12px 35px #0e334326;
    padding:8px;
  }
  header.mast .mobile-menu nav a { display:block; min-height:44px; padding:12px 15px; font:560 .96rem/1.3 var(--body); border-radius:14px; }
  .mobile-menu nav a:is(:hover,:focus-visible) { background:#e9f6fc; }
  .mobile-menu nav a:last-child { background:#d7f0fb; }
  header.mast { padding-block:4px; }
}
.assembly-sequence { display:contents; }
.hero .hero-description-mobile,.assembly-controls-mobile:empty { display:none; }
.hero-models { display:flex; flex-wrap:wrap; gap:4px; }
.hero-models a {
  padding:4px 10px; border:1px solid #c6dce7; border-radius:99px; font-size:.84em;
  color:#1e5369; transition:background .22s;
}
.hero-models a:is(:hover,:focus-visible) { background:#d5effb; }
.assembly-rail { top:14px; bottom:14px; overflow:hidden; isolation:isolate; justify-content:center; }
.assembly-rail::before {
  content:''; position:absolute; inset:0; z-index:-1; transform:scaleY(var(--assembly,0)); transform-origin:top;
  background:linear-gradient(180deg,#b6ebff,#4ec1ef);
}
.assembly-rail i { position:absolute; bottom:5px; }
.assembly-rail i::before { content:''; width:6px; height:6px; border-radius:50%; background:#fff; }
.assembly-rail:focus-visible { outline-offset:2px; }
.hero .assembly-caption { font-weight:600; color:#254c5e; }
#faq {
  position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.58fr);
  column-gap:clamp(24px,5vw,85px); padding:clamp(38px,5vw,72px) clamp(18px,4vw,60px) clamp(22px,3vw,52px);
  margin-bottom:clamp(36px,6vw,82px);
}
.equipment-faq { margin-top:clamp(40px,6vw,82px); }
.faq-contour { position:absolute; inset:0; z-index:-1; width:100%; height:100%; pointer-events:none; overflow:visible; }
.contour-base { fill:#f9fdff; stroke:#78c6e4; stroke-width:1.5; }
.contour-trace { fill:none; stroke:#2497c6; stroke-width:2; stroke-dasharray:1; stroke-dashoffset:1; }
.contour-visible .contour-trace { animation:faq-outline 1s cubic-bezier(.27,.75,.32,1) both; }
@keyframes faq-outline { to { stroke-dashoffset:0; } }
.faq-intro { align-self:start; position:sticky; top:calc(var(--mast-height) + 32px); }
.faq-intro h2 { font-size:clamp(2rem,4.1vw,4rem); font-weight:650; letter-spacing:-.06em; margin:0 0 16px; }
#faq .questions { grid-column:auto; min-width:0; }
.questions details { border:1px solid transparent; border-bottom-color:#cfdee5; overflow:hidden; box-sizing:border-box; }
.questions details:is([open],[data-expanding=true]) { border-color:#a1d6e9; border-radius:16px; background:#eaf7fc; }
.questions summary { padding:17px 58px 17px 14px; cursor:pointer; font-weight:600; line-height:1.35; }
.questions summary:focus-visible { outline-offset:-3px; border-radius:10px; }
.questions summary::after,.questions details[open] summary::after {
  content:''; position:absolute; right:12px; top:50%; width:28px; height:28px; border-radius:50%;
  background:linear-gradient(#216184,#216184) center/11px 1.5px no-repeat,
             linear-gradient(#216184,#216184) center/1.5px 11px no-repeat,#e1f1f8;
  transform:translateY(-50%); transition:transform .26s,background-color .26s;
}
.questions details[open]:not([data-expanding=false]) summary::after { transform:translateY(-50%) rotate(45deg); background-color:#c3eafa; }
.questions p { padding:0 42px 18px 14px; line-height:1.55; }
.questions [data-expanding=true] p { animation:answer-in .26s ease both; }
@keyframes answer-in { from { opacity:.15; transform:translateY(-5px); } }
@media (max-width:760px), (pointer:coarse) and (max-height:540px) {
  #assembly { --scene-top:calc(var(--mast-height) + 10px); height:auto; }
  #assembly.is-scrubbable { height:auto; }
  #assembly.is-scrubbable::before { content:''; display:block; height:88svh; order:2; }
  #assembly.is-scrubbable { display:flex; flex-direction:column; }
  #assembly .hero {
    display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto auto;
    gap:clamp(7px,1.3svh,15px); align-content:center; padding:16px 14px 10px;
    min-height:0; height:auto; border:0; background:#fff; border-radius:20px;
  }
  #assembly.is-scrubbable .hero { position:sticky; top:var(--scene-top); height:auto; min-height:0; }
  #assembly .hero-copy { padding:0; }
  #assembly .hero h1 { font-size:clamp(1.95rem,9.3vw,3.55rem); line-height:.99; }
  #assembly .hero-description, #assembly .assembly-frame, #assembly .assembly-rail,
  #assembly .part, #assembly .assembly-caption { display:none; }
  #assembly .hero-description-mobile { display:block; margin:7px 0 11px; color:#435962; font-size:.94rem; line-height:1.28; }
  #assembly .hero-models { gap:10px; margin-top:9px; }
  #assembly .hero-models a { padding:0; border:0; border-radius:2px; font-size:.77rem; }
  #assembly .hero-actions { gap:6px 12px; }
  #assembly .hero-actions .cta { padding:9px 14px; min-height:42px; font-size:.89rem; }
  #assembly .hero-actions .watch-link { padding:6px 0; font-size:.78rem; }
  #assembly .assembly-sequence { display:contents; }
  #assembly .assembly-stage {
    display:grid; place-items:center; position:relative; margin:0 auto;
    width:min(100%, 560px, 59svh); max-height:none; aspect-ratio:768 / 564;
  }
  #assembly .assembly-stage :is(canvas,.assembly-poster) { width:100%; height:auto; max-height:none; }
  .assembly-controls-mobile .assembly-status { width:100%; max-width:none; margin:0; gap:0 12px; }
  .assembly-controls-mobile .assembly-status label,.assembly-controls-mobile .assembly-status strong { font-size:.7rem; }
  .assembly-controls-mobile input { height:26px; }
  .workloads a::after, .cta::after, .cta.button-twist::after { display:none; content:none; }
  .cta,.cta:hover,.mobile-actions .cta { padding:12px 19px; }
  #faq { grid-template-columns:minmax(0,1fr); gap:18px; }
  .faq-intro { position:static; }
  .faq-intro h2 { margin-bottom:9px; }
  #faq .questions summary { padding:15px 44px 15px 8px; }
  #faq .questions summary::after { right:5px; }
  #faq .questions p { padding-inline:8px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .contour-trace { stroke-dashoffset:0; }
  .questions *,.mobile-menu * { transition:none; animation:none; }
}
.assembly-hardware { display:contents; }
@media (orientation:landscape) and (max-height:540px) and (pointer:coarse) {
  #assembly .hero { grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr); grid-template-rows:auto auto; gap:4px 14px; }
  #assembly .hero-copy { grid-column:1; grid-row:1 / 3; align-self:center; }
  #assembly .hero h1 { font-size:clamp(1.5rem,4vw,2.1rem); }
  #assembly .hero-models { margin-top:5px; }
  #assembly .assembly-stage { grid-column:2; grid-row:1; width:min(100%,61svh); }
  .assembly-controls-mobile { grid-column:2; grid-row:2; }
}
@media (pointer:coarse) {
  .workloads a::after, .cta::after, .cta.button-twist::after { display:none; content:none; }
}
.hero .equipment-link-short { display:none; }
.hero .hero-actions .watch-link :is(.equipment-link-long,.equipment-link-short) { font-family:inherit; }
@media (max-width:760px), (pointer:coarse) and (max-height:540px) {
  .hero .equipment-link-long { display:none; }
  .hero .equipment-link-short { display:inline; }
}
